Файловый менеджер - Редактировать - /var/www/xthruster/html/wp-content/uploads/flags/google.tar
Назад
apiclient-services-adsenselinks/AdSenseLinks.php 0000644 00000013741 14721515320 0016060 0 ustar 00 <?php namespace Google\Site_Kit_Dependencies; /* * 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. */ /** * The "adSenseLinks" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google_Service_GoogleAnalyticsAdmin(...); * $adSenseLinks = $analyticsadminService->adSenseLinks; * </code> */ class Google_Service_GoogleAnalyticsAdmin_PropertiesAdSenseLinks_Resource extends \Google\Site_Kit_Dependencies\Google_Service_Resource { /** * Creates an AdSenseLink. (adSenseLinks.create) * * @param string $parent Required. The property for which to create an AdSense * Link. Format: properties/{propertyId} Example: properties/1234 * @param Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAdSenseLink $postBody * @param array $optParams Optional parameters. * @return Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAdSenseLink */ public function create($parent, \Google\Site_Kit_Dependencies\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAdSenseLink $postBody, $optParams = array()) { $params = array('parent' => $parent, 'postBody' => $postBody); $params = \array_merge($params, $optParams); return $this->call('create', array($params), Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAdSenseLink::class); } /** * Deletes an AdSenseLink. (adSenseLinks.delete) * * @param string $name Required. Unique identifier for the AdSense Link to be * deleted. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: * properties/1234/adSenseLinks/5678 * @param array $optParams Optional parameters. * @return Google_Service_GoogleAnalyticsAdmin_GoogleProtobufEmpty */ public function delete($name, $optParams = array()) { $params = array('name' => $name); $params = \array_merge($params, $optParams); return $this->call('delete', array($params), Google_Service_GoogleAnalyticsAdmin_GoogleProtobufEmpty::class); } /** * Looks up a single AdSenseLink. (adSenseLinks.get) * * @param string $name Required. Unique identifier for the AdSense Link * requested. Format: properties/{propertyId}/adSenseLinks/{linkId} Example: * properties/1234/adSenseLinks/5678 * @param array $optParams Optional parameters. * @return Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAdSenseLink */ public function get($name, $optParams = array()) { $params = array('name' => $name); $params = \array_merge($params, $optParams); return $this->call('get', array($params), Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAdSenseLink::class); } /** * Lists AdSenseLinks on a property. (adSenseLinks.listPropertiesAdSenseLinks) * * @param string $parent Required. Resource name of the parent property. Format: * properties/{propertyId} Example: properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200 * (higher values will be coerced to the maximum). * @opt_param string pageToken A page token received from a previous * `ListAdSenseLinks` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListAdSenseLinks` must match * the call that provided the page token. * @return Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse */ public function listPropertiesAdSenseLinks($parent, $optParams = array()) { $params = array('parent' => $parent); $params = \array_merge($params, $optParams); return $this->call('list', array($params), Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse::class); } } class Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAdSenseLink extends \Google\Site_Kit_Dependencies\Google_Model { protected $internal_gapi_mappings = array(); public $adClientCode; public $name; public function setAdClientCode($adClientCode) { $this->adClientCode = $adClientCode; } public function getAdClientCode() { return $this->adClientCode; } public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } } class Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListAdSenseLinksResponse extends \Google\Site_Kit_Dependencies\Google_Collection { protected $collection_key = 'adsenseLinks'; protected $internal_gapi_mappings = array(); protected $adsenseLinksType = 'Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAdSenseLink'; protected $adsenseLinksDataType = 'array'; public $adsenseLinks; public $nextPageToken; public function setAdsenseLinks($adsenseLinks) { $this->adsenseLinks = $adsenseLinks; } public function getAdsenseLinks() { return $this->adsenseLinks; } public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } public function getNextPageToken() { return $this->nextPageToken; } } class Google_Service_GoogleAnalyticsAdmin_GoogleProtobufEmpty extends \Google\Site_Kit_Dependencies\Google_Model { } auth/src/ServiceAccountSignerTrait.php 0000644 00000003752 14721515320 0014105 0 ustar 00 <?php /* * Copyright 2019 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use Google\Site_Kit_Dependencies\phpseclib\Crypt\RSA; /** * Sign a string using a Service Account private key. */ trait ServiceAccountSignerTrait { /** * Sign a string using the service account private key. * * @param string $stringToSign * @param bool $forceOpenssl Whether to use OpenSSL regardless of * whether phpseclib is installed. **Defaults to** `false`. * @return string */ public function signBlob($stringToSign, $forceOpenssl = \false) { $privateKey = $this->auth->getSigningKey(); $signedString = ''; if (\class_exists('Google\\Site_Kit_Dependencies\\phpseclib\\Crypt\\RSA') && !$forceOpenssl) { $rsa = new \Google\Site_Kit_Dependencies\phpseclib\Crypt\RSA(); $rsa->loadKey($privateKey); $rsa->setSignatureMode(\Google\Site_Kit_Dependencies\phpseclib\Crypt\RSA::SIGNATURE_PKCS1); $rsa->setHash('sha256'); $signedString = $rsa->sign($stringToSign); } elseif (\extension_loaded('openssl')) { \openssl_sign($stringToSign, $signedString, $privateKey, 'sha256WithRSAEncryption'); } else { // @codeCoverageIgnoreStart throw new \RuntimeException('OpenSSL is not installed.'); } // @codeCoverageIgnoreEnd return \base64_encode($signedString); } } auth/src/Credentials/GCECredentials.php 0000644 00000037460 14721515320 0014030 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Credentials; use Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader; use Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\Google\Auth\Iam; use Google\Site_Kit_Dependencies\Google\Auth\IamSignerTrait; use Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface; use Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface; use Google\Site_Kit_Dependencies\GuzzleHttp\Exception\ClientException; use Google\Site_Kit_Dependencies\GuzzleHttp\Exception\ConnectException; use Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException; use Google\Site_Kit_Dependencies\GuzzleHttp\Exception\ServerException; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request; use InvalidArgumentException; /** * GCECredentials supports authorization on Google Compute Engine. * * It can be used to authorize requests using the AuthTokenMiddleware, but will * only succeed if being run on GCE: * * use Google\Auth\Credentials\GCECredentials; * use Google\Auth\Middleware\AuthTokenMiddleware; * use GuzzleHttp\Client; * use GuzzleHttp\HandlerStack; * * $gce = new GCECredentials(); * $middleware = new AuthTokenMiddleware($gce); * $stack = HandlerStack::create(); * $stack->push($middleware); * * $client = new Client([ * 'handler' => $stack, * 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/', * 'auth' => 'google_auth' * ]); * * $res = $client->get('myproject/taskqueues/myqueue'); */ class GCECredentials extends \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader implements \Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface, \Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface, \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface { use IamSignerTrait; // phpcs:disable const cacheKey = 'GOOGLE_AUTH_PHP_GCE'; // phpcs:enable /** * The metadata IP address on appengine instances. * * The IP is used instead of the domain 'metadata' to avoid slow responses * when not on Compute Engine. */ const METADATA_IP = '169.254.169.254'; /** * The metadata path of the default token. */ const TOKEN_URI_PATH = 'v1/instance/service-accounts/default/token'; /** * The metadata path of the default id token. */ const ID_TOKEN_URI_PATH = 'v1/instance/service-accounts/default/identity'; /** * The metadata path of the client ID. */ const CLIENT_ID_URI_PATH = 'v1/instance/service-accounts/default/email'; /** * The metadata path of the project ID. */ const PROJECT_ID_URI_PATH = 'v1/project/project-id'; /** * The header whose presence indicates GCE presence. */ const FLAVOR_HEADER = 'Metadata-Flavor'; /** * Note: the explicit `timeout` and `tries` below is a workaround. The underlying * issue is that resolving an unknown host on some networks will take * 20-30 seconds; making this timeout short fixes the issue, but * could lead to false negatives in the event that we are on GCE, but * the metadata resolution was particularly slow. The latter case is * "unlikely" since the expected 4-nines time is about 0.5 seconds. * This allows us to limit the total ping maximum timeout to 1.5 seconds * for developer desktop scenarios. */ const MAX_COMPUTE_PING_TRIES = 3; const COMPUTE_PING_CONNECTION_TIMEOUT_S = 0.5; /** * Flag used to ensure that the onGCE test is only done once;. * * @var bool */ private $hasCheckedOnGce = \false; /** * Flag that stores the value of the onGCE check. * * @var bool */ private $isOnGce = \false; /** * Result of fetchAuthToken. * * @var array<mixed> */ protected $lastReceivedToken; /** * @var string|null */ private $clientName; /** * @var string|null */ private $projectId; /** * @var string */ private $tokenUri; /** * @var string */ private $targetAudience; /** * @var string|null */ private $quotaProject; /** * @var string|null */ private $serviceAccountIdentity; /** * @param Iam $iam [optional] An IAM instance. * @param string|string[] $scope [optional] the scope of the access request, * expressed either as an array or as a space-delimited string. * @param string $targetAudience [optional] The audience for the ID token. * @param string $quotaProject [optional] Specifies a project to bill for access * charges associated with the request. * @param string $serviceAccountIdentity [optional] Specify a service * account identity name to use instead of "default". */ public function __construct(\Google\Site_Kit_Dependencies\Google\Auth\Iam $iam = null, $scope = null, $targetAudience = null, $quotaProject = null, $serviceAccountIdentity = null) { $this->iam = $iam; if ($scope && $targetAudience) { throw new \InvalidArgumentException('Scope and targetAudience cannot both be supplied'); } $tokenUri = self::getTokenUri($serviceAccountIdentity); if ($scope) { if (\is_string($scope)) { $scope = \explode(' ', $scope); } $scope = \implode(',', $scope); $tokenUri = $tokenUri . '?scopes=' . $scope; } elseif ($targetAudience) { $tokenUri = self::getIdTokenUri($serviceAccountIdentity); $tokenUri = $tokenUri . '?audience=' . $targetAudience; $this->targetAudience = $targetAudience; } $this->tokenUri = $tokenUri; $this->quotaProject = $quotaProject; $this->serviceAccountIdentity = $serviceAccountIdentity; } /** * The full uri for accessing the default token. * * @param string $serviceAccountIdentity [optional] Specify a service * account identity name to use instead of "default". * @return string */ public static function getTokenUri($serviceAccountIdentity = null) { $base = 'http://' . self::METADATA_IP . '/computeMetadata/'; $base .= self::TOKEN_URI_PATH; if ($serviceAccountIdentity) { return \str_replace('/default/', '/' . $serviceAccountIdentity . '/', $base); } return $base; } /** * The full uri for accessing the default service account. * * @param string $serviceAccountIdentity [optional] Specify a service * account identity name to use instead of "default". * @return string */ public static function getClientNameUri($serviceAccountIdentity = null) { $base = 'http://' . self::METADATA_IP . '/computeMetadata/'; $base .= self::CLIENT_ID_URI_PATH; if ($serviceAccountIdentity) { return \str_replace('/default/', '/' . $serviceAccountIdentity . '/', $base); } return $base; } /** * The full uri for accesesing the default identity token. * * @param string $serviceAccountIdentity [optional] Specify a service * account identity name to use instead of "default". * @return string */ private static function getIdTokenUri($serviceAccountIdentity = null) { $base = 'http://' . self::METADATA_IP . '/computeMetadata/'; $base .= self::ID_TOKEN_URI_PATH; if ($serviceAccountIdentity) { return \str_replace('/default/', '/' . $serviceAccountIdentity . '/', $base); } return $base; } /** * The full uri for accessing the default project ID. * * @return string */ private static function getProjectIdUri() { $base = 'http://' . self::METADATA_IP . '/computeMetadata/'; return $base . self::PROJECT_ID_URI_PATH; } /** * Determines if this an App Engine Flexible instance, by accessing the * GAE_INSTANCE environment variable. * * @return bool true if this an App Engine Flexible Instance, false otherwise */ public static function onAppEngineFlexible() { return \substr((string) \getenv('GAE_INSTANCE'), 0, 4) === 'aef-'; } /** * Determines if this a GCE instance, by accessing the expected metadata * host. * If $httpHandler is not specified a the default HttpHandler is used. * * @param callable $httpHandler callback which delivers psr7 request * @return bool True if this a GCEInstance, false otherwise */ public static function onGce(callable $httpHandler = null) { $httpHandler = $httpHandler ?: \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build(\Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); $checkUri = 'http://' . self::METADATA_IP; for ($i = 1; $i <= self::MAX_COMPUTE_PING_TRIES; $i++) { try { // Comment from: oauth2client/client.py // // Note: the explicit `timeout` below is a workaround. The underlying // issue is that resolving an unknown host on some networks will take // 20-30 seconds; making this timeout short fixes the issue, but // could lead to false negatives in the event that we are on GCE, but // the metadata resolution was particularly slow. The latter case is // "unlikely". $resp = $httpHandler(new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('GET', $checkUri, [self::FLAVOR_HEADER => 'Google']), ['timeout' => self::COMPUTE_PING_CONNECTION_TIMEOUT_S]); return $resp->getHeaderLine(self::FLAVOR_HEADER) == 'Google'; } catch (\Google\Site_Kit_Dependencies\GuzzleHttp\Exception\ClientException $e) { } catch (\Google\Site_Kit_Dependencies\GuzzleHttp\Exception\ServerException $e) { } catch (\Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException $e) { } catch (\Google\Site_Kit_Dependencies\GuzzleHttp\Exception\ConnectException $e) { } } return \false; } /** * Implements FetchAuthTokenInterface#fetchAuthToken. * * Fetches the auth tokens from the GCE metadata host if it is available. * If $httpHandler is not specified a the default HttpHandler is used. * * @param callable $httpHandler callback which delivers psr7 request * * @return array<mixed> { * A set of auth related metadata, based on the token type. * * @type string $access_token for access tokens * @type int $expires_in for access tokens * @type string $token_type for access tokens * @type string $id_token for ID tokens * } * @throws \Exception */ public function fetchAuthToken(callable $httpHandler = null) { $httpHandler = $httpHandler ?: \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build(\Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); if (!$this->hasCheckedOnGce) { $this->isOnGce = self::onGce($httpHandler); $this->hasCheckedOnGce = \true; } if (!$this->isOnGce) { return []; // return an empty array with no access token } $response = $this->getFromMetadata($httpHandler, $this->tokenUri); if ($this->targetAudience) { return ['id_token' => $response]; } if (null === ($json = \json_decode($response, \true))) { throw new \Exception('Invalid JSON response'); } $json['expires_at'] = \time() + $json['expires_in']; // store this so we can retrieve it later $this->lastReceivedToken = $json; return $json; } /** * @return string */ public function getCacheKey() { return self::cacheKey; } /** * @return array{access_token:string,expires_at:int}|null */ public function getLastReceivedToken() { if ($this->lastReceivedToken) { return ['access_token' => $this->lastReceivedToken['access_token'], 'expires_at' => $this->lastReceivedToken['expires_at']]; } return null; } /** * Get the client name from GCE metadata. * * Subsequent calls will return a cached value. * * @param callable $httpHandler callback which delivers psr7 request * @return string */ public function getClientName(callable $httpHandler = null) { if ($this->clientName) { return $this->clientName; } $httpHandler = $httpHandler ?: \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build(\Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); if (!$this->hasCheckedOnGce) { $this->isOnGce = self::onGce($httpHandler); $this->hasCheckedOnGce = \true; } if (!$this->isOnGce) { return ''; } $this->clientName = $this->getFromMetadata($httpHandler, self::getClientNameUri($this->serviceAccountIdentity)); return $this->clientName; } /** * Fetch the default Project ID from compute engine. * * Returns null if called outside GCE. * * @param callable $httpHandler Callback which delivers psr7 request * @return string|null */ public function getProjectId(callable $httpHandler = null) { if ($this->projectId) { return $this->projectId; } $httpHandler = $httpHandler ?: \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build(\Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); if (!$this->hasCheckedOnGce) { $this->isOnGce = self::onGce($httpHandler); $this->hasCheckedOnGce = \true; } if (!$this->isOnGce) { return null; } $this->projectId = $this->getFromMetadata($httpHandler, self::getProjectIdUri()); return $this->projectId; } /** * Fetch the value of a GCE metadata server URI. * * @param callable $httpHandler An HTTP Handler to deliver PSR7 requests. * @param string $uri The metadata URI. * @return string */ private function getFromMetadata(callable $httpHandler, $uri) { $resp = $httpHandler(new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('GET', $uri, [self::FLAVOR_HEADER => 'Google'])); return (string) $resp->getBody(); } /** * Get the quota project used for this API request * * @return string|null */ public function getQuotaProject() { return $this->quotaProject; } /** * Set whether or not we've already checked the GCE environment. * * @param bool $isOnGce * * @return void */ public function setIsOnGce($isOnGce) { // Implicitly set hasCheckedGce to true $this->hasCheckedOnGce = \true; // Set isOnGce $this->isOnGce = $isOnGce; } } auth/src/Credentials/AppIdentityCredentials.php 0000644 00000016435 14721515320 0015663 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Credentials; /* * The AppIdentityService class is automatically defined on App Engine, * so including this dependency is not necessary, and will result in a * PHP fatal error in the App Engine environment. */ use Google\Site_Kit_Dependencies\google\appengine\api\app_identity\AppIdentityService; use Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader; use Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface; use Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface; /** * @deprecated * * AppIdentityCredentials supports authorization on Google App Engine. * * It can be used to authorize requests using the AuthTokenMiddleware or * AuthTokenSubscriber, but will only succeed if being run on App Engine: * * Example: * ``` * use Google\Auth\Credentials\AppIdentityCredentials; * use Google\Auth\Middleware\AuthTokenMiddleware; * use GuzzleHttp\Client; * use GuzzleHttp\HandlerStack; * * $gae = new AppIdentityCredentials('https://www.googleapis.com/auth/books'); * $middleware = new AuthTokenMiddleware($gae); * $stack = HandlerStack::create(); * $stack->push($middleware); * * $client = new Client([ * 'handler' => $stack, * 'base_uri' => 'https://www.googleapis.com/books/v1', * 'auth' => 'google_auth' * ]); * * $res = $client->get('volumes?q=Henry+David+Thoreau&country=US'); * ``` */ class AppIdentityCredentials extends \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader implements \Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface, \Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface { /** * Result of fetchAuthToken. * * @var array<mixed> */ protected $lastReceivedToken; /** * Array of OAuth2 scopes to be requested. * * @var string[] */ private $scope; /** * @var string */ private $clientName; /** * @param string|string[] $scope One or more scopes. */ public function __construct($scope = []) { $this->scope = \is_array($scope) ? $scope : \explode(' ', (string) $scope); } /** * Determines if this an App Engine instance, by accessing the * SERVER_SOFTWARE environment variable (prod) or the APPENGINE_RUNTIME * environment variable (dev). * * @return bool true if this an App Engine Instance, false otherwise */ public static function onAppEngine() { $appEngineProduction = isset($_SERVER['SERVER_SOFTWARE']) && 0 === \strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine'); if ($appEngineProduction) { return \true; } $appEngineDevAppServer = isset($_SERVER['APPENGINE_RUNTIME']) && $_SERVER['APPENGINE_RUNTIME'] == 'php'; if ($appEngineDevAppServer) { return \true; } return \false; } /** * Implements FetchAuthTokenInterface#fetchAuthToken. * * Fetches the auth tokens using the AppIdentityService if available. * As the AppIdentityService uses protobufs to fetch the access token, * the GuzzleHttp\ClientInterface instance passed in will not be used. * * @param callable $httpHandler callback which delivers psr7 request * @return array<mixed> { * A set of auth related metadata, containing the following * * @type string $access_token * @type string $expiration_time * } */ public function fetchAuthToken(callable $httpHandler = null) { try { $this->checkAppEngineContext(); } catch (\Exception $e) { return []; } /** @phpstan-ignore-next-line */ $token = \Google\Site_Kit_Dependencies\google\appengine\api\app_identity\AppIdentityService::getAccessToken($this->scope); $this->lastReceivedToken = $token; return $token; } /** * Sign a string using AppIdentityService. * * @param string $stringToSign The string to sign. * @param bool $forceOpenSsl [optional] Does not apply to this credentials * type. * @return string The signature, base64-encoded. * @throws \Exception If AppEngine SDK or mock is not available. */ public function signBlob($stringToSign, $forceOpenSsl = \false) { $this->checkAppEngineContext(); /** @phpstan-ignore-next-line */ return \base64_encode(\Google\Site_Kit_Dependencies\google\appengine\api\app_identity\AppIdentityService::signForApp($stringToSign)['signature']); } /** * Get the project ID from AppIdentityService. * * Returns null if AppIdentityService is unavailable. * * @param callable $httpHandler Not used by this type. * @return string|null */ public function getProjectId(callable $httpHandler = null) { try { $this->checkAppEngineContext(); } catch (\Exception $e) { return null; } /** @phpstan-ignore-next-line */ return \Google\Site_Kit_Dependencies\google\appengine\api\app_identity\AppIdentityService::getApplicationId(); } /** * Get the client name from AppIdentityService. * * Subsequent calls to this method will return a cached value. * * @param callable $httpHandler Not used in this implementation. * @return string * @throws \Exception If AppEngine SDK or mock is not available. */ public function getClientName(callable $httpHandler = null) { $this->checkAppEngineContext(); if (!$this->clientName) { /** @phpstan-ignore-next-line */ $this->clientName = \Google\Site_Kit_Dependencies\google\appengine\api\app_identity\AppIdentityService::getServiceAccountName(); } return $this->clientName; } /** * @return array{access_token:string,expires_at:int}|null */ public function getLastReceivedToken() { if ($this->lastReceivedToken) { return ['access_token' => $this->lastReceivedToken['access_token'], 'expires_at' => $this->lastReceivedToken['expiration_time']]; } return null; } /** * Caching is handled by the underlying AppIdentityService, return empty string * to prevent caching. * * @return string */ public function getCacheKey() { return ''; } /** * @return void */ private function checkAppEngineContext() { if (!self::onAppEngine() || !\class_exists('Google\\Site_Kit_Dependencies\\google\\appengine\\api\\app_identity\\AppIdentityService')) { throw new \Exception('This class must be run in App Engine, or you must include the AppIdentityService ' . 'mock class defined in tests/mocks/AppIdentityService.php'); } } } auth/src/Credentials/ImpersonatedServiceAccountCredentials.php 0000644 00000010766 14721515320 0020722 0 ustar 00 <?php /* * Copyright 2022 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Credentials; use Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader; use Google\Site_Kit_Dependencies\Google\Auth\IamSignerTrait; use Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface; class ImpersonatedServiceAccountCredentials extends \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader implements \Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface { use IamSignerTrait; /** * @var string */ protected $impersonatedServiceAccountName; /** * @var UserRefreshCredentials */ protected $sourceCredentials; /** * Instantiate an instance of ImpersonatedServiceAccountCredentials from a credentials file that has be created with * the --impersonated-service-account flag. * * @param string|string[] $scope the scope of the access request, expressed * either as an Array or as a space-delimited String. * @param string|array<mixed> $jsonKey JSON credential file path or JSON credentials * as an associative array */ public function __construct($scope, $jsonKey) { if (\is_string($jsonKey)) { if (!\file_exists($jsonKey)) { throw new \InvalidArgumentException('file does not exist'); } $json = \file_get_contents($jsonKey); if (!($jsonKey = \json_decode((string) $json, \true))) { throw new \LogicException('invalid json for auth config'); } } if (!\array_key_exists('service_account_impersonation_url', $jsonKey)) { throw new \LogicException('json key is missing the service_account_impersonation_url field'); } if (!\array_key_exists('source_credentials', $jsonKey)) { throw new \LogicException('json key is missing the source_credentials field'); } $this->impersonatedServiceAccountName = $this->getImpersonatedServiceAccountNameFromUrl($jsonKey['service_account_impersonation_url']); $this->sourceCredentials = new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\UserRefreshCredentials($scope, $jsonKey['source_credentials']); } /** * Helper function for extracting the Server Account Name from the URL saved in the account credentials file * @param $serviceAccountImpersonationUrl string URL from the 'service_account_impersonation_url' field * @return string Service account email or ID. */ private function getImpersonatedServiceAccountNameFromUrl(string $serviceAccountImpersonationUrl) { $fields = \explode('/', $serviceAccountImpersonationUrl); $lastField = \end($fields); $splitter = \explode(':', $lastField); return $splitter[0]; } /** * Get the client name from the keyfile * * In this implementation, it will return the issuers email from the oauth token. * * @param callable|null $unusedHttpHandler not used by this credentials type. * @return string Token issuer email */ public function getClientName(callable $unusedHttpHandler = null) { return $this->impersonatedServiceAccountName; } /** * @param callable $httpHandler * * @return array<mixed> { * A set of auth related metadata, containing the following * * @type string $access_token * @type int $expires_in * @type string $scope * @type string $token_type * @type string $id_token * } */ public function fetchAuthToken(callable $httpHandler = null) { return $this->sourceCredentials->fetchAuthToken($httpHandler); } /** * @return string */ public function getCacheKey() { return $this->sourceCredentials->getCacheKey(); } /** * @return array<mixed> */ public function getLastReceivedToken() { return $this->sourceCredentials->getLastReceivedToken(); } } auth/src/Credentials/InsecureCredentials.php 0000644 00000003601 14721515320 0015175 0 ustar 00 <?php /* * Copyright 2018 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Credentials; use Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface; /** * Provides a set of credentials that will always return an empty access token. * This is useful for APIs which do not require authentication, for local * service emulators, and for testing. */ class InsecureCredentials implements \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface { /** * @var array{access_token:string} */ private $token = ['access_token' => '']; /** * Fetches the auth token. In this case it returns an empty string. * * @param callable $httpHandler * @return array{access_token:string} A set of auth related metadata */ public function fetchAuthToken(callable $httpHandler = null) { return $this->token; } /** * Returns the cache key. In this case it returns a null value, disabling * caching. * * @return string|null */ public function getCacheKey() { return null; } /** * Fetches the last received token. In this case, it returns the same empty string * auth token. * * @return array{access_token:string} */ public function getLastReceivedToken() { return $this->token; } } auth/src/Credentials/IAMCredentials.php 0000644 00000004611 14721515320 0014030 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Credentials; /** * Authenticates requests using IAM credentials. */ class IAMCredentials { const SELECTOR_KEY = 'x-goog-iam-authority-selector'; const TOKEN_KEY = 'x-goog-iam-authorization-token'; /** * @var string */ private $selector; /** * @var string */ private $token; /** * @param string $selector the IAM selector * @param string $token the IAM token */ public function __construct($selector, $token) { if (!\is_string($selector)) { throw new \InvalidArgumentException('selector must be a string'); } if (!\is_string($token)) { throw new \InvalidArgumentException('token must be a string'); } $this->selector = $selector; $this->token = $token; } /** * export a callback function which updates runtime metadata. * * @return callable updateMetadata function */ public function getUpdateMetadataFunc() { return [$this, 'updateMetadata']; } /** * Updates metadata with the appropriate header metadata. * * @param array<mixed> $metadata metadata hashmap * @param string $unusedAuthUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * Note: this param is unused here, only included here for * consistency with other credentials class * * @return array<mixed> updated metadata hashmap */ public function updateMetadata($metadata, $unusedAuthUri = null, callable $httpHandler = null) { $metadata_copy = $metadata; $metadata_copy[self::SELECTOR_KEY] = $this->selector; $metadata_copy[self::TOKEN_KEY] = $this->token; return $metadata_copy; } } auth/src/Credentials/UserRefreshCredentials.php 0000644 00000010701 14721515320 0015654 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Credentials; use Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader; use Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface; use Google\Site_Kit_Dependencies\Google\Auth\OAuth2; /** * Authenticates requests using User Refresh credentials. * * This class allows authorizing requests from user refresh tokens. * * This the end of the result of a 3LO flow. E.g, the end result of * 'gcloud auth login' saves a file with these contents in well known * location * * @see [Application Default Credentials](http://goo.gl/mkAHpZ) */ class UserRefreshCredentials extends \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader implements \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface { /** * The OAuth2 instance used to conduct authorization. * * @var OAuth2 */ protected $auth; /** * The quota project associated with the JSON credentials * * @var string */ protected $quotaProject; /** * Create a new UserRefreshCredentials. * * @param string|string[] $scope the scope of the access request, expressed * either as an Array or as a space-delimited String. * @param string|array<mixed> $jsonKey JSON credential file path or JSON credentials * as an associative array */ public function __construct($scope, $jsonKey) { if (\is_string($jsonKey)) { if (!\file_exists($jsonKey)) { throw new \InvalidArgumentException('file does not exist'); } $json = \file_get_contents($jsonKey); if (!($jsonKey = \json_decode((string) $json, \true))) { throw new \LogicException('invalid json for auth config'); } } if (!\array_key_exists('client_id', $jsonKey)) { throw new \InvalidArgumentException('json key is missing the client_id field'); } if (!\array_key_exists('client_secret', $jsonKey)) { throw new \InvalidArgumentException('json key is missing the client_secret field'); } if (!\array_key_exists('refresh_token', $jsonKey)) { throw new \InvalidArgumentException('json key is missing the refresh_token field'); } $this->auth = new \Google\Site_Kit_Dependencies\Google\Auth\OAuth2(['clientId' => $jsonKey['client_id'], 'clientSecret' => $jsonKey['client_secret'], 'refresh_token' => $jsonKey['refresh_token'], 'scope' => $scope, 'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI]); if (\array_key_exists('quota_project_id', $jsonKey)) { $this->quotaProject = (string) $jsonKey['quota_project_id']; } } /** * @param callable $httpHandler * * @return array<mixed> { * A set of auth related metadata, containing the following * * @type string $access_token * @type int $expires_in * @type string $scope * @type string $token_type * @type string $id_token * } */ public function fetchAuthToken(callable $httpHandler = null) { return $this->auth->fetchAuthToken($httpHandler); } /** * @return string */ public function getCacheKey() { return $this->auth->getClientId() . ':' . $this->auth->getCacheKey(); } /** * @return array<mixed> */ public function getLastReceivedToken() { return $this->auth->getLastReceivedToken(); } /** * Get the quota project used for this API request * * @return string|null */ public function getQuotaProject() { return $this->quotaProject; } /** * Get the granted scopes (if they exist) for the last fetched token. * * @return string|null */ public function getGrantedScope() { return $this->auth->getGrantedScope(); } } auth/src/Credentials/ServiceAccountCredentials.php 0000644 00000025065 14721515320 0016345 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Credentials; use Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader; use Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface; use Google\Site_Kit_Dependencies\Google\Auth\OAuth2; use Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface; use Google\Site_Kit_Dependencies\Google\Auth\ServiceAccountSignerTrait; use Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface; use InvalidArgumentException; /** * ServiceAccountCredentials supports authorization using a Google service * account. * * (cf https://developers.google.com/accounts/docs/OAuth2ServiceAccount) * * It's initialized using the json key file that's downloadable from developer * console, which should contain a private_key and client_email fields that it * uses. * * Use it with AuthTokenMiddleware to authorize http requests: * * use Google\Auth\Credentials\ServiceAccountCredentials; * use Google\Auth\Middleware\AuthTokenMiddleware; * use GuzzleHttp\Client; * use GuzzleHttp\HandlerStack; * * $sa = new ServiceAccountCredentials( * 'https://www.googleapis.com/auth/taskqueue', * '/path/to/your/json/key_file.json' * ); * $middleware = new AuthTokenMiddleware($sa); * $stack = HandlerStack::create(); * $stack->push($middleware); * * $client = new Client([ * 'handler' => $stack, * 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/', * 'auth' => 'google_auth' // authorize all requests * ]); * * $res = $client->get('myproject/taskqueues/myqueue'); */ class ServiceAccountCredentials extends \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader implements \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface, \Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface, \Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface { use ServiceAccountSignerTrait; /** * The OAuth2 instance used to conduct authorization. * * @var OAuth2 */ protected $auth; /** * The quota project associated with the JSON credentials * * @var string */ protected $quotaProject; /** * @var string|null */ protected $projectId; /** * @var array<mixed>|null */ private $lastReceivedJwtAccessToken; /** * @var bool */ private $useJwtAccessWithScope = \false; /** * @var ServiceAccountJwtAccessCredentials|null */ private $jwtAccessCredentials; /** * Create a new ServiceAccountCredentials. * * @param string|string[]|null $scope the scope of the access request, expressed * either as an Array or as a space-delimited String. * @param string|array<mixed> $jsonKey JSON credential file path or JSON credentials * as an associative array * @param string $sub an email address account to impersonate, in situations when * the service account has been delegated domain wide access. * @param string $targetAudience The audience for the ID token. */ public function __construct($scope, $jsonKey, $sub = null, $targetAudience = null) { if (\is_string($jsonKey)) { if (!\file_exists($jsonKey)) { throw new \InvalidArgumentException('file does not exist'); } $jsonKeyStream = \file_get_contents($jsonKey); if (!($jsonKey = \json_decode((string) $jsonKeyStream, \true))) { throw new \LogicException('invalid json for auth config'); } } if (!\array_key_exists('client_email', $jsonKey)) { throw new \InvalidArgumentException('json key is missing the client_email field'); } if (!\array_key_exists('private_key', $jsonKey)) { throw new \InvalidArgumentException('json key is missing the private_key field'); } if (\array_key_exists('quota_project_id', $jsonKey)) { $this->quotaProject = (string) $jsonKey['quota_project_id']; } if ($scope && $targetAudience) { throw new \InvalidArgumentException('Scope and targetAudience cannot both be supplied'); } $additionalClaims = []; if ($targetAudience) { $additionalClaims = ['target_audience' => $targetAudience]; } $this->auth = new \Google\Site_Kit_Dependencies\Google\Auth\OAuth2(['audience' => self::TOKEN_CREDENTIAL_URI, 'issuer' => $jsonKey['client_email'], 'scope' => $scope, 'signingAlgorithm' => 'RS256', 'signingKey' => $jsonKey['private_key'], 'sub' => $sub, 'tokenCredentialUri' => self::TOKEN_CREDENTIAL_URI, 'additionalClaims' => $additionalClaims]); $this->projectId = isset($jsonKey['project_id']) ? $jsonKey['project_id'] : null; } /** * When called, the ServiceAccountCredentials will use an instance of * ServiceAccountJwtAccessCredentials to fetch (self-sign) an access token * even when only scopes are supplied. Otherwise, * ServiceAccountJwtAccessCredentials is only called when no scopes and an * authUrl (audience) is suppled. * * @return void */ public function useJwtAccessWithScope() { $this->useJwtAccessWithScope = \true; } /** * @param callable $httpHandler * * @return array<mixed> { * A set of auth related metadata, containing the following * * @type string $access_token * @type int $expires_in * @type string $token_type * } */ public function fetchAuthToken(callable $httpHandler = null) { if ($this->useSelfSignedJwt()) { $jwtCreds = $this->createJwtAccessCredentials(); $accessToken = $jwtCreds->fetchAuthToken($httpHandler); if ($lastReceivedToken = $jwtCreds->getLastReceivedToken()) { // Keep self-signed JWTs in memory as the last received token $this->lastReceivedJwtAccessToken = $lastReceivedToken; } return $accessToken; } return $this->auth->fetchAuthToken($httpHandler); } /** * @return string */ public function getCacheKey() { $key = $this->auth->getIssuer() . ':' . $this->auth->getCacheKey(); if ($sub = $this->auth->getSub()) { $key .= ':' . $sub; } return $key; } /** * @return array<mixed> */ public function getLastReceivedToken() { // If self-signed JWTs are being used, fetch the last received token // from memory. Else, fetch it from OAuth2 return $this->useSelfSignedJwt() ? $this->lastReceivedJwtAccessToken : $this->auth->getLastReceivedToken(); } /** * Get the project ID from the service account keyfile. * * Returns null if the project ID does not exist in the keyfile. * * @param callable $httpHandler Not used by this credentials type. * @return string|null */ public function getProjectId(callable $httpHandler = null) { return $this->projectId; } /** * Updates metadata with the authorization token. * * @param array<mixed> $metadata metadata hashmap * @param string $authUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * @return array<mixed> updated metadata hashmap */ public function updateMetadata($metadata, $authUri = null, callable $httpHandler = null) { // scope exists. use oauth implementation if (!$this->useSelfSignedJwt()) { return parent::updateMetadata($metadata, $authUri, $httpHandler); } $jwtCreds = $this->createJwtAccessCredentials(); if ($this->auth->getScope()) { // Prefer user-provided "scope" to "audience" $updatedMetadata = $jwtCreds->updateMetadata($metadata, null, $httpHandler); } else { $updatedMetadata = $jwtCreds->updateMetadata($metadata, $authUri, $httpHandler); } if ($lastReceivedToken = $jwtCreds->getLastReceivedToken()) { // Keep self-signed JWTs in memory as the last received token $this->lastReceivedJwtAccessToken = $lastReceivedToken; } return $updatedMetadata; } /** * @return ServiceAccountJwtAccessCredentials */ private function createJwtAccessCredentials() { if (!$this->jwtAccessCredentials) { // Create credentials for self-signing a JWT (JwtAccess) $credJson = ['private_key' => $this->auth->getSigningKey(), 'client_email' => $this->auth->getIssuer()]; $this->jwtAccessCredentials = new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\ServiceAccountJwtAccessCredentials($credJson, $this->auth->getScope()); } return $this->jwtAccessCredentials; } /** * @param string $sub an email address account to impersonate, in situations when * the service account has been delegated domain wide access. * @return void */ public function setSub($sub) { $this->auth->setSub($sub); } /** * Get the client name from the keyfile. * * In this case, it returns the keyfile's client_email key. * * @param callable $httpHandler Not used by this credentials type. * @return string */ public function getClientName(callable $httpHandler = null) { return $this->auth->getIssuer(); } /** * Get the quota project used for this API request * * @return string|null */ public function getQuotaProject() { return $this->quotaProject; } /** * @return bool */ private function useSelfSignedJwt() { // If claims are set, this call is for "id_tokens" if ($this->auth->getAdditionalClaims()) { return \false; } // When true, ServiceAccountCredentials will always use JwtAccess for access tokens if ($this->useJwtAccessWithScope) { return \true; } return \is_null($this->auth->getScope()); } } auth/src/Credentials/ServiceAccountJwtAccessCredentials.php 0000644 00000014420 14721515320 0020145 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Credentials; use Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader; use Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface; use Google\Site_Kit_Dependencies\Google\Auth\OAuth2; use Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface; use Google\Site_Kit_Dependencies\Google\Auth\ServiceAccountSignerTrait; use Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface; /** * Authenticates requests using Google's Service Account credentials via * JWT Access. * * This class allows authorizing requests for service accounts directly * from credentials from a json key file downloaded from the developer * console (via 'Generate new Json Key'). It is not part of any OAuth2 * flow, rather it creates a JWT and sends that as a credential. */ class ServiceAccountJwtAccessCredentials extends \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader implements \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface, \Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface, \Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface { use ServiceAccountSignerTrait; /** * The OAuth2 instance used to conduct authorization. * * @var OAuth2 */ protected $auth; /** * The quota project associated with the JSON credentials * * @var string */ protected $quotaProject; /** * @var string */ public $projectId; /** * Create a new ServiceAccountJwtAccessCredentials. * * @param string|array<mixed> $jsonKey JSON credential file path or JSON credentials * as an associative array * @param string|string[] $scope the scope of the access request, expressed * either as an Array or as a space-delimited String. */ public function __construct($jsonKey, $scope = null) { if (\is_string($jsonKey)) { if (!\file_exists($jsonKey)) { throw new \InvalidArgumentException('file does not exist'); } $jsonKeyStream = \file_get_contents($jsonKey); if (!($jsonKey = \json_decode((string) $jsonKeyStream, \true))) { throw new \LogicException('invalid json for auth config'); } } if (!\array_key_exists('client_email', $jsonKey)) { throw new \InvalidArgumentException('json key is missing the client_email field'); } if (!\array_key_exists('private_key', $jsonKey)) { throw new \InvalidArgumentException('json key is missing the private_key field'); } if (\array_key_exists('quota_project_id', $jsonKey)) { $this->quotaProject = (string) $jsonKey['quota_project_id']; } $this->auth = new \Google\Site_Kit_Dependencies\Google\Auth\OAuth2(['issuer' => $jsonKey['client_email'], 'sub' => $jsonKey['client_email'], 'signingAlgorithm' => 'RS256', 'signingKey' => $jsonKey['private_key'], 'scope' => $scope]); $this->projectId = isset($jsonKey['project_id']) ? $jsonKey['project_id'] : null; } /** * Updates metadata with the authorization token. * * @param array<mixed> $metadata metadata hashmap * @param string $authUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * @return array<mixed> updated metadata hashmap */ public function updateMetadata($metadata, $authUri = null, callable $httpHandler = null) { $scope = $this->auth->getScope(); if (empty($authUri) && empty($scope)) { return $metadata; } $this->auth->setAudience($authUri); return parent::updateMetadata($metadata, $authUri, $httpHandler); } /** * Implements FetchAuthTokenInterface#fetchAuthToken. * * @param callable $httpHandler * * @return null|array{access_token:string} A set of auth related metadata */ public function fetchAuthToken(callable $httpHandler = null) { $audience = $this->auth->getAudience(); $scope = $this->auth->getScope(); if (empty($audience) && empty($scope)) { return null; } if (!empty($audience) && !empty($scope)) { throw new \UnexpectedValueException('Cannot sign both audience and scope in JwtAccess'); } $access_token = $this->auth->toJwt(); // Set the self-signed access token in OAuth2 for getLastReceivedToken $this->auth->setAccessToken($access_token); return ['access_token' => $access_token]; } /** * @return string */ public function getCacheKey() { return $this->auth->getCacheKey(); } /** * @return array<mixed> */ public function getLastReceivedToken() { return $this->auth->getLastReceivedToken(); } /** * Get the project ID from the service account keyfile. * * Returns null if the project ID does not exist in the keyfile. * * @param callable $httpHandler Not used by this credentials type. * @return string|null */ public function getProjectId(callable $httpHandler = null) { return $this->projectId; } /** * Get the client name from the keyfile. * * In this case, it returns the keyfile's client_email key. * * @param callable $httpHandler Not used by this credentials type. * @return string */ public function getClientName(callable $httpHandler = null) { return $this->auth->getIssuer(); } /** * Get the quota project used for this API request * * @return string|null */ public function getQuotaProject() { return $this->quotaProject; } } auth/src/UpdateMetadataInterface.php 0000644 00000002333 14721515320 0013512 0 ustar 00 <?php /* * Copyright 2020 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; /** * Describes a Credentials object which supports updating request metadata * (request headers). */ interface UpdateMetadataInterface { const AUTH_METADATA_KEY = 'authorization'; /** * Updates metadata with the authorization token. * * @param array<mixed> $metadata metadata hashmap * @param string $authUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * @return array<mixed> updated metadata hashmap */ public function updateMetadata($metadata, $authUri = null, callable $httpHandler = null); } auth/src/SignBlobInterface.php 0000644 00000003102 14721515320 0012321 0 ustar 00 <?php /* * Copyright 2019 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; /** * Describes a class which supports signing arbitrary strings. */ interface SignBlobInterface extends \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface { /** * Sign a string using the method which is best for a given credentials type. * * @param string $stringToSign The string to sign. * @param bool $forceOpenssl Require use of OpenSSL for local signing. Does * not apply to signing done using external services. **Defaults to** * `false`. * @return string The resulting signature. Value should be base64-encoded. */ public function signBlob($stringToSign, $forceOpenssl = \false); /** * Returns the current Client Name. * * @param callable $httpHandler callback which delivers psr7 request, if * one is required to obtain a client name. * @return string */ public function getClientName(callable $httpHandler = null); } auth/src/IamSignerTrait.php 0000644 00000004652 14721515320 0011676 0 ustar 00 <?php /* * Copyright 2022 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use Exception; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; trait IamSignerTrait { /** * @var Iam|null */ private $iam; /** * Sign a string using the default service account private key. * * This implementation uses IAM's signBlob API. * * @see https://cloud.google.com/iam/credentials/reference/rest/v1/projects.serviceAccounts/signBlob SignBlob * * @param string $stringToSign The string to sign. * @param bool $forceOpenSsl [optional] Does not apply to this credentials * type. * @param string $accessToken The access token to use to sign the blob. If * provided, saves a call to the metadata server for a new access * token. **Defaults to** `null`. * @return string * @throws Exception */ public function signBlob($stringToSign, $forceOpenSsl = \false, $accessToken = null) { $httpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build(\Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); // Providing a signer is useful for testing, but it's undocumented // because it's not something a user would generally need to do. $signer = $this->iam ?: new \Google\Site_Kit_Dependencies\Google\Auth\Iam($httpHandler); $email = $this->getClientName($httpHandler); if (\is_null($accessToken)) { $previousToken = $this->getLastReceivedToken(); $accessToken = $previousToken ? $previousToken['access_token'] : $this->fetchAuthToken($httpHandler)['access_token']; } return $signer->signBlob($email, $accessToken, $stringToSign); } } auth/src/CredentialsLoader.php 0000644 00000024010 14721515320 0012366 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\ImpersonatedServiceAccountCredentials; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\InsecureCredentials; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\ServiceAccountCredentials; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\UserRefreshCredentials; use RuntimeException; use UnexpectedValueException; /** * CredentialsLoader contains the behaviour used to locate and find default * credentials files on the file system. */ abstract class CredentialsLoader implements \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface, \Google\Site_Kit_Dependencies\Google\Auth\UpdateMetadataInterface { const TOKEN_CREDENTIAL_URI = 'https://oauth2.googleapis.com/token'; const ENV_VAR = 'GOOGLE_APPLICATION_CREDENTIALS'; const WELL_KNOWN_PATH = 'gcloud/application_default_credentials.json'; const NON_WINDOWS_WELL_KNOWN_PATH_BASE = '.config'; const MTLS_WELL_KNOWN_PATH = '.secureConnect/context_aware_metadata.json'; const MTLS_CERT_ENV_VAR = 'GOOGLE_API_USE_CLIENT_CERTIFICATE'; /** * @param string $cause * @return string */ private static function unableToReadEnv($cause) { $msg = 'Unable to read the credential file specified by '; $msg .= ' GOOGLE_APPLICATION_CREDENTIALS: '; $msg .= $cause; return $msg; } /** * @return bool */ private static function isOnWindows() { return \strtoupper(\substr(\PHP_OS, 0, 3)) === 'WIN'; } /** * Load a JSON key from the path specified in the environment. * * Load a JSON key from the path specified in the environment * variable GOOGLE_APPLICATION_CREDENTIALS. Return null if * GOOGLE_APPLICATION_CREDENTIALS is not specified. * * @return array<mixed>|null JSON key | null */ public static function fromEnv() { $path = \getenv(self::ENV_VAR); if (empty($path)) { return null; } if (!\file_exists($path)) { $cause = 'file ' . $path . ' does not exist'; throw new \DomainException(self::unableToReadEnv($cause)); } $jsonKey = \file_get_contents($path); return \json_decode((string) $jsonKey, \true); } /** * Load a JSON key from a well known path. * * The well known path is OS dependent: * * * windows: %APPDATA%/gcloud/application_default_credentials.json * * others: $HOME/.config/gcloud/application_default_credentials.json * * If the file does not exist, this returns null. * * @return array<mixed>|null JSON key | null */ public static function fromWellKnownFile() { $rootEnv = self::isOnWindows() ? 'APPDATA' : 'HOME'; $path = [\getenv($rootEnv)]; if (!self::isOnWindows()) { $path[] = self::NON_WINDOWS_WELL_KNOWN_PATH_BASE; } $path[] = self::WELL_KNOWN_PATH; $path = \implode(\DIRECTORY_SEPARATOR, $path); if (!\file_exists($path)) { return null; } $jsonKey = \file_get_contents($path); return \json_decode((string) $jsonKey, \true); } /** * Create a new Credentials instance. * * @param string|string[] $scope the scope of the access request, expressed * either as an Array or as a space-delimited String. * @param array<mixed> $jsonKey the JSON credentials. * @param string|string[] $defaultScope The default scope to use if no * user-defined scopes exist, expressed either as an Array or as a * space-delimited string. * * @return ServiceAccountCredentials|UserRefreshCredentials|ImpersonatedServiceAccountCredentials */ public static function makeCredentials($scope, array $jsonKey, $defaultScope = null) { if (!\array_key_exists('type', $jsonKey)) { throw new \InvalidArgumentException('json key is missing the type field'); } if ($jsonKey['type'] == 'service_account') { // Do not pass $defaultScope to ServiceAccountCredentials return new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\ServiceAccountCredentials($scope, $jsonKey); } if ($jsonKey['type'] == 'authorized_user') { $anyScope = $scope ?: $defaultScope; return new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\UserRefreshCredentials($anyScope, $jsonKey); } if ($jsonKey['type'] == 'impersonated_service_account') { $anyScope = $scope ?: $defaultScope; return new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\ImpersonatedServiceAccountCredentials($anyScope, $jsonKey); } throw new \InvalidArgumentException('invalid value in the type field'); } /** * Create an authorized HTTP Client from an instance of FetchAuthTokenInterface. * * @param FetchAuthTokenInterface $fetcher is used to fetch the auth token * @param array<mixed> $httpClientOptions (optional) Array of request options to apply. * @param callable $httpHandler (optional) http client to fetch the token. * @param callable $tokenCallback (optional) function to be called when a new token is fetched. * @return \GuzzleHttp\Client */ public static function makeHttpClient(\Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface $fetcher, array $httpClientOptions = [], callable $httpHandler = null, callable $tokenCallback = null) { $middleware = new \Google\Site_Kit_Dependencies\Google\Auth\Middleware\AuthTokenMiddleware($fetcher, $httpHandler, $tokenCallback); $stack = \Google\Site_Kit_Dependencies\GuzzleHttp\HandlerStack::create(); $stack->push($middleware); return new \Google\Site_Kit_Dependencies\GuzzleHttp\Client(['handler' => $stack, 'auth' => 'google_auth'] + $httpClientOptions); } /** * Create a new instance of InsecureCredentials. * * @return InsecureCredentials */ public static function makeInsecureCredentials() { return new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\InsecureCredentials(); } /** * export a callback function which updates runtime metadata. * * @return callable updateMetadata function * @deprecated */ public function getUpdateMetadataFunc() { return [$this, 'updateMetadata']; } /** * Updates metadata with the authorization token. * * @param array<mixed> $metadata metadata hashmap * @param string $authUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * @return array<mixed> updated metadata hashmap */ public function updateMetadata($metadata, $authUri = null, callable $httpHandler = null) { if (isset($metadata[self::AUTH_METADATA_KEY])) { // Auth metadata has already been set return $metadata; } $result = $this->fetchAuthToken($httpHandler); $metadata_copy = $metadata; if (isset($result['access_token'])) { $metadata_copy[self::AUTH_METADATA_KEY] = ['Bearer ' . $result['access_token']]; } elseif (isset($result['id_token'])) { $metadata_copy[self::AUTH_METADATA_KEY] = ['Bearer ' . $result['id_token']]; } return $metadata_copy; } /** * Gets a callable which returns the default device certification. * * @throws UnexpectedValueException * @return callable|null */ public static function getDefaultClientCertSource() { if (!($clientCertSourceJson = self::loadDefaultClientCertSourceFile())) { return null; } $clientCertSourceCmd = $clientCertSourceJson['cert_provider_command']; return function () use($clientCertSourceCmd) { $cmd = \array_map('escapeshellarg', $clientCertSourceCmd); \exec(\implode(' ', $cmd), $output, $returnVar); if (0 === $returnVar) { return \implode(\PHP_EOL, $output); } throw new \RuntimeException('"cert_provider_command" failed with a nonzero exit code'); }; } /** * Determines whether or not the default device certificate should be loaded. * * @return bool */ public static function shouldLoadClientCertSource() { return \filter_var(\getenv(self::MTLS_CERT_ENV_VAR), \FILTER_VALIDATE_BOOLEAN); } /** * @return array{cert_provider_command:string[]}|null */ private static function loadDefaultClientCertSourceFile() { $rootEnv = self::isOnWindows() ? 'APPDATA' : 'HOME'; $path = \sprintf('%s/%s', \getenv($rootEnv), self::MTLS_WELL_KNOWN_PATH); if (!\file_exists($path)) { return null; } $jsonKey = \file_get_contents($path); $clientCertSourceJson = \json_decode((string) $jsonKey, \true); if (!$clientCertSourceJson) { throw new \UnexpectedValueException('Invalid client cert source JSON'); } if (!isset($clientCertSourceJson['cert_provider_command'])) { throw new \UnexpectedValueException('cert source requires "cert_provider_command"'); } if (!\is_array($clientCertSourceJson['cert_provider_command'])) { throw new \UnexpectedValueException('cert source expects "cert_provider_command" to be an array'); } return $clientCertSourceJson; } } auth/src/HttpHandler/Guzzle7HttpHandler.php 0000644 00000001412 14721515320 0014725 0 ustar 00 <?php /** * Copyright 2020 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\HttpHandler; class Guzzle7HttpHandler extends \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\Guzzle6HttpHandler { } auth/src/HttpHandler/HttpClientCache.php 0000644 00000002657 14721515320 0014236 0 ustar 00 <?php /* * Copyright 2019 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\HttpHandler; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; /** * Stores an HTTP Client in order to prevent multiple instantiations. */ class HttpClientCache { /** * @var ClientInterface|null */ private static $httpClient; /** * Cache an HTTP Client for later calls. * * Passing null will unset the cached client. * * @param ClientInterface|null $client * @return void */ public static function setHttpClient(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $client = null) { self::$httpClient = $client; } /** * Get the stored HTTP Client, or null. * * @return ClientInterface|null */ public static function getHttpClient() { return self::$httpClient; } } auth/src/HttpHandler/Guzzle6HttpHandler.php 0000644 00000003752 14721515320 0014735 0 ustar 00 <?php /** * Copyright 2015 Google Inc. All Rights Reserved. * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\HttpHandler; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface; class Guzzle6HttpHandler { /** * @var ClientInterface */ private $client; /** * @param ClientInterface $client */ public function __construct(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $client) { $this->client = $client; } /** * Accepts a PSR-7 request and an array of options and returns a PSR-7 response. * * @param RequestInterface $request * @param array<mixed> $options * @return ResponseInterface */ public function __invoke(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $options = []) { return $this->client->send($request, $options); } /** * Accepts a PSR-7 request and an array of options and returns a PromiseInterface * * @param RequestInterface $request * @param array<mixed> $options * * @return \GuzzleHttp\Promise\PromiseInterface */ public function async(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $options = []) { return $this->client->sendAsync($request, $options); } } auth/src/HttpHandler/HttpHandlerFactory.php 0000644 00000005736 14721515320 0015002 0 ustar 00 <?php /** * Copyright 2015 Google Inc. All Rights Reserved. * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\HttpHandler; use Google\Site_Kit_Dependencies\GuzzleHttp\BodySummarizer; use Google\Site_Kit_Dependencies\GuzzleHttp\Client; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; use Google\Site_Kit_Dependencies\GuzzleHttp\HandlerStack; use Google\Site_Kit_Dependencies\GuzzleHttp\Middleware; class HttpHandlerFactory { /** * Builds out a default http handler for the installed version of guzzle. * * @param ClientInterface $client * @return Guzzle5HttpHandler|Guzzle6HttpHandler|Guzzle7HttpHandler * @throws \Exception */ public static function build(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $client = null) { if (\is_null($client)) { $stack = null; if (\class_exists(\Google\Site_Kit_Dependencies\GuzzleHttp\BodySummarizer::class)) { // double the # of characters before truncation by default $bodySummarizer = new \Google\Site_Kit_Dependencies\GuzzleHttp\BodySummarizer(240); $stack = \Google\Site_Kit_Dependencies\GuzzleHttp\HandlerStack::create(); $stack->remove('http_errors'); $stack->unshift(\Google\Site_Kit_Dependencies\GuzzleHttp\Middleware::httpErrors($bodySummarizer), 'http_errors'); } $client = new \Google\Site_Kit_Dependencies\GuzzleHttp\Client(['handler' => $stack]); } $version = null; if (\defined('Google\\Site_Kit_Dependencies\\GuzzleHttp\\ClientInterface::MAJOR_VERSION')) { $version = \Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface::MAJOR_VERSION; } elseif (\defined('Google\\Site_Kit_Dependencies\\GuzzleHttp\\ClientInterface::VERSION')) { $version = (int) \substr(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface::VERSION, 0, 1); } switch ($version) { case 5: return new \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\Guzzle5HttpHandler($client); case 6: return new \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\Guzzle6HttpHandler($client); case 7: return new \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\Guzzle7HttpHandler($client); default: throw new \Exception('Version not supported'); } } } auth/src/HttpHandler/Guzzle5HttpHandler.php 0000644 00000010117 14721515320 0014725 0 ustar 00 <?php /** * Copyright 2015 Google Inc. All Rights Reserved. * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\HttpHandler; use Exception; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; use Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface as Guzzle5ResponseInterface; use Google\Site_Kit_Dependencies\GuzzleHttp\Promise\Promise; use Google\Site_Kit_Dependencies\GuzzleHttp\Promise\RejectedPromise; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Response; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface; /** * @deprecated */ class Guzzle5HttpHandler { /** * @var ClientInterface */ private $client; /** * @param ClientInterface $client */ public function __construct(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $client) { $this->client = $client; } /** * Accepts a PSR-7 Request and an array of options and returns a PSR-7 response. * * @param RequestInterface $request * @param array $options * @return ResponseInterface */ public function __invoke(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $options = []) { $response = $this->client->send($this->createGuzzle5Request($request, $options)); return $this->createPsr7Response($response); } /** * Accepts a PSR-7 request and an array of options and returns a PromiseInterface * * @param RequestInterface $request * @param array $options * @return Promise */ public function async(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $options = []) { if (!\class_exists('Google\\Site_Kit_Dependencies\\GuzzleHttp\\Promise\\Promise')) { throw new \Exception('Install guzzlehttp/promises to use async with Guzzle 5'); } $futureResponse = $this->client->send($this->createGuzzle5Request($request, ['future' => \true] + $options)); $promise = new \Google\Site_Kit_Dependencies\GuzzleHttp\Promise\Promise(function () use($futureResponse) { try { $futureResponse->wait(); } catch (\Exception $e) { // The promise is already delivered when the exception is // thrown, so don't rethrow it. } }, [$futureResponse, 'cancel']); $futureResponse->then([$promise, 'resolve'], [$promise, 'reject']); return $promise->then(function (\Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface $response) { // Adapt the Guzzle 5 Response to a PSR-7 Response. return $this->createPsr7Response($response); }, function (\Exception $e) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Promise\RejectedPromise($e); }); } private function createGuzzle5Request(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $options) { return $this->client->createRequest($request->getMethod(), $request->getUri(), \array_merge_recursive(['headers' => $request->getHeaders(), 'body' => $request->getBody()], $options)); } private function createPsr7Response(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface $response) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Response($response->getStatusCode(), $response->getHeaders() ?: [], $response->getBody(), $response->getProtocolVersion(), $response->getReasonPhrase()); } } auth/src/GCECache.php 0000644 00000004753 14721515320 0010340 0 ustar 00 <?php /* * Copyright 2020 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\GCECredentials; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; /** * A class to implement caching for calls to GCECredentials::onGce. This class * is used automatically when you pass a `Psr\Cache\CacheItemPoolInterface` * cache object to `ApplicationDefaultCredentials::getCredentials`. * * ``` * $sysvCache = new Google\Auth\SysvCacheItemPool(); * $creds = Google\Auth\ApplicationDefaultCredentials::getCredentials( * $scope, * null, * null, * $sysvCache * ); * ``` */ class GCECache { const GCE_CACHE_KEY = 'google_auth_on_gce_cache'; use CacheTrait; /** * @param array<mixed> $cacheConfig Configuration for the cache * @param CacheItemPoolInterface $cache */ public function __construct(array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null) { $this->cache = $cache; $this->cacheConfig = \array_merge(['lifetime' => 1500, 'prefix' => ''], (array) $cacheConfig); } /** * Caches the result of onGce so the metadata server is not called multiple * times. * * @param callable $httpHandler callback which delivers psr7 request * @return bool True if this a GCEInstance, false otherwise */ public function onGce(callable $httpHandler = null) { if (\is_null($this->cache)) { return \Google\Site_Kit_Dependencies\Google\Auth\Credentials\GCECredentials::onGce($httpHandler); } $cacheKey = self::GCE_CACHE_KEY; $onGce = $this->getCachedValue($cacheKey); if (\is_null($onGce)) { $onGce = \Google\Site_Kit_Dependencies\Google\Auth\Credentials\GCECredentials::onGce($httpHandler); $this->setCachedValue($cacheKey, $onGce); } return $onGce; } } auth/src/Iam.php 0000644 00000006441 14721515320 0007520 0 ustar 00 <?php /* * Copyright 2019 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils; /** * Tools for using the IAM API. * * @see https://cloud.google.com/iam/docs IAM Documentation */ class Iam { const IAM_API_ROOT = 'https://iamcredentials.googleapis.com/v1'; const SIGN_BLOB_PATH = '%s:signBlob?alt=json'; const SERVICE_ACCOUNT_NAME = 'projects/-/serviceAccounts/%s'; /** * @var callable */ private $httpHandler; /** * @param callable $httpHandler [optional] The HTTP Handler to send requests. */ public function __construct(callable $httpHandler = null) { $this->httpHandler = $httpHandler ?: \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build(\Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); } /** * Sign a string using the IAM signBlob API. * * Note that signing using IAM requires your service account to have the * `iam.serviceAccounts.signBlob` permission, part of the "Service Account * Token Creator" IAM role. * * @param string $email The service account email. * @param string $accessToken An access token from the service account. * @param string $stringToSign The string to be signed. * @param array<string> $delegates [optional] A list of service account emails to * add to the delegate chain. If omitted, the value of `$email` will * be used. * @return string The signed string, base64-encoded. */ public function signBlob($email, $accessToken, $stringToSign, array $delegates = []) { $httpHandler = $this->httpHandler; $name = \sprintf(self::SERVICE_ACCOUNT_NAME, $email); $uri = self::IAM_API_ROOT . '/' . \sprintf(self::SIGN_BLOB_PATH, $name); if ($delegates) { foreach ($delegates as &$delegate) { $delegate = \sprintf(self::SERVICE_ACCOUNT_NAME, $delegate); } } else { $delegates = [$name]; } $body = ['delegates' => $delegates, 'payload' => \base64_encode($stringToSign)]; $headers = ['Authorization' => 'Bearer ' . $accessToken]; $request = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('POST', $uri, $headers, \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor(\json_encode($body))); $res = $httpHandler($request); $body = \json_decode((string) $res->getBody(), \true); return $body['signedBlob']; } } auth/src/Cache/MemoryCacheItemPool.php 0000644 00000011507 14721515320 0013661 0 ustar 00 <?php /* * Copyright 2016 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Cache; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; /** * Simple in-memory cache implementation. */ final class MemoryCacheItemPool implements \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface { /** * @var CacheItemInterface[] */ private $items; /** * @var CacheItemInterface[] */ private $deferredItems; /** * {@inheritdoc} * * @return CacheItemInterface The corresponding Cache Item. */ public function getItem($key) : \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface { return \current($this->getItems([$key])); // @phpstan-ignore-line } /** * {@inheritdoc} * * @return iterable<CacheItemInterface> * A traversable collection of Cache Items keyed by the cache keys of * each item. A Cache item will be returned for each key, even if that * key is not found. However, if no keys are specified then an empty * traversable MUST be returned instead. */ public function getItems(array $keys = []) : iterable { $items = []; $itemClass = \PHP_VERSION_ID >= 80000 ? \Google\Site_Kit_Dependencies\Google\Auth\Cache\TypedItem::class : \Google\Site_Kit_Dependencies\Google\Auth\Cache\Item::class; foreach ($keys as $key) { $items[$key] = $this->hasItem($key) ? clone $this->items[$key] : new $itemClass($key); } return $items; } /** * {@inheritdoc} * * @return bool * True if item exists in the cache, false otherwise. */ public function hasItem($key) : bool { $this->isValidKey($key); return isset($this->items[$key]) && $this->items[$key]->isHit(); } /** * {@inheritdoc} * * @return bool * True if the pool was successfully cleared. False if there was an error. */ public function clear() : bool { $this->items = []; $this->deferredItems = []; return \true; } /** * {@inheritdoc} * * @return bool * True if the item was successfully removed. False if there was an error. */ public function deleteItem($key) : bool { return $this->deleteItems([$key]); } /** * {@inheritdoc} * * @return bool * True if the items were successfully removed. False if there was an error. */ public function deleteItems(array $keys) : bool { \array_walk($keys, [$this, 'isValidKey']); foreach ($keys as $key) { unset($this->items[$key]); } return \true; } /** * {@inheritdoc} * * @return bool * True if the item was successfully persisted. False if there was an error. */ public function save(\Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface $item) : bool { $this->items[$item->getKey()] = $item; return \true; } /** * {@inheritdoc} * * @return bool * False if the item could not be queued or if a commit was attempted and failed. True otherwise. */ public function saveDeferred(\Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface $item) : bool { $this->deferredItems[$item->getKey()] = $item; return \true; } /** * {@inheritdoc} * * @return bool * True if all not-yet-saved items were successfully saved or there were none. False otherwise. */ public function commit() : bool { foreach ($this->deferredItems as $item) { $this->save($item); } $this->deferredItems = []; return \true; } /** * Determines if the provided key is valid. * * @param string $key * @return bool * @throws InvalidArgumentException */ private function isValidKey($key) { $invalidCharacters = '{}()/\\\\@:'; if (!\is_string($key) || \preg_match("#[{$invalidCharacters}]#", $key)) { throw new \Google\Site_Kit_Dependencies\Google\Auth\Cache\InvalidArgumentException('The provided key is not valid: ' . \var_export($key, \true)); } return \true; } } auth/src/Cache/Item.php 0000644 00000007456 14721515320 0010722 0 ustar 00 <?php /* * Copyright 2016 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Cache; use DateTime; use DateTimeInterface; use DateTimeZone; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface; use TypeError; /** * A cache item. * * This class will be used by MemoryCacheItemPool and SysVCacheItemPool * on PHP 7.4 and below. It is compatible with psr/cache 1.0 and 2.0 (PSR-6). * @see TypedItem for compatiblity with psr/cache 3.0. */ final class Item implements \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface { /** * @var string */ private $key; /** * @var mixed */ private $value; /** * @var DateTimeInterface|null */ private $expiration; /** * @var bool */ private $isHit = \false; /** * @param string $key */ public function __construct($key) { $this->key = $key; } /** * {@inheritdoc} */ public function getKey() { return $this->key; } /** * {@inheritdoc} */ public function get() { return $this->isHit() ? $this->value : null; } /** * {@inheritdoc} */ public function isHit() { if (!$this->isHit) { return \false; } if ($this->expiration === null) { return \true; } return $this->currentTime()->getTimestamp() < $this->expiration->getTimestamp(); } /** * {@inheritdoc} */ public function set($value) { $this->isHit = \true; $this->value = $value; return $this; } /** * {@inheritdoc} */ public function expiresAt($expiration) { if ($this->isValidExpiration($expiration)) { $this->expiration = $expiration; return $this; } $error = \sprintf('Argument 1 passed to %s::expiresAt() must implement interface DateTimeInterface, %s given', \get_class($this), \gettype($expiration)); throw new \TypeError($error); } /** * {@inheritdoc} */ public function expiresAfter($time) { if (\is_int($time)) { $this->expiration = $this->currentTime()->add(new \DateInterval("PT{$time}S")); } elseif ($time instanceof \DateInterval) { $this->expiration = $this->currentTime()->add($time); } elseif ($time === null) { $this->expiration = $time; } else { $message = 'Argument 1 passed to %s::expiresAfter() must be an ' . 'instance of DateInterval or of the type integer, %s given'; $error = \sprintf($message, \get_class($this), \gettype($time)); throw new \TypeError($error); } return $this; } /** * Determines if an expiration is valid based on the rules defined by PSR6. * * @param mixed $expiration * @return bool */ private function isValidExpiration($expiration) { if ($expiration === null) { return \true; } if ($expiration instanceof \DateTimeInterface) { return \true; } return \false; } /** * @return DateTime */ protected function currentTime() { return new \DateTime('now', new \DateTimeZone('UTC')); } } auth/src/Cache/TypedItem.php 0000644 00000010006 14721515320 0011711 0 ustar 00 <?php /* * Copyright 2022 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Cache; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface; /** * A cache item. * * This class will be used by MemoryCacheItemPool and SysVCacheItemPool * on PHP 8.0 and above. It is compatible with psr/cache 3.0 (PSR-6). * @see Item for compatiblity with previous versions of PHP. */ final class TypedItem implements \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface { /** * @var mixed */ private mixed $value; /** * @var \DateTimeInterface|null */ private ?\DateTimeInterface $expiration; /** * @var bool */ private bool $isHit = \false; /** * @param string $key */ public function __construct(private string $key) { $this->key = $key; $this->expiration = null; } /** * {@inheritdoc} */ public function getKey() : string { return $this->key; } /** * {@inheritdoc} */ public function get() : mixed { return $this->isHit() ? $this->value : null; } /** * {@inheritdoc} */ public function isHit() : bool { if (!$this->isHit) { return \false; } if ($this->expiration === null) { return \true; } return $this->currentTime()->getTimestamp() < $this->expiration->getTimestamp(); } /** * {@inheritdoc} */ public function set(mixed $value) : static { $this->isHit = \true; $this->value = $value; return $this; } /** * {@inheritdoc} */ public function expiresAt($expiration) : static { if ($this->isValidExpiration($expiration)) { $this->expiration = $expiration; return $this; } $error = \sprintf('Argument 1 passed to %s::expiresAt() must implement interface DateTimeInterface, %s given', \get_class($this), \gettype($expiration)); throw new \TypeError($error); } /** * {@inheritdoc} */ public function expiresAfter($time) : static { if (\is_int($time)) { $this->expiration = $this->currentTime()->add(new \DateInterval("PT{$time}S")); } elseif ($time instanceof \DateInterval) { $this->expiration = $this->currentTime()->add($time); } elseif ($time === null) { $this->expiration = $time; } else { $message = 'Argument 1 passed to %s::expiresAfter() must be an ' . 'instance of DateInterval or of the type integer, %s given'; $error = \sprintf($message, \get_class($this), \gettype($time)); throw new \TypeError($error); } return $this; } /** * Determines if an expiration is valid based on the rules defined by PSR6. * * @param mixed $expiration * @return bool */ private function isValidExpiration($expiration) { if ($expiration === null) { return \true; } // We test for two types here due to the fact the DateTimeInterface // was not introduced until PHP 5.5. Checking for the DateTime type as // well allows us to support 5.4. if ($expiration instanceof \DateTimeInterface) { return \true; } return \false; } /** * @return \DateTime */ protected function currentTime() { return new \DateTime('now', new \DateTimeZone('UTC')); } } auth/src/Cache/InvalidArgumentException.php 0000644 00000001612 14721515320 0014760 0 ustar 00 <?php /* * Copyright 2016 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Cache; use Google\Site_Kit_Dependencies\Psr\Cache\InvalidArgumentException as PsrInvalidArgumentException; class InvalidArgumentException extends \InvalidArgumentException implements \Google\Site_Kit_Dependencies\Psr\Cache\InvalidArgumentException { } auth/src/Cache/SysVCacheItemPool.php 0000644 00000014502 14721515320 0013313 0 ustar 00 <?php /** * Copyright 2018 Google Inc. All Rights Reserved. * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Cache; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; /** * SystemV shared memory based CacheItemPool implementation. * * This CacheItemPool implementation can be used among multiple processes, but * it doesn't provide any locking mechanism. If multiple processes write to * this ItemPool, you have to avoid race condition manually in your code. */ class SysVCacheItemPool implements \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface { const VAR_KEY = 1; const DEFAULT_PROJ = 'A'; const DEFAULT_MEMSIZE = 10000; const DEFAULT_PERM = 0600; /** * @var int */ private $sysvKey; /** * @var CacheItemInterface[] */ private $items; /** * @var CacheItemInterface[] */ private $deferredItems; /** * @var array<mixed> */ private $options; /** * @var bool */ private $hasLoadedItems = \false; /** * Create a SystemV shared memory based CacheItemPool. * * @param array<mixed> $options { * [optional] Configuration options. * * @type int $variableKey The variable key for getting the data from the shared memory. **Defaults to** 1. * @type string $proj The project identifier for ftok. This needs to be a one character string. * **Defaults to** 'A'. * @type int $memsize The memory size in bytes for shm_attach. **Defaults to** 10000. * @type int $perm The permission for shm_attach. **Defaults to** 0600. * } */ public function __construct($options = []) { if (!\extension_loaded('sysvshm')) { throw new \RuntimeException('sysvshm extension is required to use this ItemPool'); } $this->options = $options + ['variableKey' => self::VAR_KEY, 'proj' => self::DEFAULT_PROJ, 'memsize' => self::DEFAULT_MEMSIZE, 'perm' => self::DEFAULT_PERM]; $this->items = []; $this->deferredItems = []; $this->sysvKey = \ftok(__FILE__, $this->options['proj']); } /** * @param mixed $key * @return CacheItemInterface */ public function getItem($key) : \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface { $this->loadItems(); return \current($this->getItems([$key])); // @phpstan-ignore-line } /** * @param array<mixed> $keys * @return iterable<CacheItemInterface> */ public function getItems(array $keys = []) : iterable { $this->loadItems(); $items = []; $itemClass = \PHP_VERSION_ID >= 80000 ? \Google\Site_Kit_Dependencies\Google\Auth\Cache\TypedItem::class : \Google\Site_Kit_Dependencies\Google\Auth\Cache\Item::class; foreach ($keys as $key) { $items[$key] = $this->hasItem($key) ? clone $this->items[$key] : new $itemClass($key); } return $items; } /** * {@inheritdoc} */ public function hasItem($key) : bool { $this->loadItems(); return isset($this->items[$key]) && $this->items[$key]->isHit(); } /** * {@inheritdoc} */ public function clear() : bool { $this->items = []; $this->deferredItems = []; return $this->saveCurrentItems(); } /** * {@inheritdoc} */ public function deleteItem($key) : bool { return $this->deleteItems([$key]); } /** * {@inheritdoc} */ public function deleteItems(array $keys) : bool { if (!$this->hasLoadedItems) { $this->loadItems(); } foreach ($keys as $key) { unset($this->items[$key]); } return $this->saveCurrentItems(); } /** * {@inheritdoc} */ public function save(\Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface $item) : bool { if (!$this->hasLoadedItems) { $this->loadItems(); } $this->items[$item->getKey()] = $item; return $this->saveCurrentItems(); } /** * {@inheritdoc} */ public function saveDeferred(\Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface $item) : bool { $this->deferredItems[$item->getKey()] = $item; return \true; } /** * {@inheritdoc} */ public function commit() : bool { foreach ($this->deferredItems as $item) { if ($this->save($item) === \false) { return \false; } } $this->deferredItems = []; return \true; } /** * Save the current items. * * @return bool true when success, false upon failure */ private function saveCurrentItems() { $shmid = \shm_attach($this->sysvKey, $this->options['memsize'], $this->options['perm']); if ($shmid !== \false) { $ret = \shm_put_var($shmid, $this->options['variableKey'], $this->items); \shm_detach($shmid); return $ret; } return \false; } /** * Load the items from the shared memory. * * @return bool true when success, false upon failure */ private function loadItems() { $shmid = \shm_attach($this->sysvKey, $this->options['memsize'], $this->options['perm']); if ($shmid !== \false) { $data = @\shm_get_var($shmid, $this->options['variableKey']); if (!empty($data)) { $this->items = $data; } else { $this->items = []; } \shm_detach($shmid); $this->hasLoadedItems = \true; return \true; } return \false; } } auth/src/Middleware/SimpleMiddleware.php 0000644 00000006002 14721515320 0014307 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Middleware; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; /** * SimpleMiddleware is a Guzzle Middleware that implements Google's Simple API * access. * * Requests are accessed using the Simple API access developer key. */ class SimpleMiddleware { /** * @var array<mixed> */ private $config; /** * Create a new Simple plugin. * * The configuration array expects one option * - key: required, otherwise InvalidArgumentException is thrown * * @param array<mixed> $config Configuration array */ public function __construct(array $config) { if (!isset($config['key'])) { throw new \InvalidArgumentException('requires a key to have been set'); } $this->config = \array_merge(['key' => null], $config); } /** * Updates the request query with the developer key if auth is set to simple. * * use Google\Auth\Middleware\SimpleMiddleware; * use GuzzleHttp\Client; * use GuzzleHttp\HandlerStack; * * $my_key = 'is not the same as yours'; * $middleware = new SimpleMiddleware(['key' => $my_key]); * $stack = HandlerStack::create(); * $stack->push($middleware); * * $client = new Client([ * 'handler' => $stack, * 'base_uri' => 'https://www.googleapis.com/discovery/v1/', * 'auth' => 'simple' * ]); * * $res = $client->get('drive/v2/rest'); * * @param callable $handler * @return \Closure */ public function __invoke(callable $handler) { return function (\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $options) use($handler) { // Requests using "auth"="scoped" will be authorized. if (!isset($options['auth']) || $options['auth'] !== 'simple') { return $handler($request, $options); } $query = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query::parse($request->getUri()->getQuery()); $params = \array_merge($query, $this->config); $uri = $request->getUri()->withQuery(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query::build($params)); $request = $request->withUri($uri); return $handler($request, $options); }; } } auth/src/Middleware/AuthTokenMiddleware.php 0000644 00000011305 14721515320 0014762 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Middleware; use Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface; use Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; /** * AuthTokenMiddleware is a Guzzle Middleware that adds an Authorization header * provided by an object implementing FetchAuthTokenInterface. * * The FetchAuthTokenInterface#fetchAuthToken is used to obtain a hash; one of * the values value in that hash is added as the authorization header. * * Requests will be accessed with the authorization header: * * 'authorization' 'Bearer <value of auth_token>' */ class AuthTokenMiddleware { /** * @var callable */ private $httpHandler; /** * @var FetchAuthTokenInterface */ private $fetcher; /** * @var ?callable */ private $tokenCallback; /** * Creates a new AuthTokenMiddleware. * * @param FetchAuthTokenInterface $fetcher is used to fetch the auth token * @param callable $httpHandler (optional) callback which delivers psr7 request * @param callable $tokenCallback (optional) function to be called when a new token is fetched. */ public function __construct(\Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface $fetcher, callable $httpHandler = null, callable $tokenCallback = null) { $this->fetcher = $fetcher; $this->httpHandler = $httpHandler; $this->tokenCallback = $tokenCallback; } /** * Updates the request with an Authorization header when auth is 'google_auth'. * * use Google\Auth\Middleware\AuthTokenMiddleware; * use Google\Auth\OAuth2; * use GuzzleHttp\Client; * use GuzzleHttp\HandlerStack; * * $config = [..<oauth config param>.]; * $oauth2 = new OAuth2($config) * $middleware = new AuthTokenMiddleware($oauth2); * $stack = HandlerStack::create(); * $stack->push($middleware); * * $client = new Client([ * 'handler' => $stack, * 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/', * 'auth' => 'google_auth' // authorize all requests * ]); * * $res = $client->get('myproject/taskqueues/myqueue'); * * @param callable $handler * @return \Closure */ public function __invoke(callable $handler) { return function (\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $options) use($handler) { // Requests using "auth"="google_auth" will be authorized. if (!isset($options['auth']) || $options['auth'] !== 'google_auth') { return $handler($request, $options); } $request = $request->withHeader('authorization', 'Bearer ' . $this->fetchToken()); if ($quotaProject = $this->getQuotaProject()) { $request = $request->withHeader(\Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER, $quotaProject); } return $handler($request, $options); }; } /** * Call fetcher to fetch the token. * * @return string|null */ private function fetchToken() { $auth_tokens = (array) $this->fetcher->fetchAuthToken($this->httpHandler); if (\array_key_exists('access_token', $auth_tokens)) { // notify the callback if applicable if ($this->tokenCallback) { \call_user_func($this->tokenCallback, $this->fetcher->getCacheKey(), $auth_tokens['access_token']); } return $auth_tokens['access_token']; } if (\array_key_exists('id_token', $auth_tokens)) { return $auth_tokens['id_token']; } return null; } /** * @return string|null */ private function getQuotaProject() { if ($this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface) { return $this->fetcher->getQuotaProject(); } return null; } } auth/src/Middleware/ScopedAccessTokenMiddleware.php 0000644 00000011666 14721515320 0016432 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Middleware; use Google\Site_Kit_Dependencies\Google\Auth\CacheTrait; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; /** * ScopedAccessTokenMiddleware is a Guzzle Middleware that adds an Authorization * header provided by a closure. * * The closure returns an access token, taking the scope, either a single * string or an array of strings, as its value. If provided, a cache will be * used to preserve the access token for a given lifetime. * * Requests will be accessed with the authorization header: * * 'authorization' 'Bearer <value of auth_token>' */ class ScopedAccessTokenMiddleware { use CacheTrait; const DEFAULT_CACHE_LIFETIME = 1500; /** * @var callable */ private $tokenFunc; /** * @var array<string>|string */ private $scopes; /** * Creates a new ScopedAccessTokenMiddleware. * * @param callable $tokenFunc a token generator function * @param array<string>|string $scopes the token authentication scopes * @param array<mixed> $cacheConfig configuration for the cache when it's present * @param CacheItemPoolInterface $cache an implementation of CacheItemPoolInterface */ public function __construct(callable $tokenFunc, $scopes, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null) { $this->tokenFunc = $tokenFunc; if (!(\is_string($scopes) || \is_array($scopes))) { throw new \InvalidArgumentException('wants scope should be string or array'); } $this->scopes = $scopes; if (!\is_null($cache)) { $this->cache = $cache; $this->cacheConfig = \array_merge(['lifetime' => self::DEFAULT_CACHE_LIFETIME, 'prefix' => ''], $cacheConfig); } } /** * Updates the request with an Authorization header when auth is 'scoped'. * * E.g this could be used to authenticate using the AppEngine * AppIdentityService. * * use google\appengine\api\app_identity\AppIdentityService; * use Google\Auth\Middleware\ScopedAccessTokenMiddleware; * use GuzzleHttp\Client; * use GuzzleHttp\HandlerStack; * * $scope = 'https://www.googleapis.com/auth/taskqueue' * $middleware = new ScopedAccessTokenMiddleware( * 'AppIdentityService::getAccessToken', * $scope, * [ 'prefix' => 'Google\Auth\ScopedAccessToken::' ], * $cache = new Memcache() * ); * $stack = HandlerStack::create(); * $stack->push($middleware); * * $client = new Client([ * 'handler' => $stack, * 'base_url' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/', * 'auth' => 'scoped' // authorize all requests * ]); * * $res = $client->get('myproject/taskqueues/myqueue'); * * @param callable $handler * @return \Closure */ public function __invoke(callable $handler) { return function (\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $options) use($handler) { // Requests using "auth"="scoped" will be authorized. if (!isset($options['auth']) || $options['auth'] !== 'scoped') { return $handler($request, $options); } $request = $request->withHeader('authorization', 'Bearer ' . $this->fetchToken()); return $handler($request, $options); }; } /** * @return string */ private function getCacheKey() { $key = null; if (\is_string($this->scopes)) { $key .= $this->scopes; } elseif (\is_array($this->scopes)) { $key .= \implode(':', $this->scopes); } return $key; } /** * Determine if token is available in the cache, if not call tokenFunc to * fetch it. * * @return string */ private function fetchToken() { $cacheKey = $this->getCacheKey(); $cached = $this->getCachedValue($cacheKey); if (!empty($cached)) { return $cached; } $token = \call_user_func($this->tokenFunc, $this->scopes); $this->setCachedValue($cacheKey, $token); return $token; } } auth/src/Middleware/ProxyAuthTokenMiddleware.php 0000644 00000011373 14721515320 0016031 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth\Middleware; use Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface; use Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; /** * ProxyAuthTokenMiddleware is a Guzzle Middleware that adds an Authorization header * provided by an object implementing FetchAuthTokenInterface. * * The FetchAuthTokenInterface#fetchAuthToken is used to obtain a hash; one of * the values value in that hash is added as the authorization header. * * Requests will be accessed with the authorization header: * * 'proxy-authorization' 'Bearer <value of auth_token>' */ class ProxyAuthTokenMiddleware { /** * @var callable */ private $httpHandler; /** * @var FetchAuthTokenInterface */ private $fetcher; /** * @var ?callable */ private $tokenCallback; /** * Creates a new ProxyAuthTokenMiddleware. * * @param FetchAuthTokenInterface $fetcher is used to fetch the auth token * @param callable $httpHandler (optional) callback which delivers psr7 request * @param callable $tokenCallback (optional) function to be called when a new token is fetched. */ public function __construct(\Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface $fetcher, callable $httpHandler = null, callable $tokenCallback = null) { $this->fetcher = $fetcher; $this->httpHandler = $httpHandler; $this->tokenCallback = $tokenCallback; } /** * Updates the request with an Authorization header when auth is 'google_auth'. * * use Google\Auth\Middleware\ProxyAuthTokenMiddleware; * use Google\Auth\OAuth2; * use GuzzleHttp\Client; * use GuzzleHttp\HandlerStack; * * $config = [..<oauth config param>.]; * $oauth2 = new OAuth2($config) * $middleware = new ProxyAuthTokenMiddleware($oauth2); * $stack = HandlerStack::create(); * $stack->push($middleware); * * $client = new Client([ * 'handler' => $stack, * 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/', * 'proxy_auth' => 'google_auth' // authorize all requests * ]); * * $res = $client->get('myproject/taskqueues/myqueue'); * * @param callable $handler * @return \Closure */ public function __invoke(callable $handler) { return function (\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $options) use($handler) { // Requests using "proxy_auth"="google_auth" will be authorized. if (!isset($options['proxy_auth']) || $options['proxy_auth'] !== 'google_auth') { return $handler($request, $options); } $request = $request->withHeader('proxy-authorization', 'Bearer ' . $this->fetchToken()); if ($quotaProject = $this->getQuotaProject()) { $request = $request->withHeader(\Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER, $quotaProject); } return $handler($request, $options); }; } /** * Call fetcher to fetch the token. * * @return string|null */ private function fetchToken() { $auth_tokens = $this->fetcher->fetchAuthToken($this->httpHandler); if (\array_key_exists('access_token', $auth_tokens)) { // notify the callback if applicable if ($this->tokenCallback) { \call_user_func($this->tokenCallback, $this->fetcher->getCacheKey(), $auth_tokens['access_token']); } return $auth_tokens['access_token']; } if (\array_key_exists('id_token', $auth_tokens)) { return $auth_tokens['id_token']; } return null; } /** * @return string|null; */ private function getQuotaProject() { if ($this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface) { return $this->fetcher->getQuotaProject(); } return null; } } auth/src/FetchAuthTokenCache.php 0000644 00000021600 14721515320 0012604 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; /** * A class to implement caching for any object implementing * FetchAuthTokenInterface */ class FetchAuthTokenCache implements \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface, \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface, \Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface, \Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface, \Google\Site_Kit_Dependencies\Google\Auth\UpdateMetadataInterface { use CacheTrait; /** * @var FetchAuthTokenInterface */ private $fetcher; /** * @var int */ private $eagerRefreshThresholdSeconds = 10; /** * @param FetchAuthTokenInterface $fetcher A credentials fetcher * @param array<mixed> $cacheConfig Configuration for the cache * @param CacheItemPoolInterface $cache */ public function __construct(\Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface $fetcher, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache) { $this->fetcher = $fetcher; $this->cache = $cache; $this->cacheConfig = \array_merge(['lifetime' => 1500, 'prefix' => ''], (array) $cacheConfig); } /** * @return FetchAuthTokenInterface */ public function getFetcher() { return $this->fetcher; } /** * Implements FetchAuthTokenInterface#fetchAuthToken. * * Checks the cache for a valid auth token and fetches the auth tokens * from the supplied fetcher. * * @param callable $httpHandler callback which delivers psr7 request * @return array<mixed> the response * @throws \Exception */ public function fetchAuthToken(callable $httpHandler = null) { if ($cached = $this->fetchAuthTokenFromCache()) { return $cached; } $auth_token = $this->fetcher->fetchAuthToken($httpHandler); $this->saveAuthTokenInCache($auth_token); return $auth_token; } /** * @return string */ public function getCacheKey() { return $this->getFullCacheKey($this->fetcher->getCacheKey()); } /** * @return array<mixed>|null */ public function getLastReceivedToken() { return $this->fetcher->getLastReceivedToken(); } /** * Get the client name from the fetcher. * * @param callable $httpHandler An HTTP handler to deliver PSR7 requests. * @return string */ public function getClientName(callable $httpHandler = null) { if (!$this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface) { throw new \RuntimeException('Credentials fetcher does not implement ' . 'Google\\Auth\\SignBlobInterface'); } return $this->fetcher->getClientName($httpHandler); } /** * Sign a blob using the fetcher. * * @param string $stringToSign The string to sign. * @param bool $forceOpenSsl Require use of OpenSSL for local signing. Does * not apply to signing done using external services. **Defaults to** * `false`. * @return string The resulting signature. * @throws \RuntimeException If the fetcher does not implement * `Google\Auth\SignBlobInterface`. */ public function signBlob($stringToSign, $forceOpenSsl = \false) { if (!$this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\SignBlobInterface) { throw new \RuntimeException('Credentials fetcher does not implement ' . 'Google\\Auth\\SignBlobInterface'); } // Pass the access token from cache to GCECredentials for signing a blob. // This saves a call to the metadata server when a cached token exists. if ($this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\Credentials\GCECredentials) { $cached = $this->fetchAuthTokenFromCache(); $accessToken = isset($cached['access_token']) ? $cached['access_token'] : null; return $this->fetcher->signBlob($stringToSign, $forceOpenSsl, $accessToken); } return $this->fetcher->signBlob($stringToSign, $forceOpenSsl); } /** * Get the quota project used for this API request from the credentials * fetcher. * * @return string|null */ public function getQuotaProject() { if ($this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface) { return $this->fetcher->getQuotaProject(); } return null; } /* * Get the Project ID from the fetcher. * * @param callable $httpHandler Callback which delivers psr7 request * @return string|null * @throws \RuntimeException If the fetcher does not implement * `Google\Auth\ProvidesProjectIdInterface`. */ public function getProjectId(callable $httpHandler = null) { if (!$this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\ProjectIdProviderInterface) { throw new \RuntimeException('Credentials fetcher does not implement ' . 'Google\\Auth\\ProvidesProjectIdInterface'); } return $this->fetcher->getProjectId($httpHandler); } /** * Updates metadata with the authorization token. * * @param array<mixed> $metadata metadata hashmap * @param string $authUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * @return array<mixed> updated metadata hashmap * @throws \RuntimeException If the fetcher does not implement * `Google\Auth\UpdateMetadataInterface`. */ public function updateMetadata($metadata, $authUri = null, callable $httpHandler = null) { if (!$this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\UpdateMetadataInterface) { throw new \RuntimeException('Credentials fetcher does not implement ' . 'Google\\Auth\\UpdateMetadataInterface'); } $cached = $this->fetchAuthTokenFromCache($authUri); if ($cached) { // Set the access token in the `Authorization` metadata header so // the downstream call to updateMetadata know they don't need to // fetch another token. if (isset($cached['access_token'])) { $metadata[self::AUTH_METADATA_KEY] = ['Bearer ' . $cached['access_token']]; } } $newMetadata = $this->fetcher->updateMetadata($metadata, $authUri, $httpHandler); if (!$cached && ($token = $this->fetcher->getLastReceivedToken())) { $this->saveAuthTokenInCache($token, $authUri); } return $newMetadata; } /** * @param string|null $authUri * @return array<mixed>|null */ private function fetchAuthTokenFromCache($authUri = null) { // Use the cached value if its available. // // TODO: correct caching; update the call to setCachedValue to set the expiry // to the value returned with the auth token. // // TODO: correct caching; enable the cache to be cleared. // if $authUri is set, use it as the cache key $cacheKey = $authUri ? $this->getFullCacheKey($authUri) : $this->fetcher->getCacheKey(); $cached = $this->getCachedValue($cacheKey); if (\is_array($cached)) { if (empty($cached['expires_at'])) { // If there is no expiration data, assume token is not expired. // (for JwtAccess and ID tokens) return $cached; } if (\time() + $this->eagerRefreshThresholdSeconds < $cached['expires_at']) { // access token is not expired return $cached; } } return null; } /** * @param array<mixed> $authToken * @param string|null $authUri * @return void */ private function saveAuthTokenInCache($authToken, $authUri = null) { if (isset($authToken['access_token']) || isset($authToken['id_token'])) { // if $authUri is set, use it as the cache key $cacheKey = $authUri ? $this->getFullCacheKey($authUri) : $this->fetcher->getCacheKey(); $this->setCachedValue($cacheKey, $authToken); } } } auth/src/OAuth2.php 0000644 00000120466 14721515320 0010120 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use Google\Site_Kit_Dependencies\Firebase\JWT\JWT; use Google\Site_Kit_Dependencies\Firebase\JWT\Key; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils; use InvalidArgumentException; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface; /** * OAuth2 supports authentication by OAuth2 2-legged flows. * * It primary supports * - service account authorization * - authorization where a user already has an access token */ class OAuth2 implements \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenInterface { const DEFAULT_EXPIRY_SECONDS = 3600; // 1 hour const DEFAULT_SKEW_SECONDS = 60; // 1 minute const JWT_URN = 'urn:ietf:params:oauth:grant-type:jwt-bearer'; /** * TODO: determine known methods from the keys of JWT::methods. * * @var array<string> */ public static $knownSigningAlgorithms = ['HS256', 'HS512', 'HS384', 'RS256']; /** * The well known grant types. * * @var array<string> */ public static $knownGrantTypes = ['authorization_code', 'refresh_token', 'password', 'client_credentials']; /** * - authorizationUri * The authorization server's HTTP endpoint capable of * authenticating the end-user and obtaining authorization. * * @var ?UriInterface */ private $authorizationUri; /** * - tokenCredentialUri * The authorization server's HTTP endpoint capable of issuing * tokens and refreshing expired tokens. * * @var UriInterface */ private $tokenCredentialUri; /** * The redirection URI used in the initial request. * * @var ?string */ private $redirectUri; /** * A unique identifier issued to the client to identify itself to the * authorization server. * * @var string */ private $clientId; /** * A shared symmetric secret issued by the authorization server, which is * used to authenticate the client. * * @var string */ private $clientSecret; /** * The resource owner's username. * * @var ?string */ private $username; /** * The resource owner's password. * * @var ?string */ private $password; /** * The scope of the access request, expressed either as an Array or as a * space-delimited string. * * @var ?array<string> */ private $scope; /** * An arbitrary string designed to allow the client to maintain state. * * @var string */ private $state; /** * The authorization code issued to this client. * * Only used by the authorization code access grant type. * * @var ?string */ private $code; /** * The issuer ID when using assertion profile. * * @var ?string */ private $issuer; /** * The target audience for assertions. * * @var string */ private $audience; /** * The target sub when issuing assertions. * * @var string */ private $sub; /** * The number of seconds assertions are valid for. * * @var int */ private $expiry; /** * The signing key when using assertion profile. * * @var ?string */ private $signingKey; /** * The signing key id when using assertion profile. Param kid in jwt header * * @var string */ private $signingKeyId; /** * The signing algorithm when using an assertion profile. * * @var ?string */ private $signingAlgorithm; /** * The refresh token associated with the access token to be refreshed. * * @var ?string */ private $refreshToken; /** * The current access token. * * @var string */ private $accessToken; /** * The current ID token. * * @var string */ private $idToken; /** * The scopes granted to the current access token * * @var string */ private $grantedScope; /** * The lifetime in seconds of the current access token. * * @var ?int */ private $expiresIn; /** * The expiration time of the access token as a number of seconds since the * unix epoch. * * @var ?int */ private $expiresAt; /** * The issue time of the access token as a number of seconds since the unix * epoch. * * @var ?int */ private $issuedAt; /** * The current grant type. * * @var ?string */ private $grantType; /** * When using an extension grant type, this is the set of parameters used by * that extension. * * @var array<mixed> */ private $extensionParams; /** * When using the toJwt function, these claims will be added to the JWT * payload. * * @var array<mixed> */ private $additionalClaims; /** * Create a new OAuthCredentials. * * The configuration array accepts various options * * - authorizationUri * The authorization server's HTTP endpoint capable of * authenticating the end-user and obtaining authorization. * * - tokenCredentialUri * The authorization server's HTTP endpoint capable of issuing * tokens and refreshing expired tokens. * * - clientId * A unique identifier issued to the client to identify itself to the * authorization server. * * - clientSecret * A shared symmetric secret issued by the authorization server, * which is used to authenticate the client. * * - scope * The scope of the access request, expressed either as an Array * or as a space-delimited String. * * - state * An arbitrary string designed to allow the client to maintain state. * * - redirectUri * The redirection URI used in the initial request. * * - username * The resource owner's username. * * - password * The resource owner's password. * * - issuer * Issuer ID when using assertion profile * * - audience * Target audience for assertions * * - expiry * Number of seconds assertions are valid for * * - signingKey * Signing key when using assertion profile * * - signingKeyId * Signing key id when using assertion profile * * - refreshToken * The refresh token associated with the access token * to be refreshed. * * - accessToken * The current access token for this client. * * - idToken * The current ID token for this client. * * - extensionParams * When using an extension grant type, this is the set of parameters used * by that extension. * * @param array<mixed> $config Configuration array */ public function __construct(array $config) { $opts = \array_merge(['expiry' => self::DEFAULT_EXPIRY_SECONDS, 'extensionParams' => [], 'authorizationUri' => null, 'redirectUri' => null, 'tokenCredentialUri' => null, 'state' => null, 'username' => null, 'password' => null, 'clientId' => null, 'clientSecret' => null, 'issuer' => null, 'sub' => null, 'audience' => null, 'signingKey' => null, 'signingKeyId' => null, 'signingAlgorithm' => null, 'scope' => null, 'additionalClaims' => []], $config); $this->setAuthorizationUri($opts['authorizationUri']); $this->setRedirectUri($opts['redirectUri']); $this->setTokenCredentialUri($opts['tokenCredentialUri']); $this->setState($opts['state']); $this->setUsername($opts['username']); $this->setPassword($opts['password']); $this->setClientId($opts['clientId']); $this->setClientSecret($opts['clientSecret']); $this->setIssuer($opts['issuer']); $this->setSub($opts['sub']); $this->setExpiry($opts['expiry']); $this->setAudience($opts['audience']); $this->setSigningKey($opts['signingKey']); $this->setSigningKeyId($opts['signingKeyId']); $this->setSigningAlgorithm($opts['signingAlgorithm']); $this->setScope($opts['scope']); $this->setExtensionParams($opts['extensionParams']); $this->setAdditionalClaims($opts['additionalClaims']); $this->updateToken($opts); } /** * Verifies the idToken if present. * * - if none is present, return null * - if present, but invalid, raises DomainException. * - otherwise returns the payload in the idtoken as a PHP object. * * The behavior of this method varies depending on the version of * `firebase/php-jwt` you are using. In versions 6.0 and above, you cannot * provide multiple $allowed_algs, and instead must provide an array of Key * objects as the $publicKey. * * @param string|Key|Key[] $publicKey The public key to use to authenticate the token * @param string|array<string> $allowed_algs algorithm or array of supported verification algorithms. * Providing more than one algorithm will throw an exception. * @throws \DomainException if the token is missing an audience. * @throws \DomainException if the audience does not match the one set in * the OAuth2 class instance. * @throws \UnexpectedValueException If the token is invalid * @throws \InvalidArgumentException If more than one value for allowed_algs is supplied * @throws \Firebase\JWT\SignatureInvalidException If the signature is invalid. * @throws \Firebase\JWT\BeforeValidException If the token is not yet valid. * @throws \Firebase\JWT\ExpiredException If the token has expired. * @return null|object */ public function verifyIdToken($publicKey = null, $allowed_algs = []) { $idToken = $this->getIdToken(); if (\is_null($idToken)) { return null; } $resp = $this->jwtDecode($idToken, $publicKey, $allowed_algs); if (!\property_exists($resp, 'aud')) { throw new \DomainException('No audience found the id token'); } if ($resp->aud != $this->getAudience()) { throw new \DomainException('Wrong audience present in the id token'); } return $resp; } /** * Obtains the encoded jwt from the instance data. * * @param array<mixed> $config array optional configuration parameters * @return string */ public function toJwt(array $config = []) { if (\is_null($this->getSigningKey())) { throw new \DomainException('No signing key available'); } if (\is_null($this->getSigningAlgorithm())) { throw new \DomainException('No signing algorithm specified'); } $now = \time(); $opts = \array_merge(['skew' => self::DEFAULT_SKEW_SECONDS], $config); $assertion = ['iss' => $this->getIssuer(), 'exp' => $now + $this->getExpiry(), 'iat' => $now - $opts['skew']]; foreach ($assertion as $k => $v) { if (\is_null($v)) { throw new \DomainException($k . ' should not be null'); } } if (!\is_null($this->getAudience())) { $assertion['aud'] = $this->getAudience(); } if (!\is_null($this->getScope())) { $assertion['scope'] = $this->getScope(); } if (empty($assertion['scope']) && empty($assertion['aud'])) { throw new \DomainException('one of scope or aud should not be null'); } if (!\is_null($this->getSub())) { $assertion['sub'] = $this->getSub(); } $assertion += $this->getAdditionalClaims(); return \Google\Site_Kit_Dependencies\Firebase\JWT\JWT::encode($assertion, $this->getSigningKey(), $this->getSigningAlgorithm(), $this->getSigningKeyId()); } /** * Generates a request for token credentials. * * @return RequestInterface the authorization Url. */ public function generateCredentialsRequest() { $uri = $this->getTokenCredentialUri(); if (\is_null($uri)) { throw new \DomainException('No token credential URI was set.'); } $grantType = $this->getGrantType(); $params = ['grant_type' => $grantType]; switch ($grantType) { case 'authorization_code': $params['code'] = $this->getCode(); $params['redirect_uri'] = $this->getRedirectUri(); $this->addClientCredentials($params); break; case 'password': $params['username'] = $this->getUsername(); $params['password'] = $this->getPassword(); $this->addClientCredentials($params); break; case 'refresh_token': $params['refresh_token'] = $this->getRefreshToken(); $this->addClientCredentials($params); break; case self::JWT_URN: $params['assertion'] = $this->toJwt(); break; default: if (!\is_null($this->getRedirectUri())) { # Grant type was supposed to be 'authorization_code', as there # is a redirect URI. throw new \DomainException('Missing authorization code'); } unset($params['grant_type']); if (!\is_null($grantType)) { $params['grant_type'] = $grantType; } $params = \array_merge($params, $this->getExtensionParams()); } $headers = ['Cache-Control' => 'no-store', 'Content-Type' => 'application/x-www-form-urlencoded']; return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('POST', $uri, $headers, \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query::build($params)); } /** * Fetches the auth tokens based on the current state. * * @param callable $httpHandler callback which delivers psr7 request * @return array<mixed> the response */ public function fetchAuthToken(callable $httpHandler = null) { if (\is_null($httpHandler)) { $httpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build(\Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); } $response = $httpHandler($this->generateCredentialsRequest()); $credentials = $this->parseTokenResponse($response); $this->updateToken($credentials); if (isset($credentials['scope'])) { $this->setGrantedScope($credentials['scope']); } return $credentials; } /** * Obtains a key that can used to cache the results of #fetchAuthToken. * * The key is derived from the scopes. * * @return ?string a key that may be used to cache the auth token. */ public function getCacheKey() { if (\is_array($this->scope)) { return \implode(':', $this->scope); } if ($this->audience) { return $this->audience; } // If scope has not set, return null to indicate no caching. return null; } /** * Parses the fetched tokens. * * @param ResponseInterface $resp the response. * @return array<mixed> the tokens parsed from the response body. * @throws \Exception */ public function parseTokenResponse(\Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface $resp) { $body = (string) $resp->getBody(); if ($resp->hasHeader('Content-Type') && $resp->getHeaderLine('Content-Type') == 'application/x-www-form-urlencoded') { $res = []; \parse_str($body, $res); return $res; } // Assume it's JSON; if it's not throw an exception if (null === ($res = \json_decode($body, \true))) { throw new \Exception('Invalid JSON response'); } return $res; } /** * Updates an OAuth 2.0 client. * * Example: * ``` * $oauth->updateToken([ * 'refresh_token' => 'n4E9O119d', * 'access_token' => 'FJQbwq9', * 'expires_in' => 3600 * ]); * ``` * * @param array<mixed> $config * The configuration parameters related to the token. * * - refresh_token * The refresh token associated with the access token * to be refreshed. * * - access_token * The current access token for this client. * * - id_token * The current ID token for this client. * * - expires_in * The time in seconds until access token expiration. * * - expires_at * The time as an integer number of seconds since the Epoch * * - issued_at * The timestamp that the token was issued at. * @return void */ public function updateToken(array $config) { $opts = \array_merge(['extensionParams' => [], 'access_token' => null, 'id_token' => null, 'expires_in' => null, 'expires_at' => null, 'issued_at' => null, 'scope' => null], $config); $this->setExpiresAt($opts['expires_at']); $this->setExpiresIn($opts['expires_in']); // By default, the token is issued at `Time.now` when `expiresIn` is set, // but this can be used to supply a more precise time. if (!\is_null($opts['issued_at'])) { $this->setIssuedAt($opts['issued_at']); } $this->setAccessToken($opts['access_token']); $this->setIdToken($opts['id_token']); // The refresh token should only be updated if a value is explicitly // passed in, as some access token responses do not include a refresh // token. if (\array_key_exists('refresh_token', $opts)) { $this->setRefreshToken($opts['refresh_token']); } } /** * Builds the authorization Uri that the user should be redirected to. * * @param array<mixed> $config configuration options that customize the return url * @return UriInterface the authorization Url. * @throws InvalidArgumentException */ public function buildFullAuthorizationUri(array $config = []) { if (\is_null($this->getAuthorizationUri())) { throw new \InvalidArgumentException('requires an authorizationUri to have been set'); } $params = \array_merge(['response_type' => 'code', 'access_type' => 'offline', 'client_id' => $this->clientId, 'redirect_uri' => $this->redirectUri, 'state' => $this->state, 'scope' => $this->getScope()], $config); // Validate the auth_params if (\is_null($params['client_id'])) { throw new \InvalidArgumentException('missing the required client identifier'); } if (\is_null($params['redirect_uri'])) { throw new \InvalidArgumentException('missing the required redirect URI'); } if (!empty($params['prompt']) && !empty($params['approval_prompt'])) { throw new \InvalidArgumentException('prompt and approval_prompt are mutually exclusive'); } // Construct the uri object; return it if it is valid. $result = clone $this->authorizationUri; $existingParams = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query::parse($result->getQuery()); $result = $result->withQuery(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query::build(\array_merge($existingParams, $params))); if ($result->getScheme() != 'https') { throw new \InvalidArgumentException('Authorization endpoint must be protected by TLS'); } return $result; } /** * Sets the authorization server's HTTP endpoint capable of authenticating * the end-user and obtaining authorization. * * @param string $uri * @return void */ public function setAuthorizationUri($uri) { $this->authorizationUri = $this->coerceUri($uri); } /** * Gets the authorization server's HTTP endpoint capable of authenticating * the end-user and obtaining authorization. * * @return ?UriInterface */ public function getAuthorizationUri() { return $this->authorizationUri; } /** * Gets the authorization server's HTTP endpoint capable of issuing tokens * and refreshing expired tokens. * * @return ?UriInterface */ public function getTokenCredentialUri() { return $this->tokenCredentialUri; } /** * Sets the authorization server's HTTP endpoint capable of issuing tokens * and refreshing expired tokens. * * @param string $uri * @return void */ public function setTokenCredentialUri($uri) { $this->tokenCredentialUri = $this->coerceUri($uri); } /** * Gets the redirection URI used in the initial request. * * @return ?string */ public function getRedirectUri() { return $this->redirectUri; } /** * Sets the redirection URI used in the initial request. * * @param ?string $uri * @return void */ public function setRedirectUri($uri) { if (\is_null($uri)) { $this->redirectUri = null; return; } // redirect URI must be absolute if (!$this->isAbsoluteUri($uri)) { // "postmessage" is a reserved URI string in Google-land // @see https://developers.google.com/identity/sign-in/web/server-side-flow if ('postmessage' !== (string) $uri) { throw new \InvalidArgumentException('Redirect URI must be absolute'); } } $this->redirectUri = (string) $uri; } /** * Gets the scope of the access requests as a space-delimited String. * * @return ?string */ public function getScope() { if (\is_null($this->scope)) { return $this->scope; } return \implode(' ', $this->scope); } /** * Sets the scope of the access request, expressed either as an Array or as * a space-delimited String. * * @param string|array<string>|null $scope * @return void * @throws InvalidArgumentException */ public function setScope($scope) { if (\is_null($scope)) { $this->scope = null; } elseif (\is_string($scope)) { $this->scope = \explode(' ', $scope); } elseif (\is_array($scope)) { foreach ($scope as $s) { $pos = \strpos($s, ' '); if ($pos !== \false) { throw new \InvalidArgumentException('array scope values should not contain spaces'); } } $this->scope = $scope; } else { throw new \InvalidArgumentException('scopes should be a string or array of strings'); } } /** * Gets the current grant type. * * @return ?string */ public function getGrantType() { if (!\is_null($this->grantType)) { return $this->grantType; } // Returns the inferred grant type, based on the current object instance // state. if (!\is_null($this->code)) { return 'authorization_code'; } if (!\is_null($this->refreshToken)) { return 'refresh_token'; } if (!\is_null($this->username) && !\is_null($this->password)) { return 'password'; } if (!\is_null($this->issuer) && !\is_null($this->signingKey)) { return self::JWT_URN; } return null; } /** * Sets the current grant type. * * @param string $grantType * @return void * @throws InvalidArgumentException */ public function setGrantType($grantType) { if (\in_array($grantType, self::$knownGrantTypes)) { $this->grantType = $grantType; } else { // validate URI if (!$this->isAbsoluteUri($grantType)) { throw new \InvalidArgumentException('invalid grant type'); } $this->grantType = (string) $grantType; } } /** * Gets an arbitrary string designed to allow the client to maintain state. * * @return string */ public function getState() { return $this->state; } /** * Sets an arbitrary string designed to allow the client to maintain state. * * @param string $state * @return void */ public function setState($state) { $this->state = $state; } /** * Gets the authorization code issued to this client. * * @return string */ public function getCode() { return $this->code; } /** * Sets the authorization code issued to this client. * * @param string $code * @return void */ public function setCode($code) { $this->code = $code; } /** * Gets the resource owner's username. * * @return string */ public function getUsername() { return $this->username; } /** * Sets the resource owner's username. * * @param string $username * @return void */ public function setUsername($username) { $this->username = $username; } /** * Gets the resource owner's password. * * @return string */ public function getPassword() { return $this->password; } /** * Sets the resource owner's password. * * @param string $password * @return void */ public function setPassword($password) { $this->password = $password; } /** * Sets a unique identifier issued to the client to identify itself to the * authorization server. * * @return string */ public function getClientId() { return $this->clientId; } /** * Sets a unique identifier issued to the client to identify itself to the * authorization server. * * @param string $clientId * @return void */ public function setClientId($clientId) { $this->clientId = $clientId; } /** * Gets a shared symmetric secret issued by the authorization server, which * is used to authenticate the client. * * @return string */ public function getClientSecret() { return $this->clientSecret; } /** * Sets a shared symmetric secret issued by the authorization server, which * is used to authenticate the client. * * @param string $clientSecret * @return void */ public function setClientSecret($clientSecret) { $this->clientSecret = $clientSecret; } /** * Gets the Issuer ID when using assertion profile. * * @return ?string */ public function getIssuer() { return $this->issuer; } /** * Sets the Issuer ID when using assertion profile. * * @param string $issuer * @return void */ public function setIssuer($issuer) { $this->issuer = $issuer; } /** * Gets the target sub when issuing assertions. * * @return ?string */ public function getSub() { return $this->sub; } /** * Sets the target sub when issuing assertions. * * @param string $sub * @return void */ public function setSub($sub) { $this->sub = $sub; } /** * Gets the target audience when issuing assertions. * * @return ?string */ public function getAudience() { return $this->audience; } /** * Sets the target audience when issuing assertions. * * @param string $audience * @return void */ public function setAudience($audience) { $this->audience = $audience; } /** * Gets the signing key when using an assertion profile. * * @return ?string */ public function getSigningKey() { return $this->signingKey; } /** * Sets the signing key when using an assertion profile. * * @param string $signingKey * @return void */ public function setSigningKey($signingKey) { $this->signingKey = $signingKey; } /** * Gets the signing key id when using an assertion profile. * * @return ?string */ public function getSigningKeyId() { return $this->signingKeyId; } /** * Sets the signing key id when using an assertion profile. * * @param string $signingKeyId * @return void */ public function setSigningKeyId($signingKeyId) { $this->signingKeyId = $signingKeyId; } /** * Gets the signing algorithm when using an assertion profile. * * @return ?string */ public function getSigningAlgorithm() { return $this->signingAlgorithm; } /** * Sets the signing algorithm when using an assertion profile. * * @param ?string $signingAlgorithm * @return void */ public function setSigningAlgorithm($signingAlgorithm) { if (\is_null($signingAlgorithm)) { $this->signingAlgorithm = null; } elseif (!\in_array($signingAlgorithm, self::$knownSigningAlgorithms)) { throw new \InvalidArgumentException('unknown signing algorithm'); } else { $this->signingAlgorithm = $signingAlgorithm; } } /** * Gets the set of parameters used by extension when using an extension * grant type. * * @return array<mixed> */ public function getExtensionParams() { return $this->extensionParams; } /** * Sets the set of parameters used by extension when using an extension * grant type. * * @param array<mixed> $extensionParams * @return void */ public function setExtensionParams($extensionParams) { $this->extensionParams = $extensionParams; } /** * Gets the number of seconds assertions are valid for. * * @return int */ public function getExpiry() { return $this->expiry; } /** * Sets the number of seconds assertions are valid for. * * @param int $expiry * @return void */ public function setExpiry($expiry) { $this->expiry = $expiry; } /** * Gets the lifetime of the access token in seconds. * * @return int */ public function getExpiresIn() { return $this->expiresIn; } /** * Sets the lifetime of the access token in seconds. * * @param ?int $expiresIn * @return void */ public function setExpiresIn($expiresIn) { if (\is_null($expiresIn)) { $this->expiresIn = null; $this->issuedAt = null; } else { $this->issuedAt = \time(); $this->expiresIn = (int) $expiresIn; } } /** * Gets the time the current access token expires at. * * @return ?int */ public function getExpiresAt() { if (!\is_null($this->expiresAt)) { return $this->expiresAt; } if (!\is_null($this->issuedAt) && !\is_null($this->expiresIn)) { return $this->issuedAt + $this->expiresIn; } return null; } /** * Returns true if the acccess token has expired. * * @return bool */ public function isExpired() { $expiration = $this->getExpiresAt(); $now = \time(); return !\is_null($expiration) && $now >= $expiration; } /** * Sets the time the current access token expires at. * * @param int $expiresAt * @return void */ public function setExpiresAt($expiresAt) { $this->expiresAt = $expiresAt; } /** * Gets the time the current access token was issued at. * * @return ?int */ public function getIssuedAt() { return $this->issuedAt; } /** * Sets the time the current access token was issued at. * * @param int $issuedAt * @return void */ public function setIssuedAt($issuedAt) { $this->issuedAt = $issuedAt; } /** * Gets the current access token. * * @return ?string */ public function getAccessToken() { return $this->accessToken; } /** * Sets the current access token. * * @param string $accessToken * @return void */ public function setAccessToken($accessToken) { $this->accessToken = $accessToken; } /** * Gets the current ID token. * * @return ?string */ public function getIdToken() { return $this->idToken; } /** * Sets the current ID token. * * @param string $idToken * @return void */ public function setIdToken($idToken) { $this->idToken = $idToken; } /** * Get the granted scopes (if they exist) for the last fetched token. * * @return string|null */ public function getGrantedScope() { return $this->grantedScope; } /** * Sets the current ID token. * * @param string $grantedScope * @return void */ public function setGrantedScope($grantedScope) { $this->grantedScope = $grantedScope; } /** * Gets the refresh token associated with the current access token. * * @return ?string */ public function getRefreshToken() { return $this->refreshToken; } /** * Sets the refresh token associated with the current access token. * * @param string $refreshToken * @return void */ public function setRefreshToken($refreshToken) { $this->refreshToken = $refreshToken; } /** * Sets additional claims to be included in the JWT token * * @param array<mixed> $additionalClaims * @return void */ public function setAdditionalClaims(array $additionalClaims) { $this->additionalClaims = $additionalClaims; } /** * Gets the additional claims to be included in the JWT token. * * @return array<mixed> */ public function getAdditionalClaims() { return $this->additionalClaims; } /** * The expiration of the last received token. * * @return array<mixed>|null */ public function getLastReceivedToken() { if ($token = $this->getAccessToken()) { // the bare necessity of an auth token $authToken = ['access_token' => $token, 'expires_at' => $this->getExpiresAt()]; } elseif ($idToken = $this->getIdToken()) { $authToken = ['id_token' => $idToken, 'expires_at' => $this->getExpiresAt()]; } else { return null; } if ($expiresIn = $this->getExpiresIn()) { $authToken['expires_in'] = $expiresIn; } if ($issuedAt = $this->getIssuedAt()) { $authToken['issued_at'] = $issuedAt; } if ($refreshToken = $this->getRefreshToken()) { $authToken['refresh_token'] = $refreshToken; } return $authToken; } /** * Get the client ID. * * Alias of {@see Google\Auth\OAuth2::getClientId()}. * * @param callable $httpHandler * @return string * @access private */ public function getClientName(callable $httpHandler = null) { return $this->getClientId(); } /** * @todo handle uri as array * * @param ?string $uri * @return null|UriInterface */ private function coerceUri($uri) { if (\is_null($uri)) { return null; } return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::uriFor($uri); } /** * @param string $idToken * @param Key|Key[]|string|string[] $publicKey * @param string|string[] $allowedAlgs * @return object */ private function jwtDecode($idToken, $publicKey, $allowedAlgs) { $keys = $this->getFirebaseJwtKeys($publicKey, $allowedAlgs); // Default exception if none are caught. We are using the same exception // class and message from firebase/php-jwt to preserve backwards // compatibility. $e = new \InvalidArgumentException('Key may not be empty'); foreach ($keys as $key) { try { return \Google\Site_Kit_Dependencies\Firebase\JWT\JWT::decode($idToken, $key); } catch (\Exception $e) { // try next alg } } throw $e; } /** * @param Key|Key[]|string|string[] $publicKey * @param string|string[] $allowedAlgs * @return Key[] */ private function getFirebaseJwtKeys($publicKey, $allowedAlgs) { // If $publicKey is instance of Key, return it if ($publicKey instanceof \Google\Site_Kit_Dependencies\Firebase\JWT\Key) { return [$publicKey]; } // If $allowedAlgs is empty, $publicKey must be Key or Key[]. if (empty($allowedAlgs)) { $keys = []; foreach ((array) $publicKey as $kid => $pubKey) { if (!$pubKey instanceof \Google\Site_Kit_Dependencies\Firebase\JWT\Key) { throw new \InvalidArgumentException(\sprintf('When allowed algorithms is empty, the public key must' . 'be an instance of %s or an array of %s objects', \Google\Site_Kit_Dependencies\Firebase\JWT\Key::class, \Google\Site_Kit_Dependencies\Firebase\JWT\Key::class)); } $keys[$kid] = $pubKey; } return $keys; } $allowedAlg = null; if (\is_string($allowedAlgs)) { $allowedAlg = $allowedAlg; } elseif (\is_array($allowedAlgs)) { if (\count($allowedAlgs) > 1) { throw new \InvalidArgumentException('To have multiple allowed algorithms, You must provide an' . ' array of Firebase\\JWT\\Key objects.' . ' See https://github.com/firebase/php-jwt for more information.'); } $allowedAlg = \array_pop($allowedAlgs); } else { throw new \InvalidArgumentException('allowed algorithms must be a string or array.'); } if (\is_array($publicKey)) { // When publicKey is greater than 1, create keys with the single alg. $keys = []; foreach ($publicKey as $kid => $pubKey) { if ($pubKey instanceof \Google\Site_Kit_Dependencies\Firebase\JWT\Key) { $keys[$kid] = $pubKey; } else { $keys[$kid] = new \Google\Site_Kit_Dependencies\Firebase\JWT\Key($pubKey, $allowedAlg); } } return $keys; } return [new \Google\Site_Kit_Dependencies\Firebase\JWT\Key($publicKey, $allowedAlg)]; } /** * Determines if the URI is absolute based on its scheme and host or path * (RFC 3986). * * @param string $uri * @return bool */ private function isAbsoluteUri($uri) { $uri = $this->coerceUri($uri); return $uri->getScheme() && ($uri->getHost() || $uri->getPath()); } /** * @param array<mixed> $params * @return array<mixed> */ private function addClientCredentials(&$params) { $clientId = $this->getClientId(); $clientSecret = $this->getClientSecret(); if ($clientId && $clientSecret) { $params['client_id'] = $clientId; $params['client_secret'] = $clientSecret; } return $params; } } auth/src/CacheTrait.php 0000644 00000005147 14721515320 0011023 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; trait CacheTrait { /** * @var int */ private $maxKeyLength = 64; /** * @var array<mixed> */ private $cacheConfig; /** * @var ?CacheItemPoolInterface */ private $cache; /** * Gets the cached value if it is present in the cache when that is * available. * * @param mixed $k * * @return mixed */ private function getCachedValue($k) { if (\is_null($this->cache)) { return null; } $key = $this->getFullCacheKey($k); if (\is_null($key)) { return null; } $cacheItem = $this->cache->getItem($key); if ($cacheItem->isHit()) { return $cacheItem->get(); } } /** * Saves the value in the cache when that is available. * * @param mixed $k * @param mixed $v * @return mixed */ private function setCachedValue($k, $v) { if (\is_null($this->cache)) { return null; } $key = $this->getFullCacheKey($k); if (\is_null($key)) { return null; } $cacheItem = $this->cache->getItem($key); $cacheItem->set($v); $cacheItem->expiresAfter($this->cacheConfig['lifetime']); return $this->cache->save($cacheItem); } /** * @param null|string $key * @return null|string */ private function getFullCacheKey($key) { if (\is_null($key)) { return null; } $key = $this->cacheConfig['prefix'] . $key; // ensure we do not have illegal characters $key = \preg_replace('|[^a-zA-Z0-9_\\.!]|', '', $key); // Hash keys if they exceed $maxKeyLength (defaults to 64) if ($this->maxKeyLength && \strlen($key) > $this->maxKeyLength) { $key = \substr(\hash('sha256', $key), 0, $this->maxKeyLength); } return $key; } } auth/src/AccessToken.php 0000644 00000046370 14721515320 0011221 0 ustar 00 <?php /* * Copyright 2019 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use DateTime; use Exception; use Google\Site_Kit_Dependencies\Firebase\JWT\ExpiredException; use Google\Site_Kit_Dependencies\Firebase\JWT\JWT; use Google\Site_Kit_Dependencies\Firebase\JWT\Key; use Google\Site_Kit_Dependencies\Firebase\JWT\SignatureInvalidException; use Google\Site_Kit_Dependencies\Google\Auth\Cache\MemoryCacheItemPool; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils; use InvalidArgumentException; use Google\Site_Kit_Dependencies\phpseclib\Crypt\RSA; use Google\Site_Kit_Dependencies\phpseclib\Math\BigInteger as BigInteger2; use Google\Site_Kit_Dependencies\phpseclib3\Crypt\PublicKeyLoader; use Google\Site_Kit_Dependencies\phpseclib3\Math\BigInteger as BigInteger3; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; use RuntimeException; use Google\Site_Kit_Dependencies\SimpleJWT\InvalidTokenException; use Google\Site_Kit_Dependencies\SimpleJWT\JWT as SimpleJWT; use Google\Site_Kit_Dependencies\SimpleJWT\Keys\KeyFactory; use Google\Site_Kit_Dependencies\SimpleJWT\Keys\KeySet; use UnexpectedValueException; /** * Wrapper around Google Access Tokens which provides convenience functions. * * @experimental */ class AccessToken { const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs'; const IAP_CERT_URL = 'https://www.gstatic.com/iap/verify/public_key-jwk'; const IAP_ISSUER = 'https://cloud.google.com/iap'; const OAUTH2_ISSUER = 'accounts.google.com'; const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com'; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; /** * @var callable */ private $httpHandler; /** * @var CacheItemPoolInterface */ private $cache; /** * @param callable $httpHandler [optional] An HTTP Handler to deliver PSR-7 requests. * @param CacheItemPoolInterface $cache [optional] A PSR-6 compatible cache implementation. */ public function __construct(callable $httpHandler = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null) { $this->httpHandler = $httpHandler ?: \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build(\Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient()); $this->cache = $cache ?: new \Google\Site_Kit_Dependencies\Google\Auth\Cache\MemoryCacheItemPool(); } /** * Verifies an id token and returns the authenticated apiLoginTicket. * Throws an exception if the id token is not valid. * The audience parameter can be used to control which id tokens are * accepted. By default, the id token must have been issued to this OAuth2 client. * * @param string $token The JSON Web Token to be verified. * @param array<mixed> $options [optional] { * Configuration options. * @type string $audience The indended recipient of the token. * @type string $issuer The intended issuer of the token. * @type string $cacheKey The cache key of the cached certs. Defaults to * the sha1 of $certsLocation if provided, otherwise is set to * "federated_signon_certs_v3". * @type string $certsLocation The location (remote or local) from which * to retrieve certificates, if not cached. This value should only be * provided in limited circumstances in which you are sure of the * behavior. * @type bool $throwException Whether the function should throw an * exception if the verification fails. This is useful for * determining the reason verification failed. * } * @return array<mixed>|false the token payload, if successful, or false if not. * @throws InvalidArgumentException If certs could not be retrieved from a local file. * @throws InvalidArgumentException If received certs are in an invalid format. * @throws InvalidArgumentException If the cert alg is not supported. * @throws RuntimeException If certs could not be retrieved from a remote location. * @throws UnexpectedValueException If the token issuer does not match. * @throws UnexpectedValueException If the token audience does not match. */ public function verify($token, array $options = []) { $audience = isset($options['audience']) ? $options['audience'] : null; $issuer = isset($options['issuer']) ? $options['issuer'] : null; $certsLocation = isset($options['certsLocation']) ? $options['certsLocation'] : self::FEDERATED_SIGNON_CERT_URL; $cacheKey = isset($options['cacheKey']) ? $options['cacheKey'] : $this->getCacheKeyFromCertLocation($certsLocation); $throwException = isset($options['throwException']) ? $options['throwException'] : \false; // for backwards compatibility // Check signature against each available cert. $certs = $this->getCerts($certsLocation, $cacheKey, $options); $alg = $this->determineAlg($certs); if (!\in_array($alg, ['RS256', 'ES256'])) { throw new \InvalidArgumentException('unrecognized "alg" in certs, expected ES256 or RS256'); } try { if ($alg == 'RS256') { return $this->verifyRs256($token, $certs, $audience, $issuer); } return $this->verifyEs256($token, $certs, $audience, $issuer); } catch (\Google\Site_Kit_Dependencies\Firebase\JWT\ExpiredException $e) { // firebase/php-jwt 5+ } catch (\Google\Site_Kit_Dependencies\Firebase\JWT\SignatureInvalidException $e) { // firebase/php-jwt 5+ } catch (\Google\Site_Kit_Dependencies\SimpleJWT\InvalidTokenException $e) { // simplejwt } catch (\InvalidArgumentException $e) { } catch (\UnexpectedValueException $e) { } if ($throwException) { throw $e; } return \false; } /** * Identifies the expected algorithm to verify by looking at the "alg" key * of the provided certs. * * @param array<mixed> $certs Certificate array according to the JWK spec (see * https://tools.ietf.org/html/rfc7517). * @return string The expected algorithm, such as "ES256" or "RS256". */ private function determineAlg(array $certs) { $alg = null; foreach ($certs as $cert) { if (empty($cert['alg'])) { throw new \InvalidArgumentException('certs expects "alg" to be set'); } $alg = $alg ?: $cert['alg']; if ($alg != $cert['alg']) { throw new \InvalidArgumentException('More than one alg detected in certs'); } } return $alg; } /** * Verifies an ES256-signed JWT. * * @param string $token The JSON Web Token to be verified. * @param array<mixed> $certs Certificate array according to the JWK spec (see * https://tools.ietf.org/html/rfc7517). * @param string|null $audience If set, returns false if the provided * audience does not match the "aud" claim on the JWT. * @param string|null $issuer If set, returns false if the provided * issuer does not match the "iss" claim on the JWT. * @return array<mixed> the token payload, if successful, or false if not. */ private function verifyEs256($token, array $certs, $audience = null, $issuer = null) { $this->checkSimpleJwt(); $jwkset = new \Google\Site_Kit_Dependencies\SimpleJWT\Keys\KeySet(); foreach ($certs as $cert) { $jwkset->add(\Google\Site_Kit_Dependencies\SimpleJWT\Keys\KeyFactory::create($cert, 'php')); } // Validate the signature using the key set and ES256 algorithm. $jwt = $this->callSimpleJwtDecode([$token, $jwkset, 'ES256']); $payload = $jwt->getClaims(); if ($audience) { if (!isset($payload['aud']) || $payload['aud'] != $audience) { throw new \UnexpectedValueException('Audience does not match'); } } // @see https://cloud.google.com/iap/docs/signed-headers-howto#verifying_the_jwt_payload $issuer = $issuer ?: self::IAP_ISSUER; if (!isset($payload['iss']) || $payload['iss'] !== $issuer) { throw new \UnexpectedValueException('Issuer does not match'); } return $payload; } /** * Verifies an RS256-signed JWT. * * @param string $token The JSON Web Token to be verified. * @param array<mixed> $certs Certificate array according to the JWK spec (see * https://tools.ietf.org/html/rfc7517). * @param string|null $audience If set, returns false if the provided * audience does not match the "aud" claim on the JWT. * @param string|null $issuer If set, returns false if the provided * issuer does not match the "iss" claim on the JWT. * @return array<mixed> the token payload, if successful, or false if not. */ private function verifyRs256($token, array $certs, $audience = null, $issuer = null) { $this->checkAndInitializePhpsec(); $keys = []; foreach ($certs as $cert) { if (empty($cert['kid'])) { throw new \InvalidArgumentException('certs expects "kid" to be set'); } if (empty($cert['n']) || empty($cert['e'])) { throw new \InvalidArgumentException('RSA certs expects "n" and "e" to be set'); } $publicKey = $this->loadPhpsecPublicKey($cert['n'], $cert['e']); // create an array of key IDs to certs for the JWT library $keys[$cert['kid']] = new \Google\Site_Kit_Dependencies\Firebase\JWT\Key($publicKey, 'RS256'); } $payload = $this->callJwtStatic('decode', [$token, $keys]); if ($audience) { if (!\property_exists($payload, 'aud') || $payload->aud != $audience) { throw new \UnexpectedValueException('Audience does not match'); } } // support HTTP and HTTPS issuers // @see https://developers.google.com/identity/sign-in/web/backend-auth $issuers = $issuer ? [$issuer] : [self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS]; if (!isset($payload->iss) || !\in_array($payload->iss, $issuers)) { throw new \UnexpectedValueException('Issuer does not match'); } return (array) $payload; } /** * Revoke an OAuth2 access token or refresh token. This method will revoke the current access * token, if a token isn't provided. * * @param string|array<mixed> $token The token (access token or a refresh token) that should be revoked. * @param array<mixed> $options [optional] Configuration options. * @return bool Returns True if the revocation was successful, otherwise False. */ public function revoke($token, array $options = []) { if (\is_array($token)) { if (isset($token['refresh_token'])) { $token = $token['refresh_token']; } else { $token = $token['access_token']; } } $body = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor(\http_build_query(['token' => $token])); $request = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('POST', self::OAUTH2_REVOKE_URI, ['Cache-Control' => 'no-store', 'Content-Type' => 'application/x-www-form-urlencoded'], $body); $httpHandler = $this->httpHandler; $response = $httpHandler($request, $options); return $response->getStatusCode() == 200; } /** * Gets federated sign-on certificates to use for verifying identity tokens. * Returns certs as array structure, where keys are key ids, and values * are PEM encoded certificates. * * @param string $location The location from which to retrieve certs. * @param string $cacheKey The key under which to cache the retrieved certs. * @param array<mixed> $options [optional] Configuration options. * @return array<mixed> * @throws InvalidArgumentException If received certs are in an invalid format. */ private function getCerts($location, $cacheKey, array $options = []) { $cacheItem = $this->cache->getItem($cacheKey); $certs = $cacheItem ? $cacheItem->get() : null; $gotNewCerts = \false; if (!$certs) { $certs = $this->retrieveCertsFromLocation($location, $options); $gotNewCerts = \true; } if (!isset($certs['keys'])) { if ($location !== self::IAP_CERT_URL) { throw new \InvalidArgumentException('federated sign-on certs expects "keys" to be set'); } throw new \InvalidArgumentException('certs expects "keys" to be set'); } // Push caching off until after verifying certs are in a valid format. // Don't want to cache bad data. if ($gotNewCerts) { $cacheItem->expiresAt(new \DateTime('+1 hour')); $cacheItem->set($certs); $this->cache->save($cacheItem); } return $certs['keys']; } /** * Retrieve and cache a certificates file. * * @param string $url location * @param array<mixed> $options [optional] Configuration options. * @return array<mixed> certificates * @throws InvalidArgumentException If certs could not be retrieved from a local file. * @throws RuntimeException If certs could not be retrieved from a remote location. */ private function retrieveCertsFromLocation($url, array $options = []) { // If we're retrieving a local file, just grab it. if (\strpos($url, 'http') !== 0) { if (!\file_exists($url)) { throw new \InvalidArgumentException(\sprintf('Failed to retrieve verification certificates from path: %s.', $url)); } return \json_decode((string) \file_get_contents($url), \true); } $httpHandler = $this->httpHandler; $response = $httpHandler(new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('GET', $url), $options); if ($response->getStatusCode() == 200) { return \json_decode((string) $response->getBody(), \true); } throw new \RuntimeException(\sprintf('Failed to retrieve verification certificates: "%s".', $response->getBody()->getContents()), $response->getStatusCode()); } /** * @return void */ private function checkAndInitializePhpsec() { if (!$this->checkAndInitializePhpsec2() && !$this->checkPhpsec3()) { throw new \RuntimeException('Please require phpseclib/phpseclib v2 or v3 to use this utility.'); } } private function loadPhpsecPublicKey(string $modulus, string $exponent) : string { if (\class_exists(\Google\Site_Kit_Dependencies\phpseclib\Crypt\RSA::class) && \class_exists(\Google\Site_Kit_Dependencies\phpseclib\Math\BigInteger::class)) { $key = new \Google\Site_Kit_Dependencies\phpseclib\Crypt\RSA(); $key->loadKey(['n' => new \Google\Site_Kit_Dependencies\phpseclib\Math\BigInteger($this->callJwtStatic('urlsafeB64Decode', [$modulus]), 256), 'e' => new \Google\Site_Kit_Dependencies\phpseclib\Math\BigInteger($this->callJwtStatic('urlsafeB64Decode', [$exponent]), 256)]); return $key->getPublicKey(); } $key = \Google\Site_Kit_Dependencies\phpseclib3\Crypt\PublicKeyLoader::load(['n' => new \Google\Site_Kit_Dependencies\phpseclib3\Math\BigInteger($this->callJwtStatic('urlsafeB64Decode', [$modulus]), 256), 'e' => new \Google\Site_Kit_Dependencies\phpseclib3\Math\BigInteger($this->callJwtStatic('urlsafeB64Decode', [$exponent]), 256)]); return $key->toString('PKCS1'); } /** * @return bool */ private function checkAndInitializePhpsec2() : bool { if (!\class_exists('Google\\Site_Kit_Dependencies\\phpseclib\\Crypt\\RSA')) { return \false; } /** * phpseclib calls "phpinfo" by default, which requires special * whitelisting in the AppEngine VM environment. This function * sets constants to bypass the need for phpseclib to check phpinfo * * @see phpseclib/Math/BigInteger * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85 * @codeCoverageIgnore */ if (\filter_var(\getenv('GAE_VM'), \FILTER_VALIDATE_BOOLEAN)) { if (!\defined('Google\\Site_Kit_Dependencies\\MATH_BIGINTEGER_OPENSSL_ENABLED')) { \define('Google\\Site_Kit_Dependencies\\MATH_BIGINTEGER_OPENSSL_ENABLED', \true); } if (!\defined('Google\\Site_Kit_Dependencies\\CRYPT_RSA_MODE')) { \define('Google\\Site_Kit_Dependencies\\CRYPT_RSA_MODE', \Google\Site_Kit_Dependencies\phpseclib\Crypt\RSA::MODE_OPENSSL); } } return \true; } /** * @return bool */ private function checkPhpsec3() : bool { return \class_exists('Google\\Site_Kit_Dependencies\\phpseclib3\\Crypt\\RSA'); } /** * @return void */ private function checkSimpleJwt() { // @codeCoverageIgnoreStart if (!\class_exists(\Google\Site_Kit_Dependencies\SimpleJWT\JWT::class)) { throw new \RuntimeException('Please require kelvinmo/simplejwt ^0.2 to use this utility.'); } // @codeCoverageIgnoreEnd } /** * Provide a hook to mock calls to the JWT static methods. * * @param string $method * @param array<mixed> $args * @return mixed */ protected function callJwtStatic($method, array $args = []) { return \call_user_func_array([\Google\Site_Kit_Dependencies\Firebase\JWT\JWT::class, $method], $args); // @phpstan-ignore-line } /** * Provide a hook to mock calls to the JWT static methods. * * @param array<mixed> $args * @return mixed */ protected function callSimpleJwtDecode(array $args = []) { return \call_user_func_array([\Google\Site_Kit_Dependencies\SimpleJWT\JWT::class, 'decode'], $args); } /** * Generate a cache key based on the cert location using sha1 with the * exception of using "federated_signon_certs_v3" to preserve BC. * * @param string $certsLocation * @return string */ private function getCacheKeyFromCertLocation($certsLocation) { $key = $certsLocation === self::FEDERATED_SIGNON_CERT_URL ? 'federated_signon_certs_v3' : \sha1($certsLocation); return 'google_auth_certs_cache|' . $key; } } auth/src/ApplicationDefaultCredentials.php 0000644 00000035456 14721515320 0014750 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; use DomainException; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\AppIdentityCredentials; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\GCECredentials; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\ServiceAccountCredentials; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\Google\Auth\Middleware\AuthTokenMiddleware; use Google\Site_Kit_Dependencies\Google\Auth\Middleware\ProxyAuthTokenMiddleware; use Google\Site_Kit_Dependencies\Google\Auth\Subscriber\AuthTokenSubscriber; use Google\Site_Kit_Dependencies\GuzzleHttp\Client; use InvalidArgumentException; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; /** * ApplicationDefaultCredentials obtains the default credentials for * authorizing a request to a Google service. * * Application Default Credentials are described here: * https://developers.google.com/accounts/docs/application-default-credentials * * This class implements the search for the application default credentials as * described in the link. * * It provides three factory methods: * - #get returns the computed credentials object * - #getSubscriber returns an AuthTokenSubscriber built from the credentials object * - #getMiddleware returns an AuthTokenMiddleware built from the credentials object * * This allows it to be used as follows with GuzzleHttp\Client: * * ``` * use Google\Auth\ApplicationDefaultCredentials; * use GuzzleHttp\Client; * use GuzzleHttp\HandlerStack; * * $middleware = ApplicationDefaultCredentials::getMiddleware( * 'https://www.googleapis.com/auth/taskqueue' * ); * $stack = HandlerStack::create(); * $stack->push($middleware); * * $client = new Client([ * 'handler' => $stack, * 'base_uri' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/', * 'auth' => 'google_auth' // authorize all requests * ]); * * $res = $client->get('myproject/taskqueues/myqueue'); * ``` */ class ApplicationDefaultCredentials { /** * @deprecated * * Obtains an AuthTokenSubscriber that uses the default FetchAuthTokenInterface * implementation to use in this environment. * * If supplied, $scope is used to in creating the credentials instance if * this does not fallback to the compute engine defaults. * * @param string|string[] $scope the scope of the access request, expressed * either as an Array or as a space-delimited String. * @param callable $httpHandler callback which delivers psr7 request * @param array<mixed> $cacheConfig configuration for the cache when it's present * @param CacheItemPoolInterface $cache A cache implementation, may be * provided if you have one already available for use. * @return AuthTokenSubscriber * @throws DomainException if no implementation can be obtained. */ public static function getSubscriber( // @phpstan-ignore-line $scope = null, callable $httpHandler = null, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null ) { $creds = self::getCredentials($scope, $httpHandler, $cacheConfig, $cache); /** @phpstan-ignore-next-line */ return new \Google\Site_Kit_Dependencies\Google\Auth\Subscriber\AuthTokenSubscriber($creds, $httpHandler); } /** * Obtains an AuthTokenMiddleware that uses the default FetchAuthTokenInterface * implementation to use in this environment. * * If supplied, $scope is used to in creating the credentials instance if * this does not fallback to the compute engine defaults. * * @param string|string[] $scope the scope of the access request, expressed * either as an Array or as a space-delimited String. * @param callable $httpHandler callback which delivers psr7 request * @param array<mixed> $cacheConfig configuration for the cache when it's present * @param CacheItemPoolInterface $cache A cache implementation, may be * provided if you have one already available for use. * @param string $quotaProject specifies a project to bill for access * charges associated with the request. * @return AuthTokenMiddleware * @throws DomainException if no implementation can be obtained. */ public static function getMiddleware($scope = null, callable $httpHandler = null, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null, $quotaProject = null) { $creds = self::getCredentials($scope, $httpHandler, $cacheConfig, $cache, $quotaProject); return new \Google\Site_Kit_Dependencies\Google\Auth\Middleware\AuthTokenMiddleware($creds, $httpHandler); } /** * Obtains the default FetchAuthTokenInterface implementation to use * in this environment. * * @param string|string[] $scope the scope of the access request, expressed * either as an Array or as a space-delimited String. * @param callable $httpHandler callback which delivers psr7 request * @param array<mixed> $cacheConfig configuration for the cache when it's present * @param CacheItemPoolInterface $cache A cache implementation, may be * provided if you have one already available for use. * @param string $quotaProject specifies a project to bill for access * charges associated with the request. * @param string|string[] $defaultScope The default scope to use if no * user-defined scopes exist, expressed either as an Array or as a * space-delimited string. * * @return FetchAuthTokenInterface * @throws DomainException if no implementation can be obtained. */ public static function getCredentials($scope = null, callable $httpHandler = null, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null, $quotaProject = null, $defaultScope = null) { $creds = null; $jsonKey = \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader::fromEnv() ?: \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader::fromWellKnownFile(); $anyScope = $scope ?: $defaultScope; if (!$httpHandler) { if (!($client = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient())) { $client = new \Google\Site_Kit_Dependencies\GuzzleHttp\Client(); \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::setHttpClient($client); } $httpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build($client); } if (!\is_null($jsonKey)) { if ($quotaProject) { $jsonKey['quota_project_id'] = $quotaProject; } $creds = \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader::makeCredentials($scope, $jsonKey, $defaultScope); } elseif (\Google\Site_Kit_Dependencies\Google\Auth\Credentials\AppIdentityCredentials::onAppEngine() && !\Google\Site_Kit_Dependencies\Google\Auth\Credentials\GCECredentials::onAppEngineFlexible()) { $creds = new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\AppIdentityCredentials($anyScope); } elseif (self::onGce($httpHandler, $cacheConfig, $cache)) { $creds = new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\GCECredentials(null, $anyScope, null, $quotaProject); $creds->setIsOnGce(\true); // save the credentials a trip to the metadata server } if (\is_null($creds)) { throw new \DomainException(self::notFound()); } if (!\is_null($cache)) { $creds = new \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache($creds, $cacheConfig, $cache); } return $creds; } /** * Obtains an AuthTokenMiddleware which will fetch an ID token to use in the * Authorization header. The middleware is configured with the default * FetchAuthTokenInterface implementation to use in this environment. * * If supplied, $targetAudience is used to set the "aud" on the resulting * ID token. * * @param string $targetAudience The audience for the ID token. * @param callable $httpHandler callback which delivers psr7 request * @param array<mixed> $cacheConfig configuration for the cache when it's present * @param CacheItemPoolInterface $cache A cache implementation, may be * provided if you have one already available for use. * @return AuthTokenMiddleware * @throws DomainException if no implementation can be obtained. */ public static function getIdTokenMiddleware($targetAudience, callable $httpHandler = null, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null) { $creds = self::getIdTokenCredentials($targetAudience, $httpHandler, $cacheConfig, $cache); return new \Google\Site_Kit_Dependencies\Google\Auth\Middleware\AuthTokenMiddleware($creds, $httpHandler); } /** * Obtains an ProxyAuthTokenMiddleware which will fetch an ID token to use in the * Authorization header. The middleware is configured with the default * FetchAuthTokenInterface implementation to use in this environment. * * If supplied, $targetAudience is used to set the "aud" on the resulting * ID token. * * @param string $targetAudience The audience for the ID token. * @param callable $httpHandler callback which delivers psr7 request * @param array<mixed> $cacheConfig configuration for the cache when it's present * @param CacheItemPoolInterface $cache A cache implementation, may be * provided if you have one already available for use. * @return ProxyAuthTokenMiddleware * @throws DomainException if no implementation can be obtained. */ public static function getProxyIdTokenMiddleware($targetAudience, callable $httpHandler = null, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null) { $creds = self::getIdTokenCredentials($targetAudience, $httpHandler, $cacheConfig, $cache); return new \Google\Site_Kit_Dependencies\Google\Auth\Middleware\ProxyAuthTokenMiddleware($creds, $httpHandler); } /** * Obtains the default FetchAuthTokenInterface implementation to use * in this environment, configured with a $targetAudience for fetching an ID * token. * * @param string $targetAudience The audience for the ID token. * @param callable $httpHandler callback which delivers psr7 request * @param array<mixed> $cacheConfig configuration for the cache when it's present * @param CacheItemPoolInterface $cache A cache implementation, may be * provided if you have one already available for use. * @return FetchAuthTokenInterface * @throws DomainException if no implementation can be obtained. * @throws InvalidArgumentException if JSON "type" key is invalid */ public static function getIdTokenCredentials($targetAudience, callable $httpHandler = null, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null) { $creds = null; $jsonKey = \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader::fromEnv() ?: \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader::fromWellKnownFile(); if (!$httpHandler) { if (!($client = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::getHttpClient())) { $client = new \Google\Site_Kit_Dependencies\GuzzleHttp\Client(); \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpClientCache::setHttpClient($client); } $httpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build($client); } if (!\is_null($jsonKey)) { if (!\array_key_exists('type', $jsonKey)) { throw new \InvalidArgumentException('json key is missing the type field'); } if ($jsonKey['type'] == 'authorized_user') { throw new \InvalidArgumentException('ID tokens are not supported for end user credentials'); } if ($jsonKey['type'] != 'service_account') { throw new \InvalidArgumentException('invalid value in the type field'); } $creds = new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\ServiceAccountCredentials(null, $jsonKey, null, $targetAudience); } elseif (self::onGce($httpHandler, $cacheConfig, $cache)) { $creds = new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\GCECredentials(null, null, $targetAudience); $creds->setIsOnGce(\true); // save the credentials a trip to the metadata server } if (\is_null($creds)) { throw new \DomainException(self::notFound()); } if (!\is_null($cache)) { $creds = new \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache($creds, $cacheConfig, $cache); } return $creds; } /** * @return string */ private static function notFound() { $msg = 'Your default credentials were not found. To set up '; $msg .= 'Application Default Credentials, see '; $msg .= 'https://cloud.google.com/docs/authentication/external/set-up-adc'; return $msg; } /** * @param callable $httpHandler * @param array<mixed> $cacheConfig * @param CacheItemPoolInterface $cache * @return bool */ private static function onGce(callable $httpHandler = null, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null) { $gceCacheConfig = []; foreach (['lifetime', 'prefix'] as $key) { if (isset($cacheConfig['gce_' . $key])) { $gceCacheConfig[$key] = $cacheConfig['gce_' . $key]; } } return (new \Google\Site_Kit_Dependencies\Google\Auth\GCECache($gceCacheConfig, $cache))->onGce($httpHandler); } } auth/src/GetQuotaProjectInterface.php 0000644 00000001717 14721515320 0013714 0 ustar 00 <?php /* * Copyright 2019 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; /** * An interface implemented by objects that can get quota projects. */ interface GetQuotaProjectInterface { const X_GOOG_USER_PROJECT_HEADER = 'X-Goog-User-Project'; /** * Get the quota project used for this API request * * @return string|null */ public function getQuotaProject(); } auth/src/ProjectIdProviderInterface.php 0000644 00000001737 14721515320 0014234 0 ustar 00 <?php /* * Copyright 2020 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; /** * Describes a Credentials object which supports fetching the project ID. */ interface ProjectIdProviderInterface { /** * Get the project ID. * * @param callable $httpHandler Callback which delivers psr7 request * @return string|null */ public function getProjectId(callable $httpHandler = null); } auth/src/FetchAuthTokenInterface.php 0000644 00000003236 14721515320 0013506 0 ustar 00 <?php /* * Copyright 2015 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. */ namespace Google\Site_Kit_Dependencies\Google\Auth; /** * An interface implemented by objects that can fetch auth tokens. */ interface FetchAuthTokenInterface { /** * Fetches the auth tokens based on the current state. * * @param callable $httpHandler callback which delivers psr7 request * @return array<mixed> a hash of auth tokens */ public function fetchAuthToken(callable $httpHandler = null); /** * Obtains a key that can used to cache the results of #fetchAuthToken. * * If the value is empty, the auth token is not cached. * * @return string a key that may be used to cache the auth token. */ public function getCacheKey(); /** * Returns an associative array with the token and * expiration time. * * @return null|array<mixed> { * The last received access token. * * @type string $access_token The access token string. * @type int $expires_at The time the token expires as a UNIX timestamp. * } */ public function getLastReceivedToken(); } auth/COPYING 0000644 00000026116 14721515320 0006546 0 ustar 00 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright 2015 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. auth/autoload.php 0000644 00000002212 14721515320 0010023 0 ustar 00 <?php namespace Google\Site_Kit_Dependencies; /* * 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. */ function oauth2client_php_autoload($className) { $classPath = \explode('_', $className); if ($classPath[0] != 'Google') { return; } if (\count($classPath) > 3) { // Maximum class file path depth in this project is 3. $classPath = \array_slice($classPath, 0, 3); } $filePath = \dirname(__FILE__) . '/src/' . \implode('/', $classPath) . '.php'; if (\file_exists($filePath)) { require_once $filePath; } } \spl_autoload_register('oauth2client_php_autoload'); apiclient-services/src/Adsense/ListLinkedCustomChannelsResponse.php 0000644 00000003537 14721515320 0021657 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListLinkedCustomChannelsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'customChannels'; protected $customChannelsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\CustomChannel::class; protected $customChannelsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param CustomChannel[] */ public function setCustomChannels($customChannels) { $this->customChannels = $customChannels; } /** * @return CustomChannel[] */ public function getCustomChannels() { return $this->customChannels; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListLinkedCustomChannelsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListLinkedCustomChannelsResponse'); apiclient-services/src/Adsense/Cell.php 0000644 00000002321 14721515320 0014074 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class Cell extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $value; /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Cell::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Cell'); apiclient-services/src/Adsense/ListAlertsResponse.php 0000644 00000002604 14721515320 0017026 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListAlertsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'alerts'; protected $alertsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Alert::class; protected $alertsDataType = 'array'; /** * @param Alert[] */ public function setAlerts($alerts) { $this->alerts = $alerts; } /** * @return Alert[] */ public function getAlerts() { return $this->alerts; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAlertsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListAlertsResponse'); apiclient-services/src/Adsense/TimeZone.php 0000644 00000002757 14721515320 0014764 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class TimeZone extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $id; /** * @var string */ public $version; /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setVersion($version) { $this->version = $version; } /** * @return string */ public function getVersion() { return $this->version; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\TimeZone::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_TimeZone'); apiclient-services/src/Adsense/ListSavedReportsResponse.php 0000644 00000003457 14721515320 0020224 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListSavedReportsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'savedReports'; /** * @var string */ public $nextPageToken; protected $savedReportsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\SavedReport::class; protected $savedReportsDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param SavedReport[] */ public function setSavedReports($savedReports) { $this->savedReports = $savedReports; } /** * @return SavedReport[] */ public function getSavedReports() { return $this->savedReports; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListSavedReportsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListSavedReportsResponse'); apiclient-services/src/Adsense/ListCustomChannelsResponse.php 0000644 00000003515 14721515320 0020524 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListCustomChannelsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'customChannels'; protected $customChannelsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\CustomChannel::class; protected $customChannelsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param CustomChannel[] */ public function setCustomChannels($customChannels) { $this->customChannels = $customChannels; } /** * @return CustomChannel[] */ public function getCustomChannels() { return $this->customChannels; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListCustomChannelsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListCustomChannelsResponse'); apiclient-services/src/Adsense/Account.php 0000644 00000006322 14721515320 0014616 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class Account extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'pendingTasks'; /** * @var string */ public $createTime; /** * @var string */ public $displayName; /** * @var string */ public $name; /** * @var string[] */ public $pendingTasks; /** * @var bool */ public $premium; /** * @var string */ public $state; protected $timeZoneType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\TimeZone::class; protected $timeZoneDataType = ''; /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string[] */ public function setPendingTasks($pendingTasks) { $this->pendingTasks = $pendingTasks; } /** * @return string[] */ public function getPendingTasks() { return $this->pendingTasks; } /** * @param bool */ public function setPremium($premium) { $this->premium = $premium; } /** * @return bool */ public function getPremium() { return $this->premium; } /** * @param string */ public function setState($state) { $this->state = $state; } /** * @return string */ public function getState() { return $this->state; } /** * @param TimeZone */ public function setTimeZone(\Google\Site_Kit_Dependencies\Google\Service\Adsense\TimeZone $timeZone) { $this->timeZone = $timeZone; } /** * @return TimeZone */ public function getTimeZone() { return $this->timeZone; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Account::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Account'); apiclient-services/src/Adsense/PolicyIssue.php 0000644 00000012433 14721515320 0015472 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class PolicyIssue extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'policyTopics'; /** * @var string */ public $action; /** * @var string[] */ public $adClients; /** * @var string */ public $adRequestCount; /** * @var string */ public $entityType; protected $firstDetectedDateType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Date::class; protected $firstDetectedDateDataType = ''; protected $lastDetectedDateType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Date::class; protected $lastDetectedDateDataType = ''; /** * @var string */ public $name; protected $policyTopicsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\PolicyTopic::class; protected $policyTopicsDataType = 'array'; /** * @var string */ public $site; /** * @var string */ public $siteSection; /** * @var string */ public $uri; protected $warningEscalationDateType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Date::class; protected $warningEscalationDateDataType = ''; /** * @param string */ public function setAction($action) { $this->action = $action; } /** * @return string */ public function getAction() { return $this->action; } /** * @param string[] */ public function setAdClients($adClients) { $this->adClients = $adClients; } /** * @return string[] */ public function getAdClients() { return $this->adClients; } /** * @param string */ public function setAdRequestCount($adRequestCount) { $this->adRequestCount = $adRequestCount; } /** * @return string */ public function getAdRequestCount() { return $this->adRequestCount; } /** * @param string */ public function setEntityType($entityType) { $this->entityType = $entityType; } /** * @return string */ public function getEntityType() { return $this->entityType; } /** * @param Date */ public function setFirstDetectedDate(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Date $firstDetectedDate) { $this->firstDetectedDate = $firstDetectedDate; } /** * @return Date */ public function getFirstDetectedDate() { return $this->firstDetectedDate; } /** * @param Date */ public function setLastDetectedDate(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Date $lastDetectedDate) { $this->lastDetectedDate = $lastDetectedDate; } /** * @return Date */ public function getLastDetectedDate() { return $this->lastDetectedDate; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param PolicyTopic[] */ public function setPolicyTopics($policyTopics) { $this->policyTopics = $policyTopics; } /** * @return PolicyTopic[] */ public function getPolicyTopics() { return $this->policyTopics; } /** * @param string */ public function setSite($site) { $this->site = $site; } /** * @return string */ public function getSite() { return $this->site; } /** * @param string */ public function setSiteSection($siteSection) { $this->siteSection = $siteSection; } /** * @return string */ public function getSiteSection() { return $this->siteSection; } /** * @param string */ public function setUri($uri) { $this->uri = $uri; } /** * @return string */ public function getUri() { return $this->uri; } /** * @param Date */ public function setWarningEscalationDate(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Date $warningEscalationDate) { $this->warningEscalationDate = $warningEscalationDate; } /** * @return Date */ public function getWarningEscalationDate() { return $this->warningEscalationDate; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\PolicyIssue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_PolicyIssue'); apiclient-services/src/Adsense/ContentAdsSettings.php 0000644 00000003006 14721515320 0017001 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ContentAdsSettings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $size; /** * @var string */ public $type; /** * @param string */ public function setSize($size) { $this->size = $size; } /** * @return string */ public function getSize() { return $this->size; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ContentAdsSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ContentAdsSettings'); apiclient-services/src/Adsense/AdUnit.php 0000644 00000005347 14721515320 0014414 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class AdUnit extends \Google\Site_Kit_Dependencies\Google\Model { protected $contentAdsSettingsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\ContentAdsSettings::class; protected $contentAdsSettingsDataType = ''; /** * @var string */ public $displayName; /** * @var string */ public $name; /** * @var string */ public $reportingDimensionId; /** * @var string */ public $state; /** * @param ContentAdsSettings */ public function setContentAdsSettings(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ContentAdsSettings $contentAdsSettings) { $this->contentAdsSettings = $contentAdsSettings; } /** * @return ContentAdsSettings */ public function getContentAdsSettings() { return $this->contentAdsSettings; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setReportingDimensionId($reportingDimensionId) { $this->reportingDimensionId = $reportingDimensionId; } /** * @return string */ public function getReportingDimensionId() { return $this->reportingDimensionId; } /** * @param string */ public function setState($state) { $this->state = $state; } /** * @return string */ public function getState() { return $this->state; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnit::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_AdUnit'); apiclient-services/src/Adsense/AdClient.php 0000644 00000004264 14721515320 0014710 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class AdClient extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @var string */ public $productCode; /** * @var string */ public $reportingDimensionId; /** * @var string */ public $state; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setProductCode($productCode) { $this->productCode = $productCode; } /** * @return string */ public function getProductCode() { return $this->productCode; } /** * @param string */ public function setReportingDimensionId($reportingDimensionId) { $this->reportingDimensionId = $reportingDimensionId; } /** * @return string */ public function getReportingDimensionId() { return $this->reportingDimensionId; } /** * @param string */ public function setState($state) { $this->state = $state; } /** * @return string */ public function getState() { return $this->state; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\AdClient::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_AdClient'); apiclient-services/src/Adsense/Header.php 0000644 00000003454 14721515320 0014415 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class Header extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $currencyCode; /** * @var string */ public $name; /** * @var string */ public $type; /** * @param string */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } /** * @return string */ public function getCurrencyCode() { return $this->currencyCode; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Header::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Header'); apiclient-services/src/Adsense/ListChildAccountsResponse.php 0000644 00000003402 14721515320 0020314 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListChildAccountsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'accounts'; protected $accountsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Account::class; protected $accountsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param Account[] */ public function setAccounts($accounts) { $this->accounts = $accounts; } /** * @return Account[] */ public function getAccounts() { return $this->accounts; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListChildAccountsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListChildAccountsResponse'); apiclient-services/src/Adsense/AdUnitAdCode.php 0000644 00000002360 14721515320 0015444 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class AdUnitAdCode extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $adCode; /** * @param string */ public function setAdCode($adCode) { $this->adCode = $adCode; } /** * @return string */ public function getAdCode() { return $this->adCode; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnitAdCode::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_AdUnitAdCode'); apiclient-services/src/Adsense/UrlChannel.php 0000644 00000003632 14721515320 0015256 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class UrlChannel extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @var string */ public $reportingDimensionId; /** * @var string */ public $uriPattern; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setReportingDimensionId($reportingDimensionId) { $this->reportingDimensionId = $reportingDimensionId; } /** * @return string */ public function getReportingDimensionId() { return $this->reportingDimensionId; } /** * @param string */ public function setUriPattern($uriPattern) { $this->uriPattern = $uriPattern; } /** * @return string */ public function getUriPattern() { return $this->uriPattern; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\UrlChannel::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_UrlChannel'); apiclient-services/src/Adsense/AdClientAdCode.php 0000644 00000003504 14721515320 0015744 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class AdClientAdCode extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $adCode; /** * @var string */ public $ampBody; /** * @var string */ public $ampHead; /** * @param string */ public function setAdCode($adCode) { $this->adCode = $adCode; } /** * @return string */ public function getAdCode() { return $this->adCode; } /** * @param string */ public function setAmpBody($ampBody) { $this->ampBody = $ampBody; } /** * @return string */ public function getAmpBody() { return $this->ampBody; } /** * @param string */ public function setAmpHead($ampHead) { $this->ampHead = $ampHead; } /** * @return string */ public function getAmpHead() { return $this->ampHead; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\AdClientAdCode::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_AdClientAdCode'); apiclient-services/src/Adsense/ReportResult.php 0000644 00000010042 14721515320 0015666 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ReportResult extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'warnings'; protected $averagesType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Row::class; protected $averagesDataType = ''; protected $endDateType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Date::class; protected $endDateDataType = ''; protected $headersType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Header::class; protected $headersDataType = 'array'; protected $rowsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Row::class; protected $rowsDataType = 'array'; protected $startDateType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Date::class; protected $startDateDataType = ''; /** * @var string */ public $totalMatchedRows; protected $totalsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Row::class; protected $totalsDataType = ''; /** * @var string[] */ public $warnings; /** * @param Row */ public function setAverages(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Row $averages) { $this->averages = $averages; } /** * @return Row */ public function getAverages() { return $this->averages; } /** * @param Date */ public function setEndDate(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Date $endDate) { $this->endDate = $endDate; } /** * @return Date */ public function getEndDate() { return $this->endDate; } /** * @param Header[] */ public function setHeaders($headers) { $this->headers = $headers; } /** * @return Header[] */ public function getHeaders() { return $this->headers; } /** * @param Row[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return Row[] */ public function getRows() { return $this->rows; } /** * @param Date */ public function setStartDate(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Date $startDate) { $this->startDate = $startDate; } /** * @return Date */ public function getStartDate() { return $this->startDate; } /** * @param string */ public function setTotalMatchedRows($totalMatchedRows) { $this->totalMatchedRows = $totalMatchedRows; } /** * @return string */ public function getTotalMatchedRows() { return $this->totalMatchedRows; } /** * @param Row */ public function setTotals(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Row $totals) { $this->totals = $totals; } /** * @return Row */ public function getTotals() { return $this->totals; } /** * @param string[] */ public function setWarnings($warnings) { $this->warnings = $warnings; } /** * @return string[] */ public function getWarnings() { return $this->warnings; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ReportResult::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ReportResult'); apiclient-services/src/Adsense/AdBlockingRecoveryTag.php 0000644 00000003161 14721515320 0017370 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class AdBlockingRecoveryTag extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $errorProtectionCode; /** * @var string */ public $tag; /** * @param string */ public function setErrorProtectionCode($errorProtectionCode) { $this->errorProtectionCode = $errorProtectionCode; } /** * @return string */ public function getErrorProtectionCode() { return $this->errorProtectionCode; } /** * @param string */ public function setTag($tag) { $this->tag = $tag; } /** * @return string */ public function getTag() { return $this->tag; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\AdBlockingRecoveryTag::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_AdBlockingRecoveryTag'); apiclient-services/src/Adsense/ListAdUnitsResponse.php 0000644 00000003344 14721515320 0017145 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListAdUnitsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'adUnits'; protected $adUnitsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnit::class; protected $adUnitsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param AdUnit[] */ public function setAdUnits($adUnits) { $this->adUnits = $adUnits; } /** * @return AdUnit[] */ public function getAdUnits() { return $this->adUnits; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAdUnitsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListAdUnitsResponse'); apiclient-services/src/Adsense/Alert.php 0000644 00000004064 14721515320 0014272 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class Alert extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $message; /** * @var string */ public $name; /** * @var string */ public $severity; /** * @var string */ public $type; /** * @param string */ public function setMessage($message) { $this->message = $message; } /** * @return string */ public function getMessage() { return $this->message; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setSeverity($severity) { $this->severity = $severity; } /** * @return string */ public function getSeverity() { return $this->severity; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Alert::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Alert'); apiclient-services/src/Adsense/ListPolicyIssuesResponse.php 0000644 00000003457 14721515320 0020236 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListPolicyIssuesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'policyIssues'; /** * @var string */ public $nextPageToken; protected $policyIssuesType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\PolicyIssue::class; protected $policyIssuesDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param PolicyIssue[] */ public function setPolicyIssues($policyIssues) { $this->policyIssues = $policyIssues; } /** * @return PolicyIssue[] */ public function getPolicyIssues() { return $this->policyIssues; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListPolicyIssuesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListPolicyIssuesResponse'); apiclient-services/src/Adsense/Row.php 0000644 00000002513 14721515320 0013767 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class Row extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'cells'; protected $cellsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Cell::class; protected $cellsDataType = 'array'; /** * @param Cell[] */ public function setCells($cells) { $this->cells = $cells; } /** * @return Cell[] */ public function getCells() { return $this->cells; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Row::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Row'); apiclient-services/src/Adsense/ListAdClientsResponse.php 0000644 00000003402 14721515320 0017437 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListAdClientsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'adClients'; protected $adClientsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdClient::class; protected $adClientsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param AdClient[] */ public function setAdClients($adClients) { $this->adClients = $adClients; } /** * @return AdClient[] */ public function getAdClients() { return $this->adClients; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAdClientsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListAdClientsResponse'); apiclient-services/src/Adsense/SavedReport.php 0000644 00000002770 14721515320 0015463 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class SavedReport extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @var string */ public $title; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\SavedReport::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_SavedReport'); apiclient-services/src/Adsense/Date.php 0000644 00000003323 14721515320 0014075 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class Date extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $day; /** * @var int */ public $month; /** * @var int */ public $year; /** * @param int */ public function setDay($day) { $this->day = $day; } /** * @return int */ public function getDay() { return $this->day; } /** * @param int */ public function setMonth($month) { $this->month = $month; } /** * @return int */ public function getMonth() { return $this->month; } /** * @param int */ public function setYear($year) { $this->year = $year; } /** * @return int */ public function getYear() { return $this->year; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Date::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Date'); apiclient-services/src/Adsense/ListLinkedAdUnitsResponse.php 0000644 00000003366 14721515320 0020300 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListLinkedAdUnitsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'adUnits'; protected $adUnitsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnit::class; protected $adUnitsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param AdUnit[] */ public function setAdUnits($adUnits) { $this->adUnits = $adUnits; } /** * @return AdUnit[] */ public function getAdUnits() { return $this->adUnits; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListLinkedAdUnitsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListLinkedAdUnitsResponse'); apiclient-services/src/Adsense/Site.php 0000644 00000004727 14721515320 0014135 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class Site extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $autoAdsEnabled; /** * @var string */ public $domain; /** * @var string */ public $name; /** * @var string */ public $reportingDimensionId; /** * @var string */ public $state; /** * @param bool */ public function setAutoAdsEnabled($autoAdsEnabled) { $this->autoAdsEnabled = $autoAdsEnabled; } /** * @return bool */ public function getAutoAdsEnabled() { return $this->autoAdsEnabled; } /** * @param string */ public function setDomain($domain) { $this->domain = $domain; } /** * @return string */ public function getDomain() { return $this->domain; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setReportingDimensionId($reportingDimensionId) { $this->reportingDimensionId = $reportingDimensionId; } /** * @return string */ public function getReportingDimensionId() { return $this->reportingDimensionId; } /** * @param string */ public function setState($state) { $this->state = $state; } /** * @return string */ public function getState() { return $this->state; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Site::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Site'); apiclient-services/src/Adsense/ListAccountsResponse.php 0000644 00000003363 14721515320 0017356 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListAccountsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'accounts'; protected $accountsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Account::class; protected $accountsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param Account[] */ public function setAccounts($accounts) { $this->accounts = $accounts; } /** * @return Account[] */ public function getAccounts() { return $this->accounts; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAccountsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListAccountsResponse'); apiclient-services/src/Adsense/HttpBody.php 0000644 00000003613 14721515320 0014757 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class HttpBody extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'extensions'; /** * @var string */ public $contentType; /** * @var string */ public $data; /** * @var array[] */ public $extensions; /** * @param string */ public function setContentType($contentType) { $this->contentType = $contentType; } /** * @return string */ public function getContentType() { return $this->contentType; } /** * @param string */ public function setData($data) { $this->data = $data; } /** * @return string */ public function getData() { return $this->data; } /** * @param array[] */ public function setExtensions($extensions) { $this->extensions = $extensions; } /** * @return array[] */ public function getExtensions() { return $this->extensions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\HttpBody::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_HttpBody'); apiclient-services/src/Adsense/ListSitesResponse.php 0000644 00000003306 14721515320 0016663 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListSitesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'sites'; /** * @var string */ public $nextPageToken; protected $sitesType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Site::class; protected $sitesDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Site[] */ public function setSites($sites) { $this->sites = $sites; } /** * @return Site[] */ public function getSites() { return $this->sites; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListSitesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListSitesResponse'); apiclient-services/src/Adsense/Payment.php 0000644 00000003604 14721515320 0014637 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class Payment extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $amount; protected $dateType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Date::class; protected $dateDataType = ''; /** * @var string */ public $name; /** * @param string */ public function setAmount($amount) { $this->amount = $amount; } /** * @return string */ public function getAmount() { return $this->amount; } /** * @param Date */ public function setDate(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Date $date) { $this->date = $date; } /** * @return Date */ public function getDate() { return $this->date; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Payment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Payment'); apiclient-services/src/Adsense/ListUrlChannelsResponse.php 0000644 00000003440 14721515320 0020011 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListUrlChannelsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'urlChannels'; /** * @var string */ public $nextPageToken; protected $urlChannelsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\UrlChannel::class; protected $urlChannelsDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param UrlChannel[] */ public function setUrlChannels($urlChannels) { $this->urlChannels = $urlChannels; } /** * @return UrlChannel[] */ public function getUrlChannels() { return $this->urlChannels; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListUrlChannelsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListUrlChannelsResponse'); apiclient-services/src/Adsense/AdsenseEmpty.php 0000644 00000001720 14721515320 0015620 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class AdsenseEmpty extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\AdsenseEmpty::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_AdsenseEmpty'); apiclient-services/src/Adsense/Resource/AccountsReports.php 0000644 00000022157 14721515320 0020153 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\HttpBody; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ReportResult; use Google\Site_Kit_Dependencies\Google\Service\Adsense\SavedReport; /** * The "reports" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $reports = $adsenseService->accounts_reports; * </code> */ class AccountsReports extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Generates an ad hoc report. (reports.generate) * * @param string $account Required. The account which owns the collection of * reports. Format: accounts/{account} * @param array $optParams Optional parameters. * * @opt_param string currencyCode The [ISO-4217 currency * code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on * monetary metrics. Defaults to the account's currency if not set. * @opt_param string dateRange Date range of the report, if unset the range will * be considered CUSTOM. * @opt_param string dimensions Dimensions to base the report on. * @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for * the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to * specify a date without a year. * @opt_param string filters A list of * [filters](/adsense/management/reporting/filtering) to apply to the report. * All provided filters must match in order for the data to be included in the * report. * @opt_param string languageCode The language to use for translating report * output. If unspecified, this defaults to English ("en"). If the given * language is not supported, report output will be returned in English. The * language is specified as an [IETF BCP-47 language * code](https://en.wikipedia.org/wiki/IETF_language_tag). * @opt_param int limit The maximum number of rows of report data to return. * Reports producing more rows than the requested limit will be truncated. If * unset, this defaults to 100,000 rows for `Reports.GenerateReport` and * 1,000,000 rows for `Reports.GenerateCsvReport`, which are also the maximum * values permitted here. Report truncation can be identified (for * `Reports.GenerateReport` only) by comparing the number of rows returned to * the value returned in `total_matched_rows`. * @opt_param string metrics Required. Reporting metrics. * @opt_param string orderBy The name of a dimension or metric to sort the * resulting report on, can be prefixed with "+" to sort ascending or "-" to * sort descending. If no prefix is specified, the column is sorted ascending. * @opt_param string reportingTimeZone Timezone in which to generate the report. * If unspecified, this defaults to the account timezone. For more information, * see [changing the time zone of your * reports](https://support.google.com/adsense/answer/9830725). * @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid * for the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0 * to specify a date without a year. * @return ReportResult * @throws \Google\Service\Exception */ public function generate($account, $optParams = []) { $params = ['account' => $account]; $params = \array_merge($params, $optParams); return $this->call('generate', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ReportResult::class); } /** * Generates a csv formatted ad hoc report. (reports.generateCsv) * * @param string $account Required. The account which owns the collection of * reports. Format: accounts/{account} * @param array $optParams Optional parameters. * * @opt_param string currencyCode The [ISO-4217 currency * code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on * monetary metrics. Defaults to the account's currency if not set. * @opt_param string dateRange Date range of the report, if unset the range will * be considered CUSTOM. * @opt_param string dimensions Dimensions to base the report on. * @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for * the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to * specify a date without a year. * @opt_param string filters A list of * [filters](/adsense/management/reporting/filtering) to apply to the report. * All provided filters must match in order for the data to be included in the * report. * @opt_param string languageCode The language to use for translating report * output. If unspecified, this defaults to English ("en"). If the given * language is not supported, report output will be returned in English. The * language is specified as an [IETF BCP-47 language * code](https://en.wikipedia.org/wiki/IETF_language_tag). * @opt_param int limit The maximum number of rows of report data to return. * Reports producing more rows than the requested limit will be truncated. If * unset, this defaults to 100,000 rows for `Reports.GenerateReport` and * 1,000,000 rows for `Reports.GenerateCsvReport`, which are also the maximum * values permitted here. Report truncation can be identified (for * `Reports.GenerateReport` only) by comparing the number of rows returned to * the value returned in `total_matched_rows`. * @opt_param string metrics Required. Reporting metrics. * @opt_param string orderBy The name of a dimension or metric to sort the * resulting report on, can be prefixed with "+" to sort ascending or "-" to * sort descending. If no prefix is specified, the column is sorted ascending. * @opt_param string reportingTimeZone Timezone in which to generate the report. * If unspecified, this defaults to the account timezone. For more information, * see [changing the time zone of your * reports](https://support.google.com/adsense/answer/9830725). * @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid * for the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0 * to specify a date without a year. * @return HttpBody * @throws \Google\Service\Exception */ public function generateCsv($account, $optParams = []) { $params = ['account' => $account]; $params = \array_merge($params, $optParams); return $this->call('generateCsv', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\HttpBody::class); } /** * Gets the saved report from the given resource name. (reports.getSaved) * * @param string $name Required. The name of the saved report to retrieve. * Format: accounts/{account}/reports/{report} * @param array $optParams Optional parameters. * @return SavedReport * @throws \Google\Service\Exception */ public function getSaved($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('getSaved', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\SavedReport::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsReports::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsReports'); apiclient-services/src/Adsense/Resource/AccountsAlerts.php 0000644 00000004414 14721515320 0017743 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAlertsResponse; /** * The "alerts" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $alerts = $adsenseService->accounts_alerts; * </code> */ class AccountsAlerts extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Lists all the alerts available in an account. (alerts.listAccountsAlerts) * * @param string $parent Required. The account which owns the collection of * alerts. Format: accounts/{account} * @param array $optParams Optional parameters. * * @opt_param string languageCode The language to use for translating alert * messages. If unspecified, this defaults to the user's display language. If * the given language is not supported, alerts will be returned in English. The * language is specified as an [IETF BCP-47 language * code](https://en.wikipedia.org/wiki/IETF_language_tag). * @return ListAlertsResponse * @throws \Google\Service\Exception */ public function listAccountsAlerts($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAlertsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAlerts::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsAlerts'); apiclient-services/src/Adsense/Resource/AccountsPolicyIssues.php 0000644 00000006321 14721515320 0021143 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListPolicyIssuesResponse; use Google\Site_Kit_Dependencies\Google\Service\Adsense\PolicyIssue; /** * The "policyIssues" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $policyIssues = $adsenseService->accounts_policyIssues; * </code> */ class AccountsPolicyIssues extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets information about the selected policy issue. (policyIssues.get) * * @param string $name Required. Name of the policy issue. Format: * accounts/{account}/policyIssues/{policy_issue} * @param array $optParams Optional parameters. * @return PolicyIssue * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\PolicyIssue::class); } /** * Lists all the policy issues for the specified account. * (policyIssues.listAccountsPolicyIssues) * * @param string $parent Required. The account for which policy issues are being * retrieved. Format: accounts/{account} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of policy issues to include in the * response, used for paging. If unspecified, at most 10000 policy issues will * be returned. The maximum value is 10000; values above 10000 will be coerced * to 10000. * @opt_param string pageToken A page token, received from a previous * `ListPolicyIssues` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListPolicyIssues` must match * the call that provided the page token. * @return ListPolicyIssuesResponse * @throws \Google\Service\Exception */ public function listAccountsPolicyIssues($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListPolicyIssuesResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsPolicyIssues::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsPolicyIssues'); apiclient-services/src/Adsense/Resource/AccountsPayments.php 0000644 00000003673 14721515320 0020317 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListPaymentsResponse; /** * The "payments" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $payments = $adsenseService->accounts_payments; * </code> */ class AccountsPayments extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Lists all the payments available for an account. * (payments.listAccountsPayments) * * @param string $parent Required. The account which owns the collection of * payments. Format: accounts/{account} * @param array $optParams Optional parameters. * @return ListPaymentsResponse * @throws \Google\Service\Exception */ public function listAccountsPayments($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListPaymentsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsPayments::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsPayments'); apiclient-services/src/Adsense/Resource/AccountsAdclientsUrlchannels.php 0000644 00000006406 14721515320 0022621 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListUrlChannelsResponse; use Google\Site_Kit_Dependencies\Google\Service\Adsense\UrlChannel; /** * The "urlchannels" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $urlchannels = $adsenseService->accounts_adclients_urlchannels; * </code> */ class AccountsAdclientsUrlchannels extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets information about the selected url channel. (urlchannels.get) * * @param string $name Required. The name of the url channel to retrieve. * Format: accounts/{account}/adclients/{adclient}/urlchannels/{urlchannel} * @param array $optParams Optional parameters. * @return UrlChannel * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\UrlChannel::class); } /** * Lists active url channels. (urlchannels.listAccountsAdclientsUrlchannels) * * @param string $parent Required. The ad client which owns the collection of * url channels. Format: accounts/{account}/adclients/{adclient} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of url channels to include in the * response, used for paging. If unspecified, at most 10000 url channels will be * returned. The maximum value is 10000; values above 10000 will be coerced to * 10000. * @opt_param string pageToken A page token, received from a previous * `ListUrlChannels` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListUrlChannels` must match the * call that provided the page token. * @return ListUrlChannelsResponse * @throws \Google\Service\Exception */ public function listAccountsAdclientsUrlchannels($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListUrlChannelsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAdclientsUrlchannels::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsAdclientsUrlchannels'); apiclient-services/src/Adsense/Resource/AccountsReportsSaved.php 0000644 00000016720 14721515320 0021135 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\HttpBody; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListSavedReportsResponse; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ReportResult; /** * The "saved" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $saved = $adsenseService->accounts_reports_saved; * </code> */ class AccountsReportsSaved extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Generates a saved report. (saved.generate) * * @param string $name Required. Name of the saved report. Format: * accounts/{account}/reports/{report} * @param array $optParams Optional parameters. * * @opt_param string currencyCode The [ISO-4217 currency * code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on * monetary metrics. Defaults to the account's currency if not set. * @opt_param string dateRange Date range of the report, if unset the range will * be considered CUSTOM. * @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for * the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to * specify a date without a year. * @opt_param string languageCode The language to use for translating report * output. If unspecified, this defaults to English ("en"). If the given * language is not supported, report output will be returned in English. The * language is specified as an [IETF BCP-47 language * code](https://en.wikipedia.org/wiki/IETF_language_tag). * @opt_param string reportingTimeZone Timezone in which to generate the report. * If unspecified, this defaults to the account timezone. For more information, * see [changing the time zone of your * reports](https://support.google.com/adsense/answer/9830725). * @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid * for the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0 * to specify a date without a year. * @return ReportResult * @throws \Google\Service\Exception */ public function generate($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('generate', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ReportResult::class); } /** * Generates a csv formatted saved report. (saved.generateCsv) * * @param string $name Required. Name of the saved report. Format: * accounts/{account}/reports/{report} * @param array $optParams Optional parameters. * * @opt_param string currencyCode The [ISO-4217 currency * code](https://en.wikipedia.org/wiki/ISO_4217) to use when reporting on * monetary metrics. Defaults to the account's currency if not set. * @opt_param string dateRange Date range of the report, if unset the range will * be considered CUSTOM. * @opt_param int endDate.day Day of a month. Must be from 1 to 31 and valid for * the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int endDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int endDate.year Year of the date. Must be from 1 to 9999, or 0 to * specify a date without a year. * @opt_param string languageCode The language to use for translating report * output. If unspecified, this defaults to English ("en"). If the given * language is not supported, report output will be returned in English. The * language is specified as an [IETF BCP-47 language * code](https://en.wikipedia.org/wiki/IETF_language_tag). * @opt_param string reportingTimeZone Timezone in which to generate the report. * If unspecified, this defaults to the account timezone. For more information, * see [changing the time zone of your * reports](https://support.google.com/adsense/answer/9830725). * @opt_param int startDate.day Day of a month. Must be from 1 to 31 and valid * for the year and month, or 0 to specify a year by itself or a year and month * where the day isn't significant. * @opt_param int startDate.month Month of a year. Must be from 1 to 12, or 0 to * specify a year without a month and day. * @opt_param int startDate.year Year of the date. Must be from 1 to 9999, or 0 * to specify a date without a year. * @return HttpBody * @throws \Google\Service\Exception */ public function generateCsv($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('generateCsv', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\HttpBody::class); } /** * Lists saved reports. (saved.listAccountsReportsSaved) * * @param string $parent Required. The account which owns the collection of * reports. Format: accounts/{account} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of reports to include in the * response, used for paging. If unspecified, at most 10000 reports will be * returned. The maximum value is 10000; values above 10000 will be coerced to * 10000. * @opt_param string pageToken A page token, received from a previous * `ListSavedReports` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListSavedReports` must match * the call that provided the page token. * @return ListSavedReportsResponse * @throws \Google\Service\Exception */ public function listAccountsReportsSaved($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListSavedReportsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsReportsSaved::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsReportsSaved'); apiclient-services/src/Adsense/Resource/AccountsAdclients.php 0000644 00000010143 14721515320 0020413 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\AdClient; use Google\Site_Kit_Dependencies\Google\Service\Adsense\AdClientAdCode; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAdClientsResponse; /** * The "adclients" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $adclients = $adsenseService->accounts_adclients; * </code> */ class AccountsAdclients extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets the ad client from the given resource name. (adclients.get) * * @param string $name Required. The name of the ad client to retrieve. Format: * accounts/{account}/adclients/{adclient} * @param array $optParams Optional parameters. * @return AdClient * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdClient::class); } /** * Gets the AdSense code for a given ad client. This returns what was previously * known as the 'auto ad code'. This is only supported for ad clients with a * product_code of AFC. For more information, see [About the AdSense * code](https://support.google.com/adsense/answer/9274634). * (adclients.getAdcode) * * @param string $name Required. Name of the ad client for which to get the * adcode. Format: accounts/{account}/adclients/{adclient} * @param array $optParams Optional parameters. * @return AdClientAdCode * @throws \Google\Service\Exception */ public function getAdcode($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('getAdcode', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdClientAdCode::class); } /** * Lists all the ad clients available in an account. * (adclients.listAccountsAdclients) * * @param string $parent Required. The account which owns the collection of ad * clients. Format: accounts/{account} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of ad clients to include in the * response, used for paging. If unspecified, at most 10000 ad clients will be * returned. The maximum value is 10000; values above 10000 will be coerced to * 10000. * @opt_param string pageToken A page token, received from a previous * `ListAdClients` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListAdClients` must match the * call that provided the page token. * @return ListAdClientsResponse * @throws \Google\Service\Exception */ public function listAccountsAdclients($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAdClientsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAdclients::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsAdclients'); apiclient-services/src/Adsense/Resource/AccountsAdclientsAdunits.php 0000644 00000020043 14721515320 0021743 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnit; use Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnitAdCode; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAdUnitsResponse; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListLinkedCustomChannelsResponse; /** * The "adunits" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $adunits = $adsenseService->accounts_adclients_adunits; * </code> */ class AccountsAdclientsAdunits extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates an ad unit. This method can be called only by a restricted set of * projects, which are usually owned by [AdSense for * Platforms](https://developers.google.com/adsense/platforms/) publishers. * Contact your account manager if you need to use this method. Note that ad * units can only be created for ad clients with an "AFC" product code. For more * info see the [AdClient * resource](/adsense/management/reference/rest/v2/accounts.adclients). For now, * this method can only be used to create `DISPLAY` ad units. See: * https://support.google.com/adsense/answer/9183566 (adunits.create) * * @param string $parent Required. Ad client to create an ad unit under. Format: * accounts/{account}/adclients/{adclient} * @param AdUnit $postBody * @param array $optParams Optional parameters. * @return AdUnit * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnit $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnit::class); } /** * Gets an ad unit from a specified account and ad client. (adunits.get) * * @param string $name Required. AdUnit to get information about. Format: * accounts/{account}/adclients/{adclient}/adunits/{adunit} * @param array $optParams Optional parameters. * @return AdUnit * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnit::class); } /** * Gets the ad unit code for a given ad unit. For more information, see [About * the AdSense code](https://support.google.com/adsense/answer/9274634) and * [Where to place the ad code in your * HTML](https://support.google.com/adsense/answer/9190028). (adunits.getAdcode) * * @param string $name Required. Name of the adunit for which to get the adcode. * Format: accounts/{account}/adclients/{adclient}/adunits/{adunit} * @param array $optParams Optional parameters. * @return AdUnitAdCode * @throws \Google\Service\Exception */ public function getAdcode($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('getAdcode', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnitAdCode::class); } /** * Lists all ad units under a specified account and ad client. * (adunits.listAccountsAdclientsAdunits) * * @param string $parent Required. The ad client which owns the collection of ad * units. Format: accounts/{account}/adclients/{adclient} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of ad units to include in the * response, used for paging. If unspecified, at most 10000 ad units will be * returned. The maximum value is 10000; values above 10000 will be coerced to * 10000. * @opt_param string pageToken A page token, received from a previous * `ListAdUnits` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListAdUnits` must match the * call that provided the page token. * @return ListAdUnitsResponse * @throws \Google\Service\Exception */ public function listAccountsAdclientsAdunits($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAdUnitsResponse::class); } /** * Lists all the custom channels available for an ad unit. * (adunits.listLinkedCustomChannels) * * @param string $parent Required. The ad unit which owns the collection of * custom channels. Format: * accounts/{account}/adclients/{adclient}/adunits/{adunit} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of custom channels to include in * the response, used for paging. If unspecified, at most 10000 custom channels * will be returned. The maximum value is 10000; values above 10000 will be * coerced to 10000. * @opt_param string pageToken A page token, received from a previous * `ListLinkedCustomChannels` call. Provide this to retrieve the subsequent * page. When paginating, all other parameters provided to * `ListLinkedCustomChannels` must match the call that provided the page token. * @return ListLinkedCustomChannelsResponse * @throws \Google\Service\Exception */ public function listLinkedCustomChannels($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('listLinkedCustomChannels', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListLinkedCustomChannelsResponse::class); } /** * Updates an ad unit. This method can be called only by a restricted set of * projects, which are usually owned by [AdSense for * Platforms](https://developers.google.com/adsense/platforms/) publishers. * Contact your account manager if you need to use this method. For now, this * method can only be used to update `DISPLAY` ad units. See: * https://support.google.com/adsense/answer/9183566 (adunits.patch) * * @param string $name Output only. Resource name of the ad unit. Format: * accounts/{account}/adclients/{adclient}/adunits/{adunit} * @param AdUnit $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask The list of fields to update. If empty, a full * update is performed. * @return AdUnit * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnit $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdUnit::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAdclientsAdunits::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsAdclientsAdunits'); apiclient-services/src/Adsense/Resource/AccountsSites.php 0000644 00000006012 14721515320 0017574 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListSitesResponse; use Google\Site_Kit_Dependencies\Google\Service\Adsense\Site; /** * The "sites" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $sites = $adsenseService->accounts_sites; * </code> */ class AccountsSites extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets information about the selected site. (sites.get) * * @param string $name Required. Name of the site. Format: * accounts/{account}/sites/{site} * @param array $optParams Optional parameters. * @return Site * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\Site::class); } /** * Lists all the sites available in an account. (sites.listAccountsSites) * * @param string $parent Required. The account which owns the collection of * sites. Format: accounts/{account} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of sites to include in the * response, used for paging. If unspecified, at most 10000 sites will be * returned. The maximum value is 10000; values above 10000 will be coerced to * 10000. * @opt_param string pageToken A page token, received from a previous * `ListSites` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListSites` must match the call * that provided the page token. * @return ListSitesResponse * @throws \Google\Service\Exception */ public function listAccountsSites($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListSitesResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsSites::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsSites'); apiclient-services/src/Adsense/Resource/Accounts.php 0000644 00000011711 14721515320 0016566 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\Account; use Google\Site_Kit_Dependencies\Google\Service\Adsense\AdBlockingRecoveryTag; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAccountsResponse; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListChildAccountsResponse; /** * The "accounts" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $accounts = $adsenseService->accounts; * </code> */ class Accounts extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets information about the selected AdSense account. (accounts.get) * * @param string $name Required. Account to get information about. Format: * accounts/{account} * @param array $optParams Optional parameters. * @return Account * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\Account::class); } /** * Gets the ad blocking recovery tag of an account. * (accounts.getAdBlockingRecoveryTag) * * @param string $name Required. The name of the account to get the tag for. * Format: accounts/{account} * @param array $optParams Optional parameters. * @return AdBlockingRecoveryTag * @throws \Google\Service\Exception */ public function getAdBlockingRecoveryTag($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('getAdBlockingRecoveryTag', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdBlockingRecoveryTag::class); } /** * Lists all accounts available to this user. (accounts.listAccounts) * * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of accounts to include in the * response, used for paging. If unspecified, at most 10000 accounts will be * returned. The maximum value is 10000; values above 10000 will be coerced to * 10000. * @opt_param string pageToken A page token, received from a previous * `ListAccounts` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListAccounts` must match the * call that provided the page token. * @return ListAccountsResponse * @throws \Google\Service\Exception */ public function listAccounts($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListAccountsResponse::class); } /** * Lists all accounts directly managed by the given AdSense account. * (accounts.listChildAccounts) * * @param string $parent Required. The parent account, which owns the child * accounts. Format: accounts/{account} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of accounts to include in the * response, used for paging. If unspecified, at most 10000 accounts will be * returned. The maximum value is 10000; values above 10000 will be coerced to * 10000. * @opt_param string pageToken A page token, received from a previous * `ListChildAccounts` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListChildAccounts` must match * the call that provided the page token. * @return ListChildAccountsResponse * @throws \Google\Service\Exception */ public function listChildAccounts($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('listChildAccounts', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListChildAccountsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\Accounts::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_Accounts'); apiclient-services/src/Adsense/Resource/AccountsAdclientsCustomchannels.php 0000644 00000017505 14721515320 0023333 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource; use Google\Site_Kit_Dependencies\Google\Service\Adsense\AdsenseEmpty; use Google\Site_Kit_Dependencies\Google\Service\Adsense\CustomChannel; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListCustomChannelsResponse; use Google\Site_Kit_Dependencies\Google\Service\Adsense\ListLinkedAdUnitsResponse; /** * The "customchannels" collection of methods. * Typical usage is: * <code> * $adsenseService = new Google\Service\Adsense(...); * $customchannels = $adsenseService->accounts_adclients_customchannels; * </code> */ class AccountsAdclientsCustomchannels extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a custom channel. This method can be called only by a restricted set * of projects, which are usually owned by [AdSense for * Platforms](https://developers.google.com/adsense/platforms/) publishers. * Contact your account manager if you need to use this method. * (customchannels.create) * * @param string $parent Required. The ad client to create a custom channel * under. Format: accounts/{account}/adclients/{adclient} * @param CustomChannel $postBody * @param array $optParams Optional parameters. * @return CustomChannel * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\Adsense\CustomChannel $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\CustomChannel::class); } /** * Deletes a custom channel. This method can be called only by a restricted set * of projects, which are usually owned by [AdSense for * Platforms](https://developers.google.com/adsense/platforms/) publishers. * Contact your account manager if you need to use this method. * (customchannels.delete) * * @param string $name Required. Name of the custom channel to delete. Format: * accounts/{account}/adclients/{adclient}/customchannels/{customchannel} * @param array $optParams Optional parameters. * @return AdsenseEmpty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\AdsenseEmpty::class); } /** * Gets information about the selected custom channel. (customchannels.get) * * @param string $name Required. Name of the custom channel. Format: * accounts/{account}/adclients/{adclient}/customchannels/{customchannel} * @param array $optParams Optional parameters. * @return CustomChannel * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\CustomChannel::class); } /** * Lists all the custom channels available in an ad client. * (customchannels.listAccountsAdclientsCustomchannels) * * @param string $parent Required. The ad client which owns the collection of * custom channels. Format: accounts/{account}/adclients/{adclient} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of custom channels to include in * the response, used for paging. If unspecified, at most 10000 custom channels * will be returned. The maximum value is 10000; values above 10000 will be * coerced to 10000. * @opt_param string pageToken A page token, received from a previous * `ListCustomChannels` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListCustomChannels` must match * the call that provided the page token. * @return ListCustomChannelsResponse * @throws \Google\Service\Exception */ public function listAccountsAdclientsCustomchannels($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListCustomChannelsResponse::class); } /** * Lists all the ad units available for a custom channel. * (customchannels.listLinkedAdUnits) * * @param string $parent Required. The custom channel which owns the collection * of ad units. Format: * accounts/{account}/adclients/{adclient}/customchannels/{customchannel} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of ad units to include in the * response, used for paging. If unspecified, at most 10000 ad units will be * returned. The maximum value is 10000; values above 10000 will be coerced to * 10000. * @opt_param string pageToken A page token, received from a previous * `ListLinkedAdUnits` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListLinkedAdUnits` must match * the call that provided the page token. * @return ListLinkedAdUnitsResponse * @throws \Google\Service\Exception */ public function listLinkedAdUnits($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('listLinkedAdUnits', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\ListLinkedAdUnitsResponse::class); } /** * Updates a custom channel. This method can be called only by a restricted set * of projects, which are usually owned by [AdSense for * Platforms](https://developers.google.com/adsense/platforms/) publishers. * Contact your account manager if you need to use this method. * (customchannels.patch) * * @param string $name Output only. Resource name of the custom channel. Format: * accounts/{account}/adclients/{adclient}/customchannels/{customchannel} * @param CustomChannel $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask The list of fields to update. If empty, a full * update is performed. * @return CustomChannel * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\Adsense\CustomChannel $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Adsense\CustomChannel::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAdclientsCustomchannels::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_Resource_AccountsAdclientsCustomchannels'); apiclient-services/src/Adsense/PolicyTopic.php 0000644 00000003007 14721515320 0015455 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class PolicyTopic extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $mustFix; /** * @var string */ public $topic; /** * @param bool */ public function setMustFix($mustFix) { $this->mustFix = $mustFix; } /** * @return bool */ public function getMustFix() { return $this->mustFix; } /** * @param string */ public function setTopic($topic) { $this->topic = $topic; } /** * @return string */ public function getTopic() { return $this->topic; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\PolicyTopic::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_PolicyTopic'); apiclient-services/src/Adsense/CustomChannel.php 0000644 00000004304 14721515320 0015763 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class CustomChannel extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $active; /** * @var string */ public $displayName; /** * @var string */ public $name; /** * @var string */ public $reportingDimensionId; /** * @param bool */ public function setActive($active) { $this->active = $active; } /** * @return bool */ public function getActive() { return $this->active; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setReportingDimensionId($reportingDimensionId) { $this->reportingDimensionId = $reportingDimensionId; } /** * @return string */ public function getReportingDimensionId() { return $this->reportingDimensionId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\CustomChannel::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_CustomChannel'); apiclient-services/src/Adsense/ListPaymentsResponse.php 0000644 00000002642 14721515320 0017376 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\Adsense; class ListPaymentsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'payments'; protected $paymentsType = \Google\Site_Kit_Dependencies\Google\Service\Adsense\Payment::class; protected $paymentsDataType = 'array'; /** * @param Payment[] */ public function setPayments($payments) { $this->payments = $payments; } /** * @return Payment[] */ public function getPayments() { return $this->payments; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense\ListPaymentsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense_ListPaymentsResponse'); apiclient-services/src/PagespeedInsights.php 0000644 00000006273 14721515320 0015253 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Client; /** * Service definition for PagespeedInsights (v5). * * <p> * The PageSpeed Insights API lets you analyze the performance of your website * with a simple API. It offers tailored suggestions for how you can optimize * your site, and lets you easily integrate PageSpeed Insights analysis into * your development tools and workflow.</p> * * <p> * For more information about this service, see the API * <a href="https://developers.google.com/speed/docs/insights/v5/about" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class PagespeedInsights extends \Google\Site_Kit_Dependencies\Google\Service { /** Associate you with your personal info on Google. */ const OPENID = "openid"; public $pagespeedapi; public $rootUrlTemplate; /** * Constructs the internal representation of the PagespeedInsights service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://pagespeedonline.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://pagespeedonline.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v5'; $this->serviceName = 'pagespeedonline'; $this->pagespeedapi = new \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Resource\Pagespeedapi($this, $this->serviceName, 'pagespeedapi', ['methods' => ['runpagespeed' => ['path' => 'pagespeedonline/v5/runPagespeed', 'httpMethod' => 'GET', 'parameters' => ['url' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'captchaToken' => ['location' => 'query', 'type' => 'string'], 'category' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'locale' => ['location' => 'query', 'type' => 'string'], 'strategy' => ['location' => 'query', 'type' => 'string'], 'utm_campaign' => ['location' => 'query', 'type' => 'string'], 'utm_source' => ['location' => 'query', 'type' => 'string']]]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights'); apiclient-services/src/PeopleService.php 0000644 00000027530 14721515320 0014411 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Client; /** * Service definition for PeopleService (v1). * * <p> * Provides access to information about profiles and contacts.</p> * * <p> * For more information about this service, see the API * <a href="https://developers.google.com/people/" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class PeopleService extends \Google\Site_Kit_Dependencies\Google\Service { /** See, edit, download, and permanently delete your contacts. */ const CONTACTS = "https://www.googleapis.com/auth/contacts"; /** See and download contact info automatically saved in your "Other contacts". */ const CONTACTS_OTHER_READONLY = "https://www.googleapis.com/auth/contacts.other.readonly"; /** See and download your contacts. */ const CONTACTS_READONLY = "https://www.googleapis.com/auth/contacts.readonly"; /** See and download your organization's GSuite directory. */ const DIRECTORY_READONLY = "https://www.googleapis.com/auth/directory.readonly"; /** View your street addresses. */ const USER_ADDRESSES_READ = "https://www.googleapis.com/auth/user.addresses.read"; /** See and download your exact date of birth. */ const USER_BIRTHDAY_READ = "https://www.googleapis.com/auth/user.birthday.read"; /** See and download all of your Google Account email addresses. */ const USER_EMAILS_READ = "https://www.googleapis.com/auth/user.emails.read"; /** See your gender. */ const USER_GENDER_READ = "https://www.googleapis.com/auth/user.gender.read"; /** See your education, work history and org info. */ const USER_ORGANIZATION_READ = "https://www.googleapis.com/auth/user.organization.read"; /** See and download your personal phone numbers. */ const USER_PHONENUMBERS_READ = "https://www.googleapis.com/auth/user.phonenumbers.read"; /** See your primary Google Account email address. */ const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; /** See your personal info, including any personal info you've made publicly available. */ const USERINFO_PROFILE = "https://www.googleapis.com/auth/userinfo.profile"; public $contactGroups; public $contactGroups_members; public $otherContacts; public $people; public $people_connections; public $rootUrlTemplate; /** * Constructs the internal representation of the PeopleService service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://people.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://people.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'people'; $this->contactGroups = new \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\ContactGroups($this, $this->serviceName, 'contactGroups', ['methods' => ['batchGet' => ['path' => 'v1/contactGroups:batchGet', 'httpMethod' => 'GET', 'parameters' => ['groupFields' => ['location' => 'query', 'type' => 'string'], 'maxMembers' => ['location' => 'query', 'type' => 'integer'], 'resourceNames' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'create' => ['path' => 'v1/contactGroups', 'httpMethod' => 'POST', 'parameters' => []], 'delete' => ['path' => 'v1/{+resourceName}', 'httpMethod' => 'DELETE', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'deleteContacts' => ['location' => 'query', 'type' => 'boolean']]], 'get' => ['path' => 'v1/{+resourceName}', 'httpMethod' => 'GET', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'groupFields' => ['location' => 'query', 'type' => 'string'], 'maxMembers' => ['location' => 'query', 'type' => 'integer']]], 'list' => ['path' => 'v1/contactGroups', 'httpMethod' => 'GET', 'parameters' => ['groupFields' => ['location' => 'query', 'type' => 'string'], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string'], 'syncToken' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'v1/{+resourceName}', 'httpMethod' => 'PUT', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->contactGroups_members = new \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\ContactGroupsMembers($this, $this->serviceName, 'members', ['methods' => ['modify' => ['path' => 'v1/{+resourceName}/members:modify', 'httpMethod' => 'POST', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->otherContacts = new \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\OtherContacts($this, $this->serviceName, 'otherContacts', ['methods' => ['copyOtherContactToMyContactsGroup' => ['path' => 'v1/{+resourceName}:copyOtherContactToMyContactsGroup', 'httpMethod' => 'POST', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1/otherContacts', 'httpMethod' => 'GET', 'parameters' => ['pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string'], 'readMask' => ['location' => 'query', 'type' => 'string'], 'requestSyncToken' => ['location' => 'query', 'type' => 'boolean'], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'syncToken' => ['location' => 'query', 'type' => 'string']]], 'search' => ['path' => 'v1/otherContacts:search', 'httpMethod' => 'GET', 'parameters' => ['pageSize' => ['location' => 'query', 'type' => 'integer'], 'query' => ['location' => 'query', 'type' => 'string'], 'readMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->people = new \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\People($this, $this->serviceName, 'people', ['methods' => ['batchCreateContacts' => ['path' => 'v1/people:batchCreateContacts', 'httpMethod' => 'POST', 'parameters' => []], 'batchDeleteContacts' => ['path' => 'v1/people:batchDeleteContacts', 'httpMethod' => 'POST', 'parameters' => []], 'batchUpdateContacts' => ['path' => 'v1/people:batchUpdateContacts', 'httpMethod' => 'POST', 'parameters' => []], 'createContact' => ['path' => 'v1/people:createContact', 'httpMethod' => 'POST', 'parameters' => ['personFields' => ['location' => 'query', 'type' => 'string'], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'deleteContact' => ['path' => 'v1/{+resourceName}:deleteContact', 'httpMethod' => 'DELETE', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'deleteContactPhoto' => ['path' => 'v1/{+resourceName}:deleteContactPhoto', 'httpMethod' => 'DELETE', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'personFields' => ['location' => 'query', 'type' => 'string'], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'get' => ['path' => 'v1/{+resourceName}', 'httpMethod' => 'GET', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'personFields' => ['location' => 'query', 'type' => 'string'], 'requestMask.includeField' => ['location' => 'query', 'type' => 'string'], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'getBatchGet' => ['path' => 'v1/people:batchGet', 'httpMethod' => 'GET', 'parameters' => ['personFields' => ['location' => 'query', 'type' => 'string'], 'requestMask.includeField' => ['location' => 'query', 'type' => 'string'], 'resourceNames' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'listDirectoryPeople' => ['path' => 'v1/people:listDirectoryPeople', 'httpMethod' => 'GET', 'parameters' => ['mergeSources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string'], 'readMask' => ['location' => 'query', 'type' => 'string'], 'requestSyncToken' => ['location' => 'query', 'type' => 'boolean'], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'syncToken' => ['location' => 'query', 'type' => 'string']]], 'searchContacts' => ['path' => 'v1/people:searchContacts', 'httpMethod' => 'GET', 'parameters' => ['pageSize' => ['location' => 'query', 'type' => 'integer'], 'query' => ['location' => 'query', 'type' => 'string'], 'readMask' => ['location' => 'query', 'type' => 'string'], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'searchDirectoryPeople' => ['path' => 'v1/people:searchDirectoryPeople', 'httpMethod' => 'GET', 'parameters' => ['mergeSources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string'], 'query' => ['location' => 'query', 'type' => 'string'], 'readMask' => ['location' => 'query', 'type' => 'string'], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'updateContact' => ['path' => 'v1/{+resourceName}:updateContact', 'httpMethod' => 'PATCH', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'personFields' => ['location' => 'query', 'type' => 'string'], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'updatePersonFields' => ['location' => 'query', 'type' => 'string']]], 'updateContactPhoto' => ['path' => 'v1/{+resourceName}:updateContactPhoto', 'httpMethod' => 'PATCH', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->people_connections = new \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\PeopleConnections($this, $this->serviceName, 'connections', ['methods' => ['list' => ['path' => 'v1/{+resourceName}/connections', 'httpMethod' => 'GET', 'parameters' => ['resourceName' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string'], 'personFields' => ['location' => 'query', 'type' => 'string'], 'requestMask.includeField' => ['location' => 'query', 'type' => 'string'], 'requestSyncToken' => ['location' => 'query', 'type' => 'boolean'], 'sortOrder' => ['location' => 'query', 'type' => 'string'], 'sources' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'syncToken' => ['location' => 'query', 'type' => 'string']]]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService'); apiclient-services/src/AnalyticsData/DimensionValue.php 0000644 00000002401 14721515320 0017275 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class DimensionValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $value; /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_DimensionValue'); apiclient-services/src/AnalyticsData/CheckCompatibilityRequest.php 0000644 00000006417 14721515320 0021506 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class CheckCompatibilityRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'metrics'; /** * @var string */ public $compatibilityFilter; protected $dimensionFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $dimensionFilterDataType = ''; protected $dimensionsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Dimension::class; protected $dimensionsDataType = 'array'; protected $metricFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $metricFilterDataType = ''; protected $metricsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Metric::class; protected $metricsDataType = 'array'; /** * @param string */ public function setCompatibilityFilter($compatibilityFilter) { $this->compatibilityFilter = $compatibilityFilter; } /** * @return string */ public function getCompatibilityFilter() { return $this->compatibilityFilter; } /** * @param FilterExpression */ public function setDimensionFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression $dimensionFilter) { $this->dimensionFilter = $dimensionFilter; } /** * @return FilterExpression */ public function getDimensionFilter() { return $this->dimensionFilter; } /** * @param Dimension[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return Dimension[] */ public function getDimensions() { return $this->dimensions; } /** * @param FilterExpression */ public function setMetricFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression $metricFilter) { $this->metricFilter = $metricFilter; } /** * @return FilterExpression */ public function getMetricFilter() { return $this->metricFilter; } /** * @param Metric[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return Metric[] */ public function getMetrics() { return $this->metrics; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CheckCompatibilityRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_CheckCompatibilityRequest'); apiclient-services/src/AnalyticsData/ResponseMetaData.php 0000644 00000007555 14721515320 0017571 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class ResponseMetaData extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'samplingMetadatas'; /** * @var string */ public $currencyCode; /** * @var bool */ public $dataLossFromOtherRow; /** * @var string */ public $emptyReason; protected $samplingMetadatasType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\SamplingMetadata::class; protected $samplingMetadatasDataType = 'array'; protected $schemaRestrictionResponseType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\SchemaRestrictionResponse::class; protected $schemaRestrictionResponseDataType = ''; /** * @var bool */ public $subjectToThresholding; /** * @var string */ public $timeZone; /** * @param string */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } /** * @return string */ public function getCurrencyCode() { return $this->currencyCode; } /** * @param bool */ public function setDataLossFromOtherRow($dataLossFromOtherRow) { $this->dataLossFromOtherRow = $dataLossFromOtherRow; } /** * @return bool */ public function getDataLossFromOtherRow() { return $this->dataLossFromOtherRow; } /** * @param string */ public function setEmptyReason($emptyReason) { $this->emptyReason = $emptyReason; } /** * @return string */ public function getEmptyReason() { return $this->emptyReason; } /** * @param SamplingMetadata[] */ public function setSamplingMetadatas($samplingMetadatas) { $this->samplingMetadatas = $samplingMetadatas; } /** * @return SamplingMetadata[] */ public function getSamplingMetadatas() { return $this->samplingMetadatas; } /** * @param SchemaRestrictionResponse */ public function setSchemaRestrictionResponse(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\SchemaRestrictionResponse $schemaRestrictionResponse) { $this->schemaRestrictionResponse = $schemaRestrictionResponse; } /** * @return SchemaRestrictionResponse */ public function getSchemaRestrictionResponse() { return $this->schemaRestrictionResponse; } /** * @param bool */ public function setSubjectToThresholding($subjectToThresholding) { $this->subjectToThresholding = $subjectToThresholding; } /** * @return bool */ public function getSubjectToThresholding() { return $this->subjectToThresholding; } /** * @param string */ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } /** * @return string */ public function getTimeZone() { return $this->timeZone; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ResponseMetaData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_ResponseMetaData'); apiclient-services/src/AnalyticsData/PropertyQuota.php 0000644 00000010633 14721515320 0017217 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class PropertyQuota extends \Google\Site_Kit_Dependencies\Google\Model { protected $concurrentRequestsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus::class; protected $concurrentRequestsDataType = ''; protected $potentiallyThresholdedRequestsPerHourType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus::class; protected $potentiallyThresholdedRequestsPerHourDataType = ''; protected $serverErrorsPerProjectPerHourType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus::class; protected $serverErrorsPerProjectPerHourDataType = ''; protected $tokensPerDayType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus::class; protected $tokensPerDayDataType = ''; protected $tokensPerHourType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus::class; protected $tokensPerHourDataType = ''; protected $tokensPerProjectPerHourType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus::class; protected $tokensPerProjectPerHourDataType = ''; /** * @param QuotaStatus */ public function setConcurrentRequests(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus $concurrentRequests) { $this->concurrentRequests = $concurrentRequests; } /** * @return QuotaStatus */ public function getConcurrentRequests() { return $this->concurrentRequests; } /** * @param QuotaStatus */ public function setPotentiallyThresholdedRequestsPerHour(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus $potentiallyThresholdedRequestsPerHour) { $this->potentiallyThresholdedRequestsPerHour = $potentiallyThresholdedRequestsPerHour; } /** * @return QuotaStatus */ public function getPotentiallyThresholdedRequestsPerHour() { return $this->potentiallyThresholdedRequestsPerHour; } /** * @param QuotaStatus */ public function setServerErrorsPerProjectPerHour(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus $serverErrorsPerProjectPerHour) { $this->serverErrorsPerProjectPerHour = $serverErrorsPerProjectPerHour; } /** * @return QuotaStatus */ public function getServerErrorsPerProjectPerHour() { return $this->serverErrorsPerProjectPerHour; } /** * @param QuotaStatus */ public function setTokensPerDay(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus $tokensPerDay) { $this->tokensPerDay = $tokensPerDay; } /** * @return QuotaStatus */ public function getTokensPerDay() { return $this->tokensPerDay; } /** * @param QuotaStatus */ public function setTokensPerHour(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus $tokensPerHour) { $this->tokensPerHour = $tokensPerHour; } /** * @return QuotaStatus */ public function getTokensPerHour() { return $this->tokensPerHour; } /** * @param QuotaStatus */ public function setTokensPerProjectPerHour(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus $tokensPerProjectPerHour) { $this->tokensPerProjectPerHour = $tokensPerProjectPerHour; } /** * @return QuotaStatus */ public function getTokensPerProjectPerHour() { return $this->tokensPerProjectPerHour; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PropertyQuota::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_PropertyQuota'); apiclient-services/src/AnalyticsData/RunPivotReportRequest.php 0000644 00000012702 14721515320 0020713 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class RunPivotReportRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'pivots'; protected $cohortSpecType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortSpec::class; protected $cohortSpecDataType = ''; /** * @var string */ public $currencyCode; protected $dateRangesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DateRange::class; protected $dateRangesDataType = 'array'; protected $dimensionFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $dimensionFilterDataType = ''; protected $dimensionsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Dimension::class; protected $dimensionsDataType = 'array'; /** * @var bool */ public $keepEmptyRows; protected $metricFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $metricFilterDataType = ''; protected $metricsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Metric::class; protected $metricsDataType = 'array'; protected $pivotsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Pivot::class; protected $pivotsDataType = 'array'; /** * @var string */ public $property; /** * @var bool */ public $returnPropertyQuota; /** * @param CohortSpec */ public function setCohortSpec(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortSpec $cohortSpec) { $this->cohortSpec = $cohortSpec; } /** * @return CohortSpec */ public function getCohortSpec() { return $this->cohortSpec; } /** * @param string */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } /** * @return string */ public function getCurrencyCode() { return $this->currencyCode; } /** * @param DateRange[] */ public function setDateRanges($dateRanges) { $this->dateRanges = $dateRanges; } /** * @return DateRange[] */ public function getDateRanges() { return $this->dateRanges; } /** * @param FilterExpression */ public function setDimensionFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression $dimensionFilter) { $this->dimensionFilter = $dimensionFilter; } /** * @return FilterExpression */ public function getDimensionFilter() { return $this->dimensionFilter; } /** * @param Dimension[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return Dimension[] */ public function getDimensions() { return $this->dimensions; } /** * @param bool */ public function setKeepEmptyRows($keepEmptyRows) { $this->keepEmptyRows = $keepEmptyRows; } /** * @return bool */ public function getKeepEmptyRows() { return $this->keepEmptyRows; } /** * @param FilterExpression */ public function setMetricFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression $metricFilter) { $this->metricFilter = $metricFilter; } /** * @return FilterExpression */ public function getMetricFilter() { return $this->metricFilter; } /** * @param Metric[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return Metric[] */ public function getMetrics() { return $this->metrics; } /** * @param Pivot[] */ public function setPivots($pivots) { $this->pivots = $pivots; } /** * @return Pivot[] */ public function getPivots() { return $this->pivots; } /** * @param string */ public function setProperty($property) { $this->property = $property; } /** * @return string */ public function getProperty() { return $this->property; } /** * @param bool */ public function setReturnPropertyQuota($returnPropertyQuota) { $this->returnPropertyQuota = $returnPropertyQuota; } /** * @return bool */ public function getReturnPropertyQuota() { return $this->returnPropertyQuota; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunPivotReportRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_RunPivotReportRequest'); apiclient-services/src/AnalyticsData/NumericFilter.php 0000644 00000003337 14721515320 0017134 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class NumericFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $operation; protected $valueType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericValue::class; protected $valueDataType = ''; /** * @param string */ public function setOperation($operation) { $this->operation = $operation; } /** * @return string */ public function getOperation() { return $this->operation; } /** * @param NumericValue */ public function setValue(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericValue $value) { $this->value = $value; } /** * @return NumericValue */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_NumericFilter'); apiclient-services/src/AnalyticsData/BatchRunReportsRequest.php 0000644 00000002733 14721515320 0021021 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class BatchRunReportsRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'requests'; protected $requestsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunReportRequest::class; protected $requestsDataType = 'array'; /** * @param RunReportRequest[] */ public function setRequests($requests) { $this->requests = $requests; } /** * @return RunReportRequest[] */ public function getRequests() { return $this->requests; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunReportsRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_BatchRunReportsRequest'); apiclient-services/src/AnalyticsData/CohortsRange.php 0000644 00000003613 14721515320 0016757 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class CohortsRange extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $endOffset; /** * @var string */ public $granularity; /** * @var int */ public $startOffset; /** * @param int */ public function setEndOffset($endOffset) { $this->endOffset = $endOffset; } /** * @return int */ public function getEndOffset() { return $this->endOffset; } /** * @param string */ public function setGranularity($granularity) { $this->granularity = $granularity; } /** * @return string */ public function getGranularity() { return $this->granularity; } /** * @param int */ public function setStartOffset($startOffset) { $this->startOffset = $startOffset; } /** * @return int */ public function getStartOffset() { return $this->startOffset; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortsRange::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_CohortsRange'); apiclient-services/src/AnalyticsData/CohortReportSettings.php 0000644 00000002460 14721515320 0020533 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class CohortReportSettings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $accumulate; /** * @param bool */ public function setAccumulate($accumulate) { $this->accumulate = $accumulate; } /** * @return bool */ public function getAccumulate() { return $this->accumulate; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortReportSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_CohortReportSettings'); apiclient-services/src/AnalyticsData/Pivot.php 0000644 00000005202 14721515320 0015456 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class Pivot extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'orderBys'; /** * @var string[] */ public $fieldNames; /** * @var string */ public $limit; /** * @var string[] */ public $metricAggregations; /** * @var string */ public $offset; protected $orderBysType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\OrderBy::class; protected $orderBysDataType = 'array'; /** * @param string[] */ public function setFieldNames($fieldNames) { $this->fieldNames = $fieldNames; } /** * @return string[] */ public function getFieldNames() { return $this->fieldNames; } /** * @param string */ public function setLimit($limit) { $this->limit = $limit; } /** * @return string */ public function getLimit() { return $this->limit; } /** * @param string[] */ public function setMetricAggregations($metricAggregations) { $this->metricAggregations = $metricAggregations; } /** * @return string[] */ public function getMetricAggregations() { return $this->metricAggregations; } /** * @param string */ public function setOffset($offset) { $this->offset = $offset; } /** * @return string */ public function getOffset() { return $this->offset; } /** * @param OrderBy[] */ public function setOrderBys($orderBys) { $this->orderBys = $orderBys; } /** * @return OrderBy[] */ public function getOrderBys() { return $this->orderBys; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Pivot::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Pivot'); apiclient-services/src/AnalyticsData/DimensionMetadata.php 0000644 00000005676 14721515320 0017762 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class DimensionMetadata extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'deprecatedApiNames'; /** * @var string */ public $apiName; /** * @var string */ public $category; /** * @var bool */ public $customDefinition; /** * @var string[] */ public $deprecatedApiNames; /** * @var string */ public $description; /** * @var string */ public $uiName; /** * @param string */ public function setApiName($apiName) { $this->apiName = $apiName; } /** * @return string */ public function getApiName() { return $this->apiName; } /** * @param string */ public function setCategory($category) { $this->category = $category; } /** * @return string */ public function getCategory() { return $this->category; } /** * @param bool */ public function setCustomDefinition($customDefinition) { $this->customDefinition = $customDefinition; } /** * @return bool */ public function getCustomDefinition() { return $this->customDefinition; } /** * @param string[] */ public function setDeprecatedApiNames($deprecatedApiNames) { $this->deprecatedApiNames = $deprecatedApiNames; } /** * @return string[] */ public function getDeprecatedApiNames() { return $this->deprecatedApiNames; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string */ public function setUiName($uiName) { $this->uiName = $uiName; } /** * @return string */ public function getUiName() { return $this->uiName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionMetadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_DimensionMetadata'); apiclient-services/src/AnalyticsData/BatchRunReportsResponse.php 0000644 00000003352 14721515320 0021165 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class BatchRunReportsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'reports'; /** * @var string */ public $kind; protected $reportsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunReportResponse::class; protected $reportsDataType = 'array'; /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param RunReportResponse[] */ public function setReports($reports) { $this->reports = $reports; } /** * @return RunReportResponse[] */ public function getReports() { return $this->reports; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunReportsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_BatchRunReportsResponse'); apiclient-services/src/AnalyticsData/MinuteRange.php 0000644 00000003617 14721515320 0016603 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class MinuteRange extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $endMinutesAgo; /** * @var string */ public $name; /** * @var int */ public $startMinutesAgo; /** * @param int */ public function setEndMinutesAgo($endMinutesAgo) { $this->endMinutesAgo = $endMinutesAgo; } /** * @return int */ public function getEndMinutesAgo() { return $this->endMinutesAgo; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param int */ public function setStartMinutesAgo($startMinutesAgo) { $this->startMinutesAgo = $startMinutesAgo; } /** * @return int */ public function getStartMinutesAgo() { return $this->startMinutesAgo; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MinuteRange::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_MinuteRange'); apiclient-services/src/AnalyticsData/RunRealtimeReportResponse.php 0000644 00000011001 14721515320 0021511 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class RunRealtimeReportResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'totals'; protected $dimensionHeadersType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionHeader::class; protected $dimensionHeadersDataType = 'array'; /** * @var string */ public $kind; protected $maximumsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $maximumsDataType = 'array'; protected $metricHeadersType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricHeader::class; protected $metricHeadersDataType = 'array'; protected $minimumsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $minimumsDataType = 'array'; protected $propertyQuotaType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PropertyQuota::class; protected $propertyQuotaDataType = ''; /** * @var int */ public $rowCount; protected $rowsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $rowsDataType = 'array'; protected $totalsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $totalsDataType = 'array'; /** * @param DimensionHeader[] */ public function setDimensionHeaders($dimensionHeaders) { $this->dimensionHeaders = $dimensionHeaders; } /** * @return DimensionHeader[] */ public function getDimensionHeaders() { return $this->dimensionHeaders; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param Row[] */ public function setMaximums($maximums) { $this->maximums = $maximums; } /** * @return Row[] */ public function getMaximums() { return $this->maximums; } /** * @param MetricHeader[] */ public function setMetricHeaders($metricHeaders) { $this->metricHeaders = $metricHeaders; } /** * @return MetricHeader[] */ public function getMetricHeaders() { return $this->metricHeaders; } /** * @param Row[] */ public function setMinimums($minimums) { $this->minimums = $minimums; } /** * @return Row[] */ public function getMinimums() { return $this->minimums; } /** * @param PropertyQuota */ public function setPropertyQuota(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PropertyQuota $propertyQuota) { $this->propertyQuota = $propertyQuota; } /** * @return PropertyQuota */ public function getPropertyQuota() { return $this->propertyQuota; } /** * @param int */ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } /** * @return int */ public function getRowCount() { return $this->rowCount; } /** * @param Row[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return Row[] */ public function getRows() { return $this->rows; } /** * @param Row[] */ public function setTotals($totals) { $this->totals = $totals; } /** * @return Row[] */ public function getTotals() { return $this->totals; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunRealtimeReportResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_RunRealtimeReportResponse'); apiclient-services/src/AnalyticsData/QuotaStatus.php 0000644 00000003060 14721515320 0016652 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class QuotaStatus extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $consumed; /** * @var int */ public $remaining; /** * @param int */ public function setConsumed($consumed) { $this->consumed = $consumed; } /** * @return int */ public function getConsumed() { return $this->consumed; } /** * @param int */ public function setRemaining($remaining) { $this->remaining = $remaining; } /** * @return int */ public function getRemaining() { return $this->remaining; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QuotaStatus::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_QuotaStatus'); apiclient-services/src/AnalyticsData/Cohort.php 0000644 00000003760 14721515320 0015622 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class Cohort extends \Google\Site_Kit_Dependencies\Google\Model { protected $dateRangeType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DateRange::class; protected $dateRangeDataType = ''; /** * @var string */ public $dimension; /** * @var string */ public $name; /** * @param DateRange */ public function setDateRange(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DateRange $dateRange) { $this->dateRange = $dateRange; } /** * @return DateRange */ public function getDateRange() { return $this->dateRange; } /** * @param string */ public function setDimension($dimension) { $this->dimension = $dimension; } /** * @return string */ public function getDimension() { return $this->dimension; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Cohort::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Cohort'); apiclient-services/src/AnalyticsData/MetricMetadata.php 0000644 00000007541 14721515320 0017251 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class MetricMetadata extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'deprecatedApiNames'; /** * @var string */ public $apiName; /** * @var string[] */ public $blockedReasons; /** * @var string */ public $category; /** * @var bool */ public $customDefinition; /** * @var string[] */ public $deprecatedApiNames; /** * @var string */ public $description; /** * @var string */ public $expression; /** * @var string */ public $type; /** * @var string */ public $uiName; /** * @param string */ public function setApiName($apiName) { $this->apiName = $apiName; } /** * @return string */ public function getApiName() { return $this->apiName; } /** * @param string[] */ public function setBlockedReasons($blockedReasons) { $this->blockedReasons = $blockedReasons; } /** * @return string[] */ public function getBlockedReasons() { return $this->blockedReasons; } /** * @param string */ public function setCategory($category) { $this->category = $category; } /** * @return string */ public function getCategory() { return $this->category; } /** * @param bool */ public function setCustomDefinition($customDefinition) { $this->customDefinition = $customDefinition; } /** * @return bool */ public function getCustomDefinition() { return $this->customDefinition; } /** * @param string[] */ public function setDeprecatedApiNames($deprecatedApiNames) { $this->deprecatedApiNames = $deprecatedApiNames; } /** * @return string[] */ public function getDeprecatedApiNames() { return $this->deprecatedApiNames; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string */ public function setExpression($expression) { $this->expression = $expression; } /** * @return string */ public function getExpression() { return $this->expression; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUiName($uiName) { $this->uiName = $uiName; } /** * @return string */ public function getUiName() { return $this->uiName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricMetadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_MetricMetadata'); apiclient-services/src/AnalyticsData/V1betaAudienceRow.php 0000644 00000003057 14721515320 0017633 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class V1betaAudienceRow extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'dimensionValues'; protected $dimensionValuesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\V1betaAudienceDimensionValue::class; protected $dimensionValuesDataType = 'array'; /** * @param V1betaAudienceDimensionValue[] */ public function setDimensionValues($dimensionValues) { $this->dimensionValues = $dimensionValues; } /** * @return V1betaAudienceDimensionValue[] */ public function getDimensionValues() { return $this->dimensionValues; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\V1betaAudienceRow::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_V1betaAudienceRow'); apiclient-services/src/AnalyticsData/Status.php 0000644 00000003532 14721515320 0015644 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class Status extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'details'; /** * @var int */ public $code; /** * @var array[] */ public $details; /** * @var string */ public $message; /** * @param int */ public function setCode($code) { $this->code = $code; } /** * @return int */ public function getCode() { return $this->code; } /** * @param array[] */ public function setDetails($details) { $this->details = $details; } /** * @return array[] */ public function getDetails() { return $this->details; } /** * @param string */ public function setMessage($message) { $this->message = $message; } /** * @return string */ public function getMessage() { return $this->message; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Status::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Status'); apiclient-services/src/AnalyticsData/SamplingMetadata.php 0000644 00000003301 14721515320 0017566 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class SamplingMetadata extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $samplesReadCount; /** * @var string */ public $samplingSpaceSize; /** * @param string */ public function setSamplesReadCount($samplesReadCount) { $this->samplesReadCount = $samplesReadCount; } /** * @return string */ public function getSamplesReadCount() { return $this->samplesReadCount; } /** * @param string */ public function setSamplingSpaceSize($samplingSpaceSize) { $this->samplingSpaceSize = $samplingSpaceSize; } /** * @return string */ public function getSamplingSpaceSize() { return $this->samplingSpaceSize; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\SamplingMetadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_SamplingMetadata'); apiclient-services/src/AnalyticsData/ActiveMetricRestriction.php 0000644 00000003414 14721515320 0021165 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class ActiveMetricRestriction extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'restrictedMetricTypes'; /** * @var string */ public $metricName; /** * @var string[] */ public $restrictedMetricTypes; /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } /** * @param string[] */ public function setRestrictedMetricTypes($restrictedMetricTypes) { $this->restrictedMetricTypes = $restrictedMetricTypes; } /** * @return string[] */ public function getRestrictedMetricTypes() { return $this->restrictedMetricTypes; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ActiveMetricRestriction::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_ActiveMetricRestriction'); apiclient-services/src/AnalyticsData/DimensionHeader.php 0000644 00000002375 14721515320 0017423 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class DimensionHeader extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_DimensionHeader'); apiclient-services/src/AnalyticsData/PivotHeader.php 0000644 00000003540 14721515320 0016572 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class PivotHeader extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'pivotDimensionHeaders'; protected $pivotDimensionHeadersType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PivotDimensionHeader::class; protected $pivotDimensionHeadersDataType = 'array'; /** * @var int */ public $rowCount; /** * @param PivotDimensionHeader[] */ public function setPivotDimensionHeaders($pivotDimensionHeaders) { $this->pivotDimensionHeaders = $pivotDimensionHeaders; } /** * @return PivotDimensionHeader[] */ public function getPivotDimensionHeaders() { return $this->pivotDimensionHeaders; } /** * @param int */ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } /** * @return int */ public function getRowCount() { return $this->rowCount; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PivotHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_PivotHeader'); apiclient-services/src/AnalyticsData/InListFilter.php 0000644 00000003202 14721515320 0016723 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class InListFilter extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'values'; /** * @var bool */ public $caseSensitive; /** * @var string[] */ public $values; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string[] */ public function setValues($values) { $this->values = $values; } /** * @return string[] */ public function getValues() { return $this->values; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\InListFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_InListFilter'); apiclient-services/src/AnalyticsData/Dimension.php 0000644 00000003474 14721515320 0016313 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class Dimension extends \Google\Site_Kit_Dependencies\Google\Model { protected $dimensionExpressionType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionExpression::class; protected $dimensionExpressionDataType = ''; /** * @var string */ public $name; /** * @param DimensionExpression */ public function setDimensionExpression(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionExpression $dimensionExpression) { $this->dimensionExpression = $dimensionExpression; } /** * @return DimensionExpression */ public function getDimensionExpression() { return $this->dimensionExpression; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Dimension::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Dimension'); apiclient-services/src/AnalyticsData/CheckCompatibilityResponse.php 0000644 00000004241 14721515320 0021645 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class CheckCompatibilityResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'metricCompatibilities'; protected $dimensionCompatibilitiesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionCompatibility::class; protected $dimensionCompatibilitiesDataType = 'array'; protected $metricCompatibilitiesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricCompatibility::class; protected $metricCompatibilitiesDataType = 'array'; /** * @param DimensionCompatibility[] */ public function setDimensionCompatibilities($dimensionCompatibilities) { $this->dimensionCompatibilities = $dimensionCompatibilities; } /** * @return DimensionCompatibility[] */ public function getDimensionCompatibilities() { return $this->dimensionCompatibilities; } /** * @param MetricCompatibility[] */ public function setMetricCompatibilities($metricCompatibilities) { $this->metricCompatibilities = $metricCompatibilities; } /** * @return MetricCompatibility[] */ public function getMetricCompatibilities() { return $this->metricCompatibilities; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CheckCompatibilityResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_CheckCompatibilityResponse'); apiclient-services/src/AnalyticsData/BatchRunPivotReportsRequest.php 0000644 00000002771 14721515320 0022045 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class BatchRunPivotReportsRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'requests'; protected $requestsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunPivotReportRequest::class; protected $requestsDataType = 'array'; /** * @param RunPivotReportRequest[] */ public function setRequests($requests) { $this->requests = $requests; } /** * @return RunPivotReportRequest[] */ public function getRequests() { return $this->requests; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunPivotReportsRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_BatchRunPivotReportsRequest'); apiclient-services/src/AnalyticsData/PivotOrderBy.php 0000644 00000003462 14721515320 0016753 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class PivotOrderBy extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'pivotSelections'; /** * @var string */ public $metricName; protected $pivotSelectionsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PivotSelection::class; protected $pivotSelectionsDataType = 'array'; /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } /** * @param PivotSelection[] */ public function setPivotSelections($pivotSelections) { $this->pivotSelections = $pivotSelections; } /** * @return PivotSelection[] */ public function getPivotSelections() { return $this->pivotSelections; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PivotOrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_PivotOrderBy'); apiclient-services/src/AnalyticsData/RunReportResponse.php 0000644 00000011726 14721515320 0020044 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class RunReportResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'totals'; protected $dimensionHeadersType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionHeader::class; protected $dimensionHeadersDataType = 'array'; /** * @var string */ public $kind; protected $maximumsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $maximumsDataType = 'array'; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ResponseMetaData::class; protected $metadataDataType = ''; protected $metricHeadersType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricHeader::class; protected $metricHeadersDataType = 'array'; protected $minimumsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $minimumsDataType = 'array'; protected $propertyQuotaType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PropertyQuota::class; protected $propertyQuotaDataType = ''; /** * @var int */ public $rowCount; protected $rowsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $rowsDataType = 'array'; protected $totalsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $totalsDataType = 'array'; /** * @param DimensionHeader[] */ public function setDimensionHeaders($dimensionHeaders) { $this->dimensionHeaders = $dimensionHeaders; } /** * @return DimensionHeader[] */ public function getDimensionHeaders() { return $this->dimensionHeaders; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param Row[] */ public function setMaximums($maximums) { $this->maximums = $maximums; } /** * @return Row[] */ public function getMaximums() { return $this->maximums; } /** * @param ResponseMetaData */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ResponseMetaData $metadata) { $this->metadata = $metadata; } /** * @return ResponseMetaData */ public function getMetadata() { return $this->metadata; } /** * @param MetricHeader[] */ public function setMetricHeaders($metricHeaders) { $this->metricHeaders = $metricHeaders; } /** * @return MetricHeader[] */ public function getMetricHeaders() { return $this->metricHeaders; } /** * @param Row[] */ public function setMinimums($minimums) { $this->minimums = $minimums; } /** * @return Row[] */ public function getMinimums() { return $this->minimums; } /** * @param PropertyQuota */ public function setPropertyQuota(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PropertyQuota $propertyQuota) { $this->propertyQuota = $propertyQuota; } /** * @return PropertyQuota */ public function getPropertyQuota() { return $this->propertyQuota; } /** * @param int */ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } /** * @return int */ public function getRowCount() { return $this->rowCount; } /** * @param Row[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return Row[] */ public function getRows() { return $this->rows; } /** * @param Row[] */ public function setTotals($totals) { $this->totals = $totals; } /** * @return Row[] */ public function getTotals() { return $this->totals; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunReportResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_RunReportResponse'); apiclient-services/src/AnalyticsData/AudienceExport.php 0000644 00000010512 14721515320 0017274 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class AudienceExport extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'dimensions'; /** * @var string */ public $audience; /** * @var string */ public $audienceDisplayName; /** * @var string */ public $beginCreatingTime; /** * @var int */ public $creationQuotaTokensCharged; protected $dimensionsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\V1betaAudienceDimension::class; protected $dimensionsDataType = 'array'; /** * @var string */ public $errorMessage; /** * @var string */ public $name; public $percentageCompleted; /** * @var int */ public $rowCount; /** * @var string */ public $state; /** * @param string */ public function setAudience($audience) { $this->audience = $audience; } /** * @return string */ public function getAudience() { return $this->audience; } /** * @param string */ public function setAudienceDisplayName($audienceDisplayName) { $this->audienceDisplayName = $audienceDisplayName; } /** * @return string */ public function getAudienceDisplayName() { return $this->audienceDisplayName; } /** * @param string */ public function setBeginCreatingTime($beginCreatingTime) { $this->beginCreatingTime = $beginCreatingTime; } /** * @return string */ public function getBeginCreatingTime() { return $this->beginCreatingTime; } /** * @param int */ public function setCreationQuotaTokensCharged($creationQuotaTokensCharged) { $this->creationQuotaTokensCharged = $creationQuotaTokensCharged; } /** * @return int */ public function getCreationQuotaTokensCharged() { return $this->creationQuotaTokensCharged; } /** * @param V1betaAudienceDimension[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return V1betaAudienceDimension[] */ public function getDimensions() { return $this->dimensions; } /** * @param string */ public function setErrorMessage($errorMessage) { $this->errorMessage = $errorMessage; } /** * @return string */ public function getErrorMessage() { return $this->errorMessage; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } public function setPercentageCompleted($percentageCompleted) { $this->percentageCompleted = $percentageCompleted; } public function getPercentageCompleted() { return $this->percentageCompleted; } /** * @param int */ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } /** * @return int */ public function getRowCount() { return $this->rowCount; } /** * @param string */ public function setState($state) { $this->state = $state; } /** * @return string */ public function getState() { return $this->state; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\AudienceExport::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_AudienceExport'); apiclient-services/src/AnalyticsData/V1betaAudienceDimension.php 0000644 00000002524 14721515320 0021007 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class V1betaAudienceDimension extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\V1betaAudienceDimension::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_V1betaAudienceDimension'); apiclient-services/src/AnalyticsData/DimensionOrderBy.php 0000644 00000003164 14721515320 0017576 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class DimensionOrderBy extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @var string */ public $orderType; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } /** * @param string */ public function setOrderType($orderType) { $this->orderType = $orderType; } /** * @return string */ public function getOrderType() { return $this->orderType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionOrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_DimensionOrderBy'); apiclient-services/src/AnalyticsData/Metadata.php 0000644 00000004161 14721515320 0016100 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class Metadata extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'metrics'; protected $dimensionsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionMetadata::class; protected $dimensionsDataType = 'array'; protected $metricsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricMetadata::class; protected $metricsDataType = 'array'; /** * @var string */ public $name; /** * @param DimensionMetadata[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return DimensionMetadata[] */ public function getDimensions() { return $this->dimensions; } /** * @param MetricMetadata[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return MetricMetadata[] */ public function getMetrics() { return $this->metrics; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Metadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Metadata'); apiclient-services/src/AnalyticsData/StringFilter.php 0000644 00000003573 14721515320 0017002 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class StringFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $caseSensitive; /** * @var string */ public $matchType; /** * @var string */ public $value; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setMatchType($matchType) { $this->matchType = $matchType; } /** * @return string */ public function getMatchType() { return $this->matchType; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\StringFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_StringFilter'); apiclient-services/src/AnalyticsData/PivotSelection.php 0000644 00000003221 14721515320 0017323 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class PivotSelection extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @var string */ public $dimensionValue; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } /** * @param string */ public function setDimensionValue($dimensionValue) { $this->dimensionValue = $dimensionValue; } /** * @return string */ public function getDimensionValue() { return $this->dimensionValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PivotSelection::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_PivotSelection'); apiclient-services/src/AnalyticsData/ListAudienceExportsResponse.php 0000644 00000003564 14721515320 0022043 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class ListAudienceExportsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'audienceExports'; protected $audienceExportsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\AudienceExport::class; protected $audienceExportsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param AudienceExport[] */ public function setAudienceExports($audienceExports) { $this->audienceExports = $audienceExports; } /** * @return AudienceExport[] */ public function getAudienceExports() { return $this->audienceExports; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ListAudienceExportsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_ListAudienceExportsResponse'); apiclient-services/src/AnalyticsData/Row.php 0000644 00000003623 14721515320 0015131 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class Row extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'metricValues'; protected $dimensionValuesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionValue::class; protected $dimensionValuesDataType = 'array'; protected $metricValuesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricValue::class; protected $metricValuesDataType = 'array'; /** * @param DimensionValue[] */ public function setDimensionValues($dimensionValues) { $this->dimensionValues = $dimensionValues; } /** * @return DimensionValue[] */ public function getDimensionValues() { return $this->dimensionValues; } /** * @param MetricValue[] */ public function setMetricValues($metricValues) { $this->metricValues = $metricValues; } /** * @return MetricValue[] */ public function getMetricValues() { return $this->metricValues; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Row'); apiclient-services/src/AnalyticsData/RunReportRequest.php 0000644 00000014576 14721515320 0017704 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class RunReportRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'orderBys'; protected $cohortSpecType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortSpec::class; protected $cohortSpecDataType = ''; /** * @var string */ public $currencyCode; protected $dateRangesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DateRange::class; protected $dateRangesDataType = 'array'; protected $dimensionFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $dimensionFilterDataType = ''; protected $dimensionsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Dimension::class; protected $dimensionsDataType = 'array'; /** * @var bool */ public $keepEmptyRows; /** * @var string */ public $limit; /** * @var string[] */ public $metricAggregations; protected $metricFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $metricFilterDataType = ''; protected $metricsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Metric::class; protected $metricsDataType = 'array'; /** * @var string */ public $offset; protected $orderBysType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\OrderBy::class; protected $orderBysDataType = 'array'; /** * @var string */ public $property; /** * @var bool */ public $returnPropertyQuota; /** * @param CohortSpec */ public function setCohortSpec(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortSpec $cohortSpec) { $this->cohortSpec = $cohortSpec; } /** * @return CohortSpec */ public function getCohortSpec() { return $this->cohortSpec; } /** * @param string */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } /** * @return string */ public function getCurrencyCode() { return $this->currencyCode; } /** * @param DateRange[] */ public function setDateRanges($dateRanges) { $this->dateRanges = $dateRanges; } /** * @return DateRange[] */ public function getDateRanges() { return $this->dateRanges; } /** * @param FilterExpression */ public function setDimensionFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression $dimensionFilter) { $this->dimensionFilter = $dimensionFilter; } /** * @return FilterExpression */ public function getDimensionFilter() { return $this->dimensionFilter; } /** * @param Dimension[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return Dimension[] */ public function getDimensions() { return $this->dimensions; } /** * @param bool */ public function setKeepEmptyRows($keepEmptyRows) { $this->keepEmptyRows = $keepEmptyRows; } /** * @return bool */ public function getKeepEmptyRows() { return $this->keepEmptyRows; } /** * @param string */ public function setLimit($limit) { $this->limit = $limit; } /** * @return string */ public function getLimit() { return $this->limit; } /** * @param string[] */ public function setMetricAggregations($metricAggregations) { $this->metricAggregations = $metricAggregations; } /** * @return string[] */ public function getMetricAggregations() { return $this->metricAggregations; } /** * @param FilterExpression */ public function setMetricFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression $metricFilter) { $this->metricFilter = $metricFilter; } /** * @return FilterExpression */ public function getMetricFilter() { return $this->metricFilter; } /** * @param Metric[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return Metric[] */ public function getMetrics() { return $this->metrics; } /** * @param string */ public function setOffset($offset) { $this->offset = $offset; } /** * @return string */ public function getOffset() { return $this->offset; } /** * @param OrderBy[] */ public function setOrderBys($orderBys) { $this->orderBys = $orderBys; } /** * @return OrderBy[] */ public function getOrderBys() { return $this->orderBys; } /** * @param string */ public function setProperty($property) { $this->property = $property; } /** * @return string */ public function getProperty() { return $this->property; } /** * @param bool */ public function setReturnPropertyQuota($returnPropertyQuota) { $this->returnPropertyQuota = $returnPropertyQuota; } /** * @return bool */ public function getReturnPropertyQuota() { return $this->returnPropertyQuota; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunReportRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_RunReportRequest'); apiclient-services/src/AnalyticsData/NumericValue.php 0000644 00000002763 14721515320 0016765 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class NumericValue extends \Google\Site_Kit_Dependencies\Google\Model { public $doubleValue; /** * @var string */ public $int64Value; public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; } public function getDoubleValue() { return $this->doubleValue; } /** * @param string */ public function setInt64Value($int64Value) { $this->int64Value = $int64Value; } /** * @return string */ public function getInt64Value() { return $this->int64Value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_NumericValue'); apiclient-services/src/AnalyticsData/AudienceListMetadata.php 0000644 00000001772 14721515320 0020377 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class AudienceListMetadata extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\AudienceListMetadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_AudienceListMetadata'); apiclient-services/src/AnalyticsData/BetweenFilter.php 0000644 00000003637 14721515320 0017126 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class BetweenFilter extends \Google\Site_Kit_Dependencies\Google\Model { protected $fromValueType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericValue::class; protected $fromValueDataType = ''; protected $toValueType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericValue::class; protected $toValueDataType = ''; /** * @param NumericValue */ public function setFromValue(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericValue $fromValue) { $this->fromValue = $fromValue; } /** * @return NumericValue */ public function getFromValue() { return $this->fromValue; } /** * @param NumericValue */ public function setToValue(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericValue $toValue) { $this->toValue = $toValue; } /** * @return NumericValue */ public function getToValue() { return $this->toValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BetweenFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_BetweenFilter'); apiclient-services/src/AnalyticsData/Metric.php 0000644 00000003515 14721515320 0015605 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class Metric extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $expression; /** * @var bool */ public $invisible; /** * @var string */ public $name; /** * @param string */ public function setExpression($expression) { $this->expression = $expression; } /** * @return string */ public function getExpression() { return $this->expression; } /** * @param bool */ public function setInvisible($invisible) { $this->invisible = $invisible; } /** * @return bool */ public function getInvisible() { return $this->invisible; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Metric::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Metric'); apiclient-services/src/AnalyticsData/DimensionExpression.php 0000644 00000004752 14721515320 0020373 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class DimensionExpression extends \Google\Site_Kit_Dependencies\Google\Model { protected $concatenateType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ConcatenateExpression::class; protected $concatenateDataType = ''; protected $lowerCaseType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CaseExpression::class; protected $lowerCaseDataType = ''; protected $upperCaseType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CaseExpression::class; protected $upperCaseDataType = ''; /** * @param ConcatenateExpression */ public function setConcatenate(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ConcatenateExpression $concatenate) { $this->concatenate = $concatenate; } /** * @return ConcatenateExpression */ public function getConcatenate() { return $this->concatenate; } /** * @param CaseExpression */ public function setLowerCase(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CaseExpression $lowerCase) { $this->lowerCase = $lowerCase; } /** * @return CaseExpression */ public function getLowerCase() { return $this->lowerCase; } /** * @param CaseExpression */ public function setUpperCase(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CaseExpression $upperCase) { $this->upperCase = $upperCase; } /** * @return CaseExpression */ public function getUpperCase() { return $this->upperCase; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionExpression::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_DimensionExpression'); apiclient-services/src/AnalyticsData/Operation.php 0000644 00000005006 14721515320 0016317 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class Operation extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $done; protected $errorType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Status::class; protected $errorDataType = ''; /** * @var array[] */ public $metadata; /** * @var string */ public $name; /** * @var array[] */ public $response; /** * @param bool */ public function setDone($done) { $this->done = $done; } /** * @return bool */ public function getDone() { return $this->done; } /** * @param Status */ public function setError(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Status $error) { $this->error = $error; } /** * @return Status */ public function getError() { return $this->error; } /** * @param array[] */ public function setMetadata($metadata) { $this->metadata = $metadata; } /** * @return array[] */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param array[] */ public function setResponse($response) { $this->response = $response; } /** * @return array[] */ public function getResponse() { return $this->response; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Operation::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Operation'); apiclient-services/src/AnalyticsData/MetricCompatibility.php 0000644 00000003535 14721515320 0020341 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class MetricCompatibility extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $compatibility; protected $metricMetadataType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricMetadata::class; protected $metricMetadataDataType = ''; /** * @param string */ public function setCompatibility($compatibility) { $this->compatibility = $compatibility; } /** * @return string */ public function getCompatibility() { return $this->compatibility; } /** * @param MetricMetadata */ public function setMetricMetadata(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricMetadata $metricMetadata) { $this->metricMetadata = $metricMetadata; } /** * @return MetricMetadata */ public function getMetricMetadata() { return $this->metricMetadata; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricCompatibility::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_MetricCompatibility'); apiclient-services/src/AnalyticsData/BatchRunPivotReportsResponse.php 0000644 00000003465 14721515320 0022214 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class BatchRunPivotReportsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'pivotReports'; /** * @var string */ public $kind; protected $pivotReportsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunPivotReportResponse::class; protected $pivotReportsDataType = 'array'; /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param RunPivotReportResponse[] */ public function setPivotReports($pivotReports) { $this->pivotReports = $pivotReports; } /** * @return RunPivotReportResponse[] */ public function getPivotReports() { return $this->pivotReports; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunPivotReportsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_BatchRunPivotReportsResponse'); apiclient-services/src/AnalyticsData/PivotDimensionHeader.php 0000644 00000003016 14721515320 0020436 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class PivotDimensionHeader extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'dimensionValues'; protected $dimensionValuesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionValue::class; protected $dimensionValuesDataType = 'array'; /** * @param DimensionValue[] */ public function setDimensionValues($dimensionValues) { $this->dimensionValues = $dimensionValues; } /** * @return DimensionValue[] */ public function getDimensionValues() { return $this->dimensionValues; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PivotDimensionHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_PivotDimensionHeader'); apiclient-services/src/AnalyticsData/MetricOrderBy.php 0000644 00000002441 14721515320 0017071 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class MetricOrderBy extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $metricName; /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricOrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_MetricOrderBy'); apiclient-services/src/AnalyticsData/CohortSpec.php 0000644 00000004752 14721515320 0016437 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class CohortSpec extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'cohorts'; protected $cohortReportSettingsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortReportSettings::class; protected $cohortReportSettingsDataType = ''; protected $cohortsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Cohort::class; protected $cohortsDataType = 'array'; protected $cohortsRangeType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortsRange::class; protected $cohortsRangeDataType = ''; /** * @param CohortReportSettings */ public function setCohortReportSettings(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortReportSettings $cohortReportSettings) { $this->cohortReportSettings = $cohortReportSettings; } /** * @return CohortReportSettings */ public function getCohortReportSettings() { return $this->cohortReportSettings; } /** * @param Cohort[] */ public function setCohorts($cohorts) { $this->cohorts = $cohorts; } /** * @return Cohort[] */ public function getCohorts() { return $this->cohorts; } /** * @param CohortsRange */ public function setCohortsRange(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortsRange $cohortsRange) { $this->cohortsRange = $cohortsRange; } /** * @return CohortsRange */ public function getCohortsRange() { return $this->cohortsRange; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CohortSpec::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_CohortSpec'); apiclient-services/src/AnalyticsData/Filter.php 0000644 00000006421 14721515320 0015606 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class Filter extends \Google\Site_Kit_Dependencies\Google\Model { protected $betweenFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BetweenFilter::class; protected $betweenFilterDataType = ''; /** * @var string */ public $fieldName; protected $inListFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\InListFilter::class; protected $inListFilterDataType = ''; protected $numericFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericFilter::class; protected $numericFilterDataType = ''; protected $stringFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\StringFilter::class; protected $stringFilterDataType = ''; /** * @param BetweenFilter */ public function setBetweenFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BetweenFilter $betweenFilter) { $this->betweenFilter = $betweenFilter; } /** * @return BetweenFilter */ public function getBetweenFilter() { return $this->betweenFilter; } /** * @param string */ public function setFieldName($fieldName) { $this->fieldName = $fieldName; } /** * @return string */ public function getFieldName() { return $this->fieldName; } /** * @param InListFilter */ public function setInListFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\InListFilter $inListFilter) { $this->inListFilter = $inListFilter; } /** * @return InListFilter */ public function getInListFilter() { return $this->inListFilter; } /** * @param NumericFilter */ public function setNumericFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\NumericFilter $numericFilter) { $this->numericFilter = $numericFilter; } /** * @return NumericFilter */ public function getNumericFilter() { return $this->numericFilter; } /** * @param StringFilter */ public function setStringFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\StringFilter $stringFilter) { $this->stringFilter = $stringFilter; } /** * @return StringFilter */ public function getStringFilter() { return $this->stringFilter; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Filter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Filter'); apiclient-services/src/AnalyticsData/RunRealtimeReportRequest.php 0000644 00000011344 14721515320 0021355 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class RunRealtimeReportRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'orderBys'; protected $dimensionFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $dimensionFilterDataType = ''; protected $dimensionsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Dimension::class; protected $dimensionsDataType = 'array'; /** * @var string */ public $limit; /** * @var string[] */ public $metricAggregations; protected $metricFilterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $metricFilterDataType = ''; protected $metricsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Metric::class; protected $metricsDataType = 'array'; protected $minuteRangesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MinuteRange::class; protected $minuteRangesDataType = 'array'; protected $orderBysType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\OrderBy::class; protected $orderBysDataType = 'array'; /** * @var bool */ public $returnPropertyQuota; /** * @param FilterExpression */ public function setDimensionFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression $dimensionFilter) { $this->dimensionFilter = $dimensionFilter; } /** * @return FilterExpression */ public function getDimensionFilter() { return $this->dimensionFilter; } /** * @param Dimension[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return Dimension[] */ public function getDimensions() { return $this->dimensions; } /** * @param string */ public function setLimit($limit) { $this->limit = $limit; } /** * @return string */ public function getLimit() { return $this->limit; } /** * @param string[] */ public function setMetricAggregations($metricAggregations) { $this->metricAggregations = $metricAggregations; } /** * @return string[] */ public function getMetricAggregations() { return $this->metricAggregations; } /** * @param FilterExpression */ public function setMetricFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression $metricFilter) { $this->metricFilter = $metricFilter; } /** * @return FilterExpression */ public function getMetricFilter() { return $this->metricFilter; } /** * @param Metric[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return Metric[] */ public function getMetrics() { return $this->metrics; } /** * @param MinuteRange[] */ public function setMinuteRanges($minuteRanges) { $this->minuteRanges = $minuteRanges; } /** * @return MinuteRange[] */ public function getMinuteRanges() { return $this->minuteRanges; } /** * @param OrderBy[] */ public function setOrderBys($orderBys) { $this->orderBys = $orderBys; } /** * @return OrderBy[] */ public function getOrderBys() { return $this->orderBys; } /** * @param bool */ public function setReturnPropertyQuota($returnPropertyQuota) { $this->returnPropertyQuota = $returnPropertyQuota; } /** * @return bool */ public function getReturnPropertyQuota() { return $this->returnPropertyQuota; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunRealtimeReportRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_RunRealtimeReportRequest'); apiclient-services/src/AnalyticsData/DimensionCompatibility.php 0000644 00000003612 14721515320 0021037 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class DimensionCompatibility extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $compatibility; protected $dimensionMetadataType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionMetadata::class; protected $dimensionMetadataDataType = ''; /** * @param string */ public function setCompatibility($compatibility) { $this->compatibility = $compatibility; } /** * @return string */ public function getCompatibility() { return $this->compatibility; } /** * @param DimensionMetadata */ public function setDimensionMetadata(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionMetadata $dimensionMetadata) { $this->dimensionMetadata = $dimensionMetadata; } /** * @return DimensionMetadata */ public function getDimensionMetadata() { return $this->dimensionMetadata; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionCompatibility::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_DimensionCompatibility'); apiclient-services/src/AnalyticsData/ConcatenateExpression.php 0000644 00000003307 14721515320 0020665 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class ConcatenateExpression extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'dimensionNames'; /** * @var string */ public $delimiter; /** * @var string[] */ public $dimensionNames; /** * @param string */ public function setDelimiter($delimiter) { $this->delimiter = $delimiter; } /** * @return string */ public function getDelimiter() { return $this->delimiter; } /** * @param string[] */ public function setDimensionNames($dimensionNames) { $this->dimensionNames = $dimensionNames; } /** * @return string[] */ public function getDimensionNames() { return $this->dimensionNames; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ConcatenateExpression::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_ConcatenateExpression'); apiclient-services/src/AnalyticsData/FilterExpression.php 0000644 00000005652 14721515320 0017673 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class FilterExpression extends \Google\Site_Kit_Dependencies\Google\Model { protected $andGroupType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpressionList::class; protected $andGroupDataType = ''; protected $filterType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Filter::class; protected $filterDataType = ''; protected $notExpressionType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $notExpressionDataType = ''; protected $orGroupType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpressionList::class; protected $orGroupDataType = ''; /** * @param FilterExpressionList */ public function setAndGroup(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpressionList $andGroup) { $this->andGroup = $andGroup; } /** * @return FilterExpressionList */ public function getAndGroup() { return $this->andGroup; } /** * @param Filter */ public function setFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Filter $filter) { $this->filter = $filter; } /** * @return Filter */ public function getFilter() { return $this->filter; } /** * @param FilterExpression */ public function setNotExpression(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression $notExpression) { $this->notExpression = $notExpression; } /** * @return FilterExpression */ public function getNotExpression() { return $this->notExpression; } /** * @param FilterExpressionList */ public function setOrGroup(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpressionList $orGroup) { $this->orGroup = $orGroup; } /** * @return FilterExpressionList */ public function getOrGroup() { return $this->orGroup; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_FilterExpression'); apiclient-services/src/AnalyticsData/QueryAudienceExportRequest.php 0000644 00000003105 14721515320 0021673 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class QueryAudienceExportRequest extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $limit; /** * @var string */ public $offset; /** * @param string */ public function setLimit($limit) { $this->limit = $limit; } /** * @return string */ public function getLimit() { return $this->limit; } /** * @param string */ public function setOffset($offset) { $this->offset = $offset; } /** * @return string */ public function getOffset() { return $this->offset; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QueryAudienceExportRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_QueryAudienceExportRequest'); apiclient-services/src/AnalyticsData/Resource/PropertiesAudienceExports.php 0000644 00000022112 14721515320 0023322 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Resource; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\AudienceExport; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ListAudienceExportsResponse; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Operation; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QueryAudienceExportRequest; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QueryAudienceExportResponse; /** * The "audienceExports" collection of methods. * Typical usage is: * <code> * $analyticsdataService = new Google\Service\AnalyticsData(...); * $audienceExports = $analyticsdataService->properties_audienceExports; * </code> */ class PropertiesAudienceExports extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates an audience export for later retrieval. This method quickly returns * the audience export's resource name and initiates a long running asynchronous * request to form an audience export. To export the users in an audience * export, first create the audience export through this method and then send * the audience resource name to the `QueryAudienceExport` method. See [Creating * an Audience Export](https://developers.google.com/analytics/devguides/reporti * ng/data/v1/audience-list-basics) for an introduction to Audience Exports with * examples. An audience export is a snapshot of the users currently in the * audience at the time of audience export creation. Creating audience exports * for one audience on different days will return different results as users * enter and exit the audience. Audiences in Google Analytics 4 allow you to * segment your users in the ways that are important to your business. To learn * more, see https://support.google.com/analytics/answer/9267572. Audience * exports contain the users in each audience. Audience Export APIs have some * methods at alpha and other methods at beta stability. The intention is to * advance methods to beta stability after some feedback and adoption. To give * your feedback on this API, complete the [Google Analytics Audience Export API * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. (audienceExports.create) * * @param string $parent Required. The parent resource where this audience * export will be created. Format: `properties/{property}` * @param AudienceExport $postBody * @param array $optParams Optional parameters. * @return Operation * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\AudienceExport $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Operation::class); } /** * Gets configuration metadata about a specific audience export. This method can * be used to understand an audience export after it has been created. See * [Creating an Audience Export](https://developers.google.com/analytics/devguid * es/reporting/data/v1/audience-list-basics) for an introduction to Audience * Exports with examples. Audience Export APIs have some methods at alpha and * other methods at beta stability. The intention is to advance methods to beta * stability after some feedback and adoption. To give your feedback on this * API, complete the [Google Analytics Audience Export API * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. (audienceExports.get) * * @param string $name Required. The audience export resource name. Format: * `properties/{property}/audienceExports/{audience_export}` * @param array $optParams Optional parameters. * @return AudienceExport * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\AudienceExport::class); } /** * Lists all audience exports for a property. This method can be used for you to * find and reuse existing audience exports rather than creating unnecessary new * audience exports. The same audience can have multiple audience exports that * represent the export of users that were in an audience on different days. See * [Creating an Audience Export](https://developers.google.com/analytics/devguid * es/reporting/data/v1/audience-list-basics) for an introduction to Audience * Exports with examples. Audience Export APIs have some methods at alpha and * other methods at beta stability. The intention is to advance methods to beta * stability after some feedback and adoption. To give your feedback on this * API, complete the [Google Analytics Audience Export API * Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. * (audienceExports.listPropertiesAudienceExports) * * @param string $parent Required. All audience exports for this property will * be listed in the response. Format: `properties/{property}` * @param array $optParams Optional parameters. * * @opt_param int pageSize Optional. The maximum number of audience exports to * return. The service may return fewer than this value. If unspecified, at most * 200 audience exports will be returned. The maximum value is 1000 (higher * values will be coerced to the maximum). * @opt_param string pageToken Optional. A page token, received from a previous * `ListAudienceExports` call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListAudienceExports` must * match the call that provided the page token. * @return ListAudienceExportsResponse * @throws \Google\Service\Exception */ public function listPropertiesAudienceExports($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ListAudienceExportsResponse::class); } /** * Retrieves an audience export of users. After creating an audience, the users * are not immediately available for exporting. First, a request to * `CreateAudienceExport` is necessary to create an audience export of users, * and then second, this method is used to retrieve the users in the audience * export. See [Creating an Audience Export](https://developers.google.com/analy * tics/devguides/reporting/data/v1/audience-list-basics) for an introduction to * Audience Exports with examples. Audiences in Google Analytics 4 allow you to * segment your users in the ways that are important to your business. To learn * more, see https://support.google.com/analytics/answer/9267572. Audience * Export APIs have some methods at alpha and other methods at beta stability. * The intention is to advance methods to beta stability after some feedback and * adoption. To give your feedback on this API, complete the [Google Analytics * Audience Export API Feedback](https://forms.gle/EeA5u5LW6PEggtCEA) form. * (audienceExports.query) * * @param string $name Required. The name of the audience export to retrieve * users from. Format: `properties/{property}/audienceExports/{audience_export}` * @param QueryAudienceExportRequest $postBody * @param array $optParams Optional parameters. * @return QueryAudienceExportResponse * @throws \Google\Service\Exception */ public function query($name, \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QueryAudienceExportRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('query', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QueryAudienceExportResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Resource\PropertiesAudienceExports::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Resource_PropertiesAudienceExports'); apiclient-services/src/AnalyticsData/Resource/Properties.php 0000644 00000031347 14721515320 0020311 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Resource; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunPivotReportsRequest; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunPivotReportsResponse; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunReportsRequest; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunReportsResponse; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CheckCompatibilityRequest; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CheckCompatibilityResponse; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Metadata; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunPivotReportRequest; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunPivotReportResponse; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunRealtimeReportRequest; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunRealtimeReportResponse; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunReportRequest; use Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunReportResponse; /** * The "properties" collection of methods. * Typical usage is: * <code> * $analyticsdataService = new Google\Service\AnalyticsData(...); * $properties = $analyticsdataService->properties; * </code> */ class Properties extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Returns multiple pivot reports in a batch. All reports must be for the same * GA4 Property. (properties.batchRunPivotReports) * * @param string $property A Google Analytics GA4 property identifier whose * events are tracked. Specified in the URL path and not the body. To learn * more, see [where to find your Property ID](https://developers.google.com/anal * ytics/devguides/reporting/data/v1/property-id). This property must be * specified for the batch. The property within RunPivotReportRequest may either * be unspecified or consistent with this property. Example: properties/1234 * @param BatchRunPivotReportsRequest $postBody * @param array $optParams Optional parameters. * @return BatchRunPivotReportsResponse * @throws \Google\Service\Exception */ public function batchRunPivotReports($property, \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunPivotReportsRequest $postBody, $optParams = []) { $params = ['property' => $property, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchRunPivotReports', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunPivotReportsResponse::class); } /** * Returns multiple reports in a batch. All reports must be for the same GA4 * Property. (properties.batchRunReports) * * @param string $property A Google Analytics GA4 property identifier whose * events are tracked. Specified in the URL path and not the body. To learn * more, see [where to find your Property ID](https://developers.google.com/anal * ytics/devguides/reporting/data/v1/property-id). This property must be * specified for the batch. The property within RunReportRequest may either be * unspecified or consistent with this property. Example: properties/1234 * @param BatchRunReportsRequest $postBody * @param array $optParams Optional parameters. * @return BatchRunReportsResponse * @throws \Google\Service\Exception */ public function batchRunReports($property, \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunReportsRequest $postBody, $optParams = []) { $params = ['property' => $property, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchRunReports', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\BatchRunReportsResponse::class); } /** * This compatibility method lists dimensions and metrics that can be added to a * report request and maintain compatibility. This method fails if the request's * dimensions and metrics are incompatible. In Google Analytics, reports fail if * they request incompatible dimensions and/or metrics; in that case, you will * need to remove dimensions and/or metrics from the incompatible report until * the report is compatible. The Realtime and Core reports have different * compatibility rules. This method checks compatibility for Core reports. * (properties.checkCompatibility) * * @param string $property A Google Analytics GA4 property identifier whose * events are tracked. To learn more, see [where to find your Property ID](https * ://developers.google.com/analytics/devguides/reporting/data/v1/property-id). * `property` should be the same value as in your `runReport` request. Example: * properties/1234 * @param CheckCompatibilityRequest $postBody * @param array $optParams Optional parameters. * @return CheckCompatibilityResponse * @throws \Google\Service\Exception */ public function checkCompatibility($property, \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CheckCompatibilityRequest $postBody, $optParams = []) { $params = ['property' => $property, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('checkCompatibility', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CheckCompatibilityResponse::class); } /** * Returns metadata for dimensions and metrics available in reporting methods. * Used to explore the dimensions and metrics. In this method, a Google * Analytics GA4 Property Identifier is specified in the request, and the * metadata response includes Custom dimensions and metrics as well as Universal * metadata. For example if a custom metric with parameter name * `levels_unlocked` is registered to a property, the Metadata response will * contain `customEvent:levels_unlocked`. Universal metadata are dimensions and * metrics applicable to any property such as `country` and `totalUsers`. * (properties.getMetadata) * * @param string $name Required. The resource name of the metadata to retrieve. * This name field is specified in the URL path and not URL parameters. Property * is a numeric Google Analytics GA4 Property identifier. To learn more, see * [where to find your Property ID](https://developers.google.com/analytics/devg * uides/reporting/data/v1/property-id). Example: properties/1234/metadata Set * the Property ID to 0 for dimensions and metrics common to all properties. In * this special mode, this method will not return custom dimensions and metrics. * @param array $optParams Optional parameters. * @return Metadata * @throws \Google\Service\Exception */ public function getMetadata($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('getMetadata', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Metadata::class); } /** * Returns a customized pivot report of your Google Analytics event data. Pivot * reports are more advanced and expressive formats than regular reports. In a * pivot report, dimensions are only visible if they are included in a pivot. * Multiple pivots can be specified to further dissect your data. * (properties.runPivotReport) * * @param string $property A Google Analytics GA4 property identifier whose * events are tracked. Specified in the URL path and not the body. To learn * more, see [where to find your Property ID](https://developers.google.com/anal * ytics/devguides/reporting/data/v1/property-id). Within a batch request, this * property should either be unspecified or consistent with the batch-level * property. Example: properties/1234 * @param RunPivotReportRequest $postBody * @param array $optParams Optional parameters. * @return RunPivotReportResponse * @throws \Google\Service\Exception */ public function runPivotReport($property, \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunPivotReportRequest $postBody, $optParams = []) { $params = ['property' => $property, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('runPivotReport', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunPivotReportResponse::class); } /** * Returns a customized report of realtime event data for your property. Events * appear in realtime reports seconds after they have been sent to the Google * Analytics. Realtime reports show events and usage data for the periods of * time ranging from the present moment to 30 minutes ago (up to 60 minutes for * Google Analytics 360 properties). For a guide to constructing realtime * requests & understanding responses, see [Creating a Realtime Report](https:// * developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). * (properties.runRealtimeReport) * * @param string $property A Google Analytics GA4 property identifier whose * events are tracked. Specified in the URL path and not the body. To learn * more, see [where to find your Property ID](https://developers.google.com/anal * ytics/devguides/reporting/data/v1/property-id). Example: properties/1234 * @param RunRealtimeReportRequest $postBody * @param array $optParams Optional parameters. * @return RunRealtimeReportResponse * @throws \Google\Service\Exception */ public function runRealtimeReport($property, \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunRealtimeReportRequest $postBody, $optParams = []) { $params = ['property' => $property, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('runRealtimeReport', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunRealtimeReportResponse::class); } /** * Returns a customized report of your Google Analytics event data. Reports * contain statistics derived from data collected by the Google Analytics * tracking code. The data returned from the API is as a table with columns for * the requested dimensions and metrics. Metrics are individual measurements of * user activity on your property, such as active users or event count. * Dimensions break down metrics across some common criteria, such as country or * event name. For a guide to constructing requests & understanding responses, * see [Creating a Report](https://developers.google.com/analytics/devguides/rep * orting/data/v1/basics). (properties.runReport) * * @param string $property A Google Analytics GA4 property identifier whose * events are tracked. Specified in the URL path and not the body. To learn * more, see [where to find your Property ID](https://developers.google.com/anal * ytics/devguides/reporting/data/v1/property-id). Within a batch request, this * property should either be unspecified or consistent with the batch-level * property. Example: properties/1234 * @param RunReportRequest $postBody * @param array $optParams Optional parameters. * @return RunReportResponse * @throws \Google\Service\Exception */ public function runReport($property, \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunReportRequest $postBody, $optParams = []) { $params = ['property' => $property, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('runReport', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunReportResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Resource\Properties::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_Resource_Properties'); apiclient-services/src/AnalyticsData/V1betaAudienceDimensionValue.php 0000644 00000002453 14721515320 0022005 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class V1betaAudienceDimensionValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $value; /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\V1betaAudienceDimensionValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_V1betaAudienceDimensionValue'); apiclient-services/src/AnalyticsData/OrderBy.php 0000644 00000005152 14721515320 0015727 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class OrderBy extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $desc; protected $dimensionType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionOrderBy::class; protected $dimensionDataType = ''; protected $metricType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricOrderBy::class; protected $metricDataType = ''; protected $pivotType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PivotOrderBy::class; protected $pivotDataType = ''; /** * @param bool */ public function setDesc($desc) { $this->desc = $desc; } /** * @return bool */ public function getDesc() { return $this->desc; } /** * @param DimensionOrderBy */ public function setDimension(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionOrderBy $dimension) { $this->dimension = $dimension; } /** * @return DimensionOrderBy */ public function getDimension() { return $this->dimension; } /** * @param MetricOrderBy */ public function setMetric(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricOrderBy $metric) { $this->metric = $metric; } /** * @return MetricOrderBy */ public function getMetric() { return $this->metric; } /** * @param PivotOrderBy */ public function setPivot(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PivotOrderBy $pivot) { $this->pivot = $pivot; } /** * @return PivotOrderBy */ public function getPivot() { return $this->pivot; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\OrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_OrderBy'); apiclient-services/src/AnalyticsData/SchemaRestrictionResponse.php 0000644 00000003211 14721515320 0021520 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class SchemaRestrictionResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'activeMetricRestrictions'; protected $activeMetricRestrictionsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ActiveMetricRestriction::class; protected $activeMetricRestrictionsDataType = 'array'; /** * @param ActiveMetricRestriction[] */ public function setActiveMetricRestrictions($activeMetricRestrictions) { $this->activeMetricRestrictions = $activeMetricRestrictions; } /** * @return ActiveMetricRestriction[] */ public function getActiveMetricRestrictions() { return $this->activeMetricRestrictions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\SchemaRestrictionResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_SchemaRestrictionResponse'); apiclient-services/src/AnalyticsData/CaseExpression.php 0000644 00000002471 14721515320 0017315 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class CaseExpression extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\CaseExpression::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_CaseExpression'); apiclient-services/src/AnalyticsData/FilterExpressionList.php 0000644 00000002760 14721515320 0020524 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class FilterExpressionList extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'expressions'; protected $expressionsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpression::class; protected $expressionsDataType = 'array'; /** * @param FilterExpression[] */ public function setExpressions($expressions) { $this->expressions = $expressions; } /** * @return FilterExpression[] */ public function getExpressions() { return $this->expressions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\FilterExpressionList::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_FilterExpressionList'); apiclient-services/src/AnalyticsData/RunPivotReportResponse.php 0000644 00000010623 14721515320 0021061 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class RunPivotReportResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'rows'; protected $aggregatesType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $aggregatesDataType = 'array'; protected $dimensionHeadersType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DimensionHeader::class; protected $dimensionHeadersDataType = 'array'; /** * @var string */ public $kind; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ResponseMetaData::class; protected $metadataDataType = ''; protected $metricHeadersType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricHeader::class; protected $metricHeadersDataType = 'array'; protected $pivotHeadersType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PivotHeader::class; protected $pivotHeadersDataType = 'array'; protected $propertyQuotaType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PropertyQuota::class; protected $propertyQuotaDataType = ''; protected $rowsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Row::class; protected $rowsDataType = 'array'; /** * @param Row[] */ public function setAggregates($aggregates) { $this->aggregates = $aggregates; } /** * @return Row[] */ public function getAggregates() { return $this->aggregates; } /** * @param DimensionHeader[] */ public function setDimensionHeaders($dimensionHeaders) { $this->dimensionHeaders = $dimensionHeaders; } /** * @return DimensionHeader[] */ public function getDimensionHeaders() { return $this->dimensionHeaders; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param ResponseMetaData */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\ResponseMetaData $metadata) { $this->metadata = $metadata; } /** * @return ResponseMetaData */ public function getMetadata() { return $this->metadata; } /** * @param MetricHeader[] */ public function setMetricHeaders($metricHeaders) { $this->metricHeaders = $metricHeaders; } /** * @return MetricHeader[] */ public function getMetricHeaders() { return $this->metricHeaders; } /** * @param PivotHeader[] */ public function setPivotHeaders($pivotHeaders) { $this->pivotHeaders = $pivotHeaders; } /** * @return PivotHeader[] */ public function getPivotHeaders() { return $this->pivotHeaders; } /** * @param PropertyQuota */ public function setPropertyQuota(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\PropertyQuota $propertyQuota) { $this->propertyQuota = $propertyQuota; } /** * @return PropertyQuota */ public function getPropertyQuota() { return $this->propertyQuota; } /** * @param Row[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return Row[] */ public function getRows() { return $this->rows; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\RunPivotReportResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_RunPivotReportResponse'); apiclient-services/src/AnalyticsData/QueryAudienceExportResponse.php 0000644 00000004513 14721515320 0022045 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class QueryAudienceExportResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'audienceRows'; protected $audienceExportType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\AudienceExport::class; protected $audienceExportDataType = ''; protected $audienceRowsType = \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\V1betaAudienceRow::class; protected $audienceRowsDataType = 'array'; /** * @var int */ public $rowCount; /** * @param AudienceExport */ public function setAudienceExport(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\AudienceExport $audienceExport) { $this->audienceExport = $audienceExport; } /** * @return AudienceExport */ public function getAudienceExport() { return $this->audienceExport; } /** * @param V1betaAudienceRow[] */ public function setAudienceRows($audienceRows) { $this->audienceRows = $audienceRows; } /** * @return V1betaAudienceRow[] */ public function getAudienceRows() { return $this->audienceRows; } /** * @param int */ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } /** * @return int */ public function getRowCount() { return $this->rowCount; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\QueryAudienceExportResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_QueryAudienceExportResponse'); apiclient-services/src/AnalyticsData/MetricValue.php 0000644 00000002370 14721515320 0016600 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class MetricValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $value; /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_MetricValue'); apiclient-services/src/AnalyticsData/DateRange.php 0000644 00000003507 14721515320 0016215 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class DateRange extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $endDate; /** * @var string */ public $name; /** * @var string */ public $startDate; /** * @param string */ public function setEndDate($endDate) { $this->endDate = $endDate; } /** * @return string */ public function getEndDate() { return $this->endDate; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setStartDate($startDate) { $this->startDate = $startDate; } /** * @return string */ public function getStartDate() { return $this->startDate; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\DateRange::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_DateRange'); apiclient-services/src/AnalyticsData/MetricHeader.php 0000644 00000003006 14721515320 0016711 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\AnalyticsData; class MetricHeader extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @var string */ public $type; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\MetricHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData_MetricHeader'); apiclient-services/src/SiteVerification.php 0000644 00000007110 14721515320 0015103 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Client; /** * Service definition for SiteVerification (v1). * * <p> * Verifies 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 SiteVerification extends \Google\Site_Kit_Dependencies\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; public $rootUrlTemplate; /** * Constructs the internal representation of the SiteVerification service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://www.UNIVERSE_DOMAIN/'; $this->servicePath = 'siteVerification/v1/'; $this->batchPath = 'batch/siteVerification/v1'; $this->version = 'v1'; $this->serviceName = 'siteVerification'; $this->webResource = new \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\Resource\WebResource($this, $this->serviceName, 'webResource', ['methods' => ['delete' => ['path' => 'webResource/{id}', 'httpMethod' => 'DELETE', 'parameters' => ['id' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'webResource/{id}', 'httpMethod' => 'GET', 'parameters' => ['id' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'getToken' => ['path' => 'token', 'httpMethod' => 'POST', 'parameters' => []], 'insert' => ['path' => 'webResource', 'httpMethod' => 'POST', 'parameters' => ['verificationMethod' => ['location' => 'query', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'webResource', 'httpMethod' => 'GET', 'parameters' => []], 'patch' => ['path' => 'webResource/{id}', 'httpMethod' => 'PATCH', 'parameters' => ['id' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'webResource/{id}', 'httpMethod' => 'PUT', 'parameters' => ['id' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SiteVerification'); apiclient-services/src/SearchConsole.php 0000644 00000013103 14721515320 0014363 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Client; /** * Service definition for SearchConsole (v1). * * <p> * The Search Console API provides access to both Search Console data (verified * users only) and to public information on an URL basis (anyone)</p> * * <p> * For more information about this service, see the API * <a href="https://developers.google.com/webmaster-tools/search-console-api/" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class SearchConsole extends \Google\Site_Kit_Dependencies\Google\Service { /** View and manage Search Console data for your verified sites. */ const WEBMASTERS = "https://www.googleapis.com/auth/webmasters"; /** View Search Console data for your verified sites. */ const WEBMASTERS_READONLY = "https://www.googleapis.com/auth/webmasters.readonly"; public $searchanalytics; public $sitemaps; public $sites; public $urlInspection_index; public $urlTestingTools_mobileFriendlyTest; public $rootUrlTemplate; /** * Constructs the internal representation of the SearchConsole service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://searchconsole.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://searchconsole.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'searchconsole'; $this->searchanalytics = new \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\Searchanalytics($this, $this->serviceName, 'searchanalytics', ['methods' => ['query' => ['path' => 'webmasters/v3/sites/{siteUrl}/searchAnalytics/query', 'httpMethod' => 'POST', 'parameters' => ['siteUrl' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->sitemaps = new \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\Sitemaps($this, $this->serviceName, 'sitemaps', ['methods' => ['delete' => ['path' => 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}', 'httpMethod' => 'DELETE', 'parameters' => ['siteUrl' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'feedpath' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}', 'httpMethod' => 'GET', 'parameters' => ['siteUrl' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'feedpath' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'webmasters/v3/sites/{siteUrl}/sitemaps', 'httpMethod' => 'GET', 'parameters' => ['siteUrl' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'sitemapIndex' => ['location' => 'query', 'type' => 'string']]], 'submit' => ['path' => 'webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}', 'httpMethod' => 'PUT', 'parameters' => ['siteUrl' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'feedpath' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->sites = new \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\Sites($this, $this->serviceName, 'sites', ['methods' => ['add' => ['path' => 'webmasters/v3/sites/{siteUrl}', 'httpMethod' => 'PUT', 'parameters' => ['siteUrl' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'webmasters/v3/sites/{siteUrl}', 'httpMethod' => 'DELETE', 'parameters' => ['siteUrl' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'webmasters/v3/sites/{siteUrl}', 'httpMethod' => 'GET', 'parameters' => ['siteUrl' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'webmasters/v3/sites', 'httpMethod' => 'GET', 'parameters' => []]]]); $this->urlInspection_index = new \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\UrlInspectionIndex($this, $this->serviceName, 'index', ['methods' => ['inspect' => ['path' => 'v1/urlInspection/index:inspect', 'httpMethod' => 'POST', 'parameters' => []]]]); $this->urlTestingTools_mobileFriendlyTest = new \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\UrlTestingToolsMobileFriendlyTest($this, $this->serviceName, 'mobileFriendlyTest', ['methods' => ['run' => ['path' => 'v1/urlTestingTools/mobileFriendlyTest:run', 'httpMethod' => 'POST', 'parameters' => []]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaConversionEvent.php 0000644 00000007231 14721515320 0026045 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaConversionEvent extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $countingMethod; /** * @var string */ public $createTime; /** * @var bool */ public $custom; protected $defaultConversionValueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue::class; protected $defaultConversionValueDataType = ''; /** * @var bool */ public $deletable; /** * @var string */ public $eventName; /** * @var string */ public $name; /** * @param string */ public function setCountingMethod($countingMethod) { $this->countingMethod = $countingMethod; } /** * @return string */ public function getCountingMethod() { return $this->countingMethod; } /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param bool */ public function setCustom($custom) { $this->custom = $custom; } /** * @return bool */ public function getCustom() { return $this->custom; } /** * @param GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue */ public function setDefaultConversionValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue $defaultConversionValue) { $this->defaultConversionValue = $defaultConversionValue; } /** * @return GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue */ public function getDefaultConversionValue() { return $this->defaultConversionValue; } /** * @param bool */ public function setDeletable($deletable) { $this->deletable = $deletable; } /** * @return bool */ public function getDeletable() { return $this->deletable; } /** * @param string */ public function setEventName($eventName) { $this->eventName = $eventName; } /** * @return string */ public function getEventName() { return $this->eventName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaConversionEvent'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessDimensionHeader.php 0000644 00000002661 14721515320 0027100 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessDimensionHeader extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessDimensionHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessDimensionHeader'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse.php 0000644 00000004321 14721515320 0032547 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'measurementProtocolSecrets'; protected $measurementProtocolSecretsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret::class; protected $measurementProtocolSecretsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaMeasurementProtocolSecret[] */ public function setMeasurementProtocolSecrets($measurementProtocolSecrets) { $this->measurementProtocolSecrets = $measurementProtocolSecrets; } /** * @return GoogleAnalyticsAdminV1betaMeasurementProtocolSecret[] */ public function getMeasurementProtocolSecrets() { return $this->measurementProtocolSecrets; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue.php 0000644 00000003266 14721515320 0033533 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue extends \Google\Site_Kit_Dependencies\Google\Model { public $doubleValue; /** * @var string */ public $int64Value; public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; } public function getDoubleValue() { return $this->doubleValue; } /** * @param string */ public function setInt64Value($int64Value) { $this->int64Value = $int64Value; } /** * @return string */ public function getInt64Value() { return $this->int64Value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest.php 0000644 00000004011 14721515320 0030360 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'requests'; /** * @var bool */ public $notifyNewUsers; protected $requestsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCreateUserLinkRequest::class; protected $requestsDataType = 'array'; /** * @param bool */ public function setNotifyNewUsers($notifyNewUsers) { $this->notifyNewUsers = $notifyNewUsers; } /** * @return bool */ public function getNotifyNewUsers() { return $this->notifyNewUsers; } /** * @param GoogleAnalyticsAdminV1alphaCreateUserLinkRequest[] */ public function setRequests($requests) { $this->requests = $requests; } /** * @return GoogleAnalyticsAdminV1alphaCreateUserLinkRequest[] */ public function getRequests() { return $this->requests; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccount.php 0000644 00000005543 14721515320 0024470 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccount extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $createTime; /** * @var bool */ public $deleted; /** * @var string */ public $displayName; /** * @var string */ public $name; /** * @var string */ public $regionCode; /** * @var string */ public $updateTime; /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param bool */ public function setDeleted($deleted) { $this->deleted = $deleted; } /** * @return bool */ public function getDeleted() { return $this->deleted; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setRegionCode($regionCode) { $this->regionCode = $regionCode; } /** * @return string */ public function getRegionCode() { return $this->regionCode; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccount::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccount'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaGoogleAdsLink.php 0000644 00000006610 14721515320 0025400 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaGoogleAdsLink extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $adsPersonalizationEnabled; /** * @var bool */ public $canManageClients; /** * @var string */ public $createTime; /** * @var string */ public $creatorEmailAddress; /** * @var string */ public $customerId; /** * @var string */ public $name; /** * @var string */ public $updateTime; /** * @param bool */ public function setAdsPersonalizationEnabled($adsPersonalizationEnabled) { $this->adsPersonalizationEnabled = $adsPersonalizationEnabled; } /** * @return bool */ public function getAdsPersonalizationEnabled() { return $this->adsPersonalizationEnabled; } /** * @param bool */ public function setCanManageClients($canManageClients) { $this->canManageClients = $canManageClients; } /** * @return bool */ public function getCanManageClients() { return $this->canManageClients; } /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setCreatorEmailAddress($creatorEmailAddress) { $this->creatorEmailAddress = $creatorEmailAddress; } /** * @return string */ public function getCreatorEmailAddress() { return $this->creatorEmailAddress; } /** * @param string */ public function setCustomerId($customerId) { $this->customerId = $customerId; } /** * @return string */ public function getCustomerId() { return $this->customerId; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaGoogleAdsLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaGoogleAdsLink'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessQuota.php 0000644 00000010775 14721515320 0025140 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessQuota extends \Google\Site_Kit_Dependencies\Google\Model { protected $concurrentRequestsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus::class; protected $concurrentRequestsDataType = ''; protected $serverErrorsPerProjectPerHourType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus::class; protected $serverErrorsPerProjectPerHourDataType = ''; protected $tokensPerDayType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus::class; protected $tokensPerDayDataType = ''; protected $tokensPerHourType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus::class; protected $tokensPerHourDataType = ''; protected $tokensPerProjectPerHourType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus::class; protected $tokensPerProjectPerHourDataType = ''; /** * @param GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function setConcurrentRequests(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus $concurrentRequests) { $this->concurrentRequests = $concurrentRequests; } /** * @return GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function getConcurrentRequests() { return $this->concurrentRequests; } /** * @param GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function setServerErrorsPerProjectPerHour(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus $serverErrorsPerProjectPerHour) { $this->serverErrorsPerProjectPerHour = $serverErrorsPerProjectPerHour; } /** * @return GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function getServerErrorsPerProjectPerHour() { return $this->serverErrorsPerProjectPerHour; } /** * @param GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function setTokensPerDay(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus $tokensPerDay) { $this->tokensPerDay = $tokensPerDay; } /** * @return GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function getTokensPerDay() { return $this->tokensPerDay; } /** * @param GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function setTokensPerHour(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus $tokensPerHour) { $this->tokensPerHour = $tokensPerHour; } /** * @return GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function getTokensPerHour() { return $this->tokensPerHour; } /** * @param GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function setTokensPerProjectPerHour(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus $tokensPerProjectPerHour) { $this->tokensPerProjectPerHour = $tokensPerProjectPerHour; } /** * @return GoogleAnalyticsAdminV1betaAccessQuotaStatus */ public function getTokensPerProjectPerHour() { return $this->tokensPerProjectPerHour; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuota::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessQuota'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter.php 0000644 00000004040 14721515320 0031505 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $caseSensitive; /** * @var string */ public $matchType; /** * @var string */ public $value; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setMatchType($matchType) { $this->matchType = $matchType; } /** * @return string */ public function getMatchType() { return $this->matchType; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListPropertiesResponse.php 0000644 00000003736 14721515320 0027433 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListPropertiesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'properties'; /** * @var string */ public $nextPageToken; protected $propertiesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty::class; protected $propertiesDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param GoogleAnalyticsAdminV1betaProperty[] */ public function setProperties($properties) { $this->properties = $properties; } /** * @return GoogleAnalyticsAdminV1betaProperty[] */ public function getProperties() { return $this->properties; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListPropertiesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListPropertiesResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse.php 0000644 00000004164 14721515320 0031614 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'changeHistoryEvents'; protected $changeHistoryEventsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaChangeHistoryEvent::class; protected $changeHistoryEventsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaChangeHistoryEvent[] */ public function setChangeHistoryEvents($changeHistoryEvents) { $this->changeHistoryEvents = $changeHistoryEvents; } /** * @return GoogleAnalyticsAdminV1alphaChangeHistoryEvent[] */ public function getChangeHistoryEvents() { return $this->changeHistoryEvents; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessMetricValue.php 0000644 00000002560 14721515320 0026432 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessMetricValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $value; /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessMetricValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessMetricValue'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListDataStreamsResponse.php 0000644 00000003760 14721515320 0027504 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListDataStreamsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'dataStreams'; protected $dataStreamsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream::class; protected $dataStreamsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaDataStream[] */ public function setDataStreams($dataStreams) { $this->dataStreams = $dataStreams; } /** * @return GoogleAnalyticsAdminV1betaDataStream[] */ public function getDataStreams() { return $this->dataStreams; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListDataStreamsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListDataStreamsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaChangeHistoryChange.php 0000644 00000006361 14721515320 0026750 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaChangeHistoryChange extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $action; /** * @var string */ public $resource; protected $resourceAfterChangeType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource::class; protected $resourceAfterChangeDataType = ''; protected $resourceBeforeChangeType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource::class; protected $resourceBeforeChangeDataType = ''; /** * @param string */ public function setAction($action) { $this->action = $action; } /** * @return string */ public function getAction() { return $this->action; } /** * @param string */ public function setResource($resource) { $this->resource = $resource; } /** * @return string */ public function getResource() { return $this->resource; } /** * @param GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource */ public function setResourceAfterChange(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource $resourceAfterChange) { $this->resourceAfterChange = $resourceAfterChange; } /** * @return GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource */ public function getResourceAfterChange() { return $this->resourceAfterChange; } /** * @param GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource */ public function setResourceBeforeChange(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource $resourceBeforeChange) { $this->resourceBeforeChange = $resourceBeforeChange; } /** * @return GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource */ public function getResourceBeforeChange() { return $this->resourceBeforeChange; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaChangeHistoryChange::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaChangeHistoryChange'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDimension.php 0000644 00000002642 14721515320 0026140 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessDimension extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessDimension::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessDimension'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessMetricValue.php 0000644 00000002555 14721515320 0026264 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessMetricValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $value; /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessMetricValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessMetricValue'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaGoogleAdsLink.php 0000644 00000006613 14721515320 0025555 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaGoogleAdsLink extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $adsPersonalizationEnabled; /** * @var bool */ public $canManageClients; /** * @var string */ public $createTime; /** * @var string */ public $creatorEmailAddress; /** * @var string */ public $customerId; /** * @var string */ public $name; /** * @var string */ public $updateTime; /** * @param bool */ public function setAdsPersonalizationEnabled($adsPersonalizationEnabled) { $this->adsPersonalizationEnabled = $adsPersonalizationEnabled; } /** * @return bool */ public function getAdsPersonalizationEnabled() { return $this->adsPersonalizationEnabled; } /** * @param bool */ public function setCanManageClients($canManageClients) { $this->canManageClients = $canManageClients; } /** * @return bool */ public function getCanManageClients() { return $this->canManageClients; } /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setCreatorEmailAddress($creatorEmailAddress) { $this->creatorEmailAddress = $creatorEmailAddress; } /** * @return string */ public function getCreatorEmailAddress() { return $this->creatorEmailAddress; } /** * @param string */ public function setCustomerId($customerId) { $this->customerId = $customerId; } /** * @return string */ public function getCustomerId() { return $this->customerId; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaGoogleAdsLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaGoogleAdsLink'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaUserLink.php 0000644 00000004025 14721515320 0024622 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaUserLink extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'directRoles'; /** * @var string[] */ public $directRoles; /** * @var string */ public $emailAddress; /** * @var string */ public $name; /** * @param string[] */ public function setDirectRoles($directRoles) { $this->directRoles = $directRoles; } /** * @return string[] */ public function getDirectRoles() { return $this->directRoles; } /** * @param string */ public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } /** * @return string */ public function getEmailAddress() { return $this->emailAddress; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaUserLink'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilter.php 0000644 00000005456 14721515320 0027243 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaExpandedDataSetFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $fieldName; protected $inListFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter::class; protected $inListFilterDataType = ''; protected $stringFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter::class; protected $stringFilterDataType = ''; /** * @param string */ public function setFieldName($fieldName) { $this->fieldName = $fieldName; } /** * @return string */ public function getFieldName() { return $this->fieldName; } /** * @param GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter */ public function setInListFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter $inListFilter) { $this->inListFilter = $inListFilter; } /** * @return GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter */ public function getInListFilter() { return $this->inListFilter; } /** * @param GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter */ public function setStringFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter $stringFilter) { $this->stringFilter = $stringFilter; } /** * @return GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter */ public function getStringFilter() { return $this->stringFilter; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaExpandedDataSetFilter'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest.php 0000644 00000003267 14721515320 0030413 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'requests'; protected $requestsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest::class; protected $requestsDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest[] */ public function setRequests($requests) { $this->requests = $requests; } /** * @return GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest[] */ public function getRequests() { return $this->requests; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest.php 0000644 00000002170 14721515320 0030627 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccountSummary.php 0000644 00000005113 14721515320 0026037 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccountSummary extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'propertySummaries'; /** * @var string */ public $account; /** * @var string */ public $displayName; /** * @var string */ public $name; protected $propertySummariesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaPropertySummary::class; protected $propertySummariesDataType = 'array'; /** * @param string */ public function setAccount($account) { $this->account = $account; } /** * @return string */ public function getAccount() { return $this->account; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param GoogleAnalyticsAdminV1alphaPropertySummary[] */ public function setPropertySummaries($propertySummaries) { $this->propertySummaries = $propertySummaries; } /** * @return GoogleAnalyticsAdminV1alphaPropertySummary[] */ public function getPropertySummaries() { return $this->propertySummaries; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccountSummary::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccountSummary'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaChangeHistoryEvent.php 0000644 00000006263 14721515320 0026645 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaChangeHistoryEvent extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'changes'; /** * @var string */ public $actorType; /** * @var string */ public $changeTime; protected $changesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaChangeHistoryChange::class; protected $changesDataType = 'array'; /** * @var bool */ public $changesFiltered; /** * @var string */ public $id; /** * @var string */ public $userActorEmail; /** * @param string */ public function setActorType($actorType) { $this->actorType = $actorType; } /** * @return string */ public function getActorType() { return $this->actorType; } /** * @param string */ public function setChangeTime($changeTime) { $this->changeTime = $changeTime; } /** * @return string */ public function getChangeTime() { return $this->changeTime; } /** * @param GoogleAnalyticsAdminV1alphaChangeHistoryChange[] */ public function setChanges($changes) { $this->changes = $changes; } /** * @return GoogleAnalyticsAdminV1alphaChangeHistoryChange[] */ public function getChanges() { return $this->changes; } /** * @param bool */ public function setChangesFiltered($changesFiltered) { $this->changesFiltered = $changesFiltered; } /** * @return bool */ public function getChangesFiltered() { return $this->changesFiltered; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setUserActorEmail($userActorEmail) { $this->userActorEmail = $userActorEmail; } /** * @return string */ public function getUserActorEmail() { return $this->userActorEmail; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaChangeHistoryEvent::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaChangeHistoryEvent'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStream.php 0000644 00000011213 14721515320 0024736 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaDataStream extends \Google\Site_Kit_Dependencies\Google\Model { protected $androidAppStreamDataType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData::class; protected $androidAppStreamDataDataType = ''; /** * @var string */ public $createTime; /** * @var string */ public $displayName; protected $iosAppStreamDataType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData::class; protected $iosAppStreamDataDataType = ''; /** * @var string */ public $name; /** * @var string */ public $type; /** * @var string */ public $updateTime; protected $webStreamDataType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStreamWebStreamData::class; protected $webStreamDataDataType = ''; /** * @param GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData */ public function setAndroidAppStreamData(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData $androidAppStreamData) { $this->androidAppStreamData = $androidAppStreamData; } /** * @return GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData */ public function getAndroidAppStreamData() { return $this->androidAppStreamData; } /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData */ public function setIosAppStreamData(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData $iosAppStreamData) { $this->iosAppStreamData = $iosAppStreamData; } /** * @return GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData */ public function getIosAppStreamData() { return $this->iosAppStreamData; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } /** * @param GoogleAnalyticsAdminV1betaDataStreamWebStreamData */ public function setWebStreamData(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStreamWebStreamData $webStreamData) { $this->webStreamData = $webStreamData; } /** * @return GoogleAnalyticsAdminV1betaDataStreamWebStreamData */ public function getWebStreamData() { return $this->webStreamData; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaDataStream'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaNumericValue.php 0000644 00000003131 14721515320 0025462 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaNumericValue extends \Google\Site_Kit_Dependencies\Google\Model { public $doubleValue; /** * @var string */ public $int64Value; public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; } public function getDoubleValue() { return $this->doubleValue; } /** * @param string */ public function setInt64Value($int64Value) { $this->int64Value = $int64Value; } /** * @return string */ public function getInt64Value() { return $this->int64Value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaNumericValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaNumericValue'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaNumericValue.php 0000644 00000003126 14721515320 0025314 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaNumericValue extends \Google\Site_Kit_Dependencies\Google\Model { public $doubleValue; /** * @var string */ public $int64Value; public function setDoubleValue($doubleValue) { $this->doubleValue = $doubleValue; } public function getDoubleValue() { return $this->doubleValue; } /** * @param string */ public function setInt64Value($int64Value) { $this->int64Value = $int64Value; } /** * @return string */ public function getInt64Value() { return $this->int64Value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaNumericValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaNumericValue'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSet.php 0000644 00000007606 14721515320 0026074 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaExpandedDataSet extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'metricNames'; /** * @var string */ public $dataCollectionStartTime; /** * @var string */ public $description; protected $dimensionFilterExpressionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression::class; protected $dimensionFilterExpressionDataType = ''; /** * @var string[] */ public $dimensionNames; /** * @var string */ public $displayName; /** * @var string[] */ public $metricNames; /** * @var string */ public $name; /** * @param string */ public function setDataCollectionStartTime($dataCollectionStartTime) { $this->dataCollectionStartTime = $dataCollectionStartTime; } /** * @return string */ public function getDataCollectionStartTime() { return $this->dataCollectionStartTime; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression */ public function setDimensionFilterExpression(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression $dimensionFilterExpression) { $this->dimensionFilterExpression = $dimensionFilterExpression; } /** * @return GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression */ public function getDimensionFilterExpression() { return $this->dimensionFilterExpression; } /** * @param string[] */ public function setDimensionNames($dimensionNames) { $this->dimensionNames = $dimensionNames; } /** * @return string[] */ public function getDimensionNames() { return $this->dimensionNames; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string[] */ public function setMetricNames($metricNames) { $this->metricNames = $metricNames; } /** * @return string[] */ public function getMetricNames() { return $this->metricNames; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSet::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaExpandedDataSet'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse.php 0000644 00000004327 14721515320 0032727 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'measurementProtocolSecrets'; protected $measurementProtocolSecretsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class; protected $measurementProtocolSecretsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret[] */ public function setMeasurementProtocolSecrets($measurementProtocolSecrets) { $this->measurementProtocolSecrets = $measurementProtocolSecrets; } /** * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret[] */ public function getMeasurementProtocolSecrets() { return $this->measurementProtocolSecrets; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy.php0000644 00000002653 14721515320 0030044 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $metricName; /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaConversionEvent.php 0000644 00000005035 14721515320 0026217 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaConversionEvent extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $createTime; /** * @var bool */ public $custom; /** * @var bool */ public $deletable; /** * @var string */ public $eventName; /** * @var string */ public $name; /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param bool */ public function setCustom($custom) { $this->custom = $custom; } /** * @return bool */ public function getCustom() { return $this->custom; } /** * @param bool */ public function setDeletable($deletable) { $this->deletable = $deletable; } /** * @return bool */ public function getDeletable() { return $this->deletable; } /** * @param string */ public function setEventName($eventName) { $this->eventName = $eventName; } /** * @return string */ public function getEventName() { return $this->eventName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaConversionEvent::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaConversionEvent'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest.php 0000644 00000007320 14721515320 0031271 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'resourceType'; /** * @var string[] */ public $action; /** * @var string[] */ public $actorEmail; /** * @var string */ public $earliestChangeTime; /** * @var string */ public $latestChangeTime; /** * @var int */ public $pageSize; /** * @var string */ public $pageToken; /** * @var string */ public $property; /** * @var string[] */ public $resourceType; /** * @param string[] */ public function setAction($action) { $this->action = $action; } /** * @return string[] */ public function getAction() { return $this->action; } /** * @param string[] */ public function setActorEmail($actorEmail) { $this->actorEmail = $actorEmail; } /** * @return string[] */ public function getActorEmail() { return $this->actorEmail; } /** * @param string */ public function setEarliestChangeTime($earliestChangeTime) { $this->earliestChangeTime = $earliestChangeTime; } /** * @return string */ public function getEarliestChangeTime() { return $this->earliestChangeTime; } /** * @param string */ public function setLatestChangeTime($latestChangeTime) { $this->latestChangeTime = $latestChangeTime; } /** * @return string */ public function getLatestChangeTime() { return $this->latestChangeTime; } /** * @param int */ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } /** * @return int */ public function getPageSize() { return $this->pageSize; } /** * @param string */ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } /** * @return string */ public function getPageToken() { return $this->pageToken; } /** * @param string */ public function setProperty($property) { $this->property = $property; } /** * @return string */ public function getProperty() { return $this->property; } /** * @param string[] */ public function setResourceType($resourceType) { $this->resourceType = $resourceType; } /** * @return string[] */ public function getResourceType() { return $this->resourceType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse.php 0000644 00000003234 14721515320 0030534 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'userLinks'; protected $userLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class; protected $userLinksDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaUserLink[] */ public function setUserLinks($userLinks) { $this->userLinks = $userLinks; } /** * @return GoogleAnalyticsAdminV1alphaUserLink[] */ public function getUserLinks() { return $this->userLinks; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAuditUserLinksRequest.php 0000644 00000003275 14721515320 0027353 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAuditUserLinksRequest extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $pageSize; /** * @var string */ public $pageToken; /** * @param int */ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } /** * @return int */ public function getPageSize() { return $this->pageSize; } /** * @param string */ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } /** * @return string */ public function getPageToken() { return $this->pageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAuditUserLinksRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListPropertiesResponse.php 0000644 00000003744 14721515320 0027604 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListPropertiesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'properties'; /** * @var string */ public $nextPageToken; protected $propertiesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaProperty::class; protected $propertiesDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param GoogleAnalyticsAdminV1alphaProperty[] */ public function setProperties($properties) { $this->properties = $properties; } /** * @return GoogleAnalyticsAdminV1alphaProperty[] */ public function getProperties() { return $this->properties; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListPropertiesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListPropertiesResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter.php 0000644 00000012120 14721515320 0031200 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $atAnyPointInTime; protected $betweenFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter::class; protected $betweenFilterDataType = ''; /** * @var string */ public $fieldName; /** * @var int */ public $inAnyNDayPeriod; protected $inListFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter::class; protected $inListFilterDataType = ''; protected $numericFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter::class; protected $numericFilterDataType = ''; protected $stringFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter::class; protected $stringFilterDataType = ''; /** * @param bool */ public function setAtAnyPointInTime($atAnyPointInTime) { $this->atAnyPointInTime = $atAnyPointInTime; } /** * @return bool */ public function getAtAnyPointInTime() { return $this->atAnyPointInTime; } /** * @param GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter */ public function setBetweenFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter $betweenFilter) { $this->betweenFilter = $betweenFilter; } /** * @return GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter */ public function getBetweenFilter() { return $this->betweenFilter; } /** * @param string */ public function setFieldName($fieldName) { $this->fieldName = $fieldName; } /** * @return string */ public function getFieldName() { return $this->fieldName; } /** * @param int */ public function setInAnyNDayPeriod($inAnyNDayPeriod) { $this->inAnyNDayPeriod = $inAnyNDayPeriod; } /** * @return int */ public function getInAnyNDayPeriod() { return $this->inAnyNDayPeriod; } /** * @param GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter */ public function setInListFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter $inListFilter) { $this->inListFilter = $inListFilter; } /** * @return GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter */ public function getInListFilter() { return $this->inListFilter; } /** * @param GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter */ public function setNumericFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter $numericFilter) { $this->numericFilter = $numericFilter; } /** * @return GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter */ public function getNumericFilter() { return $this->numericFilter; } /** * @param GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter */ public function setStringFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter $stringFilter) { $this->stringFilter = $stringFilter; } /** * @return GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter */ public function getStringFilter() { return $this->stringFilter; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest.php 0000644 00000002757 14721515320 0032262 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $acknowledgement; /** * @param string */ public function setAcknowledgement($acknowledgement) { $this->acknowledgement = $acknowledgement; } /** * @return string */ public function getAcknowledgement() { return $this->acknowledgement; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListUserLinksResponse.php 0000644 00000003730 14721515320 0027362 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListUserLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'userLinks'; /** * @var string */ public $nextPageToken; protected $userLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class; protected $userLinksDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param GoogleAnalyticsAdminV1alphaUserLink[] */ public function setUserLinks($userLinks) { $this->userLinks = $userLinks; } /** * @return GoogleAnalyticsAdminV1alphaUserLink[] */ public function getUserLinks() { return $this->userLinks; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListUserLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListUserLinksResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaKeyEventDefaultValue.php 0000644 00000003203 14721515320 0026745 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaKeyEventDefaultValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $currencyCode; public $numericValue; /** * @param string */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } /** * @return string */ public function getCurrencyCode() { return $this->currencyCode; } public function setNumericValue($numericValue) { $this->numericValue = $numericValue; } public function getNumericValue() { return $this->numericValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEventDefaultValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaKeyEventDefaultValue'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessMetricHeader.php 0000644 00000002626 14721515320 0026551 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessMetricHeader extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $metricName; /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessMetricHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessMetricHeader'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessRow.php 0000644 00000004326 14721515320 0024611 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessRow extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'metricValues'; protected $dimensionValuesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessDimensionValue::class; protected $dimensionValuesDataType = 'array'; protected $metricValuesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessMetricValue::class; protected $metricValuesDataType = 'array'; /** * @param GoogleAnalyticsAdminV1betaAccessDimensionValue[] */ public function setDimensionValues($dimensionValues) { $this->dimensionValues = $dimensionValues; } /** * @return GoogleAnalyticsAdminV1betaAccessDimensionValue[] */ public function getDimensionValues() { return $this->dimensionValues; } /** * @param GoogleAnalyticsAdminV1betaAccessMetricValue[] */ public function setMetricValues($metricValues) { $this->metricValues = $metricValues; } /** * @return GoogleAnalyticsAdminV1betaAccessMetricValue[] */ public function getMetricValues() { return $this->metricValues; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessRow::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessRow'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaCreateUserLinkRequest.php 0000644 00000004425 14721515320 0027323 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaCreateUserLinkRequest extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $notifyNewUser; /** * @var string */ public $parent; protected $userLinkType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class; protected $userLinkDataType = ''; /** * @param bool */ public function setNotifyNewUser($notifyNewUser) { $this->notifyNewUser = $notifyNewUser; } /** * @return bool */ public function getNotifyNewUser() { return $this->notifyNewUser; } /** * @param string */ public function setParent($parent) { $this->parent = $parent; } /** * @return string */ public function getParent() { return $this->parent; } /** * @param GoogleAnalyticsAdminV1alphaUserLink */ public function setUserLink(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink $userLink) { $this->userLink = $userLink; } /** * @return GoogleAnalyticsAdminV1alphaUserLink */ public function getUserLink() { return $this->userLink; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCreateUserLinkRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaCreateUserLinkRequest'); GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse.php 0000644 00000004613 14721515320 0034764 0 ustar 00 apiclient-services/src/GoogleAnalyticsAdmin <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'displayVideo360AdvertiserLinkProposals'; protected $displayVideo360AdvertiserLinkProposalsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal::class; protected $displayVideo360AdvertiserLinkProposalsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal[] */ public function setDisplayVideo360AdvertiserLinkProposals($displayVideo360AdvertiserLinkProposals) { $this->displayVideo360AdvertiserLinkProposals = $displayVideo360AdvertiserLinkProposals; } /** * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal[] */ public function getDisplayVideo360AdvertiserLinkProposals() { return $this->displayVideo360AdvertiserLinkProposals; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListCustomMetricsResponse.php 0000644 00000004016 14721515320 0030070 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListCustomMetricsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'customMetrics'; protected $customMetricsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomMetric::class; protected $customMetricsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaCustomMetric[] */ public function setCustomMetrics($customMetrics) { $this->customMetrics = $customMetrics; } /** * @return GoogleAnalyticsAdminV1betaCustomMetric[] */ public function getCustomMetrics() { return $this->customMetrics; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListCustomMetricsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListCustomMetricsResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy.php 0000644 00000003376 14721515320 0030472 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @var string */ public $orderType; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } /** * @param string */ public function setOrderType($orderType) { $this->orderType = $orderType; } /** * @return string */ public function getOrderType() { return $this->orderType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDimensionHeader.php 0000644 00000002664 14721515320 0027255 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessDimensionHeader extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessDimensionHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessDimensionHeader'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse.php 0000644 00000003234 14721515320 0030553 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'userLinks'; protected $userLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class; protected $userLinksDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaUserLink[] */ public function setUserLinks($userLinks) { $this->userLinks = $userLinks; } /** * @return GoogleAnalyticsAdminV1alphaUserLink[] */ public function getUserLinks() { return $this->userLinks; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaArchiveAudienceRequest.php 0000644 00000002146 14721515320 0027460 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaArchiveAudienceRequest extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaArchiveAudienceRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaArchiveAudienceRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessQuotaStatus.php 0000644 00000003250 14721515320 0026504 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessQuotaStatus extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $consumed; /** * @var int */ public $remaining; /** * @param int */ public function setConsumed($consumed) { $this->consumed = $consumed; } /** * @return int */ public function getConsumed() { return $this->consumed; } /** * @param int */ public function setRemaining($remaining) { $this->remaining = $remaining; } /** * @return int */ public function getRemaining() { return $this->remaining; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessQuotaStatus'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaChangeHistoryEvent.php 0000644 00000006255 14721515320 0026474 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaChangeHistoryEvent extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'changes'; /** * @var string */ public $actorType; /** * @var string */ public $changeTime; protected $changesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaChangeHistoryChange::class; protected $changesDataType = 'array'; /** * @var bool */ public $changesFiltered; /** * @var string */ public $id; /** * @var string */ public $userActorEmail; /** * @param string */ public function setActorType($actorType) { $this->actorType = $actorType; } /** * @return string */ public function getActorType() { return $this->actorType; } /** * @param string */ public function setChangeTime($changeTime) { $this->changeTime = $changeTime; } /** * @return string */ public function getChangeTime() { return $this->changeTime; } /** * @param GoogleAnalyticsAdminV1betaChangeHistoryChange[] */ public function setChanges($changes) { $this->changes = $changes; } /** * @return GoogleAnalyticsAdminV1betaChangeHistoryChange[] */ public function getChanges() { return $this->changes; } /** * @param bool */ public function setChangesFiltered($changesFiltered) { $this->changesFiltered = $changesFiltered; } /** * @return bool */ public function getChangesFiltered() { return $this->changesFiltered; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setUserActorEmail($userActorEmail) { $this->userActorEmail = $userActorEmail; } /** * @return string */ public function getUserActorEmail() { return $this->userActorEmail; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaChangeHistoryEvent::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaChangeHistoryEvent'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal.php 0000644 00000010671 14721515320 0032227 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $adsPersonalizationEnabled; /** * @var string */ public $advertiserDisplayName; /** * @var string */ public $advertiserId; /** * @var bool */ public $campaignDataSharingEnabled; /** * @var bool */ public $costDataSharingEnabled; protected $linkProposalStatusDetailsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails::class; protected $linkProposalStatusDetailsDataType = ''; /** * @var string */ public $name; /** * @var string */ public $validationEmail; /** * @param bool */ public function setAdsPersonalizationEnabled($adsPersonalizationEnabled) { $this->adsPersonalizationEnabled = $adsPersonalizationEnabled; } /** * @return bool */ public function getAdsPersonalizationEnabled() { return $this->adsPersonalizationEnabled; } /** * @param string */ public function setAdvertiserDisplayName($advertiserDisplayName) { $this->advertiserDisplayName = $advertiserDisplayName; } /** * @return string */ public function getAdvertiserDisplayName() { return $this->advertiserDisplayName; } /** * @param string */ public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; } /** * @return string */ public function getAdvertiserId() { return $this->advertiserId; } /** * @param bool */ public function setCampaignDataSharingEnabled($campaignDataSharingEnabled) { $this->campaignDataSharingEnabled = $campaignDataSharingEnabled; } /** * @return bool */ public function getCampaignDataSharingEnabled() { return $this->campaignDataSharingEnabled; } /** * @param bool */ public function setCostDataSharingEnabled($costDataSharingEnabled) { $this->costDataSharingEnabled = $costDataSharingEnabled; } /** * @return bool */ public function getCostDataSharingEnabled() { return $this->costDataSharingEnabled; } /** * @param GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails */ public function setLinkProposalStatusDetails(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails $linkProposalStatusDetails) { $this->linkProposalStatusDetails = $linkProposalStatusDetails; } /** * @return GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails */ public function getLinkProposalStatusDetails() { return $this->linkProposalStatusDetails; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setValidationEmail($validationEmail) { $this->validationEmail = $validationEmail; } /** * @return string */ public function getValidationEmail() { return $this->validationEmail; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataSharingSettings.php 0000644 00000007143 14721515320 0027000 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaDataSharingSettings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @var bool */ public $sharingWithGoogleAnySalesEnabled; /** * @var bool */ public $sharingWithGoogleAssignedSalesEnabled; /** * @var bool */ public $sharingWithGoogleProductsEnabled; /** * @var bool */ public $sharingWithGoogleSupportEnabled; /** * @var bool */ public $sharingWithOthersEnabled; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param bool */ public function setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled) { $this->sharingWithGoogleAnySalesEnabled = $sharingWithGoogleAnySalesEnabled; } /** * @return bool */ public function getSharingWithGoogleAnySalesEnabled() { return $this->sharingWithGoogleAnySalesEnabled; } /** * @param bool */ public function setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled) { $this->sharingWithGoogleAssignedSalesEnabled = $sharingWithGoogleAssignedSalesEnabled; } /** * @return bool */ public function getSharingWithGoogleAssignedSalesEnabled() { return $this->sharingWithGoogleAssignedSalesEnabled; } /** * @param bool */ public function setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled) { $this->sharingWithGoogleProductsEnabled = $sharingWithGoogleProductsEnabled; } /** * @return bool */ public function getSharingWithGoogleProductsEnabled() { return $this->sharingWithGoogleProductsEnabled; } /** * @param bool */ public function setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled) { $this->sharingWithGoogleSupportEnabled = $sharingWithGoogleSupportEnabled; } /** * @return bool */ public function getSharingWithGoogleSupportEnabled() { return $this->sharingWithGoogleSupportEnabled; } /** * @param bool */ public function setSharingWithOthersEnabled($sharingWithOthersEnabled) { $this->sharingWithOthersEnabled = $sharingWithOthersEnabled; } /** * @return bool */ public function getSharingWithOthersEnabled() { return $this->sharingWithOthersEnabled; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataSharingSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaDataSharingSettings'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse.php 0000644 00000002732 14721515320 0031030 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountTicketId; /** * @param string */ public function setAccountTicketId($accountTicketId) { $this->accountTicketId = $accountTicketId; } /** * @return string */ public function getAccountTicketId() { return $this->accountTicketId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings.php 0000644 00000010077 14721515320 0030447 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings extends \Google\Site_Kit_Dependencies\Google\Model { public $fileDownloadsEnabled; public $name; public $outboundClicksEnabled; public $pageChangesEnabled; public $pageLoadsEnabled; public $pageViewsEnabled; public $scrollsEnabled; public $searchQueryParameter; public $siteSearchEnabled; public $streamEnabled; public $uriQueryParameter; public $videoEngagementEnabled; public function setFileDownloadsEnabled($fileDownloadsEnabled) { $this->fileDownloadsEnabled = $fileDownloadsEnabled; } public function getFileDownloadsEnabled() { return $this->fileDownloadsEnabled; } public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } public function setOutboundClicksEnabled($outboundClicksEnabled) { $this->outboundClicksEnabled = $outboundClicksEnabled; } public function getOutboundClicksEnabled() { return $this->outboundClicksEnabled; } public function setPageChangesEnabled($pageChangesEnabled) { $this->pageChangesEnabled = $pageChangesEnabled; } public function getPageChangesEnabled() { return $this->pageChangesEnabled; } public function setPageLoadsEnabled($pageLoadsEnabled) { $this->pageLoadsEnabled = $pageLoadsEnabled; } public function getPageLoadsEnabled() { return $this->pageLoadsEnabled; } public function setPageViewsEnabled($pageViewsEnabled) { $this->pageViewsEnabled = $pageViewsEnabled; } public function getPageViewsEnabled() { return $this->pageViewsEnabled; } public function setScrollsEnabled($scrollsEnabled) { $this->scrollsEnabled = $scrollsEnabled; } public function getScrollsEnabled() { return $this->scrollsEnabled; } public function setSearchQueryParameter($searchQueryParameter) { $this->searchQueryParameter = $searchQueryParameter; } public function getSearchQueryParameter() { return $this->searchQueryParameter; } public function setSiteSearchEnabled($siteSearchEnabled) { $this->siteSearchEnabled = $siteSearchEnabled; } public function getSiteSearchEnabled() { return $this->siteSearchEnabled; } public function setStreamEnabled($streamEnabled) { $this->streamEnabled = $streamEnabled; } public function getStreamEnabled() { return $this->streamEnabled; } public function setUriQueryParameter($uriQueryParameter) { $this->uriQueryParameter = $uriQueryParameter; } public function getUriQueryParameter() { return $this->uriQueryParameter; } public function setVideoEngagementEnabled($videoEngagementEnabled) { $this->videoEngagementEnabled = $videoEngagementEnabled; } public function getVideoEngagementEnabled() { return $this->videoEngagementEnabled; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource.php 0000644 00000027760 14721515320 0033077 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource extends \Google\Site_Kit_Dependencies\Google\Model { protected $accountType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccount::class; protected $accountDataType = ''; protected $attributionSettingsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAttributionSettings::class; protected $attributionSettingsDataType = ''; protected $conversionEventType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaConversionEvent::class; protected $conversionEventDataType = ''; protected $customDimensionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCustomDimension::class; protected $customDimensionDataType = ''; protected $customMetricType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCustomMetric::class; protected $customMetricDataType = ''; protected $dataRetentionSettingsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataRetentionSettings::class; protected $dataRetentionSettingsDataType = ''; protected $dataStreamType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStream::class; protected $dataStreamDataType = ''; protected $displayVideo360AdvertiserLinkType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink::class; protected $displayVideo360AdvertiserLinkDataType = ''; protected $displayVideo360AdvertiserLinkProposalType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal::class; protected $displayVideo360AdvertiserLinkProposalDataType = ''; protected $expandedDataSetType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSet::class; protected $expandedDataSetDataType = ''; protected $firebaseLinkType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaFirebaseLink::class; protected $firebaseLinkDataType = ''; protected $googleAdsLinkType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaGoogleAdsLink::class; protected $googleAdsLinkDataType = ''; protected $googleSignalsSettingsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::class; protected $googleSignalsSettingsDataType = ''; protected $measurementProtocolSecretType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class; protected $measurementProtocolSecretDataType = ''; protected $propertyType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaProperty::class; protected $propertyDataType = ''; protected $searchAds360LinkType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link::class; protected $searchAds360LinkDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaAccount */ public function setAccount(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccount $account) { $this->account = $account; } /** * @return GoogleAnalyticsAdminV1alphaAccount */ public function getAccount() { return $this->account; } /** * @param GoogleAnalyticsAdminV1alphaAttributionSettings */ public function setAttributionSettings(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAttributionSettings $attributionSettings) { $this->attributionSettings = $attributionSettings; } /** * @return GoogleAnalyticsAdminV1alphaAttributionSettings */ public function getAttributionSettings() { return $this->attributionSettings; } /** * @param GoogleAnalyticsAdminV1alphaConversionEvent */ public function setConversionEvent(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaConversionEvent $conversionEvent) { $this->conversionEvent = $conversionEvent; } /** * @return GoogleAnalyticsAdminV1alphaConversionEvent */ public function getConversionEvent() { return $this->conversionEvent; } /** * @param GoogleAnalyticsAdminV1alphaCustomDimension */ public function setCustomDimension(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCustomDimension $customDimension) { $this->customDimension = $customDimension; } /** * @return GoogleAnalyticsAdminV1alphaCustomDimension */ public function getCustomDimension() { return $this->customDimension; } /** * @param GoogleAnalyticsAdminV1alphaCustomMetric */ public function setCustomMetric(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCustomMetric $customMetric) { $this->customMetric = $customMetric; } /** * @return GoogleAnalyticsAdminV1alphaCustomMetric */ public function getCustomMetric() { return $this->customMetric; } /** * @param GoogleAnalyticsAdminV1alphaDataRetentionSettings */ public function setDataRetentionSettings(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataRetentionSettings $dataRetentionSettings) { $this->dataRetentionSettings = $dataRetentionSettings; } /** * @return GoogleAnalyticsAdminV1alphaDataRetentionSettings */ public function getDataRetentionSettings() { return $this->dataRetentionSettings; } /** * @param GoogleAnalyticsAdminV1alphaDataStream */ public function setDataStream(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStream $dataStream) { $this->dataStream = $dataStream; } /** * @return GoogleAnalyticsAdminV1alphaDataStream */ public function getDataStream() { return $this->dataStream; } /** * @param GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink */ public function setDisplayVideo360AdvertiserLink(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink) { $this->displayVideo360AdvertiserLink = $displayVideo360AdvertiserLink; } /** * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink */ public function getDisplayVideo360AdvertiserLink() { return $this->displayVideo360AdvertiserLink; } /** * @param GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal */ public function setDisplayVideo360AdvertiserLinkProposal(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal $displayVideo360AdvertiserLinkProposal) { $this->displayVideo360AdvertiserLinkProposal = $displayVideo360AdvertiserLinkProposal; } /** * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal */ public function getDisplayVideo360AdvertiserLinkProposal() { return $this->displayVideo360AdvertiserLinkProposal; } /** * @param GoogleAnalyticsAdminV1alphaExpandedDataSet */ public function setExpandedDataSet(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSet $expandedDataSet) { $this->expandedDataSet = $expandedDataSet; } /** * @return GoogleAnalyticsAdminV1alphaExpandedDataSet */ public function getExpandedDataSet() { return $this->expandedDataSet; } /** * @param GoogleAnalyticsAdminV1alphaFirebaseLink */ public function setFirebaseLink(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaFirebaseLink $firebaseLink) { $this->firebaseLink = $firebaseLink; } /** * @return GoogleAnalyticsAdminV1alphaFirebaseLink */ public function getFirebaseLink() { return $this->firebaseLink; } /** * @param GoogleAnalyticsAdminV1alphaGoogleAdsLink */ public function setGoogleAdsLink(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaGoogleAdsLink $googleAdsLink) { $this->googleAdsLink = $googleAdsLink; } /** * @return GoogleAnalyticsAdminV1alphaGoogleAdsLink */ public function getGoogleAdsLink() { return $this->googleAdsLink; } /** * @param GoogleAnalyticsAdminV1alphaGoogleSignalsSettings */ public function setGoogleSignalsSettings(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaGoogleSignalsSettings $googleSignalsSettings) { $this->googleSignalsSettings = $googleSignalsSettings; } /** * @return GoogleAnalyticsAdminV1alphaGoogleSignalsSettings */ public function getGoogleSignalsSettings() { return $this->googleSignalsSettings; } /** * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function setMeasurementProtocolSecret(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $measurementProtocolSecret) { $this->measurementProtocolSecret = $measurementProtocolSecret; } /** * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function getMeasurementProtocolSecret() { return $this->measurementProtocolSecret; } /** * @param GoogleAnalyticsAdminV1alphaProperty */ public function setProperty(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaProperty $property) { $this->property = $property; } /** * @return GoogleAnalyticsAdminV1alphaProperty */ public function getProperty() { return $this->property; } /** * @param GoogleAnalyticsAdminV1alphaSearchAds360Link */ public function setSearchAds360Link(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link $searchAds360Link) { $this->searchAds360Link = $searchAds360Link; } /** * @return GoogleAnalyticsAdminV1alphaSearchAds360Link */ public function getSearchAds360Link() { return $this->searchAds360Link; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessFilterExpressionList.php 0000644 00000003322 14721515320 0030271 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessFilterExpressionList extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'expressions'; protected $expressionsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpression::class; protected $expressionsDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaAccessFilterExpression[] */ public function setExpressions($expressions) { $this->expressions = $expressions; } /** * @return GoogleAnalyticsAdminV1alphaAccessFilterExpression[] */ public function getExpressions() { return $this->expressions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpressionList::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessFilterExpressionList'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaWebDataStream.php 0000644 00000006366 14721515320 0025563 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaWebDataStream extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $createTime; /** * @var string */ public $defaultUri; /** * @var string */ public $displayName; /** * @var string */ public $firebaseAppId; /** * @var string */ public $measurementId; /** * @var string */ public $name; /** * @var string */ public $updateTime; /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setDefaultUri($defaultUri) { $this->defaultUri = $defaultUri; } /** * @return string */ public function getDefaultUri() { return $this->defaultUri; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setFirebaseAppId($firebaseAppId) { $this->firebaseAppId = $firebaseAppId; } /** * @return string */ public function getFirebaseAppId() { return $this->firebaseAppId; } /** * @param string */ public function setMeasurementId($measurementId) { $this->measurementId = $measurementId; } /** * @return string */ public function getMeasurementId() { return $this->measurementId; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaWebDataStream::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaWebDataStream'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccountSummary.php 0000644 00000005105 14721515320 0025666 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccountSummary extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'propertySummaries'; /** * @var string */ public $account; /** * @var string */ public $displayName; /** * @var string */ public $name; protected $propertySummariesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaPropertySummary::class; protected $propertySummariesDataType = 'array'; /** * @param string */ public function setAccount($account) { $this->account = $account; } /** * @return string */ public function getAccount() { return $this->account; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param GoogleAnalyticsAdminV1betaPropertySummary[] */ public function setPropertySummaries($propertySummaries) { $this->propertySummaries = $propertySummaries; } /** * @return GoogleAnalyticsAdminV1betaPropertySummary[] */ public function getPropertySummaries() { return $this->propertySummaries; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccountSummary::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccountSummary'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse.php 0000644 00000004214 14721515320 0031534 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'androidAppDataStreams'; protected $androidAppDataStreamsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAndroidAppDataStream::class; protected $androidAppDataStreamsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaAndroidAppDataStream[] */ public function setAndroidAppDataStreams($androidAppDataStreams) { $this->androidAppDataStreams = $androidAppDataStreams; } /** * @return GoogleAnalyticsAdminV1alphaAndroidAppDataStream[] */ public function getAndroidAppDataStreams() { return $this->androidAppDataStreams; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaRunAccessReportResponse.php 0000644 00000007104 14721515320 0027670 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaRunAccessReportResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'rows'; protected $dimensionHeadersType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessDimensionHeader::class; protected $dimensionHeadersDataType = 'array'; protected $metricHeadersType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessMetricHeader::class; protected $metricHeadersDataType = 'array'; protected $quotaType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuota::class; protected $quotaDataType = ''; /** * @var int */ public $rowCount; protected $rowsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessRow::class; protected $rowsDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaAccessDimensionHeader[] */ public function setDimensionHeaders($dimensionHeaders) { $this->dimensionHeaders = $dimensionHeaders; } /** * @return GoogleAnalyticsAdminV1alphaAccessDimensionHeader[] */ public function getDimensionHeaders() { return $this->dimensionHeaders; } /** * @param GoogleAnalyticsAdminV1alphaAccessMetricHeader[] */ public function setMetricHeaders($metricHeaders) { $this->metricHeaders = $metricHeaders; } /** * @return GoogleAnalyticsAdminV1alphaAccessMetricHeader[] */ public function getMetricHeaders() { return $this->metricHeaders; } /** * @param GoogleAnalyticsAdminV1alphaAccessQuota */ public function setQuota(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuota $quota) { $this->quota = $quota; } /** * @return GoogleAnalyticsAdminV1alphaAccessQuota */ public function getQuota() { return $this->quota; } /** * @param int */ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } /** * @return int */ public function getRowCount() { return $this->rowCount; } /** * @param GoogleAnalyticsAdminV1alphaAccessRow[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return GoogleAnalyticsAdminV1alphaAccessRow[] */ public function getRows() { return $this->rows; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaRunAccessReportResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaRunAccessReportResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest.php 0000644 00000003267 14721515320 0030373 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'requests'; protected $requestsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest::class; protected $requestsDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest[] */ public function setRequests($requests) { $this->requests = $requests; } /** * @return GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest[] */ public function getRequests() { return $this->requests; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListConversionEventsResponse.php 0000644 00000004101 14721515320 0030667 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListConversionEventsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'conversionEvents'; protected $conversionEventsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaConversionEvent::class; protected $conversionEventsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaConversionEvent[] */ public function setConversionEvents($conversionEvents) { $this->conversionEvents = $conversionEvents; } /** * @return GoogleAnalyticsAdminV1alphaConversionEvent[] */ public function getConversionEvents() { return $this->conversionEvents; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListConversionEventsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListConversionEventsResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter.php0000644 00000005116 14721515320 0033667 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter extends \Google\Site_Kit_Dependencies\Google\Model { protected $fromValueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue::class; protected $fromValueDataType = ''; protected $toValueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue::class; protected $toValueDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue */ public function setFromValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue $fromValue) { $this->fromValue = $fromValue; } /** * @return GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue */ public function getFromValue() { return $this->fromValue; } /** * @param GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue */ public function setToValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue $toValue) { $this->toValue = $toValue; } /** * @return GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue */ public function getToValue() { return $this->toValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessBetweenFilter.php 0000644 00000004400 14721515320 0026572 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessBetweenFilter extends \Google\Site_Kit_Dependencies\Google\Model { protected $fromValueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaNumericValue::class; protected $fromValueDataType = ''; protected $toValueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaNumericValue::class; protected $toValueDataType = ''; /** * @param GoogleAnalyticsAdminV1betaNumericValue */ public function setFromValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaNumericValue $fromValue) { $this->fromValue = $fromValue; } /** * @return GoogleAnalyticsAdminV1betaNumericValue */ public function getFromValue() { return $this->fromValue; } /** * @param GoogleAnalyticsAdminV1betaNumericValue */ public function setToValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaNumericValue $toValue) { $this->toValue = $toValue; } /** * @return GoogleAnalyticsAdminV1betaNumericValue */ public function getToValue() { return $this->toValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessBetweenFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessBetweenFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataSharingSettings.php 0000644 00000007140 14721515320 0026623 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaDataSharingSettings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @var bool */ public $sharingWithGoogleAnySalesEnabled; /** * @var bool */ public $sharingWithGoogleAssignedSalesEnabled; /** * @var bool */ public $sharingWithGoogleProductsEnabled; /** * @var bool */ public $sharingWithGoogleSupportEnabled; /** * @var bool */ public $sharingWithOthersEnabled; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param bool */ public function setSharingWithGoogleAnySalesEnabled($sharingWithGoogleAnySalesEnabled) { $this->sharingWithGoogleAnySalesEnabled = $sharingWithGoogleAnySalesEnabled; } /** * @return bool */ public function getSharingWithGoogleAnySalesEnabled() { return $this->sharingWithGoogleAnySalesEnabled; } /** * @param bool */ public function setSharingWithGoogleAssignedSalesEnabled($sharingWithGoogleAssignedSalesEnabled) { $this->sharingWithGoogleAssignedSalesEnabled = $sharingWithGoogleAssignedSalesEnabled; } /** * @return bool */ public function getSharingWithGoogleAssignedSalesEnabled() { return $this->sharingWithGoogleAssignedSalesEnabled; } /** * @param bool */ public function setSharingWithGoogleProductsEnabled($sharingWithGoogleProductsEnabled) { $this->sharingWithGoogleProductsEnabled = $sharingWithGoogleProductsEnabled; } /** * @return bool */ public function getSharingWithGoogleProductsEnabled() { return $this->sharingWithGoogleProductsEnabled; } /** * @param bool */ public function setSharingWithGoogleSupportEnabled($sharingWithGoogleSupportEnabled) { $this->sharingWithGoogleSupportEnabled = $sharingWithGoogleSupportEnabled; } /** * @return bool */ public function getSharingWithGoogleSupportEnabled() { return $this->sharingWithGoogleSupportEnabled; } /** * @param bool */ public function setSharingWithOthersEnabled($sharingWithOthersEnabled) { $this->sharingWithOthersEnabled = $sharingWithOthersEnabled; } /** * @return bool */ public function getSharingWithOthersEnabled() { return $this->sharingWithOthersEnabled; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataSharingSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaDataSharingSettings'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessNumericFilter.php 0000644 00000003712 14721515320 0026610 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessNumericFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $operation; protected $valueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaNumericValue::class; protected $valueDataType = ''; /** * @param string */ public function setOperation($operation) { $this->operation = $operation; } /** * @return string */ public function getOperation() { return $this->operation; } /** * @param GoogleAnalyticsAdminV1betaNumericValue */ public function setValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaNumericValue $value) { $this->value = $value; } /** * @return GoogleAnalyticsAdminV1betaNumericValue */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessNumericFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessNumericFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListKeyEventsResponse.php 0000644 00000003722 14721515320 0027207 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListKeyEventsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'keyEvents'; protected $keyEventsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEvent::class; protected $keyEventsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaKeyEvent[] */ public function setKeyEvents($keyEvents) { $this->keyEvents = $keyEvents; } /** * @return GoogleAnalyticsAdminV1betaKeyEvent[] */ public function getKeyEvents() { return $this->keyEvents; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListKeyEventsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListKeyEventsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListCustomMetricsResponse.php0000644 00000004024 14721515320 0030241 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListCustomMetricsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'customMetrics'; protected $customMetricsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCustomMetric::class; protected $customMetricsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaCustomMetric[] */ public function setCustomMetrics($customMetrics) { $this->customMetrics = $customMetrics; } /** * @return GoogleAnalyticsAdminV1alphaCustomMetric[] */ public function getCustomMetrics() { return $this->customMetrics; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListCustomMetricsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListCustomMetricsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaCustomMetric.php 0000644 00000006553 14721515320 0025342 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaCustomMetric extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'restrictedMetricType'; /** * @var string */ public $description; /** * @var string */ public $displayName; /** * @var string */ public $measurementUnit; /** * @var string */ public $name; /** * @var string */ public $parameterName; /** * @var string[] */ public $restrictedMetricType; /** * @var string */ public $scope; /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setMeasurementUnit($measurementUnit) { $this->measurementUnit = $measurementUnit; } /** * @return string */ public function getMeasurementUnit() { return $this->measurementUnit; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setParameterName($parameterName) { $this->parameterName = $parameterName; } /** * @return string */ public function getParameterName() { return $this->parameterName; } /** * @param string[] */ public function setRestrictedMetricType($restrictedMetricType) { $this->restrictedMetricType = $restrictedMetricType; } /** * @return string[] */ public function getRestrictedMetricType() { return $this->restrictedMetricType; } /** * @param string */ public function setScope($scope) { $this->scope = $scope; } /** * @return string */ public function getScope() { return $this->scope; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomMetric::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaCustomMetric'); GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest.php 0000644 00000002272 14721515320 0034704 0 ustar 00 apiclient-services/src/GoogleAnalyticsAdmin <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink.php 0000644 00000006457 14721515320 0030516 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $adsPersonalizationEnabled; /** * @var string */ public $advertiserDisplayName; /** * @var string */ public $advertiserId; /** * @var bool */ public $campaignDataSharingEnabled; /** * @var bool */ public $costDataSharingEnabled; /** * @var string */ public $name; /** * @param bool */ public function setAdsPersonalizationEnabled($adsPersonalizationEnabled) { $this->adsPersonalizationEnabled = $adsPersonalizationEnabled; } /** * @return bool */ public function getAdsPersonalizationEnabled() { return $this->adsPersonalizationEnabled; } /** * @param string */ public function setAdvertiserDisplayName($advertiserDisplayName) { $this->advertiserDisplayName = $advertiserDisplayName; } /** * @return string */ public function getAdvertiserDisplayName() { return $this->advertiserDisplayName; } /** * @param string */ public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; } /** * @return string */ public function getAdvertiserId() { return $this->advertiserId; } /** * @param bool */ public function setCampaignDataSharingEnabled($campaignDataSharingEnabled) { $this->campaignDataSharingEnabled = $campaignDataSharingEnabled; } /** * @return bool */ public function getCampaignDataSharingEnabled() { return $this->campaignDataSharingEnabled; } /** * @param bool */ public function setCostDataSharingEnabled($costDataSharingEnabled) { $this->costDataSharingEnabled = $costDataSharingEnabled; } /** * @return bool */ public function getCostDataSharingEnabled() { return $this->costDataSharingEnabled; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest.php 0000644 00000002173 14721515320 0031004 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails.php0000644 00000004365 14721515320 0030224 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $linkProposalInitiatingProduct; /** * @var string */ public $linkProposalState; /** * @var string */ public $requestorEmail; /** * @param string */ public function setLinkProposalInitiatingProduct($linkProposalInitiatingProduct) { $this->linkProposalInitiatingProduct = $linkProposalInitiatingProduct; } /** * @return string */ public function getLinkProposalInitiatingProduct() { return $this->linkProposalInitiatingProduct; } /** * @param string */ public function setLinkProposalState($linkProposalState) { $this->linkProposalState = $linkProposalState; } /** * @return string */ public function getLinkProposalState() { return $this->linkProposalState; } /** * @param string */ public function setRequestorEmail($requestorEmail) { $this->requestorEmail = $requestorEmail; } /** * @return string */ public function getRequestorEmail() { return $this->requestorEmail; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy.php 0000644 00000003401 14721515320 0030631 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @var string */ public $orderType; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } /** * @param string */ public function setOrderType($orderType) { $this->orderType = $orderType; } /** * @return string */ public function getOrderType() { return $this->orderType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaRunAccessReportRequest.php 0000644 00000013300 14721515320 0027515 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaRunAccessReportRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'orderBys'; protected $dateRangesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessDateRange::class; protected $dateRangesDataType = 'array'; protected $dimensionFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpression::class; protected $dimensionFilterDataType = ''; protected $dimensionsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessDimension::class; protected $dimensionsDataType = 'array'; /** * @var string */ public $limit; protected $metricFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpression::class; protected $metricFilterDataType = ''; protected $metricsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessMetric::class; protected $metricsDataType = 'array'; /** * @var string */ public $offset; protected $orderBysType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessOrderBy::class; protected $orderBysDataType = 'array'; /** * @var bool */ public $returnEntityQuota; /** * @var string */ public $timeZone; /** * @param GoogleAnalyticsAdminV1alphaAccessDateRange[] */ public function setDateRanges($dateRanges) { $this->dateRanges = $dateRanges; } /** * @return GoogleAnalyticsAdminV1alphaAccessDateRange[] */ public function getDateRanges() { return $this->dateRanges; } /** * @param GoogleAnalyticsAdminV1alphaAccessFilterExpression */ public function setDimensionFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpression $dimensionFilter) { $this->dimensionFilter = $dimensionFilter; } /** * @return GoogleAnalyticsAdminV1alphaAccessFilterExpression */ public function getDimensionFilter() { return $this->dimensionFilter; } /** * @param GoogleAnalyticsAdminV1alphaAccessDimension[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return GoogleAnalyticsAdminV1alphaAccessDimension[] */ public function getDimensions() { return $this->dimensions; } /** * @param string */ public function setLimit($limit) { $this->limit = $limit; } /** * @return string */ public function getLimit() { return $this->limit; } /** * @param GoogleAnalyticsAdminV1alphaAccessFilterExpression */ public function setMetricFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpression $metricFilter) { $this->metricFilter = $metricFilter; } /** * @return GoogleAnalyticsAdminV1alphaAccessFilterExpression */ public function getMetricFilter() { return $this->metricFilter; } /** * @param GoogleAnalyticsAdminV1alphaAccessMetric[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return GoogleAnalyticsAdminV1alphaAccessMetric[] */ public function getMetrics() { return $this->metrics; } /** * @param string */ public function setOffset($offset) { $this->offset = $offset; } /** * @return string */ public function getOffset() { return $this->offset; } /** * @param GoogleAnalyticsAdminV1alphaAccessOrderBy[] */ public function setOrderBys($orderBys) { $this->orderBys = $orderBys; } /** * @return GoogleAnalyticsAdminV1alphaAccessOrderBy[] */ public function getOrderBys() { return $this->orderBys; } /** * @param bool */ public function setReturnEntityQuota($returnEntityQuota) { $this->returnEntityQuota = $returnEntityQuota; } /** * @return bool */ public function getReturnEntityQuota() { return $this->returnEntityQuota; } /** * @param string */ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } /** * @return string */ public function getTimeZone() { return $this->timeZone; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaRunAccessReportRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaRunAccessReportRequest'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep.php 0000644 00000005544 14721515320 0033355 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $constraintDuration; protected $filterExpressionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression::class; protected $filterExpressionDataType = ''; /** * @var bool */ public $immediatelyFollows; /** * @var string */ public $scope; /** * @param string */ public function setConstraintDuration($constraintDuration) { $this->constraintDuration = $constraintDuration; } /** * @return string */ public function getConstraintDuration() { return $this->constraintDuration; } /** * @param GoogleAnalyticsAdminV1alphaAudienceFilterExpression */ public function setFilterExpression(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression $filterExpression) { $this->filterExpression = $filterExpression; } /** * @return GoogleAnalyticsAdminV1alphaAudienceFilterExpression */ public function getFilterExpression() { return $this->filterExpression; } /** * @param bool */ public function setImmediatelyFollows($immediatelyFollows) { $this->immediatelyFollows = $immediatelyFollows; } /** * @return bool */ public function getImmediatelyFollows() { return $this->immediatelyFollows; } /** * @param string */ public function setScope($scope) { $this->scope = $scope; } /** * @return string */ public function getScope() { return $this->scope; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter.php 0000644 00000004076 14721515320 0033550 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $caseSensitive; /** * @var string */ public $matchType; /** * @var string */ public $value; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setMatchType($matchType) { $this->matchType = $matchType; } /** * @return string */ public function getMatchType() { return $this->matchType; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDimensionValue.php 0000644 00000002571 14721515320 0027136 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessDimensionValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $value; /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessDimensionValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessDimensionValue'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest.php 0000644 00000003771 14721515320 0031040 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest extends \Google\Site_Kit_Dependencies\Google\Model { protected $accountType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccount::class; protected $accountDataType = ''; /** * @var string */ public $redirectUri; /** * @param GoogleAnalyticsAdminV1alphaAccount */ public function setAccount(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccount $account) { $this->account = $account; } /** * @return GoogleAnalyticsAdminV1alphaAccount */ public function getAccount() { return $this->account; } /** * @param string */ public function setRedirectUri($redirectUri) { $this->redirectUri = $redirectUri; } /** * @return string */ public function getRedirectUri() { return $this->redirectUri; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessMetric.php 0000644 00000002604 14721515320 0025434 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessMetric extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $metricName; /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessMetric::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessMetric'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse.php 0000644 00000004120 14721515320 0030445 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'searchAds360Links'; /** * @var string */ public $nextPageToken; protected $searchAds360LinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link::class; protected $searchAds360LinksDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param GoogleAnalyticsAdminV1alphaSearchAds360Link[] */ public function setSearchAds360Links($searchAds360Links) { $this->searchAds360Links = $searchAds360Links; } /** * @return GoogleAnalyticsAdminV1alphaSearchAds360Link[] */ public function getSearchAds360Links() { return $this->searchAds360Links; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessInListFilter.php 0000644 00000003372 14721515320 0026564 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessInListFilter extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'values'; /** * @var bool */ public $caseSensitive; /** * @var string[] */ public $values; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string[] */ public function setValues($values) { $this->values = $values; } /** * @return string[] */ public function getValues() { return $this->values; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessInListFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessInListFilter'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListAccountSummariesResponse.php 0000644 00000004076 14721515320 0030652 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListAccountSummariesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'accountSummaries'; protected $accountSummariesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccountSummary::class; protected $accountSummariesDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaAccountSummary[] */ public function setAccountSummaries($accountSummaries) { $this->accountSummaries = $accountSummaries; } /** * @return GoogleAnalyticsAdminV1alphaAccountSummary[] */ public function getAccountSummaries() { return $this->accountSummaries; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListAccountSummariesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListAccountSummariesResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessDimension.php 0000644 00000002637 14721515320 0025772 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessDimension extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimensionName; /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessDimension::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessDimension'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource.php 0000644 00000014345 14721515320 0032720 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource extends \Google\Site_Kit_Dependencies\Google\Model { protected $accountType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount::class; protected $accountDataType = ''; protected $conversionEventType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent::class; protected $conversionEventDataType = ''; protected $dataRetentionSettingsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataRetentionSettings::class; protected $dataRetentionSettingsDataType = ''; protected $dataStreamType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream::class; protected $dataStreamDataType = ''; protected $firebaseLinkType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaFirebaseLink::class; protected $firebaseLinkDataType = ''; protected $googleAdsLinkType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaGoogleAdsLink::class; protected $googleAdsLinkDataType = ''; protected $measurementProtocolSecretType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret::class; protected $measurementProtocolSecretDataType = ''; protected $propertyType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty::class; protected $propertyDataType = ''; /** * @param GoogleAnalyticsAdminV1betaAccount */ public function setAccount(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount $account) { $this->account = $account; } /** * @return GoogleAnalyticsAdminV1betaAccount */ public function getAccount() { return $this->account; } /** * @param GoogleAnalyticsAdminV1betaConversionEvent */ public function setConversionEvent(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent $conversionEvent) { $this->conversionEvent = $conversionEvent; } /** * @return GoogleAnalyticsAdminV1betaConversionEvent */ public function getConversionEvent() { return $this->conversionEvent; } /** * @param GoogleAnalyticsAdminV1betaDataRetentionSettings */ public function setDataRetentionSettings(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataRetentionSettings $dataRetentionSettings) { $this->dataRetentionSettings = $dataRetentionSettings; } /** * @return GoogleAnalyticsAdminV1betaDataRetentionSettings */ public function getDataRetentionSettings() { return $this->dataRetentionSettings; } /** * @param GoogleAnalyticsAdminV1betaDataStream */ public function setDataStream(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream $dataStream) { $this->dataStream = $dataStream; } /** * @return GoogleAnalyticsAdminV1betaDataStream */ public function getDataStream() { return $this->dataStream; } /** * @param GoogleAnalyticsAdminV1betaFirebaseLink */ public function setFirebaseLink(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaFirebaseLink $firebaseLink) { $this->firebaseLink = $firebaseLink; } /** * @return GoogleAnalyticsAdminV1betaFirebaseLink */ public function getFirebaseLink() { return $this->firebaseLink; } /** * @param GoogleAnalyticsAdminV1betaGoogleAdsLink */ public function setGoogleAdsLink(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaGoogleAdsLink $googleAdsLink) { $this->googleAdsLink = $googleAdsLink; } /** * @return GoogleAnalyticsAdminV1betaGoogleAdsLink */ public function getGoogleAdsLink() { return $this->googleAdsLink; } /** * @param GoogleAnalyticsAdminV1betaMeasurementProtocolSecret */ public function setMeasurementProtocolSecret(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $measurementProtocolSecret) { $this->measurementProtocolSecret = $measurementProtocolSecret; } /** * @return GoogleAnalyticsAdminV1betaMeasurementProtocolSecret */ public function getMeasurementProtocolSecret() { return $this->measurementProtocolSecret; } /** * @param GoogleAnalyticsAdminV1betaProperty */ public function setProperty(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty $property) { $this->property = $property; } /** * @return GoogleAnalyticsAdminV1betaProperty */ public function getProperty() { return $this->property; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData.php 0000644 00000003417 14721515320 0030576 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $firebaseAppId; /** * @var string */ public $packageName; /** * @param string */ public function setFirebaseAppId($firebaseAppId) { $this->firebaseAppId = $firebaseAppId; } /** * @return string */ public function getFirebaseAppId() { return $this->firebaseAppId; } /** * @param string */ public function setPackageName($packageName) { $this->packageName = $packageName; } /** * @return string */ public function getPackageName() { return $this->packageName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessDimensionValue.php 0000644 00000002566 14721515320 0026770 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessDimensionValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $value; /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessDimensionValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessDimensionValue'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDateRange.php 0000644 00000003255 14721515320 0026046 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessDateRange extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $endDate; /** * @var string */ public $startDate; /** * @param string */ public function setEndDate($endDate) { $this->endDate = $endDate; } /** * @return string */ public function getEndDate() { return $this->endDate; } /** * @param string */ public function setStartDate($startDate) { $this->startDate = $startDate; } /** * @return string */ public function getStartDate() { return $this->startDate; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessDateRange::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessDateRange'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessFilter.php 0000644 00000007721 14721515320 0025443 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessFilter extends \Google\Site_Kit_Dependencies\Google\Model { protected $betweenFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessBetweenFilter::class; protected $betweenFilterDataType = ''; /** * @var string */ public $fieldName; protected $inListFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessInListFilter::class; protected $inListFilterDataType = ''; protected $numericFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessNumericFilter::class; protected $numericFilterDataType = ''; protected $stringFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessStringFilter::class; protected $stringFilterDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaAccessBetweenFilter */ public function setBetweenFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessBetweenFilter $betweenFilter) { $this->betweenFilter = $betweenFilter; } /** * @return GoogleAnalyticsAdminV1alphaAccessBetweenFilter */ public function getBetweenFilter() { return $this->betweenFilter; } /** * @param string */ public function setFieldName($fieldName) { $this->fieldName = $fieldName; } /** * @return string */ public function getFieldName() { return $this->fieldName; } /** * @param GoogleAnalyticsAdminV1alphaAccessInListFilter */ public function setInListFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessInListFilter $inListFilter) { $this->inListFilter = $inListFilter; } /** * @return GoogleAnalyticsAdminV1alphaAccessInListFilter */ public function getInListFilter() { return $this->inListFilter; } /** * @param GoogleAnalyticsAdminV1alphaAccessNumericFilter */ public function setNumericFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessNumericFilter $numericFilter) { $this->numericFilter = $numericFilter; } /** * @return GoogleAnalyticsAdminV1alphaAccessNumericFilter */ public function getNumericFilter() { return $this->numericFilter; } /** * @param GoogleAnalyticsAdminV1alphaAccessStringFilter */ public function setStringFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessStringFilter $stringFilter) { $this->stringFilter = $stringFilter; } /** * @return GoogleAnalyticsAdminV1alphaAccessStringFilter */ public function getStringFilter() { return $this->stringFilter; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessFilter'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListConversionEventsResponse.php 0000644 00000004073 14721515320 0030525 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListConversionEventsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'conversionEvents'; protected $conversionEventsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent::class; protected $conversionEventsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaConversionEvent[] */ public function setConversionEvents($conversionEvents) { $this->conversionEvents = $conversionEvents; } /** * @return GoogleAnalyticsAdminV1betaConversionEvent[] */ public function getConversionEvents() { return $this->conversionEvents; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListConversionEventsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListConversionEventsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.php0000644 00000004007 14721515320 0030243 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $displayName; /** * @var string */ public $name; /** * @var string */ public $secretValue; /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setSecretValue($secretValue) { $this->secretValue = $secretValue; } /** * @return string */ public function getSecretValue() { return $this->secretValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret'); GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse.php 0000644 00000004003 14721515320 0035273 0 ustar 00 apiclient-services/src/GoogleAnalyticsAdmin <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $displayVideo360AdvertiserLinkType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink::class; protected $displayVideo360AdvertiserLinkDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink */ public function setDisplayVideo360AdvertiserLink(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink $displayVideo360AdvertiserLink) { $this->displayVideo360AdvertiserLink = $displayVideo360AdvertiserLink; } /** * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink */ public function getDisplayVideo360AdvertiserLink() { return $this->displayVideo360AdvertiserLink; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessFilterExpression.php 0000644 00000007232 14721515320 0027520 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessFilterExpression extends \Google\Site_Kit_Dependencies\Google\Model { protected $accessFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilter::class; protected $accessFilterDataType = ''; protected $andGroupType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpressionList::class; protected $andGroupDataType = ''; protected $notExpressionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpression::class; protected $notExpressionDataType = ''; protected $orGroupType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpressionList::class; protected $orGroupDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaAccessFilter */ public function setAccessFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilter $accessFilter) { $this->accessFilter = $accessFilter; } /** * @return GoogleAnalyticsAdminV1alphaAccessFilter */ public function getAccessFilter() { return $this->accessFilter; } /** * @param GoogleAnalyticsAdminV1alphaAccessFilterExpressionList */ public function setAndGroup(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpressionList $andGroup) { $this->andGroup = $andGroup; } /** * @return GoogleAnalyticsAdminV1alphaAccessFilterExpressionList */ public function getAndGroup() { return $this->andGroup; } /** * @param GoogleAnalyticsAdminV1alphaAccessFilterExpression */ public function setNotExpression(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpression $notExpression) { $this->notExpression = $notExpression; } /** * @return GoogleAnalyticsAdminV1alphaAccessFilterExpression */ public function getNotExpression() { return $this->notExpression; } /** * @param GoogleAnalyticsAdminV1alphaAccessFilterExpressionList */ public function setOrGroup(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpressionList $orGroup) { $this->orGroup = $orGroup; } /** * @return GoogleAnalyticsAdminV1alphaAccessFilterExpressionList */ public function getOrGroup() { return $this->orGroup; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessFilterExpression::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessFilterExpression'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaSearchAds360Link.php 0000644 00000007231 14721515320 0025774 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaSearchAds360Link extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $adsPersonalizationEnabled; /** * @var string */ public $advertiserDisplayName; /** * @var string */ public $advertiserId; /** * @var bool */ public $campaignDataSharingEnabled; /** * @var bool */ public $costDataSharingEnabled; /** * @var string */ public $name; /** * @var bool */ public $siteStatsSharingEnabled; /** * @param bool */ public function setAdsPersonalizationEnabled($adsPersonalizationEnabled) { $this->adsPersonalizationEnabled = $adsPersonalizationEnabled; } /** * @return bool */ public function getAdsPersonalizationEnabled() { return $this->adsPersonalizationEnabled; } /** * @param string */ public function setAdvertiserDisplayName($advertiserDisplayName) { $this->advertiserDisplayName = $advertiserDisplayName; } /** * @return string */ public function getAdvertiserDisplayName() { return $this->advertiserDisplayName; } /** * @param string */ public function setAdvertiserId($advertiserId) { $this->advertiserId = $advertiserId; } /** * @return string */ public function getAdvertiserId() { return $this->advertiserId; } /** * @param bool */ public function setCampaignDataSharingEnabled($campaignDataSharingEnabled) { $this->campaignDataSharingEnabled = $campaignDataSharingEnabled; } /** * @return bool */ public function getCampaignDataSharingEnabled() { return $this->campaignDataSharingEnabled; } /** * @param bool */ public function setCostDataSharingEnabled($costDataSharingEnabled) { $this->costDataSharingEnabled = $costDataSharingEnabled; } /** * @return bool */ public function getCostDataSharingEnabled() { return $this->costDataSharingEnabled; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param bool */ public function setSiteStatsSharingEnabled($siteStatsSharingEnabled) { $this->siteStatsSharingEnabled = $siteStatsSharingEnabled; } /** * @return bool */ public function getSiteStatsSharingEnabled() { return $this->siteStatsSharingEnabled; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaSearchAds360Link'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceFilterClause.php 0000644 00000005342 14721515320 0027111 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceFilterClause extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $clauseType; protected $sequenceFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceSequenceFilter::class; protected $sequenceFilterDataType = ''; protected $simpleFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceSimpleFilter::class; protected $simpleFilterDataType = ''; /** * @param string */ public function setClauseType($clauseType) { $this->clauseType = $clauseType; } /** * @return string */ public function getClauseType() { return $this->clauseType; } /** * @param GoogleAnalyticsAdminV1alphaAudienceSequenceFilter */ public function setSequenceFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceSequenceFilter $sequenceFilter) { $this->sequenceFilter = $sequenceFilter; } /** * @return GoogleAnalyticsAdminV1alphaAudienceSequenceFilter */ public function getSequenceFilter() { return $this->sequenceFilter; } /** * @param GoogleAnalyticsAdminV1alphaAudienceSimpleFilter */ public function setSimpleFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceSimpleFilter $simpleFilter) { $this->simpleFilter = $simpleFilter; } /** * @return GoogleAnalyticsAdminV1alphaAudienceSimpleFilter */ public function getSimpleFilter() { return $this->simpleFilter; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterClause::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceFilterClause'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListFirebaseLinksResponse.php 0000644 00000004016 14721515320 0030010 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListFirebaseLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'firebaseLinks'; protected $firebaseLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaFirebaseLink::class; protected $firebaseLinksDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaFirebaseLink[] */ public function setFirebaseLinks($firebaseLinks) { $this->firebaseLinks = $firebaseLinks; } /** * @return GoogleAnalyticsAdminV1betaFirebaseLink[] */ public function getFirebaseLinks() { return $this->firebaseLinks; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListFirebaseLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListFirebaseLinksResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue.php 0000644 00000003205 14721515320 0032333 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $currencyCode; public $value; /** * @param string */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } /** * @return string */ public function getCurrencyCode() { return $this->currencyCode; } public function setValue($value) { $this->value = $value; } public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaConversionEventDefaultConversionValue'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceEventFilter.php 0000644 00000004311 14721515320 0026751 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceEventFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $eventName; protected $eventParameterFilterExpressionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression::class; protected $eventParameterFilterExpressionDataType = ''; /** * @param string */ public function setEventName($eventName) { $this->eventName = $eventName; } /** * @return string */ public function getEventName() { return $this->eventName; } /** * @param GoogleAnalyticsAdminV1alphaAudienceFilterExpression */ public function setEventParameterFilterExpression(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression $eventParameterFilterExpression) { $this->eventParameterFilterExpression = $eventParameterFilterExpression; } /** * @return GoogleAnalyticsAdminV1alphaAudienceFilterExpression */ public function getEventParameterFilterExpression() { return $this->eventParameterFilterExpression; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceEventFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceEventFilter'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest.php 0000644 00000003762 14721515320 0030666 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest extends \Google\Site_Kit_Dependencies\Google\Model { protected $accountType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount::class; protected $accountDataType = ''; /** * @var string */ public $redirectUri; /** * @param GoogleAnalyticsAdminV1betaAccount */ public function setAccount(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount $account) { $this->account = $account; } /** * @return GoogleAnalyticsAdminV1betaAccount */ public function getAccount() { return $this->account; } /** * @param string */ public function setRedirectUri($redirectUri) { $this->redirectUri = $redirectUri; } /** * @return string */ public function getRedirectUri() { return $this->redirectUri; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse.php 0000644 00000002735 14721515320 0031205 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountTicketId; /** * @param string */ public function setAccountTicketId($accountTicketId) { $this->accountTicketId = $accountTicketId; } /** * @return string */ public function getAccountTicketId() { return $this->accountTicketId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaCustomDimension.php 0000644 00000005766 14721515320 0026051 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaCustomDimension extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $description; /** * @var bool */ public $disallowAdsPersonalization; /** * @var string */ public $displayName; /** * @var string */ public $name; /** * @var string */ public $parameterName; /** * @var string */ public $scope; /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param bool */ public function setDisallowAdsPersonalization($disallowAdsPersonalization) { $this->disallowAdsPersonalization = $disallowAdsPersonalization; } /** * @return bool */ public function getDisallowAdsPersonalization() { return $this->disallowAdsPersonalization; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setParameterName($parameterName) { $this->parameterName = $parameterName; } /** * @return string */ public function getParameterName() { return $this->parameterName; } /** * @param string */ public function setScope($scope) { $this->scope = $scope; } /** * @return string */ public function getScope() { return $this->scope; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomDimension::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaCustomDimension'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaCustomMetric.php 0000644 00000006556 14721515320 0025517 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaCustomMetric extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'restrictedMetricType'; /** * @var string */ public $description; /** * @var string */ public $displayName; /** * @var string */ public $measurementUnit; /** * @var string */ public $name; /** * @var string */ public $parameterName; /** * @var string[] */ public $restrictedMetricType; /** * @var string */ public $scope; /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setMeasurementUnit($measurementUnit) { $this->measurementUnit = $measurementUnit; } /** * @return string */ public function getMeasurementUnit() { return $this->measurementUnit; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setParameterName($parameterName) { $this->parameterName = $parameterName; } /** * @return string */ public function getParameterName() { return $this->parameterName; } /** * @param string[] */ public function setRestrictedMetricType($restrictedMetricType) { $this->restrictedMetricType = $restrictedMetricType; } /** * @return string[] */ public function getRestrictedMetricType() { return $this->restrictedMetricType; } /** * @param string */ public function setScope($scope) { $this->scope = $scope; } /** * @return string */ public function getScope() { return $this->scope; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCustomMetric::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaCustomMetric'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessStringFilter.php 0000644 00000003763 14721515320 0026634 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessStringFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $caseSensitive; /** * @var string */ public $matchType; /** * @var string */ public $value; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setMatchType($matchType) { $this->matchType = $matchType; } /** * @return string */ public function getMatchType() { return $this->matchType; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessStringFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessStringFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccount.php 0000644 00000006277 14721515320 0024323 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccount extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $createTime; /** * @var bool */ public $deleted; /** * @var string */ public $displayName; /** * @var string */ public $gmpOrganization; /** * @var string */ public $name; /** * @var string */ public $regionCode; /** * @var string */ public $updateTime; /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param bool */ public function setDeleted($deleted) { $this->deleted = $deleted; } /** * @return bool */ public function getDeleted() { return $this->deleted; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setGmpOrganization($gmpOrganization) { $this->gmpOrganization = $gmpOrganization; } /** * @return string */ public function getGmpOrganization() { return $this->gmpOrganization; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setRegionCode($regionCode) { $this->regionCode = $regionCode; } /** * @return string */ public function getRegionCode() { return $this->regionCode; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccount'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessQuota.php 0000644 00000011024 14721515320 0025276 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessQuota extends \Google\Site_Kit_Dependencies\Google\Model { protected $concurrentRequestsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus::class; protected $concurrentRequestsDataType = ''; protected $serverErrorsPerProjectPerHourType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus::class; protected $serverErrorsPerProjectPerHourDataType = ''; protected $tokensPerDayType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus::class; protected $tokensPerDayDataType = ''; protected $tokensPerHourType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus::class; protected $tokensPerHourDataType = ''; protected $tokensPerProjectPerHourType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus::class; protected $tokensPerProjectPerHourDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function setConcurrentRequests(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus $concurrentRequests) { $this->concurrentRequests = $concurrentRequests; } /** * @return GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function getConcurrentRequests() { return $this->concurrentRequests; } /** * @param GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function setServerErrorsPerProjectPerHour(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus $serverErrorsPerProjectPerHour) { $this->serverErrorsPerProjectPerHour = $serverErrorsPerProjectPerHour; } /** * @return GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function getServerErrorsPerProjectPerHour() { return $this->serverErrorsPerProjectPerHour; } /** * @param GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function setTokensPerDay(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus $tokensPerDay) { $this->tokensPerDay = $tokensPerDay; } /** * @return GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function getTokensPerDay() { return $this->tokensPerDay; } /** * @param GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function setTokensPerHour(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus $tokensPerHour) { $this->tokensPerHour = $tokensPerHour; } /** * @return GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function getTokensPerHour() { return $this->tokensPerHour; } /** * @param GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function setTokensPerProjectPerHour(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuotaStatus $tokensPerProjectPerHour) { $this->tokensPerProjectPerHour = $tokensPerProjectPerHour; } /** * @return GoogleAnalyticsAdminV1alphaAccessQuotaStatus */ public function getTokensPerProjectPerHour() { return $this->tokensPerProjectPerHour; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessQuota::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessQuota'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListCustomDimensionsResponse.php 0000644 00000004073 14721515320 0030516 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListCustomDimensionsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'customDimensions'; protected $customDimensionsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomDimension::class; protected $customDimensionsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaCustomDimension[] */ public function setCustomDimensions($customDimensions) { $this->customDimensions = $customDimensions; } /** * @return GoogleAnalyticsAdminV1betaCustomDimension[] */ public function getCustomDimensions() { return $this->customDimensions; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListCustomDimensionsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListCustomDimensionsResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse.php 0000644 00000004101 14721515320 0030660 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'customDimensions'; protected $customDimensionsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCustomDimension::class; protected $customDimensionsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaCustomDimension[] */ public function setCustomDimensions($customDimensions) { $this->customDimensions = $customDimensions; } /** * @return GoogleAnalyticsAdminV1alphaCustomDimension[] */ public function getCustomDimensions() { return $this->customDimensions; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaKeyEvent.php 0000644 00000006760 14721515320 0024456 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaKeyEvent extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $countingMethod; /** * @var string */ public $createTime; /** * @var bool */ public $custom; protected $defaultValueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEventDefaultValue::class; protected $defaultValueDataType = ''; /** * @var bool */ public $deletable; /** * @var string */ public $eventName; /** * @var string */ public $name; /** * @param string */ public function setCountingMethod($countingMethod) { $this->countingMethod = $countingMethod; } /** * @return string */ public function getCountingMethod() { return $this->countingMethod; } /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param bool */ public function setCustom($custom) { $this->custom = $custom; } /** * @return bool */ public function getCustom() { return $this->custom; } /** * @param GoogleAnalyticsAdminV1betaKeyEventDefaultValue */ public function setDefaultValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEventDefaultValue $defaultValue) { $this->defaultValue = $defaultValue; } /** * @return GoogleAnalyticsAdminV1betaKeyEventDefaultValue */ public function getDefaultValue() { return $this->defaultValue; } /** * @param bool */ public function setDeletable($deletable) { $this->deletable = $deletable; } /** * @return bool */ public function getDeletable() { return $this->deletable; } /** * @param string */ public function setEventName($eventName) { $this->eventName = $eventName; } /** * @return string */ public function getEventName() { return $this->eventName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEvent::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaKeyEvent'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy.php 0000644 00000002656 14721515320 0030142 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $metricName; /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessNumericFilter.php 0000644 00000003721 14721515320 0026762 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessNumericFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $operation; protected $valueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaNumericValue::class; protected $valueDataType = ''; /** * @param string */ public function setOperation($operation) { $this->operation = $operation; } /** * @return string */ public function getOperation() { return $this->operation; } /** * @param GoogleAnalyticsAdminV1alphaNumericValue */ public function setValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaNumericValue $value) { $this->value = $value; } /** * @return GoogleAnalyticsAdminV1alphaNumericValue */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessNumericFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessNumericFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaFirebaseLink.php 0000644 00000003675 14721515320 0025436 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaFirebaseLink extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $createTime; /** * @var string */ public $name; /** * @var string */ public $project; /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setProject($project) { $this->project = $project; } /** * @return string */ public function getProject() { return $this->project; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaFirebaseLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaFirebaseLink'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaCustomDimension.php 0000644 00000005771 14721515320 0026217 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaCustomDimension extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $description; /** * @var bool */ public $disallowAdsPersonalization; /** * @var string */ public $displayName; /** * @var string */ public $name; /** * @var string */ public $parameterName; /** * @var string */ public $scope; /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param bool */ public function setDisallowAdsPersonalization($disallowAdsPersonalization) { $this->disallowAdsPersonalization = $disallowAdsPersonalization; } /** * @return bool */ public function getDisallowAdsPersonalization() { return $this->disallowAdsPersonalization; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setParameterName($parameterName) { $this->parameterName = $parameterName; } /** * @return string */ public function getParameterName() { return $this->parameterName; } /** * @param string */ public function setScope($scope) { $this->scope = $scope; } /** * @return string */ public function getScope() { return $this->scope; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCustomDimension::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaCustomDimension'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse.php 0000644 00000004423 14721515320 0033243 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'displayVideo360AdvertiserLinks'; protected $displayVideo360AdvertiserLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink::class; protected $displayVideo360AdvertiserLinksDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink[] */ public function setDisplayVideo360AdvertiserLinks($displayVideo360AdvertiserLinks) { $this->displayVideo360AdvertiserLinks = $displayVideo360AdvertiserLinks; } /** * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink[] */ public function getDisplayVideo360AdvertiserLinks() { return $this->displayVideo360AdvertiserLinks; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListAudiencesResponse.php 0000644 00000003730 14721515320 0027343 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListAudiencesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'audiences'; protected $audiencesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudience::class; protected $audiencesDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaAudience[] */ public function setAudiences($audiences) { $this->audiences = $audiences; } /** * @return GoogleAnalyticsAdminV1alphaAudience[] */ public function getAudiences() { return $this->audiences; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListAudiencesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListAudiencesResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataStream.php 0000644 00000011232 14721515320 0025111 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaDataStream extends \Google\Site_Kit_Dependencies\Google\Model { protected $androidAppStreamDataType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData::class; protected $androidAppStreamDataDataType = ''; /** * @var string */ public $createTime; /** * @var string */ public $displayName; protected $iosAppStreamDataType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData::class; protected $iosAppStreamDataDataType = ''; /** * @var string */ public $name; /** * @var string */ public $type; /** * @var string */ public $updateTime; protected $webStreamDataType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStreamWebStreamData::class; protected $webStreamDataDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData */ public function setAndroidAppStreamData(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData $androidAppStreamData) { $this->androidAppStreamData = $androidAppStreamData; } /** * @return GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData */ public function getAndroidAppStreamData() { return $this->androidAppStreamData; } /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData */ public function setIosAppStreamData(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData $iosAppStreamData) { $this->iosAppStreamData = $iosAppStreamData; } /** * @return GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData */ public function getIosAppStreamData() { return $this->iosAppStreamData; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } /** * @param GoogleAnalyticsAdminV1alphaDataStreamWebStreamData */ public function setWebStreamData(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStreamWebStreamData $webStreamData) { $this->webStreamData = $webStreamData; } /** * @return GoogleAnalyticsAdminV1alphaDataStreamWebStreamData */ public function getWebStreamData() { return $this->webStreamData; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStream::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaDataStream'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaIosAppDataStream.php 0000644 00000005640 14721515320 0026233 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaIosAppDataStream extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $bundleId; /** * @var string */ public $createTime; /** * @var string */ public $displayName; /** * @var string */ public $firebaseAppId; /** * @var string */ public $name; /** * @var string */ public $updateTime; /** * @param string */ public function setBundleId($bundleId) { $this->bundleId = $bundleId; } /** * @return string */ public function getBundleId() { return $this->bundleId; } /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setFirebaseAppId($firebaseAppId) { $this->firebaseAppId = $firebaseAppId; } /** * @return string */ public function getFirebaseAppId() { return $this->firebaseAppId; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaIosAppDataStream::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaIosAppDataStream'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessRow.php 0000644 00000004337 14721515320 0024765 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessRow extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'metricValues'; protected $dimensionValuesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessDimensionValue::class; protected $dimensionValuesDataType = 'array'; protected $metricValuesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessMetricValue::class; protected $metricValuesDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaAccessDimensionValue[] */ public function setDimensionValues($dimensionValues) { $this->dimensionValues = $dimensionValues; } /** * @return GoogleAnalyticsAdminV1alphaAccessDimensionValue[] */ public function getDimensionValues() { return $this->dimensionValues; } /** * @param GoogleAnalyticsAdminV1alphaAccessMetricValue[] */ public function setMetricValues($metricValues) { $this->metricValues = $metricValues; } /** * @return GoogleAnalyticsAdminV1alphaAccessMetricValue[] */ public function getMetricValues() { return $this->metricValues; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessRow::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessRow'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudience.php 0000644 00000010606 14721515320 0024605 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudience extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'filterClauses'; /** * @var bool */ public $adsPersonalizationEnabled; /** * @var string */ public $description; /** * @var string */ public $displayName; protected $eventTriggerType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceEventTrigger::class; protected $eventTriggerDataType = ''; /** * @var string */ public $exclusionDurationMode; protected $filterClausesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterClause::class; protected $filterClausesDataType = 'array'; /** * @var int */ public $membershipDurationDays; /** * @var string */ public $name; /** * @param bool */ public function setAdsPersonalizationEnabled($adsPersonalizationEnabled) { $this->adsPersonalizationEnabled = $adsPersonalizationEnabled; } /** * @return bool */ public function getAdsPersonalizationEnabled() { return $this->adsPersonalizationEnabled; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param GoogleAnalyticsAdminV1alphaAudienceEventTrigger */ public function setEventTrigger(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceEventTrigger $eventTrigger) { $this->eventTrigger = $eventTrigger; } /** * @return GoogleAnalyticsAdminV1alphaAudienceEventTrigger */ public function getEventTrigger() { return $this->eventTrigger; } /** * @param string */ public function setExclusionDurationMode($exclusionDurationMode) { $this->exclusionDurationMode = $exclusionDurationMode; } /** * @return string */ public function getExclusionDurationMode() { return $this->exclusionDurationMode; } /** * @param GoogleAnalyticsAdminV1alphaAudienceFilterClause[] */ public function setFilterClauses($filterClauses) { $this->filterClauses = $filterClauses; } /** * @return GoogleAnalyticsAdminV1alphaAudienceFilterClause[] */ public function getFilterClauses() { return $this->filterClauses; } /** * @param int */ public function setMembershipDurationDays($membershipDurationDays) { $this->membershipDurationDays = $membershipDurationDays; } /** * @return int */ public function getMembershipDurationDays() { return $this->membershipDurationDays; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudience::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudience'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAttributionSettings.php 0000644 00000005406 14721515320 0027117 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAttributionSettings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $acquisitionConversionEventLookbackWindow; /** * @var string */ public $name; /** * @var string */ public $otherConversionEventLookbackWindow; /** * @var string */ public $reportingAttributionModel; /** * @param string */ public function setAcquisitionConversionEventLookbackWindow($acquisitionConversionEventLookbackWindow) { $this->acquisitionConversionEventLookbackWindow = $acquisitionConversionEventLookbackWindow; } /** * @return string */ public function getAcquisitionConversionEventLookbackWindow() { return $this->acquisitionConversionEventLookbackWindow; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setOtherConversionEventLookbackWindow($otherConversionEventLookbackWindow) { $this->otherConversionEventLookbackWindow = $otherConversionEventLookbackWindow; } /** * @return string */ public function getOtherConversionEventLookbackWindow() { return $this->otherConversionEventLookbackWindow; } /** * @param string */ public function setReportingAttributionModel($reportingAttributionModel) { $this->reportingAttributionModel = $reportingAttributionModel; } /** * @return string */ public function getReportingAttributionModel() { return $this->reportingAttributionModel; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAttributionSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAttributionSettings'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression.php 0000644 00000006152 14721515320 0031236 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression extends \Google\Site_Kit_Dependencies\Google\Model { protected $andGroupType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList::class; protected $andGroupDataType = ''; protected $filterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilter::class; protected $filterDataType = ''; protected $notExpressionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression::class; protected $notExpressionDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList */ public function setAndGroup(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList $andGroup) { $this->andGroup = $andGroup; } /** * @return GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList */ public function getAndGroup() { return $this->andGroup; } /** * @param GoogleAnalyticsAdminV1alphaExpandedDataSetFilter */ public function setFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilter $filter) { $this->filter = $filter; } /** * @return GoogleAnalyticsAdminV1alphaExpandedDataSetFilter */ public function getFilter() { return $this->filter; } /** * @param GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression */ public function setNotExpression(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression $notExpression) { $this->notExpression = $notExpression; } /** * @return GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression */ public function getNotExpression() { return $this->notExpression; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessQuotaStatus.php 0000644 00000003245 14721515320 0026336 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessQuotaStatus extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $consumed; /** * @var int */ public $remaining; /** * @param int */ public function setConsumed($consumed) { $this->consumed = $consumed; } /** * @return int */ public function getConsumed() { return $this->consumed; } /** * @param int */ public function setRemaining($remaining) { $this->remaining = $remaining; } /** * @return int */ public function getRemaining() { return $this->remaining; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuotaStatus::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessQuotaStatus'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListDataStreamsResponse.php 0000644 00000003766 14721515320 0027664 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListDataStreamsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'dataStreams'; protected $dataStreamsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStream::class; protected $dataStreamsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaDataStream[] */ public function setDataStreams($dataStreams) { $this->dataStreams = $dataStreams; } /** * @return GoogleAnalyticsAdminV1alphaDataStream[] */ public function getDataStreams() { return $this->dataStreams; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListDataStreamsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListDataStreamsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataRetentionSettings.php 0000644 00000004217 14721515320 0027353 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaDataRetentionSettings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $eventDataRetention; /** * @var string */ public $name; /** * @var bool */ public $resetUserDataOnNewActivity; /** * @param string */ public function setEventDataRetention($eventDataRetention) { $this->eventDataRetention = $eventDataRetention; } /** * @return string */ public function getEventDataRetention() { return $this->eventDataRetention; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param bool */ public function setResetUserDataOnNewActivity($resetUserDataOnNewActivity) { $this->resetUserDataOnNewActivity = $resetUserDataOnNewActivity; } /** * @return bool */ public function getResetUserDataOnNewActivity() { return $this->resetUserDataOnNewActivity; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataRetentionSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaDataRetentionSettings'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList.php 0000644 00000003476 14721515320 0032100 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'filterExpressions'; protected $filterExpressionsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression::class; protected $filterExpressionsDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression[] */ public function setFilterExpressions($filterExpressions) { $this->filterExpressions = $filterExpressions; } /** * @return GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression[] */ public function getFilterExpressions() { return $this->filterExpressions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessDateRange.php 0000644 00000003252 14721515320 0025671 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessDateRange extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $endDate; /** * @var string */ public $startDate; /** * @param string */ public function setEndDate($endDate) { $this->endDate = $endDate; } /** * @return string */ public function getEndDate() { return $this->endDate; } /** * @param string */ public function setStartDate($startDate) { $this->startDate = $startDate; } /** * @return string */ public function getStartDate() { return $this->startDate; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessDateRange::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessDateRange'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAndroidAppDataStream.php 0000644 00000005701 14721515320 0027057 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAndroidAppDataStream extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $createTime; /** * @var string */ public $displayName; /** * @var string */ public $firebaseAppId; /** * @var string */ public $name; /** * @var string */ public $packageName; /** * @var string */ public $updateTime; /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setFirebaseAppId($firebaseAppId) { $this->firebaseAppId = $firebaseAppId; } /** * @return string */ public function getFirebaseAppId() { return $this->firebaseAppId; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setPackageName($packageName) { $this->packageName = $packageName; } /** * @return string */ public function getPackageName() { return $this->packageName; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAndroidAppDataStream::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAndroidAppDataStream'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProperty.php 0000644 00000012067 14721515320 0024545 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaProperty extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $account; /** * @var string */ public $createTime; /** * @var string */ public $currencyCode; /** * @var string */ public $deleteTime; /** * @var string */ public $displayName; /** * @var string */ public $expireTime; /** * @var string */ public $industryCategory; /** * @var string */ public $name; /** * @var string */ public $parent; /** * @var string */ public $propertyType; /** * @var string */ public $serviceLevel; /** * @var string */ public $timeZone; /** * @var string */ public $updateTime; /** * @param string */ public function setAccount($account) { $this->account = $account; } /** * @return string */ public function getAccount() { return $this->account; } /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } /** * @return string */ public function getCurrencyCode() { return $this->currencyCode; } /** * @param string */ public function setDeleteTime($deleteTime) { $this->deleteTime = $deleteTime; } /** * @return string */ public function getDeleteTime() { return $this->deleteTime; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setExpireTime($expireTime) { $this->expireTime = $expireTime; } /** * @return string */ public function getExpireTime() { return $this->expireTime; } /** * @param string */ public function setIndustryCategory($industryCategory) { $this->industryCategory = $industryCategory; } /** * @return string */ public function getIndustryCategory() { return $this->industryCategory; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setParent($parent) { $this->parent = $parent; } /** * @return string */ public function getParent() { return $this->parent; } /** * @param string */ public function setPropertyType($propertyType) { $this->propertyType = $propertyType; } /** * @return string */ public function getPropertyType() { return $this->propertyType; } /** * @param string */ public function setServiceLevel($serviceLevel) { $this->serviceLevel = $serviceLevel; } /** * @return string */ public function getServiceLevel() { return $this->serviceLevel; } /** * @param string */ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } /** * @return string */ public function getTimeZone() { return $this->timeZone; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaProperty'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest.php 0000644 00000002754 14721515320 0032105 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $acknowledgement; /** * @param string */ public function setAcknowledgement($acknowledgement) { $this->acknowledgement = $acknowledgement; } /** * @return string */ public function getAcknowledgement() { return $this->acknowledgement; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleProtobufEmpty.php 0000644 00000002014 14721515320 0021643 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleProtobufEmpty extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleProtobufEmpty'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListAccountsResponse.php 0000644 00000003703 14721515320 0027050 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListAccountsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'accounts'; protected $accountsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount::class; protected $accountsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaAccount[] */ public function setAccounts($accounts) { $this->accounts = $accounts; } /** * @return GoogleAnalyticsAdminV1betaAccount[] */ public function getAccounts() { return $this->accounts; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListAccountsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListAccountsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaChangeHistoryChange.php 0000644 00000006346 14721515320 0026601 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaChangeHistoryChange extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $action; /** * @var string */ public $resource; protected $resourceAfterChangeType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource::class; protected $resourceAfterChangeDataType = ''; protected $resourceBeforeChangeType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource::class; protected $resourceBeforeChangeDataType = ''; /** * @param string */ public function setAction($action) { $this->action = $action; } /** * @return string */ public function getAction() { return $this->action; } /** * @param string */ public function setResource($resource) { $this->resource = $resource; } /** * @return string */ public function getResource() { return $this->resource; } /** * @param GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource */ public function setResourceAfterChange(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource $resourceAfterChange) { $this->resourceAfterChange = $resourceAfterChange; } /** * @return GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource */ public function getResourceAfterChange() { return $this->resourceAfterChange; } /** * @param GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource */ public function setResourceBeforeChange(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource $resourceBeforeChange) { $this->resourceBeforeChange = $resourceBeforeChange; } /** * @return GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource */ public function getResourceBeforeChange() { return $this->resourceBeforeChange; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaChangeHistoryChange::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaChangeHistoryChange'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAuditUserLinksResponse.php 0000644 00000003752 14721515320 0027521 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAuditUserLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'userLinks'; /** * @var string */ public $nextPageToken; protected $userLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLink::class; protected $userLinksDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param GoogleAnalyticsAdminV1alphaAuditUserLink[] */ public function setUserLinks($userLinks) { $this->userLinks = $userLinks; } /** * @return GoogleAnalyticsAdminV1alphaAuditUserLink[] */ public function getUserLinks() { return $this->userLinks; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAuditUserLinksResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse.php 0000644 00000002220 14721515320 0032237 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessMetricHeader.php 0000644 00000002623 14721515320 0026374 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessMetricHeader extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $metricName; /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessMetricHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessMetricHeader'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListAccountSummariesResponse.php 0000644 00000004070 14721515320 0030472 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListAccountSummariesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'accountSummaries'; protected $accountSummariesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccountSummary::class; protected $accountSummariesDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaAccountSummary[] */ public function setAccountSummaries($accountSummaries) { $this->accountSummaries = $accountSummaries; } /** * @return GoogleAnalyticsAdminV1betaAccountSummary[] */ public function getAccountSummaries() { return $this->accountSummaries; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListAccountSummariesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListAccountSummariesResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.php 0000644 00000003665 14721515320 0027355 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaGoogleSignalsSettings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $consent; /** * @var string */ public $name; /** * @var string */ public $state; /** * @param string */ public function setConsent($consent) { $this->consent = $consent; } /** * @return string */ public function getConsent() { return $this->consent; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setState($state) { $this->state = $state; } /** * @return string */ public function getState() { return $this->state; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaGoogleSignalsSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaGoogleSignalsSettings'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaGlobalSiteTag.php 0000644 00000003204 14721515320 0025545 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaGlobalSiteTag extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @var string */ public $snippet; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setSnippet($snippet) { $this->snippet = $snippet; } /** * @return string */ public function getSnippet() { return $this->snippet; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaGlobalSiteTag::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaGlobalSiteTag'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessStringFilter.php 0000644 00000003760 14721515320 0026457 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessStringFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $caseSensitive; /** * @var string */ public $matchType; /** * @var string */ public $value; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setMatchType($matchType) { $this->matchType = $matchType; } /** * @return string */ public function getMatchType() { return $this->matchType; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessStringFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessStringFilter'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse.php 0000644 00000004043 14721515320 0030227 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'googleAdsLinks'; protected $googleAdsLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaGoogleAdsLink::class; protected $googleAdsLinksDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaGoogleAdsLink[] */ public function setGoogleAdsLinks($googleAdsLinks) { $this->googleAdsLinks = $googleAdsLinks; } /** * @return GoogleAnalyticsAdminV1alphaGoogleAdsLink[] */ public function getGoogleAdsLinks() { return $this->googleAdsLinks; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter.php 0000644 00000003447 14721515320 0031453 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'values'; /** * @var bool */ public $caseSensitive; /** * @var string[] */ public $values; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string[] */ public function setValues($values) { $this->values = $values; } /** * @return string[] */ public function getValues() { return $this->values; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceFilterExpression.php 0000644 00000010747 14721515320 0030041 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceFilterExpression extends \Google\Site_Kit_Dependencies\Google\Model { protected $andGroupType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList::class; protected $andGroupDataType = ''; protected $dimensionOrMetricFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter::class; protected $dimensionOrMetricFilterDataType = ''; protected $eventFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceEventFilter::class; protected $eventFilterDataType = ''; protected $notExpressionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression::class; protected $notExpressionDataType = ''; protected $orGroupType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList::class; protected $orGroupDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList */ public function setAndGroup(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList $andGroup) { $this->andGroup = $andGroup; } /** * @return GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList */ public function getAndGroup() { return $this->andGroup; } /** * @param GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter */ public function setDimensionOrMetricFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter $dimensionOrMetricFilter) { $this->dimensionOrMetricFilter = $dimensionOrMetricFilter; } /** * @return GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter */ public function getDimensionOrMetricFilter() { return $this->dimensionOrMetricFilter; } /** * @param GoogleAnalyticsAdminV1alphaAudienceEventFilter */ public function setEventFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceEventFilter $eventFilter) { $this->eventFilter = $eventFilter; } /** * @return GoogleAnalyticsAdminV1alphaAudienceEventFilter */ public function getEventFilter() { return $this->eventFilter; } /** * @param GoogleAnalyticsAdminV1alphaAudienceFilterExpression */ public function setNotExpression(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression $notExpression) { $this->notExpression = $notExpression; } /** * @return GoogleAnalyticsAdminV1alphaAudienceFilterExpression */ public function getNotExpression() { return $this->notExpression; } /** * @param GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList */ public function setOrGroup(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList $orGroup) { $this->orGroup = $orGroup; } /** * @return GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList */ public function getOrGroup() { return $this->orGroup; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceFilterExpression'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData.php 0000644 00000003422 14721515320 0030744 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $firebaseAppId; /** * @var string */ public $packageName; /** * @param string */ public function setFirebaseAppId($firebaseAppId) { $this->firebaseAppId = $firebaseAppId; } /** * @return string */ public function getFirebaseAppId() { return $this->firebaseAppId; } /** * @param string */ public function setPackageName($packageName) { $this->packageName = $packageName; } /** * @return string */ public function getPackageName() { return $this->packageName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaRunAccessReportRequest.php 0000644 00000014506 14721515320 0027354 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaRunAccessReportRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'orderBys'; protected $dateRangesType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessDateRange::class; protected $dateRangesDataType = 'array'; protected $dimensionFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpression::class; protected $dimensionFilterDataType = ''; protected $dimensionsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessDimension::class; protected $dimensionsDataType = 'array'; /** * @var bool */ public $expandGroups; /** * @var bool */ public $includeAllUsers; /** * @var string */ public $limit; protected $metricFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpression::class; protected $metricFilterDataType = ''; protected $metricsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessMetric::class; protected $metricsDataType = 'array'; /** * @var string */ public $offset; protected $orderBysType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessOrderBy::class; protected $orderBysDataType = 'array'; /** * @var bool */ public $returnEntityQuota; /** * @var string */ public $timeZone; /** * @param GoogleAnalyticsAdminV1betaAccessDateRange[] */ public function setDateRanges($dateRanges) { $this->dateRanges = $dateRanges; } /** * @return GoogleAnalyticsAdminV1betaAccessDateRange[] */ public function getDateRanges() { return $this->dateRanges; } /** * @param GoogleAnalyticsAdminV1betaAccessFilterExpression */ public function setDimensionFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpression $dimensionFilter) { $this->dimensionFilter = $dimensionFilter; } /** * @return GoogleAnalyticsAdminV1betaAccessFilterExpression */ public function getDimensionFilter() { return $this->dimensionFilter; } /** * @param GoogleAnalyticsAdminV1betaAccessDimension[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return GoogleAnalyticsAdminV1betaAccessDimension[] */ public function getDimensions() { return $this->dimensions; } /** * @param bool */ public function setExpandGroups($expandGroups) { $this->expandGroups = $expandGroups; } /** * @return bool */ public function getExpandGroups() { return $this->expandGroups; } /** * @param bool */ public function setIncludeAllUsers($includeAllUsers) { $this->includeAllUsers = $includeAllUsers; } /** * @return bool */ public function getIncludeAllUsers() { return $this->includeAllUsers; } /** * @param string */ public function setLimit($limit) { $this->limit = $limit; } /** * @return string */ public function getLimit() { return $this->limit; } /** * @param GoogleAnalyticsAdminV1betaAccessFilterExpression */ public function setMetricFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpression $metricFilter) { $this->metricFilter = $metricFilter; } /** * @return GoogleAnalyticsAdminV1betaAccessFilterExpression */ public function getMetricFilter() { return $this->metricFilter; } /** * @param GoogleAnalyticsAdminV1betaAccessMetric[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return GoogleAnalyticsAdminV1betaAccessMetric[] */ public function getMetrics() { return $this->metrics; } /** * @param string */ public function setOffset($offset) { $this->offset = $offset; } /** * @return string */ public function getOffset() { return $this->offset; } /** * @param GoogleAnalyticsAdminV1betaAccessOrderBy[] */ public function setOrderBys($orderBys) { $this->orderBys = $orderBys; } /** * @return GoogleAnalyticsAdminV1betaAccessOrderBy[] */ public function getOrderBys() { return $this->orderBys; } /** * @param bool */ public function setReturnEntityQuota($returnEntityQuota) { $this->returnEntityQuota = $returnEntityQuota; } /** * @return bool */ public function getReturnEntityQuota() { return $this->returnEntityQuota; } /** * @param string */ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } /** * @return string */ public function getTimeZone() { return $this->timeZone; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaRunAccessReportRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataRetentionSettings.php 0000644 00000004214 14721515320 0027176 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaDataRetentionSettings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $eventDataRetention; /** * @var string */ public $name; /** * @var bool */ public $resetUserDataOnNewActivity; /** * @param string */ public function setEventDataRetention($eventDataRetention) { $this->eventDataRetention = $eventDataRetention; } /** * @return string */ public function getEventDataRetention() { return $this->eventDataRetention; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param bool */ public function setResetUserDataOnNewActivity($resetUserDataOnNewActivity) { $this->resetUserDataOnNewActivity = $resetUserDataOnNewActivity; } /** * @return bool */ public function getResetUserDataOnNewActivity() { return $this->resetUserDataOnNewActivity; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataRetentionSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaDataRetentionSettings'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListAccountsResponse.php 0000644 00000003711 14721515320 0027221 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListAccountsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'accounts'; protected $accountsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccount::class; protected $accountsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaAccount[] */ public function setAccounts($accounts) { $this->accounts = $accounts; } /** * @return GoogleAnalyticsAdminV1alphaAccount[] */ public function getAccounts() { return $this->accounts; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListAccountsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListAccountsResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData.php 0000644 00000003361 14721515320 0030120 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $bundleId; /** * @var string */ public $firebaseAppId; /** * @param string */ public function setBundleId($bundleId) { $this->bundleId = $bundleId; } /** * @return string */ public function getBundleId() { return $this->bundleId; } /** * @param string */ public function setFirebaseAppId($firebaseAppId) { $this->firebaseAppId = $firebaseAppId; } /** * @return string */ public function getFirebaseAppId() { return $this->firebaseAppId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData'); GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest.php 0000644 00000002275 14721515320 0035136 0 ustar 00 apiclient-services/src/GoogleAnalyticsAdmin <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceEventTrigger.php 0000644 00000003337 14721515320 0027136 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceEventTrigger extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $eventName; /** * @var string */ public $logCondition; /** * @param string */ public function setEventName($eventName) { $this->eventName = $eventName; } /** * @return string */ public function getEventName() { return $this->eventName; } /** * @param string */ public function setLogCondition($logCondition) { $this->logCondition = $logCondition; } /** * @return string */ public function getLogCondition() { return $this->logCondition; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceEventTrigger::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceEventTrigger'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaPropertySummary.php 0000644 00000004451 14721515320 0026121 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaPropertySummary extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $displayName; /** * @var string */ public $parent; /** * @var string */ public $property; /** * @var string */ public $propertyType; /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setParent($parent) { $this->parent = $parent; } /** * @return string */ public function getParent() { return $this->parent; } /** * @param string */ public function setProperty($property) { $this->property = $property; } /** * @return string */ public function getProperty() { return $this->property; } /** * @param string */ public function setPropertyType($propertyType) { $this->propertyType = $propertyType; } /** * @return string */ public function getPropertyType() { return $this->propertyType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaPropertySummary::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaPropertySummary'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData.php0000644 00000003356 14721515320 0030031 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $bundleId; /** * @var string */ public $firebaseAppId; /** * @param string */ public function setBundleId($bundleId) { $this->bundleId = $bundleId; } /** * @return string */ public function getBundleId() { return $this->bundleId; } /** * @param string */ public function setFirebaseAppId($firebaseAppId) { $this->firebaseAppId = $firebaseAppId; } /** * @return string */ public function getFirebaseAppId() { return $this->firebaseAppId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessInListFilter.php 0000644 00000003367 14721515320 0026416 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessInListFilter extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'values'; /** * @var bool */ public $caseSensitive; /** * @var string[] */ public $values; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string[] */ public function setValues($values) { $this->values = $values; } /** * @return string[] */ public function getValues() { return $this->values; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessInListFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessInListFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessOrderBy.php 0000644 00000005156 14721515320 0025412 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessOrderBy extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $desc; protected $dimensionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy::class; protected $dimensionDataType = ''; protected $metricType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy::class; protected $metricDataType = ''; /** * @param bool */ public function setDesc($desc) { $this->desc = $desc; } /** * @return bool */ public function getDesc() { return $this->desc; } /** * @param GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy */ public function setDimension(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy $dimension) { $this->dimension = $dimension; } /** * @return GoogleAnalyticsAdminV1betaAccessOrderByDimensionOrderBy */ public function getDimension() { return $this->dimension; } /** * @param GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy */ public function setMetric(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy $metric) { $this->metric = $metric; } /** * @return GoogleAnalyticsAdminV1betaAccessOrderByMetricOrderBy */ public function getMetric() { return $this->metric; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessOrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessOrderBy'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessFilter.php 0000644 00000007676 14721515320 0025302 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessFilter extends \Google\Site_Kit_Dependencies\Google\Model { protected $betweenFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessBetweenFilter::class; protected $betweenFilterDataType = ''; /** * @var string */ public $fieldName; protected $inListFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessInListFilter::class; protected $inListFilterDataType = ''; protected $numericFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessNumericFilter::class; protected $numericFilterDataType = ''; protected $stringFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessStringFilter::class; protected $stringFilterDataType = ''; /** * @param GoogleAnalyticsAdminV1betaAccessBetweenFilter */ public function setBetweenFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessBetweenFilter $betweenFilter) { $this->betweenFilter = $betweenFilter; } /** * @return GoogleAnalyticsAdminV1betaAccessBetweenFilter */ public function getBetweenFilter() { return $this->betweenFilter; } /** * @param string */ public function setFieldName($fieldName) { $this->fieldName = $fieldName; } /** * @return string */ public function getFieldName() { return $this->fieldName; } /** * @param GoogleAnalyticsAdminV1betaAccessInListFilter */ public function setInListFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessInListFilter $inListFilter) { $this->inListFilter = $inListFilter; } /** * @return GoogleAnalyticsAdminV1betaAccessInListFilter */ public function getInListFilter() { return $this->inListFilter; } /** * @param GoogleAnalyticsAdminV1betaAccessNumericFilter */ public function setNumericFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessNumericFilter $numericFilter) { $this->numericFilter = $numericFilter; } /** * @return GoogleAnalyticsAdminV1betaAccessNumericFilter */ public function getNumericFilter() { return $this->numericFilter; } /** * @param GoogleAnalyticsAdminV1betaAccessStringFilter */ public function setStringFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessStringFilter $stringFilter) { $this->stringFilter = $stringFilter; } /** * @return GoogleAnalyticsAdminV1betaAccessStringFilter */ public function getStringFilter() { return $this->stringFilter; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessFilter'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList.php 0000644 00000003424 14721515320 0030610 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'filterExpressions'; protected $filterExpressionsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression::class; protected $filterExpressionsDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaAudienceFilterExpression[] */ public function setFilterExpressions($filterExpressions) { $this->filterExpressions = $filterExpressions; } /** * @return GoogleAnalyticsAdminV1alphaAudienceFilterExpression[] */ public function getFilterExpressions() { return $this->filterExpressions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessMetric.php 0000644 00000002601 14721515320 0025257 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessMetric extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $metricName; /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessMetric::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessMetric'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesCustomMetrics.php 0000644 00000014534 14721515320 0024346 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomMetric; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListCustomMetricsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "customMetrics" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $customMetrics = $analyticsadminService->properties_customMetrics; * </code> */ class PropertiesCustomMetrics extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Archives a CustomMetric on a property. (customMetrics.archive) * * @param string $name Required. The name of the CustomMetric to archive. * Example format: properties/1234/customMetrics/5678 * @param GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest $postBody * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty * @throws \Google\Service\Exception */ public function archive($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('archive', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Creates a CustomMetric. (customMetrics.create) * * @param string $parent Required. Example format: properties/1234 * @param GoogleAnalyticsAdminV1betaCustomMetric $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaCustomMetric * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomMetric $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomMetric::class); } /** * Lookup for a single CustomMetric. (customMetrics.get) * * @param string $name Required. The name of the CustomMetric to get. Example * format: properties/1234/customMetrics/5678 * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaCustomMetric * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomMetric::class); } /** * Lists CustomMetrics on a property. * (customMetrics.listPropertiesCustomMetrics) * * @param string $parent Required. Example format: properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200 * (higher values will be coerced to the maximum). * @opt_param string pageToken A page token, received from a previous * `ListCustomMetrics` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListCustomMetrics` must match * the call that provided the page token. * @return GoogleAnalyticsAdminV1betaListCustomMetricsResponse * @throws \Google\Service\Exception */ public function listPropertiesCustomMetrics($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListCustomMetricsResponse::class); } /** * Updates a CustomMetric on a property. (customMetrics.patch) * * @param string $name Output only. Resource name for this CustomMetric * resource. Format: properties/{property}/customMetrics/{customMetric} * @param GoogleAnalyticsAdminV1betaCustomMetric $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Omitted fields will not be updated. To replace the entire entity, use one * path with the string "*" to match all fields. * @return GoogleAnalyticsAdminV1betaCustomMetric * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomMetric $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomMetric::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesCustomMetrics::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesCustomMetrics'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesDisplayVideo360AdvertiserLinks.php 0000644 00000015552 14721515320 0027425 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "displayVideo360AdvertiserLinks" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $displayVideo360AdvertiserLinks = $analyticsadminService->displayVideo360AdvertiserLinks; * </code> */ class PropertiesDisplayVideo360AdvertiserLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users * who have proper authorization both on the Google Analytics property and on * the Display & Video 360 advertiser. Users who do not have access to the * Display & Video 360 advertiser should instead seek to create a * DisplayVideo360LinkProposal. (displayVideo360AdvertiserLinks.create) * * @param string $parent Required. Example format: properties/1234 * @param GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink::class); } /** * Deletes a DisplayVideo360AdvertiserLink on a property. * (displayVideo360AdvertiserLinks.delete) * * @param string $name Required. The name of the DisplayVideo360AdvertiserLink * to delete. Example format: * properties/1234/displayVideo360AdvertiserLinks/5678 * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Look up a single DisplayVideo360AdvertiserLink * (displayVideo360AdvertiserLinks.get) * * @param string $name Required. The name of the DisplayVideo360AdvertiserLink * to get. Example format: properties/1234/displayVideo360AdvertiserLink/5678 * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink::class); } /** * Lists all DisplayVideo360AdvertiserLinks on a property. * (displayVideo360AdvertiserLinks.listPropertiesDisplayVideo360AdvertiserLinks) * * @param string $parent Required. Example format: properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200 * (higher values will be coerced to the maximum). * @opt_param string pageToken A page token, received from a previous * `ListDisplayVideo360AdvertiserLinks` call. Provide this to retrieve the * subsequent page. When paginating, all other parameters provided to * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the * page token. * @return GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse */ public function listPropertiesDisplayVideo360AdvertiserLinks($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse::class); } /** * Updates a DisplayVideo360AdvertiserLink on a property. * (displayVideo360AdvertiserLinks.patch) * * @param string $name Output only. The resource name for this * DisplayVideo360AdvertiserLink resource. Format: * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} Note: linkId * is not the Display & Video 360 Advertiser ID * @param GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Omitted fields will not be updated. To replace the entire entity, use one * path with the string "*" to match all fields. * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesDisplayVideo360AdvertiserLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesDisplayVideo360AdvertiserLinks'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesAudiences.php 0000644 00000014355 14721515320 0023446 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaArchiveAudienceRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudience; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListAudiencesResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "audiences" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $audiences = $analyticsadminService->audiences; * </code> */ class PropertiesAudiences extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Archives an Audience on a property. (audiences.archive) * * @param string $name Required. Example format: properties/1234/audiences/5678 * @param GoogleAnalyticsAdminV1alphaArchiveAudienceRequest $postBody * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function archive($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaArchiveAudienceRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('archive', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Creates an Audience. (audiences.create) * * @param string $parent Required. Example format: properties/1234 * @param GoogleAnalyticsAdminV1alphaAudience $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaAudience */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudience $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudience::class); } /** * Lookup for a single Audience. Audiences created before 2020 may not be * supported. Default audiences will not show filter definitions. * (audiences.get) * * @param string $name Required. The name of the Audience to get. Example * format: properties/1234/audiences/5678 * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaAudience */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudience::class); } /** * Lists Audiences on a property. Audiences created before 2020 may not be * supported. Default audiences will not show filter definitions. * (audiences.listPropertiesAudiences) * * @param string $parent Required. Example format: properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200 * (higher values will be coerced to the maximum). * @opt_param string pageToken A page token, received from a previous * `ListAudiences` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListAudiences` must match the * call that provided the page token. * @return GoogleAnalyticsAdminV1alphaListAudiencesResponse */ public function listPropertiesAudiences($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListAudiencesResponse::class); } /** * Updates an Audience on a property. (audiences.patch) * * @param string $name Output only. The resource name for this Audience * resource. Format: properties/{propertyId}/audiences/{audienceId} * @param GoogleAnalyticsAdminV1alphaAudience $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (e.g., "field_to_update"). Omitted fields * will not be updated. To replace the entire entity, use one path with the * string "*" to match all fields. * @return GoogleAnalyticsAdminV1alphaAudience */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudience $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudience::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesAudiences::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesAudiences'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesUserLinks.php 0000644 00000030437 14721515320 0023464 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "userLinks" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $userLinks = $analyticsadminService->userLinks; * </code> */ class PropertiesUserLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Lists all user links on an account or property, including implicit ones that * come from effective permissions granted by groups or organization admin * roles. If a returned user link does not have direct permissions, they cannot * be removed from the account or property directly with the DeleteUserLink * command. They have to be removed from the group/etc that gives them * permissions, which is currently only usable/discoverable in the GA or GMP * UIs. (userLinks.audit) * * @param string $parent Required. Example format: accounts/1234 * @param GoogleAnalyticsAdminV1alphaAuditUserLinksRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaAuditUserLinksResponse */ public function audit($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('audit', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksResponse::class); } /** * Creates information about multiple users' links to an account or property. * This method is transactional. If any UserLink cannot be created, none of the * UserLinks will be created. (userLinks.batchCreate) * * @param string $parent Required. The account or property that all user links * in the request are for. This field is required. The parent field in the * CreateUserLinkRequest messages must either be empty or match this field. * Example format: accounts/1234 * @param GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse */ public function batchCreate($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchCreate', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse::class); } /** * Deletes information about multiple users' links to an account or property. * (userLinks.batchDelete) * * @param string $parent Required. The account or property that all user links * in the request are for. The parent of all values for user link names to * delete must match this field. Example format: accounts/1234 * @param GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest $postBody * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function batchDelete($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchDelete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Gets information about multiple users' links to an account or property. * (userLinks.batchGet) * * @param string $parent Required. The account or property that all user links * in the request are for. The parent of all provided values for the 'names' * field must match this field. Example format: accounts/1234 * @param array $optParams Optional parameters. * * @opt_param string names Required. The names of the user links to retrieve. A * maximum of 1000 user links can be retrieved in a batch. Format: * accounts/{accountId}/userLinks/{userLinkId} * @return GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse */ public function batchGet($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('batchGet', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse::class); } /** * Updates information about multiple users' links to an account or property. * (userLinks.batchUpdate) * * @param string $parent Required. The account or property that all user links * in the request are for. The parent field in the UpdateUserLinkRequest * messages must either be empty or match this field. Example format: * accounts/1234 * @param GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse */ public function batchUpdate($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchUpdate', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse::class); } /** * Creates a user link on an account or property. If the user with the specified * email already has permissions on the account or property, then the user's * existing permissions will be unioned with the permissions specified in the * new UserLink. (userLinks.create) * * @param string $parent Required. Example format: accounts/1234 * @param GoogleAnalyticsAdminV1alphaUserLink $postBody * @param array $optParams Optional parameters. * * @opt_param bool notifyNewUser Optional. If set, then email the new user * notifying them that they've been granted permissions to the resource. * @return GoogleAnalyticsAdminV1alphaUserLink */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class); } /** * Deletes a user link on an account or property. (userLinks.delete) * * @param string $name Required. Example format: accounts/1234/userLinks/5678 * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Gets information about a user's link to an account or property. * (userLinks.get) * * @param string $name Required. Example format: accounts/1234/userLinks/5678 * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaUserLink */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class); } /** * Lists all user links on an account or property. * (userLinks.listPropertiesUserLinks) * * @param string $parent Required. Example format: accounts/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of user links to return. The * service may return fewer than this value. If unspecified, at most 200 user * links will be returned. The maximum value is 500; values above 500 will be * coerced to 500. * @opt_param string pageToken A page token, received from a previous * `ListUserLinks` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListUserLinks` must match the * call that provided the page token. * @return GoogleAnalyticsAdminV1alphaListUserLinksResponse */ public function listPropertiesUserLinks($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListUserLinksResponse::class); } /** * Updates a user link on an account or property. (userLinks.patch) * * @param string $name Output only. Example format: * properties/1234/userLinks/5678 * @param GoogleAnalyticsAdminV1alphaUserLink $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaUserLink */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesUserLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesUserLinks'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesCustomDimensions.php 0000644 00000014740 14721515320 0025047 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomDimension; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListCustomDimensionsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "customDimensions" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $customDimensions = $analyticsadminService->properties_customDimensions; * </code> */ class PropertiesCustomDimensions extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Archives a CustomDimension on a property. (customDimensions.archive) * * @param string $name Required. The name of the CustomDimension to archive. * Example format: properties/1234/customDimensions/5678 * @param GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest $postBody * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty * @throws \Google\Service\Exception */ public function archive($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('archive', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Creates a CustomDimension. (customDimensions.create) * * @param string $parent Required. Example format: properties/1234 * @param GoogleAnalyticsAdminV1betaCustomDimension $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaCustomDimension * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomDimension $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomDimension::class); } /** * Lookup for a single CustomDimension. (customDimensions.get) * * @param string $name Required. The name of the CustomDimension to get. Example * format: properties/1234/customDimensions/5678 * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaCustomDimension * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomDimension::class); } /** * Lists CustomDimensions on a property. * (customDimensions.listPropertiesCustomDimensions) * * @param string $parent Required. Example format: properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200 * (higher values will be coerced to the maximum). * @opt_param string pageToken A page token, received from a previous * `ListCustomDimensions` call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListCustomDimensions` must * match the call that provided the page token. * @return GoogleAnalyticsAdminV1betaListCustomDimensionsResponse * @throws \Google\Service\Exception */ public function listPropertiesCustomDimensions($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListCustomDimensionsResponse::class); } /** * Updates a CustomDimension on a property. (customDimensions.patch) * * @param string $name Output only. Resource name for this CustomDimension * resource. Format: properties/{property}/customDimensions/{customDimension} * @param GoogleAnalyticsAdminV1betaCustomDimension $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Omitted fields will not be updated. To replace the entire entity, use one * path with the string "*" to match all fields. * @return GoogleAnalyticsAdminV1betaCustomDimension * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomDimension $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaCustomDimension::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesCustomDimensions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesCustomDimensions'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesIosAppDataStreams.php 0000644 00000013277 14721515320 0025074 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaIosAppDataStream; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "iosAppDataStreams" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $iosAppDataStreams = $analyticsadminService->iosAppDataStreams; * </code> */ class PropertiesIosAppDataStreams extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Deletes an iOS app stream on a property. (iosAppDataStreams.delete) * * @param string $name Required. The name of the iOS app data stream to delete. * Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: * "properties/123/iosAppDataStreams/456" * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single IosAppDataStream (iosAppDataStreams.get) * * @param string $name Required. The name of the iOS app data stream to lookup. * Format: properties/{property_id}/iosAppDataStreams/{stream_id} Example: * "properties/123/iosAppDataStreams/456" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaIosAppDataStream */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaIosAppDataStream::class); } /** * Returns child iOS app data streams under the specified parent property. iOS * app data streams will be excluded if the caller does not have access. Returns * an empty list if no relevant iOS app data streams are found. * (iosAppDataStreams.listPropertiesIosAppDataStreams) * * @param string $parent Required. The name of the parent property. For example, * to list results of app streams under the property with Id 123: * "properties/123" * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200; * (higher values will be coerced to the maximum) * @opt_param string pageToken A page token, received from a previous * `ListIosAppDataStreams` call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListIosAppDataStreams` * must match the call that provided the page token. * @return GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse */ public function listPropertiesIosAppDataStreams($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse::class); } /** * Updates an iOS app stream on a property. (iosAppDataStreams.patch) * * @param string $name Output only. Resource name of this Data Stream. Format: * properties/{property_id}/iosAppDataStreams/{stream_id} Example: * "properties/1000/iosAppDataStreams/2000" * @param GoogleAnalyticsAdminV1alphaIosAppDataStream $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (e.g., "field_to_update"). Omitted fields * will not be updated. To replace the entire entity, use one path with the * string "*" to match all fields. * @return GoogleAnalyticsAdminV1alphaIosAppDataStream */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaIosAppDataStream $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaIosAppDataStream::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesIosAppDataStreams::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesIosAppDataStreams'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesGoogleAdsLinks.php 0000644 00000012645 14721515320 0024413 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaGoogleAdsLink; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "googleAdsLinks" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $googleAdsLinks = $analyticsadminService->properties_googleAdsLinks; * </code> */ class PropertiesGoogleAdsLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GoogleAdsLink. (googleAdsLinks.create) * * @param string $parent Required. Example format: properties/1234 * @param GoogleAnalyticsAdminV1betaGoogleAdsLink $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaGoogleAdsLink * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaGoogleAdsLink $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaGoogleAdsLink::class); } /** * Deletes a GoogleAdsLink on a property (googleAdsLinks.delete) * * @param string $name Required. Example format: * properties/1234/googleAdsLinks/5678 * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lists GoogleAdsLinks on a property. * (googleAdsLinks.listPropertiesGoogleAdsLinks) * * @param string $parent Required. Example format: properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200 * (higher values will be coerced to the maximum). * @opt_param string pageToken A page token, received from a previous * `ListGoogleAdsLinks` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListGoogleAdsLinks` must match * the call that provided the page token. * @return GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse * @throws \Google\Service\Exception */ public function listPropertiesGoogleAdsLinks($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse::class); } /** * Updates a GoogleAdsLink on a property (googleAdsLinks.patch) * * @param string $name Output only. Format: * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} Note: * googleAdsLinkId is not the Google Ads customer ID. * @param GoogleAnalyticsAdminV1betaGoogleAdsLink $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (e.g., "field_to_update"). Omitted fields * will not be updated. To replace the entire entity, use one path with the * string "*" to match all fields. * @return GoogleAnalyticsAdminV1betaGoogleAdsLink * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaGoogleAdsLink $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaGoogleAdsLink::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesGoogleAdsLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesGoogleAdsLinks'); src/GoogleAnalyticsAdmin/Resource/PropertiesWebDataStreamsMeasurementProtocolSecrets.php 0000644 00000016147 14721515320 0031617 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "measurementProtocolSecrets" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $measurementProtocolSecrets = $analyticsadminService->measurementProtocolSecrets; * </code> */ class PropertiesWebDataStreamsMeasurementProtocolSecrets extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a measurement protocol secret. (measurementProtocolSecrets.create) * * @param string $parent Required. The parent resource where this secret will be * created. Any type of stream (WebDataStream, IosAppDataStream, * AndroidAppDataStream) may be a parent. Format: * properties/{property}/webDataStreams/{webDataStream} * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class); } /** * Deletes target MeasurementProtocolSecret. (measurementProtocolSecrets.delete) * * @param string $name Required. The name of the MeasurementProtocolSecret to * delete. Format: properties/{property}/webDataStreams/{webDataStream}/measurem * entProtocolSecrets/{measurementProtocolSecret} Note: Any type of stream * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single "GA4" MeasurementProtocolSecret. * (measurementProtocolSecrets.get) * * @param string $name Required. The name of the measurement protocol secret to * lookup. Format: properties/{property}/webDataStreams/{webDataStream}/measurem * entProtocolSecrets/{measurementProtocolSecret} Note: Any type of stream * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class); } /** * Returns child MeasurementProtocolSecrets under the specified parent Property. * (measurementProtocolSecrets.listPropertiesWebDataStreamsMeasurementProtocolSe * crets) * * @param string $parent Required. The resource name of the parent stream. Any * type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be * a parent. Format: properties/{property}/webDataStreams/{webDataStream}/measur * ementProtocolSecrets * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 10 resources will be returned. The maximum value is 10. * Higher values will be coerced to the maximum. * @opt_param string pageToken A page token, received from a previous * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the * subsequent page. When paginating, all other parameters provided to * `ListMeasurementProtocolSecrets` must match the call that provided the page * token. * @return GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse */ public function listPropertiesWebDataStreamsMeasurementProtocolSecrets($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::class); } /** * Updates a measurement protocol secret. (measurementProtocolSecrets.patch) * * @param string $name Output only. Resource name of this secret. This secret * may be a child of any type of stream. Format: properties/{property}/webDataSt * reams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask The list of fields to be updated. Omitted fields * will not be updated. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesWebDataStreamsMeasurementProtocolSecrets::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesWebDataStreamsMeasurementProtocolSecrets'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/AccountsUserLinks.php 0000644 00000030425 14721515320 0023104 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListUserLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "userLinks" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $userLinks = $analyticsadminService->userLinks; * </code> */ class AccountsUserLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Lists all user links on an account or property, including implicit ones that * come from effective permissions granted by groups or organization admin * roles. If a returned user link does not have direct permissions, they cannot * be removed from the account or property directly with the DeleteUserLink * command. They have to be removed from the group/etc that gives them * permissions, which is currently only usable/discoverable in the GA or GMP * UIs. (userLinks.audit) * * @param string $parent Required. Example format: accounts/1234 * @param GoogleAnalyticsAdminV1alphaAuditUserLinksRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaAuditUserLinksResponse */ public function audit($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('audit', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLinksResponse::class); } /** * Creates information about multiple users' links to an account or property. * This method is transactional. If any UserLink cannot be created, none of the * UserLinks will be created. (userLinks.batchCreate) * * @param string $parent Required. The account or property that all user links * in the request are for. This field is required. The parent field in the * CreateUserLinkRequest messages must either be empty or match this field. * Example format: accounts/1234 * @param GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse */ public function batchCreate($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchCreate', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse::class); } /** * Deletes information about multiple users' links to an account or property. * (userLinks.batchDelete) * * @param string $parent Required. The account or property that all user links * in the request are for. The parent of all values for user link names to * delete must match this field. Example format: accounts/1234 * @param GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest $postBody * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function batchDelete($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchDelete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Gets information about multiple users' links to an account or property. * (userLinks.batchGet) * * @param string $parent Required. The account or property that all user links * in the request are for. The parent of all provided values for the 'names' * field must match this field. Example format: accounts/1234 * @param array $optParams Optional parameters. * * @opt_param string names Required. The names of the user links to retrieve. A * maximum of 1000 user links can be retrieved in a batch. Format: * accounts/{accountId}/userLinks/{userLinkId} * @return GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse */ public function batchGet($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('batchGet', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse::class); } /** * Updates information about multiple users' links to an account or property. * (userLinks.batchUpdate) * * @param string $parent Required. The account or property that all user links * in the request are for. The parent field in the UpdateUserLinkRequest * messages must either be empty or match this field. Example format: * accounts/1234 * @param GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse */ public function batchUpdate($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchUpdate', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse::class); } /** * Creates a user link on an account or property. If the user with the specified * email already has permissions on the account or property, then the user's * existing permissions will be unioned with the permissions specified in the * new UserLink. (userLinks.create) * * @param string $parent Required. Example format: accounts/1234 * @param GoogleAnalyticsAdminV1alphaUserLink $postBody * @param array $optParams Optional parameters. * * @opt_param bool notifyNewUser Optional. If set, then email the new user * notifying them that they've been granted permissions to the resource. * @return GoogleAnalyticsAdminV1alphaUserLink */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class); } /** * Deletes a user link on an account or property. (userLinks.delete) * * @param string $name Required. Example format: accounts/1234/userLinks/5678 * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Gets information about a user's link to an account or property. * (userLinks.get) * * @param string $name Required. Example format: accounts/1234/userLinks/5678 * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaUserLink */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class); } /** * Lists all user links on an account or property. * (userLinks.listAccountsUserLinks) * * @param string $parent Required. Example format: accounts/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of user links to return. The * service may return fewer than this value. If unspecified, at most 200 user * links will be returned. The maximum value is 500; values above 500 will be * coerced to 500. * @opt_param string pageToken A page token, received from a previous * `ListUserLinks` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListUserLinks` must match the * call that provided the page token. * @return GoogleAnalyticsAdminV1alphaListUserLinksResponse */ public function listAccountsUserLinks($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListUserLinksResponse::class); } /** * Updates a user link on an account or property. (userLinks.patch) * * @param string $name Output only. Example format: * properties/1234/userLinks/5678 * @param GoogleAnalyticsAdminV1alphaUserLink $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaUserLink */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\AccountsUserLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_AccountsUserLinks'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesDataStreams.php 0000644 00000013707 14721515320 0023756 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListDataStreamsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "dataStreams" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $dataStreams = $analyticsadminService->properties_dataStreams; * </code> */ class PropertiesDataStreams extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a DataStream. (dataStreams.create) * * @param string $parent Required. Example format: properties/1234 * @param GoogleAnalyticsAdminV1betaDataStream $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaDataStream * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream::class); } /** * Deletes a DataStream on a property. (dataStreams.delete) * * @param string $name Required. The name of the DataStream to delete. Example * format: properties/1234/dataStreams/5678 * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single DataStream. (dataStreams.get) * * @param string $name Required. The name of the DataStream to get. Example * format: properties/1234/dataStreams/5678 * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaDataStream * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream::class); } /** * Lists DataStreams on a property. (dataStreams.listPropertiesDataStreams) * * @param string $parent Required. Example format: properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200 * (higher values will be coerced to the maximum). * @opt_param string pageToken A page token, received from a previous * `ListDataStreams` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListDataStreams` must match the * call that provided the page token. * @return GoogleAnalyticsAdminV1betaListDataStreamsResponse * @throws \Google\Service\Exception */ public function listPropertiesDataStreams($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListDataStreamsResponse::class); } /** * Updates a DataStream on a property. (dataStreams.patch) * * @param string $name Output only. Resource name of this Data Stream. Format: * properties/{property_id}/dataStreams/{stream_id} Example: * "properties/1000/dataStreams/2000" * @param GoogleAnalyticsAdminV1betaDataStream $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Omitted fields will not be updated. To replace the entire entity, use one * path with the string "*" to match all fields. * @return GoogleAnalyticsAdminV1betaDataStream * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStream::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesDataStreams::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesDataStreams'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesKeyEvents.php 0000644 00000014275 14721515320 0023464 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEvent; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListKeyEventsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "keyEvents" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $keyEvents = $analyticsadminService->properties_keyEvents; * </code> */ class PropertiesKeyEvents extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a Key Event. (keyEvents.create) * * @param string $parent Required. The resource name of the parent property * where this Key Event will be created. Format: properties/123 * @param GoogleAnalyticsAdminV1betaKeyEvent $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaKeyEvent * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEvent $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEvent::class); } /** * Deletes a Key Event. (keyEvents.delete) * * @param string $name Required. The resource name of the Key Event to delete. * Format: properties/{property}/keyEvents/{key_event} Example: * "properties/123/keyEvents/456" * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Retrieve a single Key Event. (keyEvents.get) * * @param string $name Required. The resource name of the Key Event to retrieve. * Format: properties/{property}/keyEvents/{key_event} Example: * "properties/123/keyEvents/456" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaKeyEvent * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEvent::class); } /** * Returns a list of Key Events in the specified parent property. Returns an * empty list if no Key Events are found. (keyEvents.listPropertiesKeyEvents) * * @param string $parent Required. The resource name of the parent property. * Example: 'properties/123' * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200; * (higher values will be coerced to the maximum) * @opt_param string pageToken A page token, received from a previous * `ListKeyEvents` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListKeyEvents` must match the * call that provided the page token. * @return GoogleAnalyticsAdminV1betaListKeyEventsResponse * @throws \Google\Service\Exception */ public function listPropertiesKeyEvents($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListKeyEventsResponse::class); } /** * Updates a Key Event. (keyEvents.patch) * * @param string $name Output only. Resource name of this key event. Format: * properties/{property}/keyEvents/{key_event} * @param GoogleAnalyticsAdminV1betaKeyEvent $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (e.g., "field_to_update"). Omitted fields * will not be updated. To replace the entire entity, use one path with the * string "*" to match all fields. * @return GoogleAnalyticsAdminV1betaKeyEvent * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEvent $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaKeyEvent::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesKeyEvents::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesKeyEvents'); src/GoogleAnalyticsAdmin/Resource/PropertiesDisplayVideo360AdvertiserLinkProposals.php 0000644 00000021057 14721515320 0031063 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "displayVideo360AdvertiserLinkProposals" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $displayVideo360AdvertiserLinkProposals = $analyticsadminService->displayVideo360AdvertiserLinkProposals; * </code> */ class PropertiesDisplayVideo360AdvertiserLinkProposals extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Approves a DisplayVideo360AdvertiserLinkProposal. The * DisplayVideo360AdvertiserLinkProposal will be deleted and a new * DisplayVideo360AdvertiserLink will be created. * (displayVideo360AdvertiserLinkProposals.approve) * * @param string $name Required. The name of the * DisplayVideo360AdvertiserLinkProposal to approve. Example format: * properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @param GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse */ public function approve($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('approve', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse::class); } /** * Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: * - Declining a proposal initiated from Display & Video 360 - Withdrawing a * proposal initiated from Google Analytics After being cancelled, a proposal * will eventually be deleted automatically. * (displayVideo360AdvertiserLinkProposals.cancel) * * @param string $name Required. The name of the * DisplayVideo360AdvertiserLinkProposal to cancel. Example format: * properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @param GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal */ public function cancel($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('cancel', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal::class); } /** * Creates a DisplayVideo360AdvertiserLinkProposal. * (displayVideo360AdvertiserLinkProposals.create) * * @param string $parent Required. Example format: properties/1234 * @param GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal::class); } /** * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only * be used on cancelled proposals. * (displayVideo360AdvertiserLinkProposals.delete) * * @param string $name Required. The name of the * DisplayVideo360AdvertiserLinkProposal to delete. Example format: * properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single DisplayVideo360AdvertiserLinkProposal. * (displayVideo360AdvertiserLinkProposals.get) * * @param string $name Required. The name of the * DisplayVideo360AdvertiserLinkProposal to get. Example format: * properties/1234/displayVideo360AdvertiserLinkProposals/5678 * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal::class); } /** * Lists DisplayVideo360AdvertiserLinkProposals on a property. (displayVideo360A * dvertiserLinkProposals.listPropertiesDisplayVideo360AdvertiserLinkProposals) * * @param string $parent Required. Example format: properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200 * (higher values will be coerced to the maximum). * @opt_param string pageToken A page token, received from a previous * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve * the subsequent page. When paginating, all other parameters provided to * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that * provided the page token. * @return GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse */ public function listPropertiesDisplayVideo360AdvertiserLinkProposals($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesDisplayVideo360AdvertiserLinkProposals::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesDisplayVideo360AdvertiserLinkProposals'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesFirebaseLinks.php 0000644 00000011004 14721515320 0024253 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaFirebaseLink; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListFirebaseLinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "firebaseLinks" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $firebaseLinks = $analyticsadminService->properties_firebaseLinks; * </code> */ class PropertiesFirebaseLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a FirebaseLink. Properties can have at most one FirebaseLink. * (firebaseLinks.create) * * @param string $parent Required. Format: properties/{property_id} Example: * properties/1234 * @param GoogleAnalyticsAdminV1betaFirebaseLink $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaFirebaseLink * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaFirebaseLink $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaFirebaseLink::class); } /** * Deletes a FirebaseLink on a property (firebaseLinks.delete) * * @param string $name Required. Format: * properties/{property_id}/firebaseLinks/{firebase_link_id} Example: * properties/1234/firebaseLinks/5678 * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lists FirebaseLinks on a property. Properties can have at most one * FirebaseLink. (firebaseLinks.listPropertiesFirebaseLinks) * * @param string $parent Required. Format: properties/{property_id} Example: * properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. The * service may return fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. The maximum value is * 200; (higher values will be coerced to the maximum) * @opt_param string pageToken A page token, received from a previous * `ListFirebaseLinks` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListFirebaseLinks` must match * the call that provided the page token. * @return GoogleAnalyticsAdminV1betaListFirebaseLinksResponse * @throws \Google\Service\Exception */ public function listPropertiesFirebaseLinks($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListFirebaseLinksResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesFirebaseLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesFirebaseLinks'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/AccountSummaries.php 0000644 00000005163 14721515320 0022750 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListAccountSummariesResponse; /** * The "accountSummaries" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $accountSummaries = $analyticsadminService->accountSummaries; * </code> */ class AccountSummaries extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Returns summaries of all accounts accessible by the caller. * (accountSummaries.listAccountSummaries) * * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of AccountSummary resources to * return. The service may return fewer than this value, even if there are * additional pages. If unspecified, at most 50 resources will be returned. The * maximum value is 200; (higher values will be coerced to the maximum) * @opt_param string pageToken A page token, received from a previous * `ListAccountSummaries` call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListAccountSummaries` must * match the call that provided the page token. * @return GoogleAnalyticsAdminV1betaListAccountSummariesResponse * @throws \Google\Service\Exception */ public function listAccountSummaries($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListAccountSummariesResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\AccountSummaries::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_AccountSummaries'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesSearchAds360Links.php 0000644 00000014005 14721515320 0024625 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "searchAds360Links" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $searchAds360Links = $analyticsadminService->searchAds360Links; * </code> */ class PropertiesSearchAds360Links extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a SearchAds360Link. (searchAds360Links.create) * * @param string $parent Required. Example format: properties/1234 * @param GoogleAnalyticsAdminV1alphaSearchAds360Link $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaSearchAds360Link */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link::class); } /** * Deletes a SearchAds360Link on a property. (searchAds360Links.delete) * * @param string $name Required. The name of the SearchAds360Link to delete. * Example format: properties/1234/SearchAds360Links/5678 * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Look up a single SearchAds360Link (searchAds360Links.get) * * @param string $name Required. The name of the SearchAds360Link to get. * Example format: properties/1234/SearchAds360Link/5678 * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaSearchAds360Link */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link::class); } /** * Lists all SearchAds360Links on a property. * (searchAds360Links.listPropertiesSearchAds360Links) * * @param string $parent Required. Example format: properties/1234 * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200 * (higher values will be coerced to the maximum). * @opt_param string pageToken A page token, received from a previous * `ListSearchAds360Links` call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListSearchAds360Links` * must match the call that provided the page token. * @return GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse */ public function listPropertiesSearchAds360Links($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse::class); } /** * Updates a SearchAds360Link on a property. (searchAds360Links.patch) * * @param string $name Output only. The resource name for this SearchAds360Link * resource. Format: properties/{propertyId}/searchAds360Links/{linkId} Note: * linkId is not the Search Ads 360 advertiser ID * @param GoogleAnalyticsAdminV1alphaSearchAds360Link $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Omitted fields will not be updated. To replace the entire entity, use one * path with the string "*" to match all fields. * @return GoogleAnalyticsAdminV1alphaSearchAds360Link */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchAds360Link::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesSearchAds360Links::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesSearchAds360Links'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/Properties.php 0000644 00000033365 14721515320 0021627 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataRetentionSettings; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListPropertiesResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportResponse; /** * The "properties" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $properties = $analyticsadminService->properties; * </code> */ class Properties extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Acknowledges the terms of user data collection for the specified property. * This acknowledgement must be completed (either in the Google Analytics UI or * through this API) before MeasurementProtocolSecret resources may be created. * (properties.acknowledgeUserDataCollection) * * @param string $property Required. The property for which to acknowledge user * data collection. * @param GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse * @throws \Google\Service\Exception */ public function acknowledgeUserDataCollection($property, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest $postBody, $optParams = []) { $params = ['property' => $property, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('acknowledgeUserDataCollection', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse::class); } /** * Creates an "GA4" property with the specified location and attributes. * (properties.create) * * @param GoogleAnalyticsAdminV1betaProperty $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaProperty * @throws \Google\Service\Exception */ public function create(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty::class); } /** * Marks target Property as soft-deleted (ie: "trashed") and returns it. This * API does not have a method to restore soft-deleted properties. However, they * can be restored using the Trash Can UI. If the properties are not restored * before the expiration time, the Property and all child resources (eg: * GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 Returns an error if the * target is not found, or is not a GA4 Property. (properties.delete) * * @param string $name Required. The name of the Property to soft-delete. * Format: properties/{property_id} Example: "properties/1000" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaProperty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty::class); } /** * Lookup for a single "GA4" Property. (properties.get) * * @param string $name Required. The name of the property to lookup. Format: * properties/{property_id} Example: "properties/1000" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaProperty * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty::class); } /** * Returns the singleton data retention settings for this property. * (properties.getDataRetentionSettings) * * @param string $name Required. The name of the settings to lookup. Format: * properties/{property}/dataRetentionSettings Example: * "properties/1000/dataRetentionSettings" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaDataRetentionSettings * @throws \Google\Service\Exception */ public function getDataRetentionSettings($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('getDataRetentionSettings', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataRetentionSettings::class); } /** * Returns child Properties under the specified parent Account. Only "GA4" * properties will be returned. Properties will be excluded if the caller does * not have access. Soft-deleted (ie: "trashed") properties are excluded by * default. Returns an empty list if no relevant properties are found. * (properties.listProperties) * * @param array $optParams Optional parameters. * * @opt_param string filter Required. An expression for filtering the results of * the request. Fields eligible for filtering are: `parent:`(The resource name * of the parent account/property) or `ancestor:`(The resource name of the * parent account) or `firebase_project:`(The id or number of the linked * firebase project). Some examples of filters: ``` | Filter | Description | * |-----------------------------|-------------------------------------------| | * parent:accounts/123 | The account with account id: 123. | | * parent:properties/123 | The property with property id: 123. | | * ancestor:accounts/123 | The account with account id: 123. | | * firebase_project:project-id | The firebase project with id: project-id. | | * firebase_project:123 | The firebase project with number: 123. | ``` * @opt_param int pageSize The maximum number of resources to return. The * service may return fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. The maximum value is * 200; (higher values will be coerced to the maximum) * @opt_param string pageToken A page token, received from a previous * `ListProperties` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListProperties` must match the * call that provided the page token. * @opt_param bool showDeleted Whether to include soft-deleted (ie: "trashed") * Properties in the results. Properties can be inspected to determine whether * they are deleted or not. * @return GoogleAnalyticsAdminV1betaListPropertiesResponse * @throws \Google\Service\Exception */ public function listProperties($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListPropertiesResponse::class); } /** * Updates a property. (properties.patch) * * @param string $name Output only. Resource name of this property. Format: * properties/{property_id} Example: "properties/1000" * @param GoogleAnalyticsAdminV1betaProperty $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (e.g., "field_to_update"). Omitted fields * will not be updated. To replace the entire entity, use one path with the * string "*" to match all fields. * @return GoogleAnalyticsAdminV1betaProperty * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProperty::class); } /** * Returns a customized report of data access records. The report provides * records of each time a user reads Google Analytics reporting data. Access * records are retained for up to 2 years. Data Access Reports can be requested * for a property. Reports may be requested for any property, but dimensions * that aren't related to quota can only be requested on Google Analytics 360 * properties. This method is only available to Administrators. These data * access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, * and other products like Firebase & Admob that can retrieve data from Google * Analytics through a linkage. These records don't include property * configuration changes like adding a stream or changing a property's time * zone. For configuration change history, see [searchChangeHistoryEvents](https * ://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/acc * ounts/searchChangeHistoryEvents). (properties.runAccessReport) * * @param string $entity The Data Access Report supports requesting at the * property level or account level. If requested at the account level, Data * Access Reports include all access for all properties under that account. To * request at the property level, entity should be for example 'properties/123' * if "123" is your GA4 property ID. To request at the account level, entity * should be for example 'accounts/1234' if "1234" is your GA4 Account ID. * @param GoogleAnalyticsAdminV1betaRunAccessReportRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaRunAccessReportResponse * @throws \Google\Service\Exception */ public function runAccessReport($entity, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportRequest $postBody, $optParams = []) { $params = ['entity' => $entity, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('runAccessReport', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportResponse::class); } /** * Updates the singleton data retention settings for this property. * (properties.updateDataRetentionSettings) * * @param string $name Output only. Resource name for this DataRetentionSetting * resource. Format: properties/{property}/dataRetentionSettings * @param GoogleAnalyticsAdminV1betaDataRetentionSettings $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (e.g., "field_to_update"). Omitted fields * will not be updated. To replace the entire entity, use one path with the * string "*" to match all fields. * @return GoogleAnalyticsAdminV1betaDataRetentionSettings * @throws \Google\Service\Exception */ public function updateDataRetentionSettings($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataRetentionSettings $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('updateDataRetentionSettings', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataRetentionSettings::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\Properties::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_Properties'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesAndroidAppDataStreams.php 0000644 00000013455 14721515320 0025720 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAndroidAppDataStream; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "androidAppDataStreams" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $androidAppDataStreams = $analyticsadminService->androidAppDataStreams; * </code> */ class PropertiesAndroidAppDataStreams extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Deletes an android app stream on a property. (androidAppDataStreams.delete) * * @param string $name Required. The name of the android app data stream to * delete. Format: properties/{property_id}/androidAppDataStreams/{stream_id} * Example: "properties/123/androidAppDataStreams/456" * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single AndroidAppDataStream (androidAppDataStreams.get) * * @param string $name Required. The name of the android app data stream to * lookup. Format: properties/{property_id}/androidAppDataStreams/{stream_id} * Example: "properties/123/androidAppDataStreams/456" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaAndroidAppDataStream */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAndroidAppDataStream::class); } /** * Returns child android app streams under the specified parent property. * Android app streams will be excluded if the caller does not have access. * Returns an empty list if no relevant android app streams are found. * (androidAppDataStreams.listPropertiesAndroidAppDataStreams) * * @param string $parent Required. The name of the parent property. For example, * to limit results to app streams under the property with Id 123: * "properties/123" * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200; * (higher values will be coerced to the maximum) * @opt_param string pageToken A page token, received from a previous call. * Provide this to retrieve the subsequent page. When paginating, all other * parameters provided to `ListAndroidAppDataStreams` must match the call that * provided the page token. * @return GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse */ public function listPropertiesAndroidAppDataStreams($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse::class); } /** * Updates an android app stream on a property. (androidAppDataStreams.patch) * * @param string $name Output only. Resource name of this Data Stream. Format: * properties/{property_id}/androidAppDataStreams/{stream_id} Example: * "properties/1000/androidAppDataStreams/2000" * @param GoogleAnalyticsAdminV1alphaAndroidAppDataStream $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (e.g., "field_to_update"). Omitted fields * will not be updated. To replace the entire entity, use one path with the * string "*" to match all fields. * @return GoogleAnalyticsAdminV1alphaAndroidAppDataStream */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAndroidAppDataStream $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAndroidAppDataStream::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesAndroidAppDataStreams::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesAndroidAppDataStreams'); src/GoogleAnalyticsAdmin/Resource/PropertiesAndroidAppDataStreamsMeasurementProtocolSecrets.php 0000644 00000016212 14721515320 0033114 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "measurementProtocolSecrets" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $measurementProtocolSecrets = $analyticsadminService->measurementProtocolSecrets; * </code> */ class PropertiesAndroidAppDataStreamsMeasurementProtocolSecrets extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a measurement protocol secret. (measurementProtocolSecrets.create) * * @param string $parent Required. The parent resource where this secret will be * created. Any type of stream (WebDataStream, IosAppDataStream, * AndroidAppDataStream) may be a parent. Format: * properties/{property}/webDataStreams/{webDataStream} * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class); } /** * Deletes target MeasurementProtocolSecret. (measurementProtocolSecrets.delete) * * @param string $name Required. The name of the MeasurementProtocolSecret to * delete. Format: properties/{property}/webDataStreams/{webDataStream}/measurem * entProtocolSecrets/{measurementProtocolSecret} Note: Any type of stream * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single "GA4" MeasurementProtocolSecret. * (measurementProtocolSecrets.get) * * @param string $name Required. The name of the measurement protocol secret to * lookup. Format: properties/{property}/webDataStreams/{webDataStream}/measurem * entProtocolSecrets/{measurementProtocolSecret} Note: Any type of stream * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class); } /** * Returns child MeasurementProtocolSecrets under the specified parent Property. * (measurementProtocolSecrets.listPropertiesAndroidAppDataStreamsMeasurementPro * tocolSecrets) * * @param string $parent Required. The resource name of the parent stream. Any * type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be * a parent. Format: properties/{property}/webDataStreams/{webDataStream}/measur * ementProtocolSecrets * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 10 resources will be returned. The maximum value is 10. * Higher values will be coerced to the maximum. * @opt_param string pageToken A page token, received from a previous * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the * subsequent page. When paginating, all other parameters provided to * `ListMeasurementProtocolSecrets` must match the call that provided the page * token. * @return GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse */ public function listPropertiesAndroidAppDataStreamsMeasurementProtocolSecrets($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::class); } /** * Updates a measurement protocol secret. (measurementProtocolSecrets.patch) * * @param string $name Output only. Resource name of this secret. This secret * may be a child of any type of stream. Format: properties/{property}/webDataSt * reams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask The list of fields to be updated. Omitted fields * will not be updated. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesAndroidAppDataStreamsMeasurementProtocolSecrets::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesAndroidAppDataStreamsMeasurementProtocolSecrets'); src/GoogleAnalyticsAdmin/Resource/PropertiesDataStreamsMeasurementProtocolSecrets.php 0000644 00000015572 14721515320 0031162 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "measurementProtocolSecrets" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $measurementProtocolSecrets = $analyticsadminService->properties_dataStreams_measurementProtocolSecrets; * </code> */ class PropertiesDataStreamsMeasurementProtocolSecrets extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a measurement protocol secret. (measurementProtocolSecrets.create) * * @param string $parent Required. The parent resource where this secret will be * created. Format: properties/{property}/dataStreams/{dataStream} * @param GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaMeasurementProtocolSecret * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret::class); } /** * Deletes target MeasurementProtocolSecret. (measurementProtocolSecrets.delete) * * @param string $name Required. The name of the MeasurementProtocolSecret to * delete. Format: properties/{property}/dataStreams/{dataStream}/measurementPro * tocolSecrets/{measurementProtocolSecret} * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single "GA4" MeasurementProtocolSecret. * (measurementProtocolSecrets.get) * * @param string $name Required. The name of the measurement protocol secret to * lookup. Format: properties/{property}/dataStreams/{dataStream}/measurementPro * tocolSecrets/{measurementProtocolSecret} * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaMeasurementProtocolSecret * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret::class); } /** * Returns child MeasurementProtocolSecrets under the specified parent Property. * (measurementProtocolSecrets.listPropertiesDataStreamsMeasurementProtocolSecre * ts) * * @param string $parent Required. The resource name of the parent stream. * Format: * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 10 resources will be returned. The maximum value is 10. * Higher values will be coerced to the maximum. * @opt_param string pageToken A page token, received from a previous * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the * subsequent page. When paginating, all other parameters provided to * `ListMeasurementProtocolSecrets` must match the call that provided the page * token. * @return GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse * @throws \Google\Service\Exception */ public function listPropertiesDataStreamsMeasurementProtocolSecrets($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse::class); } /** * Updates a measurement protocol secret. (measurementProtocolSecrets.patch) * * @param string $name Output only. Resource name of this secret. This secret * may be a child of any type of stream. Format: properties/{property}/dataStrea * ms/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @param GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Omitted fields will not be updated. * @return GoogleAnalyticsAdminV1betaMeasurementProtocolSecret * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesDataStreamsMeasurementProtocolSecrets::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesDataStreamsMeasurementProtocolSecrets'); src/GoogleAnalyticsAdmin/Resource/PropertiesIosAppDataStreamsMeasurementProtocolSecrets.php 0000644 00000016166 14721515320 0032276 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "measurementProtocolSecrets" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $measurementProtocolSecrets = $analyticsadminService->measurementProtocolSecrets; * </code> */ class PropertiesIosAppDataStreamsMeasurementProtocolSecrets extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a measurement protocol secret. (measurementProtocolSecrets.create) * * @param string $parent Required. The parent resource where this secret will be * created. Any type of stream (WebDataStream, IosAppDataStream, * AndroidAppDataStream) may be a parent. Format: * properties/{property}/webDataStreams/{webDataStream} * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class); } /** * Deletes target MeasurementProtocolSecret. (measurementProtocolSecrets.delete) * * @param string $name Required. The name of the MeasurementProtocolSecret to * delete. Format: properties/{property}/webDataStreams/{webDataStream}/measurem * entProtocolSecrets/{measurementProtocolSecret} Note: Any type of stream * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single "GA4" MeasurementProtocolSecret. * (measurementProtocolSecrets.get) * * @param string $name Required. The name of the measurement protocol secret to * lookup. Format: properties/{property}/webDataStreams/{webDataStream}/measurem * entProtocolSecrets/{measurementProtocolSecret} Note: Any type of stream * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class); } /** * Returns child MeasurementProtocolSecrets under the specified parent Property. * (measurementProtocolSecrets.listPropertiesIosAppDataStreamsMeasurementProtoco * lSecrets) * * @param string $parent Required. The resource name of the parent stream. Any * type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be * a parent. Format: properties/{property}/webDataStreams/{webDataStream}/measur * ementProtocolSecrets * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 10 resources will be returned. The maximum value is 10. * Higher values will be coerced to the maximum. * @opt_param string pageToken A page token, received from a previous * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the * subsequent page. When paginating, all other parameters provided to * `ListMeasurementProtocolSecrets` must match the call that provided the page * token. * @return GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse */ public function listPropertiesIosAppDataStreamsMeasurementProtocolSecrets($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse::class); } /** * Updates a measurement protocol secret. (measurementProtocolSecrets.patch) * * @param string $name Output only. Resource name of this secret. This secret * may be a child of any type of stream. Format: properties/{property}/webDataSt * reams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} * @param GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask The list of fields to be updated. Omitted fields * will not be updated. * @return GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesIosAppDataStreamsMeasurementProtocolSecrets::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesIosAppDataStreamsMeasurementProtocolSecrets'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/Accounts.php 0000644 00000027333 14721515320 0021250 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataSharingSettings; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListAccountsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "accounts" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $accounts = $analyticsadminService->accounts; * </code> */ class Accounts extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Marks target Account as soft-deleted (ie: "trashed") and returns it. This API * does not have a method to restore soft-deleted accounts. However, they can be * restored using the Trash Can UI. If the accounts are not restored before the * expiration time, the account and all child resources (eg: Properties, * GoogleAdsLinks, Streams, AccessBindings) will be permanently purged. * https://support.google.com/analytics/answer/6154772 Returns an error if the * target is not found. (accounts.delete) * * @param string $name Required. The name of the Account to soft-delete. Format: * accounts/{account} Example: "accounts/100" * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single Account. (accounts.get) * * @param string $name Required. The name of the account to lookup. Format: * accounts/{account} Example: "accounts/100" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaAccount * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount::class); } /** * Get data sharing settings on an account. Data sharing settings are * singletons. (accounts.getDataSharingSettings) * * @param string $name Required. The name of the settings to lookup. Format: * accounts/{account}/dataSharingSettings Example: * "accounts/1000/dataSharingSettings" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaDataSharingSettings * @throws \Google\Service\Exception */ public function getDataSharingSettings($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('getDataSharingSettings', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataSharingSettings::class); } /** * Returns all accounts accessible by the caller. Note that these accounts might * not currently have GA4 properties. Soft-deleted (ie: "trashed") accounts are * excluded by default. Returns an empty list if no relevant accounts are found. * (accounts.listAccounts) * * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. The * service may return fewer than this value, even if there are additional pages. * If unspecified, at most 50 resources will be returned. The maximum value is * 200; (higher values will be coerced to the maximum) * @opt_param string pageToken A page token, received from a previous * `ListAccounts` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListAccounts` must match the * call that provided the page token. * @opt_param bool showDeleted Whether to include soft-deleted (ie: "trashed") * Accounts in the results. Accounts can be inspected to determine whether they * are deleted or not. * @return GoogleAnalyticsAdminV1betaListAccountsResponse * @throws \Google\Service\Exception */ public function listAccounts($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListAccountsResponse::class); } /** * Updates an account. (accounts.patch) * * @param string $name Output only. Resource name of this account. Format: * accounts/{account} Example: "accounts/100" * @param GoogleAnalyticsAdminV1betaAccount $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (for example, "field_to_update"). Omitted * fields will not be updated. To replace the entire entity, use one path with * the string "*" to match all fields. * @return GoogleAnalyticsAdminV1betaAccount * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccount::class); } /** * Requests a ticket for creating an account. (accounts.provisionAccountTicket) * * @param GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse * @throws \Google\Service\Exception */ public function provisionAccountTicket(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('provisionAccountTicket', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse::class); } /** * Returns a customized report of data access records. The report provides * records of each time a user reads Google Analytics reporting data. Access * records are retained for up to 2 years. Data Access Reports can be requested * for a property. Reports may be requested for any property, but dimensions * that aren't related to quota can only be requested on Google Analytics 360 * properties. This method is only available to Administrators. These data * access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, * and other products like Firebase & Admob that can retrieve data from Google * Analytics through a linkage. These records don't include property * configuration changes like adding a stream or changing a property's time * zone. For configuration change history, see [searchChangeHistoryEvents](https * ://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/acc * ounts/searchChangeHistoryEvents). (accounts.runAccessReport) * * @param string $entity The Data Access Report supports requesting at the * property level or account level. If requested at the account level, Data * Access Reports include all access for all properties under that account. To * request at the property level, entity should be for example 'properties/123' * if "123" is your GA4 property ID. To request at the account level, entity * should be for example 'accounts/1234' if "1234" is your GA4 Account ID. * @param GoogleAnalyticsAdminV1betaRunAccessReportRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaRunAccessReportResponse * @throws \Google\Service\Exception */ public function runAccessReport($entity, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportRequest $postBody, $optParams = []) { $params = ['entity' => $entity, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('runAccessReport', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportResponse::class); } /** * Searches through all changes to an account or its children given the * specified set of filters. (accounts.searchChangeHistoryEvents) * * @param string $account Required. The account resource for which to return * change history resources. Format: accounts/{account} Example: "accounts/100" * @param GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse * @throws \Google\Service\Exception */ public function searchChangeHistoryEvents($account, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest $postBody, $optParams = []) { $params = ['account' => $account, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('searchChangeHistoryEvents', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\Accounts::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_Accounts'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesWebDataStreams.php 0000644 00000014706 14721515320 0024414 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaWebDataStream; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "webDataStreams" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $webDataStreams = $analyticsadminService->webDataStreams; * </code> */ class PropertiesWebDataStreams extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a web stream with the specified location and attributes. * (webDataStreams.create) * * @param string $parent Required. The parent resource where this web data * stream will be created. Format: properties/123 * @param GoogleAnalyticsAdminV1alphaWebDataStream $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaWebDataStream */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaWebDataStream $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaWebDataStream::class); } /** * Deletes a web stream on a property. (webDataStreams.delete) * * @param string $name Required. The name of the web data stream to delete. * Format: properties/{property_id}/webDataStreams/{stream_id} Example: * "properties/123/webDataStreams/456" * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Lookup for a single WebDataStream (webDataStreams.get) * * @param string $name Required. The name of the web data stream to lookup. * Format: properties/{property_id}/webDataStreams/{stream_id} Example: * "properties/123/webDataStreams/456" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1alphaWebDataStream */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaWebDataStream::class); } /** * Returns child web data streams under the specified parent property. Web data * streams will be excluded if the caller does not have access. Returns an empty * list if no relevant web data streams are found. * (webDataStreams.listPropertiesWebDataStreams) * * @param string $parent Required. The name of the parent property. For example, * to list results of web streams under the property with Id 123: * "properties/123" * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200; * (higher values will be coerced to the maximum) * @opt_param string pageToken A page token, received from a previous * `ListWebDataStreams` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListWebDataStreams` must match * the call that provided the page token. * @return GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse */ public function listPropertiesWebDataStreams($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse::class); } /** * Updates a web stream on a property. (webDataStreams.patch) * * @param string $name Output only. Resource name of this Data Stream. Format: * properties/{property_id}/webDataStreams/{stream_id} Example: * "properties/1000/webDataStreams/2000" * @param GoogleAnalyticsAdminV1alphaWebDataStream $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (e.g., "field_to_update"). Omitted fields * will not be updated. To replace the entire entity, use one path with the * string "*" to match all fields. * @return GoogleAnalyticsAdminV1alphaWebDataStream */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaWebDataStream $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaWebDataStream::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesWebDataStreams::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesWebDataStreams'); apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesConversionEvents.php 0000644 00000015145 14721515320 0025056 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListConversionEventsResponse; use Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty; /** * The "conversionEvents" collection of methods. * Typical usage is: * <code> * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $conversionEvents = $analyticsadminService->properties_conversionEvents; * </code> */ class PropertiesConversionEvents extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a conversion event with the specified attributes. * (conversionEvents.create) * * @param string $parent Required. The resource name of the parent property * where this conversion event will be created. Format: properties/123 * @param GoogleAnalyticsAdminV1betaConversionEvent $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaConversionEvent * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent::class); } /** * Deletes a conversion event in a property. (conversionEvents.delete) * * @param string $name Required. The resource name of the conversion event to * delete. Format: properties/{property}/conversionEvents/{conversion_event} * Example: "properties/123/conversionEvents/456" * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty * @throws \Google\Service\Exception */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleProtobufEmpty::class); } /** * Retrieve a single conversion event. (conversionEvents.get) * * @param string $name Required. The resource name of the conversion event to * retrieve. Format: properties/{property}/conversionEvents/{conversion_event} * Example: "properties/123/conversionEvents/456" * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaConversionEvent * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent::class); } /** * Returns a list of conversion events in the specified parent property. Returns * an empty list if no conversion events are found. * (conversionEvents.listPropertiesConversionEvents) * * @param string $parent Required. The resource name of the parent property. * Example: 'properties/123' * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of resources to return. If * unspecified, at most 50 resources will be returned. The maximum value is 200; * (higher values will be coerced to the maximum) * @opt_param string pageToken A page token, received from a previous * `ListConversionEvents` call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListConversionEvents` must * match the call that provided the page token. * @return GoogleAnalyticsAdminV1betaListConversionEventsResponse * @throws \Google\Service\Exception */ public function listPropertiesConversionEvents($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListConversionEventsResponse::class); } /** * Updates a conversion event with the specified attributes. * (conversionEvents.patch) * * @param string $name Output only. Resource name of this conversion event. * Format: properties/{property}/conversionEvents/{conversion_event} * @param GoogleAnalyticsAdminV1betaConversionEvent $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask Required. The list of fields to be updated. * Field names must be in snake case (e.g., "field_to_update"). Omitted fields * will not be updated. To replace the entire entity, use one path with the * string "*" to match all fields. * @return GoogleAnalyticsAdminV1betaConversionEvent * @throws \Google\Service\Exception */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaConversionEvent::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesConversionEvents::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_Resource_PropertiesConversionEvents'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStreamWebStreamData.php 0000644 00000004104 14721515320 0027343 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaDataStreamWebStreamData extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $defaultUri; /** * @var string */ public $firebaseAppId; /** * @var string */ public $measurementId; /** * @param string */ public function setDefaultUri($defaultUri) { $this->defaultUri = $defaultUri; } /** * @return string */ public function getDefaultUri() { return $this->defaultUri; } /** * @param string */ public function setFirebaseAppId($firebaseAppId) { $this->firebaseAppId = $firebaseAppId; } /** * @return string */ public function getFirebaseAppId() { return $this->firebaseAppId; } /** * @param string */ public function setMeasurementId($measurementId) { $this->measurementId = $measurementId; } /** * @return string */ public function getMeasurementId() { return $this->measurementId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaDataStreamWebStreamData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaDataStreamWebStreamData'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter.php0000644 00000004230 14721515320 0033674 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $operation; protected $valueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue::class; protected $valueDataType = ''; /** * @param string */ public function setOperation($operation) { $this->operation = $operation; } /** * @return string */ public function getOperation() { return $this->operation; } /** * @param GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue */ public function setValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue $value) { $this->value = $value; } /** * @return GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaRunAccessReportResponse.php 0000644 00000007064 14721515320 0027523 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaRunAccessReportResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'rows'; protected $dimensionHeadersType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessDimensionHeader::class; protected $dimensionHeadersDataType = 'array'; protected $metricHeadersType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessMetricHeader::class; protected $metricHeadersDataType = 'array'; protected $quotaType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuota::class; protected $quotaDataType = ''; /** * @var int */ public $rowCount; protected $rowsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessRow::class; protected $rowsDataType = 'array'; /** * @param GoogleAnalyticsAdminV1betaAccessDimensionHeader[] */ public function setDimensionHeaders($dimensionHeaders) { $this->dimensionHeaders = $dimensionHeaders; } /** * @return GoogleAnalyticsAdminV1betaAccessDimensionHeader[] */ public function getDimensionHeaders() { return $this->dimensionHeaders; } /** * @param GoogleAnalyticsAdminV1betaAccessMetricHeader[] */ public function setMetricHeaders($metricHeaders) { $this->metricHeaders = $metricHeaders; } /** * @return GoogleAnalyticsAdminV1betaAccessMetricHeader[] */ public function getMetricHeaders() { return $this->metricHeaders; } /** * @param GoogleAnalyticsAdminV1betaAccessQuota */ public function setQuota(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessQuota $quota) { $this->quota = $quota; } /** * @return GoogleAnalyticsAdminV1betaAccessQuota */ public function getQuota() { return $this->quota; } /** * @param int */ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } /** * @return int */ public function getRowCount() { return $this->rowCount; } /** * @param GoogleAnalyticsAdminV1betaAccessRow[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return GoogleAnalyticsAdminV1betaAccessRow[] */ public function getRows() { return $this->rows; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaRunAccessReportResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaRunAccessReportResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest.php 0000644 00000003252 14721515320 0027337 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest extends \Google\Site_Kit_Dependencies\Google\Model { protected $userLinkType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class; protected $userLinkDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaUserLink */ public function setUserLink(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink $userLink) { $this->userLink = $userLink; } /** * @return GoogleAnalyticsAdminV1alphaUserLink */ public function getUserLink() { return $this->userLink; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse.php 0000644 00000004120 14721515320 0030702 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'iosAppDataStreams'; protected $iosAppDataStreamsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaIosAppDataStream::class; protected $iosAppDataStreamsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaIosAppDataStream[] */ public function setIosAppDataStreams($iosAppDataStreams) { $this->iosAppDataStreams = $iosAppDataStreams; } /** * @return GoogleAnalyticsAdminV1alphaIosAppDataStream[] */ public function getIosAppDataStreams() { return $this->iosAppDataStreams; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse.php 0000644 00000004156 14721515320 0031443 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'changeHistoryEvents'; protected $changeHistoryEventsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaChangeHistoryEvent::class; protected $changeHistoryEventsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaChangeHistoryEvent[] */ public function setChangeHistoryEvents($changeHistoryEvents) { $this->changeHistoryEvents = $changeHistoryEvents; } /** * @return GoogleAnalyticsAdminV1betaChangeHistoryEvent[] */ public function getChangeHistoryEvents() { return $this->changeHistoryEvents; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessOrderBy.php 0000644 00000005171 14721515320 0025561 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessOrderBy extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $desc; protected $dimensionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy::class; protected $dimensionDataType = ''; protected $metricType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy::class; protected $metricDataType = ''; /** * @param bool */ public function setDesc($desc) { $this->desc = $desc; } /** * @return bool */ public function getDesc() { return $this->desc; } /** * @param GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy */ public function setDimension(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy $dimension) { $this->dimension = $dimension; } /** * @return GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy */ public function getDimension() { return $this->dimension; } /** * @param GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy */ public function setMetric(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy $metric) { $this->metric = $metric; } /** * @return GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy */ public function getMetric() { return $this->metric; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessOrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessOrderBy'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse.php0000644 00000004024 14721515320 0030161 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'firebaseLinks'; protected $firebaseLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaFirebaseLink::class; protected $firebaseLinksDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1alphaFirebaseLink[] */ public function setFirebaseLinks($firebaseLinks) { $this->firebaseLinks = $firebaseLinks; } /** * @return GoogleAnalyticsAdminV1alphaFirebaseLink[] */ public function getFirebaseLinks() { return $this->firebaseLinks; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessFilterExpression.php 0000644 00000007207 14721515320 0027350 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessFilterExpression extends \Google\Site_Kit_Dependencies\Google\Model { protected $accessFilterType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilter::class; protected $accessFilterDataType = ''; protected $andGroupType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpressionList::class; protected $andGroupDataType = ''; protected $notExpressionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpression::class; protected $notExpressionDataType = ''; protected $orGroupType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpressionList::class; protected $orGroupDataType = ''; /** * @param GoogleAnalyticsAdminV1betaAccessFilter */ public function setAccessFilter(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilter $accessFilter) { $this->accessFilter = $accessFilter; } /** * @return GoogleAnalyticsAdminV1betaAccessFilter */ public function getAccessFilter() { return $this->accessFilter; } /** * @param GoogleAnalyticsAdminV1betaAccessFilterExpressionList */ public function setAndGroup(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpressionList $andGroup) { $this->andGroup = $andGroup; } /** * @return GoogleAnalyticsAdminV1betaAccessFilterExpressionList */ public function getAndGroup() { return $this->andGroup; } /** * @param GoogleAnalyticsAdminV1betaAccessFilterExpression */ public function setNotExpression(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpression $notExpression) { $this->notExpression = $notExpression; } /** * @return GoogleAnalyticsAdminV1betaAccessFilterExpression */ public function getNotExpression() { return $this->notExpression; } /** * @param GoogleAnalyticsAdminV1betaAccessFilterExpressionList */ public function setOrGroup(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpressionList $orGroup) { $this->orGroup = $orGroup; } /** * @return GoogleAnalyticsAdminV1betaAccessFilterExpressionList */ public function getOrGroup() { return $this->orGroup; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpression::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessFilterExpression'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest.php 0000644 00000002162 14721515320 0030300 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse.php0000644 00000003223 14721515320 0030125 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'userLinks'; protected $userLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaUserLink::class; protected $userLinksDataType = 'array'; /** * @param GoogleAnalyticsAdminV1alphaUserLink[] */ public function setUserLinks($userLinks) { $this->userLinks = $userLinks; } /** * @return GoogleAnalyticsAdminV1alphaUserLink[] */ public function getUserLinks() { return $this->userLinks; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaPropertySummary.php 0000644 00000004454 14721515320 0026276 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaPropertySummary extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $displayName; /** * @var string */ public $parent; /** * @var string */ public $property; /** * @var string */ public $propertyType; /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setParent($parent) { $this->parent = $parent; } /** * @return string */ public function getParent() { return $this->parent; } /** * @param string */ public function setProperty($property) { $this->property = $property; } /** * @return string */ public function getProperty() { return $this->property; } /** * @param string */ public function setPropertyType($propertyType) { $this->propertyType = $propertyType; } /** * @return string */ public function getPropertyType() { return $this->propertyType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaPropertySummary::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaPropertySummary'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataStreamWebStreamData.php 0000644 00000004107 14721515320 0027520 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaDataStreamWebStreamData extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $defaultUri; /** * @var string */ public $firebaseAppId; /** * @var string */ public $measurementId; /** * @param string */ public function setDefaultUri($defaultUri) { $this->defaultUri = $defaultUri; } /** * @return string */ public function getDefaultUri() { return $this->defaultUri; } /** * @param string */ public function setFirebaseAppId($firebaseAppId) { $this->firebaseAppId = $firebaseAppId; } /** * @return string */ public function getFirebaseAppId() { return $this->firebaseAppId; } /** * @param string */ public function setMeasurementId($measurementId) { $this->measurementId = $measurementId; } /** * @return string */ public function getMeasurementId() { return $this->measurementId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDataStreamWebStreamData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaDataStreamWebStreamData'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse.php 0000644 00000004043 14721515320 0030230 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'webDataStreams'; /** * @var string */ public $nextPageToken; protected $webDataStreamsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaWebDataStream::class; protected $webDataStreamsDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param GoogleAnalyticsAdminV1alphaWebDataStream[] */ public function setWebDataStreams($webDataStreams) { $this->webDataStreams = $webDataStreams; } /** * @return GoogleAnalyticsAdminV1alphaWebDataStream[] */ public function getWebDataStreams() { return $this->webDataStreams; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest.php0000644 00000002157 14721515320 0030211 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse.php0000644 00000004035 14721515320 0030135 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'googleAdsLinks'; protected $googleAdsLinksType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaGoogleAdsLink::class; protected $googleAdsLinksDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GoogleAnalyticsAdminV1betaGoogleAdsLink[] */ public function setGoogleAdsLinks($googleAdsLinks) { $this->googleAdsLinks = $googleAdsLinks; } /** * @return GoogleAnalyticsAdminV1betaGoogleAdsLink[] */ public function getGoogleAdsLinks() { return $this->googleAdsLinks; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaMeasurementProtocolSecret.php 0000644 00000004004 14721515320 0030066 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaMeasurementProtocolSecret extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $displayName; /** * @var string */ public $name; /** * @var string */ public $secretValue; /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setSecretValue($secretValue) { $this->secretValue = $secretValue; } /** * @return string */ public function getSecretValue() { return $this->secretValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaMeasurementProtocolSecret'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest.php 0000644 00000002565 14721515320 0027325 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter.php 0000644 00000003505 14721515320 0033500 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'values'; /** * @var bool */ public $caseSensitive; /** * @var string[] */ public $values; /** * @param bool */ public function setCaseSensitive($caseSensitive) { $this->caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string[] */ public function setValues($values) { $this->values = $values; } /** * @return string[] */ public function getValues() { return $this->values; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaFirebaseLink.php 0000644 00000003672 14721515320 0025261 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaFirebaseLink extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $createTime; /** * @var string */ public $name; /** * @var string */ public $project; /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setProject($project) { $this->project = $project; } /** * @return string */ public function getProject() { return $this->project; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaFirebaseLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaFirebaseLink'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceSequenceFilter.php 0000644 00000004704 14721515320 0027446 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceSequenceFilter extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'sequenceSteps'; /** * @var string */ public $scope; /** * @var string */ public $sequenceMaximumDuration; protected $sequenceStepsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep::class; protected $sequenceStepsDataType = 'array'; /** * @param string */ public function setScope($scope) { $this->scope = $scope; } /** * @return string */ public function getScope() { return $this->scope; } /** * @param string */ public function setSequenceMaximumDuration($sequenceMaximumDuration) { $this->sequenceMaximumDuration = $sequenceMaximumDuration; } /** * @return string */ public function getSequenceMaximumDuration() { return $this->sequenceMaximumDuration; } /** * @param GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep[] */ public function setSequenceSteps($sequenceSteps) { $this->sequenceSteps = $sequenceSteps; } /** * @return GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep[] */ public function getSequenceSteps() { return $this->sequenceSteps; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceSequenceFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceSequenceFilter'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest.php 0000644 00000007323 14721515320 0031446 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'resourceType'; /** * @var string[] */ public $action; /** * @var string[] */ public $actorEmail; /** * @var string */ public $earliestChangeTime; /** * @var string */ public $latestChangeTime; /** * @var int */ public $pageSize; /** * @var string */ public $pageToken; /** * @var string */ public $property; /** * @var string[] */ public $resourceType; /** * @param string[] */ public function setAction($action) { $this->action = $action; } /** * @return string[] */ public function getAction() { return $this->action; } /** * @param string[] */ public function setActorEmail($actorEmail) { $this->actorEmail = $actorEmail; } /** * @return string[] */ public function getActorEmail() { return $this->actorEmail; } /** * @param string */ public function setEarliestChangeTime($earliestChangeTime) { $this->earliestChangeTime = $earliestChangeTime; } /** * @return string */ public function getEarliestChangeTime() { return $this->earliestChangeTime; } /** * @param string */ public function setLatestChangeTime($latestChangeTime) { $this->latestChangeTime = $latestChangeTime; } /** * @return string */ public function getLatestChangeTime() { return $this->latestChangeTime; } /** * @param int */ public function setPageSize($pageSize) { $this->pageSize = $pageSize; } /** * @return int */ public function getPageSize() { return $this->pageSize; } /** * @param string */ public function setPageToken($pageToken) { $this->pageToken = $pageToken; } /** * @return string */ public function getPageToken() { return $this->pageToken; } /** * @param string */ public function setProperty($property) { $this->property = $property; } /** * @return string */ public function getProperty() { return $this->property; } /** * @param string[] */ public function setResourceType($resourceType) { $this->resourceType = $resourceType; } /** * @return string[] */ public function getResourceType() { return $this->resourceType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccessFilterExpressionList.php0000644 00000003314 14721515320 0030177 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1betaAccessFilterExpressionList extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'expressions'; protected $expressionsType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpression::class; protected $expressionsDataType = 'array'; /** * @param GoogleAnalyticsAdminV1betaAccessFilterExpression[] */ public function setExpressions($expressions) { $this->expressions = $expressions; } /** * @return GoogleAnalyticsAdminV1betaAccessFilterExpression[] */ public function getExpressions() { return $this->expressions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1betaAccessFilterExpressionList::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccessFilterExpressionList'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaProperty.php 0000644 00000012072 14721515320 0024713 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaProperty extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $account; /** * @var string */ public $createTime; /** * @var string */ public $currencyCode; /** * @var string */ public $deleteTime; /** * @var string */ public $displayName; /** * @var string */ public $expireTime; /** * @var string */ public $industryCategory; /** * @var string */ public $name; /** * @var string */ public $parent; /** * @var string */ public $propertyType; /** * @var string */ public $serviceLevel; /** * @var string */ public $timeZone; /** * @var string */ public $updateTime; /** * @param string */ public function setAccount($account) { $this->account = $account; } /** * @return string */ public function getAccount() { return $this->account; } /** * @param string */ public function setCreateTime($createTime) { $this->createTime = $createTime; } /** * @return string */ public function getCreateTime() { return $this->createTime; } /** * @param string */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } /** * @return string */ public function getCurrencyCode() { return $this->currencyCode; } /** * @param string */ public function setDeleteTime($deleteTime) { $this->deleteTime = $deleteTime; } /** * @return string */ public function getDeleteTime() { return $this->deleteTime; } /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setExpireTime($expireTime) { $this->expireTime = $expireTime; } /** * @return string */ public function getExpireTime() { return $this->expireTime; } /** * @param string */ public function setIndustryCategory($industryCategory) { $this->industryCategory = $industryCategory; } /** * @return string */ public function getIndustryCategory() { return $this->industryCategory; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setParent($parent) { $this->parent = $parent; } /** * @return string */ public function getParent() { return $this->parent; } /** * @param string */ public function setPropertyType($propertyType) { $this->propertyType = $propertyType; } /** * @return string */ public function getPropertyType() { return $this->propertyType; } /** * @param string */ public function setServiceLevel($serviceLevel) { $this->serviceLevel = $serviceLevel; } /** * @return string */ public function getServiceLevel() { return $this->serviceLevel; } /** * @param string */ public function setTimeZone($timeZone) { $this->timeZone = $timeZone; } /** * @return string */ public function getTimeZone() { return $this->timeZone; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaProperty::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaProperty'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAuditUserLink.php 0000644 00000004605 14721515320 0025615 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAuditUserLink extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'effectiveRoles'; /** * @var string[] */ public $directRoles; /** * @var string[] */ public $effectiveRoles; /** * @var string */ public $emailAddress; /** * @var string */ public $name; /** * @param string[] */ public function setDirectRoles($directRoles) { $this->directRoles = $directRoles; } /** * @return string[] */ public function getDirectRoles() { return $this->directRoles; } /** * @param string[] */ public function setEffectiveRoles($effectiveRoles) { $this->effectiveRoles = $effectiveRoles; } /** * @return string[] */ public function getEffectiveRoles() { return $this->effectiveRoles; } /** * @param string */ public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } /** * @return string */ public function getEmailAddress() { return $this->emailAddress; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAuditUserLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAuditUserLink'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse.php 0000644 00000002223 14721515320 0032414 0 ustar 00 apiclient-services <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceSimpleFilter.php 0000644 00000004100 14721515320 0027115 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAudienceSimpleFilter extends \Google\Site_Kit_Dependencies\Google\Model { protected $filterExpressionType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression::class; protected $filterExpressionDataType = ''; /** * @var string */ public $scope; /** * @param GoogleAnalyticsAdminV1alphaAudienceFilterExpression */ public function setFilterExpression(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceFilterExpression $filterExpression) { $this->filterExpression = $filterExpression; } /** * @return GoogleAnalyticsAdminV1alphaAudienceFilterExpression */ public function getFilterExpression() { return $this->filterExpression; } /** * @param string */ public function setScope($scope) { $this->scope = $scope; } /** * @return string */ public function getScope() { return $this->scope; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAudienceSimpleFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAudienceSimpleFilter'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessBetweenFilter.php 0000644 00000004413 14721515320 0026750 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin; class GoogleAnalyticsAdminV1alphaAccessBetweenFilter extends \Google\Site_Kit_Dependencies\Google\Model { protected $fromValueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaNumericValue::class; protected $fromValueDataType = ''; protected $toValueType = \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaNumericValue::class; protected $toValueDataType = ''; /** * @param GoogleAnalyticsAdminV1alphaNumericValue */ public function setFromValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaNumericValue $fromValue) { $this->fromValue = $fromValue; } /** * @return GoogleAnalyticsAdminV1alphaNumericValue */ public function getFromValue() { return $this->fromValue; } /** * @param GoogleAnalyticsAdminV1alphaNumericValue */ public function setToValue(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaNumericValue $toValue) { $this->toValue = $toValue; } /** * @return GoogleAnalyticsAdminV1alphaNumericValue */ public function getToValue() { return $this->toValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\GoogleAnalyticsAdminV1alphaAccessBetweenFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1alphaAccessBetweenFilter'); apiclient-services/src/AnalyticsData.php 0000644 00000012450 14721515320 0014360 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Client; /** * Service definition for AnalyticsData (v1beta). * * <p> * Accesses report data in Google Analytics. Warning: Creating multiple Customer * Applications, Accounts, or Projects to simulate or act as a single Customer * Application, Account, or Project (respectively) or to circumvent Service- * specific usage limits or quotas is a direct violation of Google Cloud * Platform Terms of Service as well as Google APIs Terms of Service. These * actions can result in immediate termination of your GCP project(s) without * any warning.</p> * * <p> * For more information about this service, see the API * <a href="https://developers.google.com/analytics/devguides/reporting/data/v1/" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class AnalyticsData extends \Google\Site_Kit_Dependencies\Google\Service { /** View and manage your Google Analytics data. */ const ANALYTICS = "https://www.googleapis.com/auth/analytics"; /** See and download your Google Analytics data. */ const ANALYTICS_READONLY = "https://www.googleapis.com/auth/analytics.readonly"; public $properties; public $properties_audienceExports; public $rootUrlTemplate; /** * Constructs the internal representation of the AnalyticsData service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://analyticsdata.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://analyticsdata.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1beta'; $this->serviceName = 'analyticsdata'; $this->properties = new \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Resource\Properties($this, $this->serviceName, 'properties', ['methods' => ['batchRunPivotReports' => ['path' => 'v1beta/{+property}:batchRunPivotReports', 'httpMethod' => 'POST', 'parameters' => ['property' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'batchRunReports' => ['path' => 'v1beta/{+property}:batchRunReports', 'httpMethod' => 'POST', 'parameters' => ['property' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'checkCompatibility' => ['path' => 'v1beta/{+property}:checkCompatibility', 'httpMethod' => 'POST', 'parameters' => ['property' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'getMetadata' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'runPivotReport' => ['path' => 'v1beta/{+property}:runPivotReport', 'httpMethod' => 'POST', 'parameters' => ['property' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'runRealtimeReport' => ['path' => 'v1beta/{+property}:runRealtimeReport', 'httpMethod' => 'POST', 'parameters' => ['property' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'runReport' => ['path' => 'v1beta/{+property}:runReport', 'httpMethod' => 'POST', 'parameters' => ['property' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->properties_audienceExports = new \Google\Site_Kit_Dependencies\Google\Service\AnalyticsData\Resource\PropertiesAudienceExports($this, $this->serviceName, 'audienceExports', ['methods' => ['create' => ['path' => 'v1beta/{+parent}/audienceExports', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/{+parent}/audienceExports', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'query' => ['path' => 'v1beta/{+name}:query', 'httpMethod' => 'POST', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsData'); apiclient-services/src/TagManager/Zone.php 0000644 00000012203 14721515320 0014554 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Zone extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'childContainer'; /** * @var string */ public $accountId; protected $boundaryType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\ZoneBoundary::class; protected $boundaryDataType = ''; protected $childContainerType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\ZoneChildContainer::class; protected $childContainerDataType = 'array'; /** * @var string */ public $containerId; /** * @var string */ public $fingerprint; /** * @var string */ public $name; /** * @var string */ public $notes; /** * @var string */ public $path; /** * @var string */ public $tagManagerUrl; protected $typeRestrictionType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\ZoneTypeRestriction::class; protected $typeRestrictionDataType = ''; /** * @var string */ public $workspaceId; /** * @var string */ public $zoneId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param ZoneBoundary */ public function setBoundary(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ZoneBoundary $boundary) { $this->boundary = $boundary; } /** * @return ZoneBoundary */ public function getBoundary() { return $this->boundary; } /** * @param ZoneChildContainer[] */ public function setChildContainer($childContainer) { $this->childContainer = $childContainer; } /** * @return ZoneChildContainer[] */ public function getChildContainer() { return $this->childContainer; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNotes($notes) { $this->notes = $notes; } /** * @return string */ public function getNotes() { return $this->notes; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param ZoneTypeRestriction */ public function setTypeRestriction(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ZoneTypeRestriction $typeRestriction) { $this->typeRestriction = $typeRestriction; } /** * @return ZoneTypeRestriction */ public function getTypeRestriction() { return $this->typeRestriction; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } /** * @param string */ public function setZoneId($zoneId) { $this->zoneId = $zoneId; } /** * @return string */ public function getZoneId() { return $this->zoneId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Zone'); apiclient-services/src/TagManager/TeardownTag.php 0000644 00000003200 14721515320 0016055 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class TeardownTag extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $stopTeardownOnFailure; /** * @var string */ public $tagName; /** * @param bool */ public function setStopTeardownOnFailure($stopTeardownOnFailure) { $this->stopTeardownOnFailure = $stopTeardownOnFailure; } /** * @return bool */ public function getStopTeardownOnFailure() { return $this->stopTeardownOnFailure; } /** * @param string */ public function setTagName($tagName) { $this->tagName = $tagName; } /** * @return string */ public function getTagName() { return $this->tagName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\TeardownTag::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_TeardownTag'); apiclient-services/src/TagManager/RevertTriggerResponse.php 0000644 00000002657 14721515320 0020167 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class RevertTriggerResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $triggerType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger::class; protected $triggerDataType = ''; /** * @param Trigger */ public function setTrigger(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger $trigger) { $this->trigger = $trigger; } /** * @return Trigger */ public function getTrigger() { return $this->trigger; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTriggerResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_RevertTriggerResponse'); apiclient-services/src/TagManager/AccountAccess.php 0000644 00000002430 14721515320 0016360 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class AccountAccess extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $permission; /** * @param string */ public function setPermission($permission) { $this->permission = $permission; } /** * @return string */ public function getPermission() { return $this->permission; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\AccountAccess::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_AccountAccess'); apiclient-services/src/TagManager/ListTagsResponse.php 0000644 00000003272 14721515320 0017120 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListTagsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'tag'; /** * @var string */ public $nextPageToken; protected $tagType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag::class; protected $tagDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Tag[] */ public function setTag($tag) { $this->tag = $tag; } /** * @return Tag[] */ public function getTag() { return $this->tag; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTagsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListTagsResponse'); apiclient-services/src/TagManager/Entity.php 0000644 00000013453 14721515320 0015125 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Entity extends \Google\Site_Kit_Dependencies\Google\Model { protected $builtInVariableType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\BuiltInVariable::class; protected $builtInVariableDataType = ''; /** * @var string */ public $changeStatus; protected $clientType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Client::class; protected $clientDataType = ''; protected $customTemplateType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate::class; protected $customTemplateDataType = ''; protected $folderType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder::class; protected $folderDataType = ''; protected $gtagConfigType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig::class; protected $gtagConfigDataType = ''; protected $tagType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag::class; protected $tagDataType = ''; protected $transformationType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation::class; protected $transformationDataType = ''; protected $triggerType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger::class; protected $triggerDataType = ''; protected $variableType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable::class; protected $variableDataType = ''; protected $zoneType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone::class; protected $zoneDataType = ''; /** * @param BuiltInVariable */ public function setBuiltInVariable(\Google\Site_Kit_Dependencies\Google\Service\TagManager\BuiltInVariable $builtInVariable) { $this->builtInVariable = $builtInVariable; } /** * @return BuiltInVariable */ public function getBuiltInVariable() { return $this->builtInVariable; } /** * @param string */ public function setChangeStatus($changeStatus) { $this->changeStatus = $changeStatus; } /** * @return string */ public function getChangeStatus() { return $this->changeStatus; } /** * @param Client */ public function setClient(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Client $client) { $this->client = $client; } /** * @return Client */ public function getClient() { return $this->client; } /** * @param CustomTemplate */ public function setCustomTemplate(\Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate $customTemplate) { $this->customTemplate = $customTemplate; } /** * @return CustomTemplate */ public function getCustomTemplate() { return $this->customTemplate; } /** * @param Folder */ public function setFolder(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder $folder) { $this->folder = $folder; } /** * @return Folder */ public function getFolder() { return $this->folder; } /** * @param GtagConfig */ public function setGtagConfig(\Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig $gtagConfig) { $this->gtagConfig = $gtagConfig; } /** * @return GtagConfig */ public function getGtagConfig() { return $this->gtagConfig; } /** * @param Tag */ public function setTag(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag $tag) { $this->tag = $tag; } /** * @return Tag */ public function getTag() { return $this->tag; } /** * @param Transformation */ public function setTransformation(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation $transformation) { $this->transformation = $transformation; } /** * @return Transformation */ public function getTransformation() { return $this->transformation; } /** * @param Trigger */ public function setTrigger(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger $trigger) { $this->trigger = $trigger; } /** * @return Trigger */ public function getTrigger() { return $this->trigger; } /** * @param Variable */ public function setVariable(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable $variable) { $this->variable = $variable; } /** * @return Variable */ public function getVariable() { return $this->variable; } /** * @param Zone */ public function setZone(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone $zone) { $this->zone = $zone; } /** * @return Zone */ public function getZone() { return $this->zone; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Entity::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Entity'); apiclient-services/src/TagManager/Destination.php 0000644 00000006704 14721515320 0016133 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Destination extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string */ public $destinationId; /** * @var string */ public $destinationLinkId; /** * @var string */ public $fingerprint; /** * @var string */ public $name; /** * @var string */ public $path; /** * @var string */ public $tagManagerUrl; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setDestinationId($destinationId) { $this->destinationId = $destinationId; } /** * @return string */ public function getDestinationId() { return $this->destinationId; } /** * @param string */ public function setDestinationLinkId($destinationLinkId) { $this->destinationLinkId = $destinationLinkId; } /** * @return string */ public function getDestinationLinkId() { return $this->destinationLinkId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Destination::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Destination'); apiclient-services/src/TagManager/ListZonesResponse.php 0000644 00000003311 14721515320 0017312 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListZonesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'zone'; /** * @var string */ public $nextPageToken; protected $zoneType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone::class; protected $zoneDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Zone[] */ public function setZone($zone) { $this->zone = $zone; } /** * @return Zone[] */ public function getZone() { return $this->zone; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListZonesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListZonesResponse'); apiclient-services/src/TagManager/ContainerVersionHeader.php 0000644 00000013751 14721515320 0020253 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ContainerVersionHeader extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string */ public $containerVersionId; /** * @var bool */ public $deleted; /** * @var string */ public $name; /** * @var string */ public $numClients; /** * @var string */ public $numCustomTemplates; /** * @var string */ public $numGtagConfigs; /** * @var string */ public $numMacros; /** * @var string */ public $numRules; /** * @var string */ public $numTags; /** * @var string */ public $numTransformations; /** * @var string */ public $numTriggers; /** * @var string */ public $numVariables; /** * @var string */ public $numZones; /** * @var string */ public $path; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setContainerVersionId($containerVersionId) { $this->containerVersionId = $containerVersionId; } /** * @return string */ public function getContainerVersionId() { return $this->containerVersionId; } /** * @param bool */ public function setDeleted($deleted) { $this->deleted = $deleted; } /** * @return bool */ public function getDeleted() { return $this->deleted; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNumClients($numClients) { $this->numClients = $numClients; } /** * @return string */ public function getNumClients() { return $this->numClients; } /** * @param string */ public function setNumCustomTemplates($numCustomTemplates) { $this->numCustomTemplates = $numCustomTemplates; } /** * @return string */ public function getNumCustomTemplates() { return $this->numCustomTemplates; } /** * @param string */ public function setNumGtagConfigs($numGtagConfigs) { $this->numGtagConfigs = $numGtagConfigs; } /** * @return string */ public function getNumGtagConfigs() { return $this->numGtagConfigs; } /** * @param string */ public function setNumMacros($numMacros) { $this->numMacros = $numMacros; } /** * @return string */ public function getNumMacros() { return $this->numMacros; } /** * @param string */ public function setNumRules($numRules) { $this->numRules = $numRules; } /** * @return string */ public function getNumRules() { return $this->numRules; } /** * @param string */ public function setNumTags($numTags) { $this->numTags = $numTags; } /** * @return string */ public function getNumTags() { return $this->numTags; } /** * @param string */ public function setNumTransformations($numTransformations) { $this->numTransformations = $numTransformations; } /** * @return string */ public function getNumTransformations() { return $this->numTransformations; } /** * @param string */ public function setNumTriggers($numTriggers) { $this->numTriggers = $numTriggers; } /** * @return string */ public function getNumTriggers() { return $this->numTriggers; } /** * @param string */ public function setNumVariables($numVariables) { $this->numVariables = $numVariables; } /** * @return string */ public function getNumVariables() { return $this->numVariables; } /** * @param string */ public function setNumZones($numZones) { $this->numZones = $numZones; } /** * @return string */ public function getNumZones() { return $this->numZones; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersionHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ContainerVersionHeader'); apiclient-services/src/TagManager/ListVariablesResponse.php 0000644 00000003405 14721515320 0020130 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListVariablesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'variable'; /** * @var string */ public $nextPageToken; protected $variableType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable::class; protected $variableDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Variable[] */ public function setVariable($variable) { $this->variable = $variable; } /** * @return Variable[] */ public function getVariable() { return $this->variable; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListVariablesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListVariablesResponse'); apiclient-services/src/TagManager/VariableFormatValue.php 0000644 00000006776 14721515320 0017556 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class VariableFormatValue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $caseConversionType; protected $convertFalseToValueType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $convertFalseToValueDataType = ''; protected $convertNullToValueType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $convertNullToValueDataType = ''; protected $convertTrueToValueType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $convertTrueToValueDataType = ''; protected $convertUndefinedToValueType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $convertUndefinedToValueDataType = ''; /** * @param string */ public function setCaseConversionType($caseConversionType) { $this->caseConversionType = $caseConversionType; } /** * @return string */ public function getCaseConversionType() { return $this->caseConversionType; } /** * @param Parameter */ public function setConvertFalseToValue(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $convertFalseToValue) { $this->convertFalseToValue = $convertFalseToValue; } /** * @return Parameter */ public function getConvertFalseToValue() { return $this->convertFalseToValue; } /** * @param Parameter */ public function setConvertNullToValue(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $convertNullToValue) { $this->convertNullToValue = $convertNullToValue; } /** * @return Parameter */ public function getConvertNullToValue() { return $this->convertNullToValue; } /** * @param Parameter */ public function setConvertTrueToValue(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $convertTrueToValue) { $this->convertTrueToValue = $convertTrueToValue; } /** * @return Parameter */ public function getConvertTrueToValue() { return $this->convertTrueToValue; } /** * @param Parameter */ public function setConvertUndefinedToValue(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $convertUndefinedToValue) { $this->convertUndefinedToValue = $convertUndefinedToValue; } /** * @return Parameter */ public function getConvertUndefinedToValue() { return $this->convertUndefinedToValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\VariableFormatValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_VariableFormatValue'); apiclient-services/src/TagManager/GalleryReference.php 0000644 00000005336 14721515320 0017070 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class GalleryReference extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $host; /** * @var bool */ public $isModified; /** * @var string */ public $owner; /** * @var string */ public $repository; /** * @var string */ public $signature; /** * @var string */ public $version; /** * @param string */ public function setHost($host) { $this->host = $host; } /** * @return string */ public function getHost() { return $this->host; } /** * @param bool */ public function setIsModified($isModified) { $this->isModified = $isModified; } /** * @return bool */ public function getIsModified() { return $this->isModified; } /** * @param string */ public function setOwner($owner) { $this->owner = $owner; } /** * @return string */ public function getOwner() { return $this->owner; } /** * @param string */ public function setRepository($repository) { $this->repository = $repository; } /** * @return string */ public function getRepository() { return $this->repository; } /** * @param string */ public function setSignature($signature) { $this->signature = $signature; } /** * @return string */ public function getSignature() { return $this->signature; } /** * @param string */ public function setVersion($version) { $this->version = $version; } /** * @return string */ public function getVersion() { return $this->version; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\GalleryReference::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_GalleryReference'); apiclient-services/src/TagManager/Transformation.php 0000644 00000011407 14721515320 0016654 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Transformation extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'parameter'; /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string */ public $fingerprint; /** * @var string */ public $name; /** * @var string */ public $notes; protected $parameterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $parameterDataType = 'array'; /** * @var string */ public $parentFolderId; /** * @var string */ public $path; /** * @var string */ public $tagManagerUrl; /** * @var string */ public $transformationId; /** * @var string */ public $type; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNotes($notes) { $this->notes = $notes; } /** * @return string */ public function getNotes() { return $this->notes; } /** * @param Parameter[] */ public function setParameter($parameter) { $this->parameter = $parameter; } /** * @return Parameter[] */ public function getParameter() { return $this->parameter; } /** * @param string */ public function setParentFolderId($parentFolderId) { $this->parentFolderId = $parentFolderId; } /** * @return string */ public function getParentFolderId() { return $this->parentFolderId; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param string */ public function setTransformationId($transformationId) { $this->transformationId = $transformationId; } /** * @return string */ public function getTransformationId() { return $this->transformationId; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Transformation'); apiclient-services/src/TagManager/ListTransformationsResponse.php 0000644 00000003537 14721515320 0021417 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListTransformationsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'transformation'; /** * @var string */ public $nextPageToken; protected $transformationType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation::class; protected $transformationDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Transformation[] */ public function setTransformation($transformation) { $this->transformation = $transformation; } /** * @return Transformation[] */ public function getTransformation() { return $this->transformation; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTransformationsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListTransformationsResponse'); apiclient-services/src/TagManager/FolderEntities.php 0000644 00000004714 14721515320 0016571 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class FolderEntities extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'variable'; /** * @var string */ public $nextPageToken; protected $tagType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag::class; protected $tagDataType = 'array'; protected $triggerType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger::class; protected $triggerDataType = 'array'; protected $variableType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable::class; protected $variableDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Tag[] */ public function setTag($tag) { $this->tag = $tag; } /** * @return Tag[] */ public function getTag() { return $this->tag; } /** * @param Trigger[] */ public function setTrigger($trigger) { $this->trigger = $trigger; } /** * @return Trigger[] */ public function getTrigger() { return $this->trigger; } /** * @param Variable[] */ public function setVariable($variable) { $this->variable = $variable; } /** * @return Variable[] */ public function getVariable() { return $this->variable; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\FolderEntities::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_FolderEntities'); apiclient-services/src/TagManager/GetWorkspaceStatusResponse.php 0000644 00000003702 14721515320 0021166 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class GetWorkspaceStatusResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'workspaceChange'; protected $mergeConflictType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\MergeConflict::class; protected $mergeConflictDataType = 'array'; protected $workspaceChangeType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Entity::class; protected $workspaceChangeDataType = 'array'; /** * @param MergeConflict[] */ public function setMergeConflict($mergeConflict) { $this->mergeConflict = $mergeConflict; } /** * @return MergeConflict[] */ public function getMergeConflict() { return $this->mergeConflict; } /** * @param Entity[] */ public function setWorkspaceChange($workspaceChange) { $this->workspaceChange = $workspaceChange; } /** * @return Entity[] */ public function getWorkspaceChange() { return $this->workspaceChange; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\GetWorkspaceStatusResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_GetWorkspaceStatusResponse'); apiclient-services/src/TagManager/RevertTagResponse.php 0000644 00000002563 14721515320 0017273 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class RevertTagResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $tagType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag::class; protected $tagDataType = ''; /** * @param Tag */ public function setTag(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag $tag) { $this->tag = $tag; } /** * @return Tag */ public function getTag() { return $this->tag; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTagResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_RevertTagResponse'); apiclient-services/src/TagManager/Folder.php 0000644 00000007201 14721515320 0015056 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Folder extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string */ public $fingerprint; /** * @var string */ public $folderId; /** * @var string */ public $name; /** * @var string */ public $notes; /** * @var string */ public $path; /** * @var string */ public $tagManagerUrl; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setFolderId($folderId) { $this->folderId = $folderId; } /** * @return string */ public function getFolderId() { return $this->folderId; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNotes($notes) { $this->notes = $notes; } /** * @return string */ public function getNotes() { return $this->notes; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Folder'); apiclient-services/src/TagManager/Account.php 0000644 00000006311 14721515320 0015240 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Account extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountId; protected $featuresType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\AccountFeatures::class; protected $featuresDataType = ''; /** * @var string */ public $fingerprint; /** * @var string */ public $name; /** * @var string */ public $path; /** * @var bool */ public $shareData; /** * @var string */ public $tagManagerUrl; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param AccountFeatures */ public function setFeatures(\Google\Site_Kit_Dependencies\Google\Service\TagManager\AccountFeatures $features) { $this->features = $features; } /** * @return AccountFeatures */ public function getFeatures() { return $this->features; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param bool */ public function setShareData($shareData) { $this->shareData = $shareData; } /** * @return bool */ public function getShareData() { return $this->shareData; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Account::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Account'); apiclient-services/src/TagManager/AccountFeatures.php 0000644 00000003413 14721515320 0016737 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class AccountFeatures extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $supportMultipleContainers; /** * @var bool */ public $supportUserPermissions; /** * @param bool */ public function setSupportMultipleContainers($supportMultipleContainers) { $this->supportMultipleContainers = $supportMultipleContainers; } /** * @return bool */ public function getSupportMultipleContainers() { return $this->supportMultipleContainers; } /** * @param bool */ public function setSupportUserPermissions($supportUserPermissions) { $this->supportUserPermissions = $supportUserPermissions; } /** * @return bool */ public function getSupportUserPermissions() { return $this->supportUserPermissions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\AccountFeatures::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_AccountFeatures'); apiclient-services/src/TagManager/ListContainersResponse.php 0000644 00000003424 14721515320 0020326 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListContainersResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'container'; protected $containerType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container::class; protected $containerDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param Container[] */ public function setContainer($container) { $this->container = $container; } /** * @return Container[] */ public function getContainer() { return $this->container; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListContainersResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListContainersResponse'); apiclient-services/src/TagManager/RevertClientResponse.php 0000644 00000002640 14721515320 0017772 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class RevertClientResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $clientType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Client::class; protected $clientDataType = ''; /** * @param Client */ public function setClient(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Client $client) { $this->client = $client; } /** * @return Client */ public function getClient() { return $this->client; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertClientResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_RevertClientResponse'); apiclient-services/src/TagManager/Condition.php 0000644 00000003256 14721515320 0015577 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Condition extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'parameter'; protected $parameterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $parameterDataType = 'array'; /** * @var string */ public $type; /** * @param Parameter[] */ public function setParameter($parameter) { $this->parameter = $parameter; } /** * @return Parameter[] */ public function getParameter() { return $this->parameter; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Condition::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Condition'); apiclient-services/src/TagManager/Container.php 0000644 00000012222 14721515320 0015564 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Container extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'usageContext'; /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string[] */ public $domainName; protected $featuresType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerFeatures::class; protected $featuresDataType = ''; /** * @var string */ public $fingerprint; /** * @var string */ public $name; /** * @var string */ public $notes; /** * @var string */ public $path; /** * @var string */ public $publicId; /** * @var string[] */ public $tagIds; /** * @var string */ public $tagManagerUrl; /** * @var string[] */ public $taggingServerUrls; /** * @var string[] */ public $usageContext; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string[] */ public function setDomainName($domainName) { $this->domainName = $domainName; } /** * @return string[] */ public function getDomainName() { return $this->domainName; } /** * @param ContainerFeatures */ public function setFeatures(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerFeatures $features) { $this->features = $features; } /** * @return ContainerFeatures */ public function getFeatures() { return $this->features; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNotes($notes) { $this->notes = $notes; } /** * @return string */ public function getNotes() { return $this->notes; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setPublicId($publicId) { $this->publicId = $publicId; } /** * @return string */ public function getPublicId() { return $this->publicId; } /** * @param string[] */ public function setTagIds($tagIds) { $this->tagIds = $tagIds; } /** * @return string[] */ public function getTagIds() { return $this->tagIds; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param string[] */ public function setTaggingServerUrls($taggingServerUrls) { $this->taggingServerUrls = $taggingServerUrls; } /** * @return string[] */ public function getTaggingServerUrls() { return $this->taggingServerUrls; } /** * @param string[] */ public function setUsageContext($usageContext) { $this->usageContext = $usageContext; } /** * @return string[] */ public function getUsageContext() { return $this->usageContext; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Container::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Container'); apiclient-services/src/TagManager/ContainerFeatures.php 0000644 00000013556 14721515320 0017276 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ContainerFeatures extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $supportBuiltInVariables; /** * @var bool */ public $supportClients; /** * @var bool */ public $supportEnvironments; /** * @var bool */ public $supportFolders; /** * @var bool */ public $supportGtagConfigs; /** * @var bool */ public $supportTags; /** * @var bool */ public $supportTemplates; /** * @var bool */ public $supportTransformations; /** * @var bool */ public $supportTriggers; /** * @var bool */ public $supportUserPermissions; /** * @var bool */ public $supportVariables; /** * @var bool */ public $supportVersions; /** * @var bool */ public $supportWorkspaces; /** * @var bool */ public $supportZones; /** * @param bool */ public function setSupportBuiltInVariables($supportBuiltInVariables) { $this->supportBuiltInVariables = $supportBuiltInVariables; } /** * @return bool */ public function getSupportBuiltInVariables() { return $this->supportBuiltInVariables; } /** * @param bool */ public function setSupportClients($supportClients) { $this->supportClients = $supportClients; } /** * @return bool */ public function getSupportClients() { return $this->supportClients; } /** * @param bool */ public function setSupportEnvironments($supportEnvironments) { $this->supportEnvironments = $supportEnvironments; } /** * @return bool */ public function getSupportEnvironments() { return $this->supportEnvironments; } /** * @param bool */ public function setSupportFolders($supportFolders) { $this->supportFolders = $supportFolders; } /** * @return bool */ public function getSupportFolders() { return $this->supportFolders; } /** * @param bool */ public function setSupportGtagConfigs($supportGtagConfigs) { $this->supportGtagConfigs = $supportGtagConfigs; } /** * @return bool */ public function getSupportGtagConfigs() { return $this->supportGtagConfigs; } /** * @param bool */ public function setSupportTags($supportTags) { $this->supportTags = $supportTags; } /** * @return bool */ public function getSupportTags() { return $this->supportTags; } /** * @param bool */ public function setSupportTemplates($supportTemplates) { $this->supportTemplates = $supportTemplates; } /** * @return bool */ public function getSupportTemplates() { return $this->supportTemplates; } /** * @param bool */ public function setSupportTransformations($supportTransformations) { $this->supportTransformations = $supportTransformations; } /** * @return bool */ public function getSupportTransformations() { return $this->supportTransformations; } /** * @param bool */ public function setSupportTriggers($supportTriggers) { $this->supportTriggers = $supportTriggers; } /** * @return bool */ public function getSupportTriggers() { return $this->supportTriggers; } /** * @param bool */ public function setSupportUserPermissions($supportUserPermissions) { $this->supportUserPermissions = $supportUserPermissions; } /** * @return bool */ public function getSupportUserPermissions() { return $this->supportUserPermissions; } /** * @param bool */ public function setSupportVariables($supportVariables) { $this->supportVariables = $supportVariables; } /** * @return bool */ public function getSupportVariables() { return $this->supportVariables; } /** * @param bool */ public function setSupportVersions($supportVersions) { $this->supportVersions = $supportVersions; } /** * @return bool */ public function getSupportVersions() { return $this->supportVersions; } /** * @param bool */ public function setSupportWorkspaces($supportWorkspaces) { $this->supportWorkspaces = $supportWorkspaces; } /** * @return bool */ public function getSupportWorkspaces() { return $this->supportWorkspaces; } /** * @param bool */ public function setSupportZones($supportZones) { $this->supportZones = $supportZones; } /** * @return bool */ public function getSupportZones() { return $this->supportZones; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerFeatures::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ContainerFeatures'); apiclient-services/src/TagManager/UserPermission.php 0000644 00000005607 14721515320 0016642 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class UserPermission extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'containerAccess'; protected $accountAccessType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\AccountAccess::class; protected $accountAccessDataType = ''; /** * @var string */ public $accountId; protected $containerAccessType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerAccess::class; protected $containerAccessDataType = 'array'; /** * @var string */ public $emailAddress; /** * @var string */ public $path; /** * @param AccountAccess */ public function setAccountAccess(\Google\Site_Kit_Dependencies\Google\Service\TagManager\AccountAccess $accountAccess) { $this->accountAccess = $accountAccess; } /** * @return AccountAccess */ public function getAccountAccess() { return $this->accountAccess; } /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param ContainerAccess[] */ public function setContainerAccess($containerAccess) { $this->containerAccess = $containerAccess; } /** * @return ContainerAccess[] */ public function getContainerAccess() { return $this->containerAccess; } /** * @param string */ public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } /** * @return string */ public function getEmailAddress() { return $this->emailAddress; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\UserPermission::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_UserPermission'); apiclient-services/src/TagManager/ListWorkspacesResponse.php 0000644 00000003424 14721515320 0020342 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListWorkspacesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'workspace'; /** * @var string */ public $nextPageToken; protected $workspaceType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Workspace::class; protected $workspaceDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Workspace[] */ public function setWorkspace($workspace) { $this->workspace = $workspace; } /** * @return Workspace[] */ public function getWorkspace() { return $this->workspace; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListWorkspacesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListWorkspacesResponse'); apiclient-services/src/TagManager/CustomTemplate.php 0000644 00000010377 14721515320 0016621 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class CustomTemplate extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string */ public $fingerprint; protected $galleryReferenceType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\GalleryReference::class; protected $galleryReferenceDataType = ''; /** * @var string */ public $name; /** * @var string */ public $path; /** * @var string */ public $tagManagerUrl; /** * @var string */ public $templateData; /** * @var string */ public $templateId; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param GalleryReference */ public function setGalleryReference(\Google\Site_Kit_Dependencies\Google\Service\TagManager\GalleryReference $galleryReference) { $this->galleryReference = $galleryReference; } /** * @return GalleryReference */ public function getGalleryReference() { return $this->galleryReference; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param string */ public function setTemplateData($templateData) { $this->templateData = $templateData; } /** * @return string */ public function getTemplateData() { return $this->templateData; } /** * @param string */ public function setTemplateId($templateId) { $this->templateId = $templateId; } /** * @return string */ public function getTemplateId() { return $this->templateId; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_CustomTemplate'); apiclient-services/src/TagManager/ZoneBoundary.php 0000644 00000003540 14721515320 0016264 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ZoneBoundary extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'customEvaluationTriggerId'; protected $conditionType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Condition::class; protected $conditionDataType = 'array'; /** * @var string[] */ public $customEvaluationTriggerId; /** * @param Condition[] */ public function setCondition($condition) { $this->condition = $condition; } /** * @return Condition[] */ public function getCondition() { return $this->condition; } /** * @param string[] */ public function setCustomEvaluationTriggerId($customEvaluationTriggerId) { $this->customEvaluationTriggerId = $customEvaluationTriggerId; } /** * @return string[] */ public function getCustomEvaluationTriggerId() { return $this->customEvaluationTriggerId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ZoneBoundary::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ZoneBoundary'); apiclient-services/src/TagManager/ListContainerVersionsResponse.php 0000644 00000003705 14721515320 0021676 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListContainerVersionsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'containerVersionHeader'; protected $containerVersionHeaderType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersionHeader::class; protected $containerVersionHeaderDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param ContainerVersionHeader[] */ public function setContainerVersionHeader($containerVersionHeader) { $this->containerVersionHeader = $containerVersionHeader; } /** * @return ContainerVersionHeader[] */ public function getContainerVersionHeader() { return $this->containerVersionHeader; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListContainerVersionsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListContainerVersionsResponse'); apiclient-services/src/TagManager/BuiltInVariable.php 0000644 00000005323 14721515320 0016662 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class BuiltInVariable extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string */ public $name; /** * @var string */ public $path; /** * @var string */ public $type; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\BuiltInVariable::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_BuiltInVariable'); apiclient-services/src/TagManager/Environment.php 0000644 00000013250 14721515320 0016150 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Environment extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountId; /** * @var string */ public $authorizationCode; /** * @var string */ public $authorizationTimestamp; /** * @var string */ public $containerId; /** * @var string */ public $containerVersionId; /** * @var string */ public $description; /** * @var bool */ public $enableDebug; /** * @var string */ public $environmentId; /** * @var string */ public $fingerprint; /** * @var string */ public $name; /** * @var string */ public $path; /** * @var string */ public $tagManagerUrl; /** * @var string */ public $type; /** * @var string */ public $url; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setAuthorizationCode($authorizationCode) { $this->authorizationCode = $authorizationCode; } /** * @return string */ public function getAuthorizationCode() { return $this->authorizationCode; } /** * @param string */ public function setAuthorizationTimestamp($authorizationTimestamp) { $this->authorizationTimestamp = $authorizationTimestamp; } /** * @return string */ public function getAuthorizationTimestamp() { return $this->authorizationTimestamp; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setContainerVersionId($containerVersionId) { $this->containerVersionId = $containerVersionId; } /** * @return string */ public function getContainerVersionId() { return $this->containerVersionId; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param bool */ public function setEnableDebug($enableDebug) { $this->enableDebug = $enableDebug; } /** * @return bool */ public function getEnableDebug() { return $this->enableDebug; } /** * @param string */ public function setEnvironmentId($environmentId) { $this->environmentId = $environmentId; } /** * @return string */ public function getEnvironmentId() { return $this->environmentId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUrl($url) { $this->url = $url; } /** * @return string */ public function getUrl() { return $this->url; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Environment'); apiclient-services/src/TagManager/MergeConflict.php 0000644 00000003772 14721515320 0016375 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class MergeConflict extends \Google\Site_Kit_Dependencies\Google\Model { protected $entityInBaseVersionType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Entity::class; protected $entityInBaseVersionDataType = ''; protected $entityInWorkspaceType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Entity::class; protected $entityInWorkspaceDataType = ''; /** * @param Entity */ public function setEntityInBaseVersion(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Entity $entityInBaseVersion) { $this->entityInBaseVersion = $entityInBaseVersion; } /** * @return Entity */ public function getEntityInBaseVersion() { return $this->entityInBaseVersion; } /** * @param Entity */ public function setEntityInWorkspace(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Entity $entityInWorkspace) { $this->entityInWorkspace = $entityInWorkspace; } /** * @return Entity */ public function getEntityInWorkspace() { return $this->entityInWorkspace; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\MergeConflict::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_MergeConflict'); apiclient-services/src/TagManager/ZoneChildContainer.php 0000644 00000003107 14721515320 0017366 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ZoneChildContainer extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $nickname; /** * @var string */ public $publicId; /** * @param string */ public function setNickname($nickname) { $this->nickname = $nickname; } /** * @return string */ public function getNickname() { return $this->nickname; } /** * @param string */ public function setPublicId($publicId) { $this->publicId = $publicId; } /** * @return string */ public function getPublicId() { return $this->publicId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ZoneChildContainer::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ZoneChildContainer'); apiclient-services/src/TagManager/ListUserPermissionsResponse.php 0000644 00000003537 14721515320 0021400 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListUserPermissionsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'userPermission'; /** * @var string */ public $nextPageToken; protected $userPermissionType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\UserPermission::class; protected $userPermissionDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param UserPermission[] */ public function setUserPermission($userPermission) { $this->userPermission = $userPermission; } /** * @return UserPermission[] */ public function getUserPermission() { return $this->userPermission; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListUserPermissionsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListUserPermissionsResponse'); apiclient-services/src/TagManager/Trigger.php 0000644 00000035522 14721515320 0015255 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Trigger extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'parameter'; /** * @var string */ public $accountId; protected $autoEventFilterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Condition::class; protected $autoEventFilterDataType = 'array'; protected $checkValidationType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $checkValidationDataType = ''; /** * @var string */ public $containerId; protected $continuousTimeMinMillisecondsType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $continuousTimeMinMillisecondsDataType = ''; protected $customEventFilterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Condition::class; protected $customEventFilterDataType = 'array'; protected $eventNameType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $eventNameDataType = ''; protected $filterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Condition::class; protected $filterDataType = 'array'; /** * @var string */ public $fingerprint; protected $horizontalScrollPercentageListType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $horizontalScrollPercentageListDataType = ''; protected $intervalType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $intervalDataType = ''; protected $intervalSecondsType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $intervalSecondsDataType = ''; protected $limitType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $limitDataType = ''; protected $maxTimerLengthSecondsType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $maxTimerLengthSecondsDataType = ''; /** * @var string */ public $name; /** * @var string */ public $notes; protected $parameterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $parameterDataType = 'array'; /** * @var string */ public $parentFolderId; /** * @var string */ public $path; protected $selectorType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $selectorDataType = ''; /** * @var string */ public $tagManagerUrl; protected $totalTimeMinMillisecondsType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $totalTimeMinMillisecondsDataType = ''; /** * @var string */ public $triggerId; /** * @var string */ public $type; protected $uniqueTriggerIdType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $uniqueTriggerIdDataType = ''; protected $verticalScrollPercentageListType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $verticalScrollPercentageListDataType = ''; protected $visibilitySelectorType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $visibilitySelectorDataType = ''; protected $visiblePercentageMaxType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $visiblePercentageMaxDataType = ''; protected $visiblePercentageMinType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $visiblePercentageMinDataType = ''; protected $waitForTagsType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $waitForTagsDataType = ''; protected $waitForTagsTimeoutType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $waitForTagsTimeoutDataType = ''; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param Condition[] */ public function setAutoEventFilter($autoEventFilter) { $this->autoEventFilter = $autoEventFilter; } /** * @return Condition[] */ public function getAutoEventFilter() { return $this->autoEventFilter; } /** * @param Parameter */ public function setCheckValidation(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $checkValidation) { $this->checkValidation = $checkValidation; } /** * @return Parameter */ public function getCheckValidation() { return $this->checkValidation; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param Parameter */ public function setContinuousTimeMinMilliseconds(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $continuousTimeMinMilliseconds) { $this->continuousTimeMinMilliseconds = $continuousTimeMinMilliseconds; } /** * @return Parameter */ public function getContinuousTimeMinMilliseconds() { return $this->continuousTimeMinMilliseconds; } /** * @param Condition[] */ public function setCustomEventFilter($customEventFilter) { $this->customEventFilter = $customEventFilter; } /** * @return Condition[] */ public function getCustomEventFilter() { return $this->customEventFilter; } /** * @param Parameter */ public function setEventName(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $eventName) { $this->eventName = $eventName; } /** * @return Parameter */ public function getEventName() { return $this->eventName; } /** * @param Condition[] */ public function setFilter($filter) { $this->filter = $filter; } /** * @return Condition[] */ public function getFilter() { return $this->filter; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param Parameter */ public function setHorizontalScrollPercentageList(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $horizontalScrollPercentageList) { $this->horizontalScrollPercentageList = $horizontalScrollPercentageList; } /** * @return Parameter */ public function getHorizontalScrollPercentageList() { return $this->horizontalScrollPercentageList; } /** * @param Parameter */ public function setInterval(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $interval) { $this->interval = $interval; } /** * @return Parameter */ public function getInterval() { return $this->interval; } /** * @param Parameter */ public function setIntervalSeconds(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $intervalSeconds) { $this->intervalSeconds = $intervalSeconds; } /** * @return Parameter */ public function getIntervalSeconds() { return $this->intervalSeconds; } /** * @param Parameter */ public function setLimit(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $limit) { $this->limit = $limit; } /** * @return Parameter */ public function getLimit() { return $this->limit; } /** * @param Parameter */ public function setMaxTimerLengthSeconds(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $maxTimerLengthSeconds) { $this->maxTimerLengthSeconds = $maxTimerLengthSeconds; } /** * @return Parameter */ public function getMaxTimerLengthSeconds() { return $this->maxTimerLengthSeconds; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNotes($notes) { $this->notes = $notes; } /** * @return string */ public function getNotes() { return $this->notes; } /** * @param Parameter[] */ public function setParameter($parameter) { $this->parameter = $parameter; } /** * @return Parameter[] */ public function getParameter() { return $this->parameter; } /** * @param string */ public function setParentFolderId($parentFolderId) { $this->parentFolderId = $parentFolderId; } /** * @return string */ public function getParentFolderId() { return $this->parentFolderId; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param Parameter */ public function setSelector(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $selector) { $this->selector = $selector; } /** * @return Parameter */ public function getSelector() { return $this->selector; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param Parameter */ public function setTotalTimeMinMilliseconds(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $totalTimeMinMilliseconds) { $this->totalTimeMinMilliseconds = $totalTimeMinMilliseconds; } /** * @return Parameter */ public function getTotalTimeMinMilliseconds() { return $this->totalTimeMinMilliseconds; } /** * @param string */ public function setTriggerId($triggerId) { $this->triggerId = $triggerId; } /** * @return string */ public function getTriggerId() { return $this->triggerId; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param Parameter */ public function setUniqueTriggerId(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $uniqueTriggerId) { $this->uniqueTriggerId = $uniqueTriggerId; } /** * @return Parameter */ public function getUniqueTriggerId() { return $this->uniqueTriggerId; } /** * @param Parameter */ public function setVerticalScrollPercentageList(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $verticalScrollPercentageList) { $this->verticalScrollPercentageList = $verticalScrollPercentageList; } /** * @return Parameter */ public function getVerticalScrollPercentageList() { return $this->verticalScrollPercentageList; } /** * @param Parameter */ public function setVisibilitySelector(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $visibilitySelector) { $this->visibilitySelector = $visibilitySelector; } /** * @return Parameter */ public function getVisibilitySelector() { return $this->visibilitySelector; } /** * @param Parameter */ public function setVisiblePercentageMax(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $visiblePercentageMax) { $this->visiblePercentageMax = $visiblePercentageMax; } /** * @return Parameter */ public function getVisiblePercentageMax() { return $this->visiblePercentageMax; } /** * @param Parameter */ public function setVisiblePercentageMin(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $visiblePercentageMin) { $this->visiblePercentageMin = $visiblePercentageMin; } /** * @return Parameter */ public function getVisiblePercentageMin() { return $this->visiblePercentageMin; } /** * @param Parameter */ public function setWaitForTags(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $waitForTags) { $this->waitForTags = $waitForTags; } /** * @return Parameter */ public function getWaitForTags() { return $this->waitForTags; } /** * @param Parameter */ public function setWaitForTagsTimeout(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $waitForTagsTimeout) { $this->waitForTagsTimeout = $waitForTagsTimeout; } /** * @return Parameter */ public function getWaitForTagsTimeout() { return $this->waitForTagsTimeout; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Trigger'); apiclient-services/src/TagManager/ListDestinationsResponse.php 0000644 00000003462 14721515320 0020667 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListDestinationsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'destination'; protected $destinationType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Destination::class; protected $destinationDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param Destination[] */ public function setDestination($destination) { $this->destination = $destination; } /** * @return Destination[] */ public function getDestination() { return $this->destination; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListDestinationsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListDestinationsResponse'); apiclient-services/src/TagManager/SyncStatus.php 0000644 00000003115 14721515320 0015763 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class SyncStatus extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $mergeConflict; /** * @var bool */ public $syncError; /** * @param bool */ public function setMergeConflict($mergeConflict) { $this->mergeConflict = $mergeConflict; } /** * @return bool */ public function getMergeConflict() { return $this->mergeConflict; } /** * @param bool */ public function setSyncError($syncError) { $this->syncError = $syncError; } /** * @return bool */ public function getSyncError() { return $this->syncError; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncStatus::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_SyncStatus'); apiclient-services/src/TagManager/CreateBuiltInVariableResponse.php 0000644 00000003040 14721515320 0021517 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class CreateBuiltInVariableResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'builtInVariable'; protected $builtInVariableType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\BuiltInVariable::class; protected $builtInVariableDataType = 'array'; /** * @param BuiltInVariable[] */ public function setBuiltInVariable($builtInVariable) { $this->builtInVariable = $builtInVariable; } /** * @return BuiltInVariable[] */ public function getBuiltInVariable() { return $this->builtInVariable; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\CreateBuiltInVariableResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_CreateBuiltInVariableResponse'); apiclient-services/src/TagManager/ListEnvironmentsResponse.php 0000644 00000003462 14721515320 0020712 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListEnvironmentsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'environment'; protected $environmentType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment::class; protected $environmentDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param Environment[] */ public function setEnvironment($environment) { $this->environment = $environment; } /** * @return Environment[] */ public function getEnvironment() { return $this->environment; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListEnvironmentsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListEnvironmentsResponse'); apiclient-services/src/TagManager/CreateContainerVersionRequestVersionOptions.php 0000644 00000003141 14721515320 0024551 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class CreateContainerVersionRequestVersionOptions extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @var string */ public $notes; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNotes($notes) { $this->notes = $notes; } /** * @return string */ public function getNotes() { return $this->notes; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\CreateContainerVersionRequestVersionOptions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_CreateContainerVersionRequestVersionOptions'); apiclient-services/src/TagManager/Variable.php 0000644 00000015163 14721515320 0015376 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Variable extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'parameter'; /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string[] */ public $disablingTriggerId; /** * @var string[] */ public $enablingTriggerId; /** * @var string */ public $fingerprint; protected $formatValueType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\VariableFormatValue::class; protected $formatValueDataType = ''; /** * @var string */ public $name; /** * @var string */ public $notes; protected $parameterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $parameterDataType = 'array'; /** * @var string */ public $parentFolderId; /** * @var string */ public $path; /** * @var string */ public $scheduleEndMs; /** * @var string */ public $scheduleStartMs; /** * @var string */ public $tagManagerUrl; /** * @var string */ public $type; /** * @var string */ public $variableId; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string[] */ public function setDisablingTriggerId($disablingTriggerId) { $this->disablingTriggerId = $disablingTriggerId; } /** * @return string[] */ public function getDisablingTriggerId() { return $this->disablingTriggerId; } /** * @param string[] */ public function setEnablingTriggerId($enablingTriggerId) { $this->enablingTriggerId = $enablingTriggerId; } /** * @return string[] */ public function getEnablingTriggerId() { return $this->enablingTriggerId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param VariableFormatValue */ public function setFormatValue(\Google\Site_Kit_Dependencies\Google\Service\TagManager\VariableFormatValue $formatValue) { $this->formatValue = $formatValue; } /** * @return VariableFormatValue */ public function getFormatValue() { return $this->formatValue; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNotes($notes) { $this->notes = $notes; } /** * @return string */ public function getNotes() { return $this->notes; } /** * @param Parameter[] */ public function setParameter($parameter) { $this->parameter = $parameter; } /** * @return Parameter[] */ public function getParameter() { return $this->parameter; } /** * @param string */ public function setParentFolderId($parentFolderId) { $this->parentFolderId = $parentFolderId; } /** * @return string */ public function getParentFolderId() { return $this->parentFolderId; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; } /** * @return string */ public function getScheduleEndMs() { return $this->scheduleEndMs; } /** * @param string */ public function setScheduleStartMs($scheduleStartMs) { $this->scheduleStartMs = $scheduleStartMs; } /** * @return string */ public function getScheduleStartMs() { return $this->scheduleStartMs; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setVariableId($variableId) { $this->variableId = $variableId; } /** * @return string */ public function getVariableId() { return $this->variableId; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Variable'); apiclient-services/src/TagManager/ListTriggersResponse.php 0000644 00000003366 14721515320 0020014 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListTriggersResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'trigger'; /** * @var string */ public $nextPageToken; protected $triggerType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger::class; protected $triggerDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Trigger[] */ public function setTrigger($trigger) { $this->trigger = $trigger; } /** * @return Trigger[] */ public function getTrigger() { return $this->trigger; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTriggersResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListTriggersResponse'); apiclient-services/src/TagManager/ListTemplatesResponse.php 0000644 00000003427 14721515320 0020162 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListTemplatesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'template'; /** * @var string */ public $nextPageToken; protected $templateType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate::class; protected $templateDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param CustomTemplate[] */ public function setTemplate($template) { $this->template = $template; } /** * @return CustomTemplate[] */ public function getTemplate() { return $this->template; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTemplatesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListTemplatesResponse'); apiclient-services/src/TagManager/RevertZoneResponse.php 0000644 00000002602 14721515320 0017465 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class RevertZoneResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $zoneType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone::class; protected $zoneDataType = ''; /** * @param Zone */ public function setZone(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone $zone) { $this->zone = $zone; } /** * @return Zone */ public function getZone() { return $this->zone; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertZoneResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_RevertZoneResponse'); apiclient-services/src/TagManager/Parameter.php 0000644 00000005547 14721515320 0015576 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Parameter extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'map'; /** * @var bool */ public $isWeakReference; /** * @var string */ public $key; protected $listType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $listDataType = 'array'; protected $mapType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $mapDataType = 'array'; /** * @var string */ public $type; /** * @var string */ public $value; /** * @param bool */ public function setIsWeakReference($isWeakReference) { $this->isWeakReference = $isWeakReference; } /** * @return bool */ public function getIsWeakReference() { return $this->isWeakReference; } /** * @param string */ public function setKey($key) { $this->key = $key; } /** * @return string */ public function getKey() { return $this->key; } /** * @param Parameter[] */ public function setList($list) { $this->list = $list; } /** * @return Parameter[] */ public function getList() { return $this->list; } /** * @param Parameter[] */ public function setMap($map) { $this->map = $map; } /** * @return Parameter[] */ public function getMap() { return $this->map; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Parameter'); apiclient-services/src/TagManager/ListEnabledBuiltInVariablesResponse.php 0000644 00000003603 14721515320 0022672 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListEnabledBuiltInVariablesResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'builtInVariable'; protected $builtInVariableType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\BuiltInVariable::class; protected $builtInVariableDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param BuiltInVariable[] */ public function setBuiltInVariable($builtInVariable) { $this->builtInVariable = $builtInVariable; } /** * @return BuiltInVariable[] */ public function getBuiltInVariable() { return $this->builtInVariable; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListEnabledBuiltInVariablesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListEnabledBuiltInVariablesResponse'); apiclient-services/src/TagManager/PublishContainerVersionResponse.php 0000644 00000003604 14721515320 0022204 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class PublishContainerVersionResponse extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $compilerError; protected $containerVersionType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion::class; protected $containerVersionDataType = ''; /** * @param bool */ public function setCompilerError($compilerError) { $this->compilerError = $compilerError; } /** * @return bool */ public function getCompilerError() { return $this->compilerError; } /** * @param ContainerVersion */ public function setContainerVersion(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion $containerVersion) { $this->containerVersion = $containerVersion; } /** * @return ContainerVersion */ public function getContainerVersion() { return $this->containerVersion; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\PublishContainerVersionResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_PublishContainerVersionResponse'); apiclient-services/src/TagManager/Workspace.php 0000644 00000006606 14721515320 0015611 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Workspace extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string */ public $description; /** * @var string */ public $fingerprint; /** * @var string */ public $name; /** * @var string */ public $path; /** * @var string */ public $tagManagerUrl; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Workspace::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Workspace'); apiclient-services/src/TagManager/ListGtagConfigResponse.php 0000644 00000003440 14721515320 0020227 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListGtagConfigResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'gtagConfig'; protected $gtagConfigType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig::class; protected $gtagConfigDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param GtagConfig[] */ public function setGtagConfig($gtagConfig) { $this->gtagConfig = $gtagConfig; } /** * @return GtagConfig[] */ public function getGtagConfig() { return $this->gtagConfig; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListGtagConfigResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListGtagConfigResponse'); apiclient-services/src/TagManager/GetContainerSnippetResponse.php 0000644 00000002455 14721515320 0021315 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class GetContainerSnippetResponse extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $snippet; /** * @param string */ public function setSnippet($snippet) { $this->snippet = $snippet; } /** * @return string */ public function getSnippet() { return $this->snippet; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\GetContainerSnippetResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_GetContainerSnippetResponse'); apiclient-services/src/TagManager/Tag.php 0000644 00000024564 14721515320 0014371 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Tag extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'teardownTag'; /** * @var string */ public $accountId; /** * @var string[] */ public $blockingRuleId; /** * @var string[] */ public $blockingTriggerId; protected $consentSettingsType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\TagConsentSetting::class; protected $consentSettingsDataType = ''; /** * @var string */ public $containerId; /** * @var string */ public $fingerprint; /** * @var string[] */ public $firingRuleId; /** * @var string[] */ public $firingTriggerId; /** * @var bool */ public $liveOnly; protected $monitoringMetadataType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $monitoringMetadataDataType = ''; /** * @var string */ public $monitoringMetadataTagNameKey; /** * @var string */ public $name; /** * @var string */ public $notes; protected $parameterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $parameterDataType = 'array'; /** * @var string */ public $parentFolderId; /** * @var string */ public $path; /** * @var bool */ public $paused; protected $priorityType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $priorityDataType = ''; /** * @var string */ public $scheduleEndMs; /** * @var string */ public $scheduleStartMs; protected $setupTagType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\SetupTag::class; protected $setupTagDataType = 'array'; /** * @var string */ public $tagFiringOption; /** * @var string */ public $tagId; /** * @var string */ public $tagManagerUrl; protected $teardownTagType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\TeardownTag::class; protected $teardownTagDataType = 'array'; /** * @var string */ public $type; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string[] */ public function setBlockingRuleId($blockingRuleId) { $this->blockingRuleId = $blockingRuleId; } /** * @return string[] */ public function getBlockingRuleId() { return $this->blockingRuleId; } /** * @param string[] */ public function setBlockingTriggerId($blockingTriggerId) { $this->blockingTriggerId = $blockingTriggerId; } /** * @return string[] */ public function getBlockingTriggerId() { return $this->blockingTriggerId; } /** * @param TagConsentSetting */ public function setConsentSettings(\Google\Site_Kit_Dependencies\Google\Service\TagManager\TagConsentSetting $consentSettings) { $this->consentSettings = $consentSettings; } /** * @return TagConsentSetting */ public function getConsentSettings() { return $this->consentSettings; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string[] */ public function setFiringRuleId($firingRuleId) { $this->firingRuleId = $firingRuleId; } /** * @return string[] */ public function getFiringRuleId() { return $this->firingRuleId; } /** * @param string[] */ public function setFiringTriggerId($firingTriggerId) { $this->firingTriggerId = $firingTriggerId; } /** * @return string[] */ public function getFiringTriggerId() { return $this->firingTriggerId; } /** * @param bool */ public function setLiveOnly($liveOnly) { $this->liveOnly = $liveOnly; } /** * @return bool */ public function getLiveOnly() { return $this->liveOnly; } /** * @param Parameter */ public function setMonitoringMetadata(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $monitoringMetadata) { $this->monitoringMetadata = $monitoringMetadata; } /** * @return Parameter */ public function getMonitoringMetadata() { return $this->monitoringMetadata; } /** * @param string */ public function setMonitoringMetadataTagNameKey($monitoringMetadataTagNameKey) { $this->monitoringMetadataTagNameKey = $monitoringMetadataTagNameKey; } /** * @return string */ public function getMonitoringMetadataTagNameKey() { return $this->monitoringMetadataTagNameKey; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNotes($notes) { $this->notes = $notes; } /** * @return string */ public function getNotes() { return $this->notes; } /** * @param Parameter[] */ public function setParameter($parameter) { $this->parameter = $parameter; } /** * @return Parameter[] */ public function getParameter() { return $this->parameter; } /** * @param string */ public function setParentFolderId($parentFolderId) { $this->parentFolderId = $parentFolderId; } /** * @return string */ public function getParentFolderId() { return $this->parentFolderId; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param bool */ public function setPaused($paused) { $this->paused = $paused; } /** * @return bool */ public function getPaused() { return $this->paused; } /** * @param Parameter */ public function setPriority(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $priority) { $this->priority = $priority; } /** * @return Parameter */ public function getPriority() { return $this->priority; } /** * @param string */ public function setScheduleEndMs($scheduleEndMs) { $this->scheduleEndMs = $scheduleEndMs; } /** * @return string */ public function getScheduleEndMs() { return $this->scheduleEndMs; } /** * @param string */ public function setScheduleStartMs($scheduleStartMs) { $this->scheduleStartMs = $scheduleStartMs; } /** * @return string */ public function getScheduleStartMs() { return $this->scheduleStartMs; } /** * @param SetupTag[] */ public function setSetupTag($setupTag) { $this->setupTag = $setupTag; } /** * @return SetupTag[] */ public function getSetupTag() { return $this->setupTag; } /** * @param string */ public function setTagFiringOption($tagFiringOption) { $this->tagFiringOption = $tagFiringOption; } /** * @return string */ public function getTagFiringOption() { return $this->tagFiringOption; } /** * @param string */ public function setTagId($tagId) { $this->tagId = $tagId; } /** * @return string */ public function getTagId() { return $this->tagId; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param TeardownTag[] */ public function setTeardownTag($teardownTag) { $this->teardownTag = $teardownTag; } /** * @return TeardownTag[] */ public function getTeardownTag() { return $this->teardownTag; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Tag'); apiclient-services/src/TagManager/ListAccountsResponse.php 0000644 00000003366 14721515320 0020005 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListAccountsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'account'; protected $accountType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Account::class; protected $accountDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param Account[] */ public function setAccount($account) { $this->account = $account; } /** * @return Account[] */ public function getAccount() { return $this->account; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListAccountsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListAccountsResponse'); apiclient-services/src/TagManager/ContainerAccess.php 0000644 00000003141 14721515320 0016706 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ContainerAccess extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $containerId; /** * @var string */ public $permission; /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setPermission($permission) { $this->permission = $permission; } /** * @return string */ public function getPermission() { return $this->permission; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerAccess::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ContainerAccess'); apiclient-services/src/TagManager/RevertFolderResponse.php 0000644 00000002640 14721515320 0017767 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class RevertFolderResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $folderType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder::class; protected $folderDataType = ''; /** * @param Folder */ public function setFolder(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder $folder) { $this->folder = $folder; } /** * @return Folder */ public function getFolder() { return $this->folder; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertFolderResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_RevertFolderResponse'); apiclient-services/src/TagManager/ContainerVersion.php 0000644 00000020320 14721515320 0017130 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ContainerVersion extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'zone'; /** * @var string */ public $accountId; protected $builtInVariableType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\BuiltInVariable::class; protected $builtInVariableDataType = 'array'; protected $clientType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Client::class; protected $clientDataType = 'array'; protected $containerType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container::class; protected $containerDataType = ''; /** * @var string */ public $containerId; /** * @var string */ public $containerVersionId; protected $customTemplateType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate::class; protected $customTemplateDataType = 'array'; /** * @var bool */ public $deleted; /** * @var string */ public $description; /** * @var string */ public $fingerprint; protected $folderType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder::class; protected $folderDataType = 'array'; protected $gtagConfigType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig::class; protected $gtagConfigDataType = 'array'; /** * @var string */ public $name; /** * @var string */ public $path; protected $tagType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag::class; protected $tagDataType = 'array'; /** * @var string */ public $tagManagerUrl; protected $transformationType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation::class; protected $transformationDataType = 'array'; protected $triggerType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger::class; protected $triggerDataType = 'array'; protected $variableType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable::class; protected $variableDataType = 'array'; protected $zoneType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone::class; protected $zoneDataType = 'array'; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param BuiltInVariable[] */ public function setBuiltInVariable($builtInVariable) { $this->builtInVariable = $builtInVariable; } /** * @return BuiltInVariable[] */ public function getBuiltInVariable() { return $this->builtInVariable; } /** * @param Client[] */ public function setClient($client) { $this->client = $client; } /** * @return Client[] */ public function getClient() { return $this->client; } /** * @param Container */ public function setContainer(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Container $container) { $this->container = $container; } /** * @return Container */ public function getContainer() { return $this->container; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setContainerVersionId($containerVersionId) { $this->containerVersionId = $containerVersionId; } /** * @return string */ public function getContainerVersionId() { return $this->containerVersionId; } /** * @param CustomTemplate[] */ public function setCustomTemplate($customTemplate) { $this->customTemplate = $customTemplate; } /** * @return CustomTemplate[] */ public function getCustomTemplate() { return $this->customTemplate; } /** * @param bool */ public function setDeleted($deleted) { $this->deleted = $deleted; } /** * @return bool */ public function getDeleted() { return $this->deleted; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param Folder[] */ public function setFolder($folder) { $this->folder = $folder; } /** * @return Folder[] */ public function getFolder() { return $this->folder; } /** * @param GtagConfig[] */ public function setGtagConfig($gtagConfig) { $this->gtagConfig = $gtagConfig; } /** * @return GtagConfig[] */ public function getGtagConfig() { return $this->gtagConfig; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param Tag[] */ public function setTag($tag) { $this->tag = $tag; } /** * @return Tag[] */ public function getTag() { return $this->tag; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param Transformation[] */ public function setTransformation($transformation) { $this->transformation = $transformation; } /** * @return Transformation[] */ public function getTransformation() { return $this->transformation; } /** * @param Trigger[] */ public function setTrigger($trigger) { $this->trigger = $trigger; } /** * @return Trigger[] */ public function getTrigger() { return $this->trigger; } /** * @param Variable[] */ public function setVariable($variable) { $this->variable = $variable; } /** * @return Variable[] */ public function getVariable() { return $this->variable; } /** * @param Zone[] */ public function setZone($zone) { $this->zone = $zone; } /** * @return Zone[] */ public function getZone() { return $this->zone; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ContainerVersion'); apiclient-services/src/TagManager/RevertBuiltInVariableResponse.php 0000644 00000002455 14721515320 0021574 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class RevertBuiltInVariableResponse extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $enabled; /** * @param bool */ public function setEnabled($enabled) { $this->enabled = $enabled; } /** * @return bool */ public function getEnabled() { return $this->enabled; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertBuiltInVariableResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_RevertBuiltInVariableResponse'); apiclient-services/src/TagManager/ZoneTypeRestriction.php 0000644 00000003265 14721515320 0017654 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ZoneTypeRestriction extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'whitelistedTypeId'; /** * @var bool */ public $enable; /** * @var string[] */ public $whitelistedTypeId; /** * @param bool */ public function setEnable($enable) { $this->enable = $enable; } /** * @return bool */ public function getEnable() { return $this->enable; } /** * @param string[] */ public function setWhitelistedTypeId($whitelistedTypeId) { $this->whitelistedTypeId = $whitelistedTypeId; } /** * @return string[] */ public function getWhitelistedTypeId() { return $this->whitelistedTypeId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ZoneTypeRestriction::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ZoneTypeRestriction'); apiclient-services/src/TagManager/ListClientsResponse.php 0000644 00000003347 14721515320 0017626 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListClientsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'client'; protected $clientType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Client::class; protected $clientDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param Client[] */ public function setClient($client) { $this->client = $client; } /** * @return Client[] */ public function getClient() { return $this->client; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListClientsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListClientsResponse'); apiclient-services/src/TagManager/GtagConfig.php 0000644 00000007534 14721515320 0015664 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class GtagConfig extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'parameter'; /** * @var string */ public $accountId; /** * @var string */ public $containerId; /** * @var string */ public $fingerprint; /** * @var string */ public $gtagConfigId; protected $parameterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $parameterDataType = 'array'; /** * @var string */ public $path; /** * @var string */ public $tagManagerUrl; /** * @var string */ public $type; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setGtagConfigId($gtagConfigId) { $this->gtagConfigId = $gtagConfigId; } /** * @return string */ public function getGtagConfigId() { return $this->gtagConfigId; } /** * @param Parameter[] */ public function setParameter($parameter) { $this->parameter = $parameter; } /** * @return Parameter[] */ public function getParameter() { return $this->parameter; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_GtagConfig'); apiclient-services/src/TagManager/Client.php 0000644 00000011734 14721515320 0015067 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class Client extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'parameter'; /** * @var string */ public $accountId; /** * @var string */ public $clientId; /** * @var string */ public $containerId; /** * @var string */ public $fingerprint; /** * @var string */ public $name; /** * @var string */ public $notes; protected $parameterType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $parameterDataType = 'array'; /** * @var string */ public $parentFolderId; /** * @var string */ public $path; /** * @var int */ public $priority; /** * @var string */ public $tagManagerUrl; /** * @var string */ public $type; /** * @var string */ public $workspaceId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setClientId($clientId) { $this->clientId = $clientId; } /** * @return string */ public function getClientId() { return $this->clientId; } /** * @param string */ public function setContainerId($containerId) { $this->containerId = $containerId; } /** * @return string */ public function getContainerId() { return $this->containerId; } /** * @param string */ public function setFingerprint($fingerprint) { $this->fingerprint = $fingerprint; } /** * @return string */ public function getFingerprint() { return $this->fingerprint; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setNotes($notes) { $this->notes = $notes; } /** * @return string */ public function getNotes() { return $this->notes; } /** * @param Parameter[] */ public function setParameter($parameter) { $this->parameter = $parameter; } /** * @return Parameter[] */ public function getParameter() { return $this->parameter; } /** * @param string */ public function setParentFolderId($parentFolderId) { $this->parentFolderId = $parentFolderId; } /** * @return string */ public function getParentFolderId() { return $this->parentFolderId; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param int */ public function setPriority($priority) { $this->priority = $priority; } /** * @return int */ public function getPriority() { return $this->priority; } /** * @param string */ public function setTagManagerUrl($tagManagerUrl) { $this->tagManagerUrl = $tagManagerUrl; } /** * @return string */ public function getTagManagerUrl() { return $this->tagManagerUrl; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setWorkspaceId($workspaceId) { $this->workspaceId = $workspaceId; } /** * @return string */ public function getWorkspaceId() { return $this->workspaceId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Client::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Client'); apiclient-services/src/TagManager/CreateContainerVersionResponse.php 0000644 00000005306 14721515320 0022002 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class CreateContainerVersionResponse extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $compilerError; protected $containerVersionType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion::class; protected $containerVersionDataType = ''; /** * @var string */ public $newWorkspacePath; protected $syncStatusType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncStatus::class; protected $syncStatusDataType = ''; /** * @param bool */ public function setCompilerError($compilerError) { $this->compilerError = $compilerError; } /** * @return bool */ public function getCompilerError() { return $this->compilerError; } /** * @param ContainerVersion */ public function setContainerVersion(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion $containerVersion) { $this->containerVersion = $containerVersion; } /** * @return ContainerVersion */ public function getContainerVersion() { return $this->containerVersion; } /** * @param string */ public function setNewWorkspacePath($newWorkspacePath) { $this->newWorkspacePath = $newWorkspacePath; } /** * @return string */ public function getNewWorkspacePath() { return $this->newWorkspacePath; } /** * @param SyncStatus */ public function setSyncStatus(\Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncStatus $syncStatus) { $this->syncStatus = $syncStatus; } /** * @return SyncStatus */ public function getSyncStatus() { return $this->syncStatus; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\CreateContainerVersionResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_CreateContainerVersionResponse'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesGtagConfig.php 0000644 00000012256 14721515320 0025240 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListGtagConfigResponse; /** * The "gtag_config" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $gtag_config = $tagmanagerService->accounts_containers_workspaces_gtag_config; * </code> */ class AccountsContainersWorkspacesGtagConfig extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a Google tag config. (gtag_config.create) * * @param string $parent Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param GtagConfig $postBody * @param array $optParams Optional parameters. * @return GtagConfig * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig::class); } /** * Deletes a Google tag config. (gtag_config.delete) * * @param string $path Google tag config's API relative path. Example: accounts/ * {account_id}/containers/{container_id}/workspaces/{workspace_id}/gtag_config/ * {gtag_config_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a Google tag config. (gtag_config.get) * * @param string $path Google tag config's API relative path. Example: accounts/ * {account_id}/containers/{container_id}/workspaces/{workspace_id}/gtag_config/ * {gtag_config_id} * @param array $optParams Optional parameters. * @return GtagConfig * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig::class); } /** * Lists all Google tag configs in a Container. * (gtag_config.listAccountsContainersWorkspacesGtagConfig) * * @param string $parent Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListGtagConfigResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesGtagConfig($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListGtagConfigResponse::class); } /** * Updates a Google tag config. (gtag_config.update) * * @param string $path Google tag config's API relative path. Example: accounts/ * {account_id}/containers/{container_id}/workspaces/{workspace_id}/gtag_config/ * {gtag_config_id} * @param GtagConfig $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the config in storage. * @return GtagConfig * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\GtagConfig::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesGtagConfig::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesGtagConfig'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspaces.php 0000644 00000023033 14721515320 0023302 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\CreateContainerVersionRequestVersionOptions; use Google\Site_Kit_Dependencies\Google\Service\TagManager\CreateContainerVersionResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Entity; use Google\Site_Kit_Dependencies\Google\Service\TagManager\GetWorkspaceStatusResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListWorkspacesResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\QuickPreviewResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncWorkspaceResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Workspace; /** * The "workspaces" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $workspaces = $tagmanagerService->accounts_containers_workspaces; * </code> */ class AccountsContainersWorkspaces extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a Workspace. (workspaces.create) * * @param string $parent GTM parent Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param Workspace $postBody * @param array $optParams Optional parameters. * @return Workspace * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Workspace $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Workspace::class); } /** * Creates a Container Version from the entities present in the workspace, * deletes the workspace, and sets the base container version to the newly * created version. (workspaces.create_version) * * @param string $path GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param CreateContainerVersionRequestVersionOptions $postBody * @param array $optParams Optional parameters. * @return CreateContainerVersionResponse * @throws \Google\Service\Exception */ public function create_version($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\CreateContainerVersionRequestVersionOptions $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create_version', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\CreateContainerVersionResponse::class); } /** * Deletes a Workspace. (workspaces.delete) * * @param string $path GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a Workspace. (workspaces.get) * * @param string $path GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * @return Workspace * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Workspace::class); } /** * Finds conflicting and modified entities in the workspace. * (workspaces.getStatus) * * @param string $path GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * @return GetWorkspaceStatusResponse * @throws \Google\Service\Exception */ public function getStatus($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('getStatus', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\GetWorkspaceStatusResponse::class); } /** * Lists all Workspaces that belong to a GTM Container. * (workspaces.listAccountsContainersWorkspaces) * * @param string $parent GTM parent Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListWorkspacesResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspaces($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListWorkspacesResponse::class); } /** * Quick previews a workspace by creating a fake container version from all * entities in the provided workspace. (workspaces.quick_preview) * * @param string $path GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * @return QuickPreviewResponse * @throws \Google\Service\Exception */ public function quick_preview($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('quick_preview', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\QuickPreviewResponse::class); } /** * Resolves a merge conflict for a workspace entity by updating it to the * resolved entity passed in the request. (workspaces.resolve_conflict) * * @param string $path GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param Entity $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the entity_in_workspace in the merge conflict. * @throws \Google\Service\Exception */ public function resolve_conflict($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Entity $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('resolve_conflict', [$params]); } /** * Syncs a workspace to the latest container version by updating all unmodified * workspace entities and displaying conflicts for modified entities. * (workspaces.sync) * * @param string $path GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * @return SyncWorkspaceResponse * @throws \Google\Service\Exception */ public function sync($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('sync', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncWorkspaceResponse::class); } /** * Updates a Workspace. (workspaces.update) * * @param string $path GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param Workspace $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the workspace in storage. * @return Workspace * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Workspace $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Workspace::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspaces::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspaces'); apiclient-services/src/TagManager/Resource/AccountsContainersVersionHeaders.php 0000644 00000006023 14721515320 0024102 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersionHeader; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListContainerVersionsResponse; /** * The "version_headers" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $version_headers = $tagmanagerService->accounts_containers_version_headers; * </code> */ class AccountsContainersVersionHeaders extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets the latest container version header (version_headers.latest) * * @param string $parent GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * @return ContainerVersionHeader * @throws \Google\Service\Exception */ public function latest($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('latest', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersionHeader::class); } /** * Lists all Container Versions of a GTM Container. * (version_headers.listAccountsContainersVersionHeaders) * * @param string $parent GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * * @opt_param bool includeDeleted Also retrieve deleted (archived) versions when * true. * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListContainerVersionsResponse * @throws \Google\Service\Exception */ public function listAccountsContainersVersionHeaders($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListContainerVersionsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersVersionHeaders::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersVersionHeaders'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesZones.php 0000644 00000013425 14721515320 0024325 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListZonesResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertZoneResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone; /** * The "zones" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $zones = $tagmanagerService->accounts_containers_workspaces_zones; * </code> */ class AccountsContainersWorkspacesZones extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GTM Zone. (zones.create) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param Zone $postBody * @param array $optParams Optional parameters. * @return Zone * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone::class); } /** * Deletes a GTM Zone. (zones.delete) * * @param string $path GTM Zone's API relative path. Example: accounts/{account_ * id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a GTM Zone. (zones.get) * * @param string $path GTM Zone's API relative path. Example: accounts/{account_ * id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} * @param array $optParams Optional parameters. * @return Zone * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone::class); } /** * Lists all GTM Zones of a GTM container workspace. * (zones.listAccountsContainersWorkspacesZones) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListZonesResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesZones($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListZonesResponse::class); } /** * Reverts changes to a GTM Zone in a GTM Workspace. (zones.revert) * * @param string $path GTM Zone's API relative path. Example: accounts/{account_ * id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the zone in storage. * @return RevertZoneResponse * @throws \Google\Service\Exception */ public function revert($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('revert', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertZoneResponse::class); } /** * Updates a GTM Zone. (zones.update) * * @param string $path GTM Zone's API relative path. Example: accounts/{account_ * id}/containers/{container_id}/workspaces/{workspace_id}/zones/{zone_id} * @param Zone $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the zone in storage. * @return Zone * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Zone::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesZones::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesZones'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTemplates.php 0000644 00000014147 14721515320 0025167 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTemplatesResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTemplateResponse; /** * The "templates" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $templates = $tagmanagerService->accounts_containers_workspaces_templates; * </code> */ class AccountsContainersWorkspacesTemplates extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GTM Custom Template. (templates.create) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param CustomTemplate $postBody * @param array $optParams Optional parameters. * @return CustomTemplate * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate::class); } /** * Deletes a GTM Template. (templates.delete) * * @param string $path GTM Custom Template's API relative path. Example: account * s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/ * {template_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a GTM Template. (templates.get) * * @param string $path GTM Custom Template's API relative path. Example: account * s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/ * {template_id} * @param array $optParams Optional parameters. * @return CustomTemplate * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate::class); } /** * Lists all GTM Templates of a GTM container workspace. * (templates.listAccountsContainersWorkspacesTemplates) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListTemplatesResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesTemplates($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTemplatesResponse::class); } /** * Reverts changes to a GTM Template in a GTM Workspace. (templates.revert) * * @param string $path GTM Custom Template's API relative path. Example: account * s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/ * {template_id} * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the template in storage. * @return RevertTemplateResponse * @throws \Google\Service\Exception */ public function revert($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('revert', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTemplateResponse::class); } /** * Updates a GTM Template. (templates.update) * * @param string $path GTM Custom Template's API relative path. Example: account * s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/templates/ * {template_id} * @param CustomTemplate $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the templates in storage. * @return CustomTemplate * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesTemplates::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesTemplates'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTriggers.php 0000644 00000013700 14721515320 0025011 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTriggersResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTriggerResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger; /** * The "triggers" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $triggers = $tagmanagerService->accounts_containers_workspaces_triggers; * </code> */ class AccountsContainersWorkspacesTriggers extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GTM Trigger. (triggers.create) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param Trigger $postBody * @param array $optParams Optional parameters. * @return Trigger * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger::class); } /** * Deletes a GTM Trigger. (triggers.delete) * * @param string $path GTM Trigger's API relative path. Example: accounts/{accou * nt_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_ * id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a GTM Trigger. (triggers.get) * * @param string $path GTM Trigger's API relative path. Example: accounts/{accou * nt_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_ * id} * @param array $optParams Optional parameters. * @return Trigger * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger::class); } /** * Lists all GTM Triggers of a Container. * (triggers.listAccountsContainersWorkspacesTriggers) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListTriggersResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesTriggers($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTriggersResponse::class); } /** * Reverts changes to a GTM Trigger in a GTM Workspace. (triggers.revert) * * @param string $path GTM Trigger's API relative path. Example: accounts/{accou * nt_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_ * id} * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the trigger in storage. * @return RevertTriggerResponse * @throws \Google\Service\Exception */ public function revert($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('revert', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTriggerResponse::class); } /** * Updates a GTM Trigger. (triggers.update) * * @param string $path GTM Trigger's API relative path. Example: accounts/{accou * nt_id}/containers/{container_id}/workspaces/{workspace_id}/triggers/{trigger_ * id} * @param Trigger $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the trigger in storage. * @return Trigger * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Trigger::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesTriggers::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesTriggers'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesClients.php 0000644 00000013573 14721515320 0024634 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Client; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListClientsResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertClientResponse; /** * The "clients" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $clients = $tagmanagerService->accounts_containers_workspaces_clients; * </code> */ class AccountsContainersWorkspacesClients extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GTM Client. (clients.create) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param Client $postBody * @param array $optParams Optional parameters. * @return Client * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Client $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Client::class); } /** * Deletes a GTM Client. (clients.delete) * * @param string $path GTM Client's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/clients/{client_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a GTM Client. (clients.get) * * @param string $path GTM Client's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/clients/{client_id} * @param array $optParams Optional parameters. * @return Client * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Client::class); } /** * Lists all GTM Clients of a GTM container workspace. * (clients.listAccountsContainersWorkspacesClients) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListClientsResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesClients($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListClientsResponse::class); } /** * Reverts changes to a GTM Client in a GTM Workspace. (clients.revert) * * @param string $path GTM Client's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/clients/{client_id} * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the client in storage. * @return RevertClientResponse * @throws \Google\Service\Exception */ public function revert($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('revert', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertClientResponse::class); } /** * Updates a GTM Client. (clients.update) * * @param string $path GTM Client's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/clients/{client_id} * @param Client $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the client in storage. * @return Client * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Client $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Client::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesClients::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesClients'); apiclient-services/src/TagManager/Resource/AccountsContainersDestinations.php 0000644 00000007445 14721515320 0023636 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Destination; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListDestinationsResponse; /** * The "destinations" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $destinations = $tagmanagerService->accounts_containers_destinations; * </code> */ class AccountsContainersDestinations extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets a Destination. (destinations.get) * * @param string $path Google Tag Destination's API relative path. Example: acco * unts/{account_id}/containers/{container_id}/destinations/{destination_link_id * } * @param array $optParams Optional parameters. * @return Destination * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Destination::class); } /** * Adds a Destination to this Container and removes it from the Container to * which it is currently linked. (destinations.link) * * @param string $parent GTM parent Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * * @opt_param bool allowUserPermissionFeatureUpdate Must be set to true to allow * features.user_permissions to change from false to true. If this operation * causes an update but this bit is false, the operation will fail. * @opt_param string destinationId Destination ID to be linked to the current * container. * @return Destination * @throws \Google\Service\Exception */ public function link($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('link', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Destination::class); } /** * Lists all Destinations linked to a GTM Container. * (destinations.listAccountsContainersDestinations) * * @param string $parent GTM parent Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * @return ListDestinationsResponse * @throws \Google\Service\Exception */ public function listAccountsContainersDestinations($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListDestinationsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersDestinations::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersDestinations'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesVariables.php 0000644 00000013763 14721515320 0025144 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListVariablesResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertVariableResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable; /** * The "variables" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $variables = $tagmanagerService->accounts_containers_workspaces_variables; * </code> */ class AccountsContainersWorkspacesVariables extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GTM Variable. (variables.create) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param Variable $postBody * @param array $optParams Optional parameters. * @return Variable * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable::class); } /** * Deletes a GTM Variable. (variables.delete) * * @param string $path GTM Variable's API relative path. Example: accounts/{acco * unt_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variab * le_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a GTM Variable. (variables.get) * * @param string $path GTM Variable's API relative path. Example: accounts/{acco * unt_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variab * le_id} * @param array $optParams Optional parameters. * @return Variable * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable::class); } /** * Lists all GTM Variables of a Container. * (variables.listAccountsContainersWorkspacesVariables) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListVariablesResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesVariables($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListVariablesResponse::class); } /** * Reverts changes to a GTM Variable in a GTM Workspace. (variables.revert) * * @param string $path GTM Variable's API relative path. Example: accounts/{acco * unt_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variab * le_id} * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the variable in storage. * @return RevertVariableResponse * @throws \Google\Service\Exception */ public function revert($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('revert', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertVariableResponse::class); } /** * Updates a GTM Variable. (variables.update) * * @param string $path GTM Variable's API relative path. Example: accounts/{acco * unt_id}/containers/{container_id}/workspaces/{workspace_id}/variables/{variab * le_id} * @param Variable $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the variable in storage. * @return Variable * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesVariables::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesVariables'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTags.php 0000644 00000013323 14721515320 0024122 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTagsResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTagResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag; /** * The "tags" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $tags = $tagmanagerService->accounts_containers_workspaces_tags; * </code> */ class AccountsContainersWorkspacesTags extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GTM Tag. (tags.create) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param Tag $postBody * @param array $optParams Optional parameters. * @return Tag * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag::class); } /** * Deletes a GTM Tag. (tags.delete) * * @param string $path GTM Tag's API relative path. Example: accounts/{account_i * d}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a GTM Tag. (tags.get) * * @param string $path GTM Tag's API relative path. Example: accounts/{account_i * d}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} * @param array $optParams Optional parameters. * @return Tag * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag::class); } /** * Lists all GTM Tags of a Container. * (tags.listAccountsContainersWorkspacesTags) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListTagsResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesTags($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTagsResponse::class); } /** * Reverts changes to a GTM Tag in a GTM Workspace. (tags.revert) * * @param string $path GTM Tag's API relative path. Example: accounts/{account_i * d}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of thetag in storage. * @return RevertTagResponse * @throws \Google\Service\Exception */ public function revert($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('revert', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTagResponse::class); } /** * Updates a GTM Tag. (tags.update) * * @param string $path GTM Tag's API relative path. Example: accounts/{account_i * d}/containers/{container_id}/workspaces/{workspace_id}/tags/{tag_id} * @param Tag $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the tag in storage. * @return Tag * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Tag::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesTags::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesTags'); apiclient-services/src/TagManager/Resource/AccountsContainersVersions.php 0000644 00000014603 14721515320 0022774 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion; use Google\Site_Kit_Dependencies\Google\Service\TagManager\PublishContainerVersionResponse; /** * The "versions" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $versions = $tagmanagerService->accounts_containers_versions; * </code> */ class AccountsContainersVersions extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Deletes a Container Version. (versions.delete) * * @param string $path GTM ContainerVersion's API relative path. Example: * accounts/{account_id}/containers/{container_id}/versions/{version_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a Container Version. (versions.get) * * @param string $path GTM ContainerVersion's API relative path. Example: * accounts/{account_id}/containers/{container_id}/versions/{version_id} * @param array $optParams Optional parameters. * * @opt_param string containerVersionId The GTM ContainerVersion ID. Specify * published to retrieve the currently published version. * @return ContainerVersion * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion::class); } /** * Gets the live (i.e. published) container version (versions.live) * * @param string $parent GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * @return ContainerVersion * @throws \Google\Service\Exception */ public function live($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('live', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion::class); } /** * Publishes a Container Version. (versions.publish) * * @param string $path GTM ContainerVersion's API relative path. Example: * accounts/{account_id}/containers/{container_id}/versions/{version_id} * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the container version in storage. * @return PublishContainerVersionResponse * @throws \Google\Service\Exception */ public function publish($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('publish', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\PublishContainerVersionResponse::class); } /** * Sets the latest version used for synchronization of workspaces when detecting * conflicts and errors. (versions.set_latest) * * @param string $path GTM ContainerVersion's API relative path. Example: * accounts/{account_id}/containers/{container_id}/versions/{version_id} * @param array $optParams Optional parameters. * @return ContainerVersion * @throws \Google\Service\Exception */ public function set_latest($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('set_latest', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion::class); } /** * Undeletes a Container Version. (versions.undelete) * * @param string $path GTM ContainerVersion's API relative path. Example: * accounts/{account_id}/containers/{container_id}/versions/{version_id} * @param array $optParams Optional parameters. * @return ContainerVersion * @throws \Google\Service\Exception */ public function undelete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('undelete', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion::class); } /** * Updates a Container Version. (versions.update) * * @param string $path GTM ContainerVersion's API relative path. Example: * accounts/{account_id}/containers/{container_id}/versions/{version_id} * @param ContainerVersion $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the container version in storage. * @return ContainerVersion * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersVersions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersVersions'); apiclient-services/src/TagManager/Resource/AccountsUserPermissions.php 0000644 00000011746 14721515320 0022315 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListUserPermissionsResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\UserPermission; /** * The "user_permissions" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $user_permissions = $tagmanagerService->accounts_user_permissions; * </code> */ class AccountsUserPermissions extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a user's Account & Container access. (user_permissions.create) * * @param string $parent GTM Account's API relative path. Example: * accounts/{account_id} * @param UserPermission $postBody * @param array $optParams Optional parameters. * @return UserPermission * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\UserPermission $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\UserPermission::class); } /** * Removes a user from the account, revoking access to it and all of its * containers. (user_permissions.delete) * * @param string $path GTM UserPermission's API relative path. Example: * accounts/{account_id}/user_permissions/{user_permission_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a user's Account & Container access. (user_permissions.get) * * @param string $path GTM UserPermission's API relative path. Example: * accounts/{account_id}/user_permissions/{user_permission_id} * @param array $optParams Optional parameters. * @return UserPermission * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\UserPermission::class); } /** * List all users that have access to the account along with Account and * Container user access granted to each of them. * (user_permissions.listAccountsUserPermissions) * * @param string $parent GTM Account's API relative path. Example: * accounts/{account_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListUserPermissionsResponse * @throws \Google\Service\Exception */ public function listAccountsUserPermissions($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListUserPermissionsResponse::class); } /** * Updates a user's Account & Container access. (user_permissions.update) * * @param string $path GTM UserPermission's API relative path. Example: * accounts/{account_id}/user_permissions/{user_permission_id} * @param UserPermission $postBody * @param array $optParams Optional parameters. * @return UserPermission * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\UserPermission $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\UserPermission::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsUserPermissions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsUserPermissions'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesBuiltInVariables.php 0000644 00000011355 14721515320 0026426 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\CreateBuiltInVariableResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListEnabledBuiltInVariablesResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertBuiltInVariableResponse; /** * The "built_in_variables" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $built_in_variables = $tagmanagerService->accounts_containers_workspaces_built_in_variables; * </code> */ class AccountsContainersWorkspacesBuiltInVariables extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates one or more GTM Built-In Variables. (built_in_variables.create) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string type The types of built-in variables to enable. * @return CreateBuiltInVariableResponse * @throws \Google\Service\Exception */ public function create($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\CreateBuiltInVariableResponse::class); } /** * Deletes one or more GTM Built-In Variables. (built_in_variables.delete) * * @param string $path GTM BuiltInVariable's API relative path. Example: account * s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/built_in_v * ariables * @param array $optParams Optional parameters. * * @opt_param string type The types of built-in variables to delete. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Lists all the enabled Built-In Variables of a GTM Container. * (built_in_variables.listAccountsContainersWorkspacesBuiltInVariables) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListEnabledBuiltInVariablesResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesBuiltInVariables($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListEnabledBuiltInVariablesResponse::class); } /** * Reverts changes to a GTM Built-In Variables in a GTM Workspace. * (built_in_variables.revert) * * @param string $path GTM BuiltInVariable's API relative path. Example: account * s/{account_id}/containers/{container_id}/workspaces/{workspace_id}/built_in_v * ariables * @param array $optParams Optional parameters. * * @opt_param string type The type of built-in variable to revert. * @return RevertBuiltInVariableResponse * @throws \Google\Service\Exception */ public function revert($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('revert', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertBuiltInVariableResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesBuiltInVariables::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesBuiltInVariables'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTransformations.php 0000644 00000014472 14721515320 0026423 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTransformationsResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTransformationResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation; /** * The "transformations" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $transformations = $tagmanagerService->accounts_containers_workspaces_transformations; * </code> */ class AccountsContainersWorkspacesTransformations extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GTM Transformation. (transformations.create) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param Transformation $postBody * @param array $optParams Optional parameters. * @return Transformation * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation::class); } /** * Deletes a GTM Transformation. (transformations.delete) * * @param string $path GTM Transformation's API relative path. Example: accounts * /{account_id}/containers/{container_id}/workspaces/{workspace_id}/transformat * ions/{transformation_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a GTM Transformation. (transformations.get) * * @param string $path GTM Transformation's API relative path. Example: accounts * /{account_id}/containers/{container_id}/workspaces/{workspace_id}/transformat * ions/{transformation_id} * @param array $optParams Optional parameters. * @return Transformation * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation::class); } /** * Lists all GTM Transformations of a GTM container workspace. * (transformations.listAccountsContainersWorkspacesTransformations) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListTransformationsResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesTransformations($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListTransformationsResponse::class); } /** * Reverts changes to a GTM Transformation in a GTM Workspace. * (transformations.revert) * * @param string $path GTM Transformation's API relative path. Example: accounts * /{account_id}/containers/{container_id}/workspaces/{workspace_id}/transformat * ions/{transformation_id} * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the transformation in storage. * @return RevertTransformationResponse * @throws \Google\Service\Exception */ public function revert($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('revert', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTransformationResponse::class); } /** * Updates a GTM Transformation. (transformations.update) * * @param string $path GTM Transformation's API relative path. Example: accounts * /{account_id}/containers/{container_id}/workspaces/{workspace_id}/transformat * ions/{transformation_id} * @param Transformation $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the transformation in storage. * @return Transformation * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesTransformations::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesTransformations'); apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesFolders.php 0000644 00000017364 14721515320 0024633 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder; use Google\Site_Kit_Dependencies\Google\Service\TagManager\FolderEntities; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListFoldersResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertFolderResponse; /** * The "folders" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $folders = $tagmanagerService->accounts_containers_workspaces_folders; * </code> */ class AccountsContainersWorkspacesFolders extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GTM Folder. (folders.create) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param Folder $postBody * @param array $optParams Optional parameters. * @return Folder * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder::class); } /** * Deletes a GTM Folder. (folders.delete) * * @param string $path GTM Folder's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * List all entities in a GTM Folder. (folders.entities) * * @param string $path GTM Folder's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return FolderEntities * @throws \Google\Service\Exception */ public function entities($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('entities', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\FolderEntities::class); } /** * Gets a GTM Folder. (folders.get) * * @param string $path GTM Folder's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} * @param array $optParams Optional parameters. * @return Folder * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder::class); } /** * Lists all GTM Folders of a Container. * (folders.listAccountsContainersWorkspacesFolders) * * @param string $parent GTM Workspace's API relative path. Example: * accounts/{account_id}/containers/{container_id}/workspaces/{workspace_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListFoldersResponse * @throws \Google\Service\Exception */ public function listAccountsContainersWorkspacesFolders($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListFoldersResponse::class); } /** * Moves entities to a GTM Folder. If {folder_id} in the request path equals 0, * this will instead move entities out of the folder they currently belong to. * (folders.move_entities_to_folder) * * @param string $path GTM Folder's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} * @param Folder $postBody * @param array $optParams Optional parameters. * * @opt_param string tagId The tags to be moved to the folder. * @opt_param string triggerId The triggers to be moved to the folder. * @opt_param string variableId The variables to be moved to the folder. * @throws \Google\Service\Exception */ public function move_entities_to_folder($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('move_entities_to_folder', [$params]); } /** * Reverts changes to a GTM Folder in a GTM Workspace. (folders.revert) * * @param string $path GTM Folder's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the tag in storage. * @return RevertFolderResponse * @throws \Google\Service\Exception */ public function revert($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('revert', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertFolderResponse::class); } /** * Updates a GTM Folder. (folders.update) * * @param string $path GTM Folder's API relative path. Example: accounts/{accoun * t_id}/containers/{container_id}/workspaces/{workspace_id}/folders/{folder_id} * @param Folder $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the folder in storage. * @return Folder * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesFolders::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersWorkspacesFolders'); apiclient-services/src/TagManager/Resource/AccountsContainers.php 0000644 00000021012 14721515320 0021233 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Container; use Google\Site_Kit_Dependencies\Google\Service\TagManager\GetContainerSnippetResponse; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListContainersResponse; /** * The "containers" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $containers = $tagmanagerService->accounts_containers; * </code> */ class AccountsContainers extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Combines Containers. (containers.combine) * * @param string $path GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * * @opt_param bool allowUserPermissionFeatureUpdate Must be set to true to allow * features.user_permissions to change from false to true. If this operation * causes an update but this bit is false, the operation will fail. * @opt_param string containerId ID of container that will be merged into the * current container. * @opt_param string settingSource Specify the source of config setting after * combine * @return Container * @throws \Google\Service\Exception */ public function combine($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('combine', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container::class); } /** * Creates a Container. (containers.create) * * @param string $parent GTM Account's API relative path. Example: * accounts/{account_id}. * @param Container $postBody * @param array $optParams Optional parameters. * @return Container * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container::class); } /** * Deletes a Container. (containers.delete) * * @param string $path GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a Container. (containers.get) * * @param string $path GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * @return Container * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container::class); } /** * Lists all Containers that belongs to a GTM Account. * (containers.listAccountsContainers) * * @param string $parent GTM Account's API relative path. Example: * accounts/{account_id}. * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListContainersResponse * @throws \Google\Service\Exception */ public function listAccountsContainers($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListContainersResponse::class); } /** * Looks up a Container by destination ID. (containers.lookup) * * @param array $optParams Optional parameters. * * @opt_param string destinationId Destination ID linked to a GTM Container, * e.g. AW-123456789. Example: * accounts/containers:lookup?destination_id={destination_id}. * @return Container * @throws \Google\Service\Exception */ public function lookup($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('lookup', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container::class); } /** * Move Tag ID out of a Container. (containers.move_tag_id) * * @param string $path GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * * @opt_param bool allowUserPermissionFeatureUpdate Must be set to true to allow * features.user_permissions to change from false to true. If this operation * causes an update but this bit is false, the operation will fail. * @opt_param bool copySettings Whether or not to copy tag settings from this * tag to the new tag. * @opt_param bool copyTermsOfService Must be set to true to accept all terms of * service agreements copied from the current tag to the newly created tag. If * this bit is false, the operation will fail. * @opt_param bool copyUsers Whether or not to copy users from this tag to the * new tag. * @opt_param string tagId Tag ID to be removed from the current Container. * @opt_param string tagName The name for the newly created tag. * @return Container * @throws \Google\Service\Exception */ public function move_tag_id($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('move_tag_id', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container::class); } /** * Gets the tagging snippet for a Container. (containers.snippet) * * @param string $path Container snippet's API relative path. Example: * accounts/{account_id}/containers/{container_id}:snippet * @param array $optParams Optional parameters. * @return GetContainerSnippetResponse * @throws \Google\Service\Exception */ public function snippet($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('snippet', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\GetContainerSnippetResponse::class); } /** * Updates a Container. (containers.update) * * @param string $path GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param Container $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the container in storage. * @return Container * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Container::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainers::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainers'); apiclient-services/src/TagManager/Resource/Accounts.php 0000644 00000006577 14721515320 0017230 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Account; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListAccountsResponse; /** * The "accounts" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $accounts = $tagmanagerService->accounts; * </code> */ class Accounts extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets a GTM Account. (accounts.get) * * @param string $path GTM Account's API relative path. Example: * accounts/{account_id} * @param array $optParams Optional parameters. * @return Account * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Account::class); } /** * Lists all GTM Accounts that a user has access to. (accounts.listAccounts) * * @param array $optParams Optional parameters. * * @opt_param bool includeGoogleTags Also retrieve accounts associated with * Google Tag when true. * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListAccountsResponse * @throws \Google\Service\Exception */ public function listAccounts($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListAccountsResponse::class); } /** * Updates a GTM Account. (accounts.update) * * @param string $path GTM Account's API relative path. Example: * accounts/{account_id} * @param Account $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the account in storage. * @return Account * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Account $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Account::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\Accounts::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_Accounts'); apiclient-services/src/TagManager/Resource/AccountsContainersEnvironments.php 0000644 00000013470 14721515320 0023654 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource; use Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment; use Google\Site_Kit_Dependencies\Google\Service\TagManager\ListEnvironmentsResponse; /** * The "environments" collection of methods. * Typical usage is: * <code> * $tagmanagerService = new Google\Service\TagManager(...); * $environments = $tagmanagerService->accounts_containers_environments; * </code> */ class AccountsContainersEnvironments extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a GTM Environment. (environments.create) * * @param string $parent GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param Environment $postBody * @param array $optParams Optional parameters. * @return Environment * @throws \Google\Service\Exception */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment::class); } /** * Deletes a GTM Environment. (environments.delete) * * @param string $path GTM Environment's API relative path. Example: * accounts/{account_id}/containers/{container_id}/environments/{environment_id} * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a GTM Environment. (environments.get) * * @param string $path GTM Environment's API relative path. Example: * accounts/{account_id}/containers/{container_id}/environments/{environment_id} * @param array $optParams Optional parameters. * @return Environment * @throws \Google\Service\Exception */ public function get($path, $optParams = []) { $params = ['path' => $path]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment::class); } /** * Lists all GTM Environments of a GTM Container. * (environments.listAccountsContainersEnvironments) * * @param string $parent GTM Container's API relative path. Example: * accounts/{account_id}/containers/{container_id} * @param array $optParams Optional parameters. * * @opt_param string pageToken Continuation token for fetching the next page of * results. * @return ListEnvironmentsResponse * @throws \Google\Service\Exception */ public function listAccountsContainersEnvironments($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\ListEnvironmentsResponse::class); } /** * Re-generates the authorization code for a GTM Environment. * (environments.reauthorize) * * @param string $path GTM Environment's API relative path. Example: * accounts/{account_id}/containers/{container_id}/environments/{environment_id} * @param Environment $postBody * @param array $optParams Optional parameters. * @return Environment * @throws \Google\Service\Exception */ public function reauthorize($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('reauthorize', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment::class); } /** * Updates a GTM Environment. (environments.update) * * @param string $path GTM Environment's API relative path. Example: * accounts/{account_id}/containers/{container_id}/environments/{environment_id} * @param Environment $postBody * @param array $optParams Optional parameters. * * @opt_param string fingerprint When provided, this fingerprint must match the * fingerprint of the environment in storage. * @return Environment * @throws \Google\Service\Exception */ public function update($path, \Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment $postBody, $optParams = []) { $params = ['path' => $path, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\TagManager\Environment::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersEnvironments::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_Resource_AccountsContainersEnvironments'); apiclient-services/src/TagManager/RevertTemplateResponse.php 0000644 00000002726 14721515320 0020334 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class RevertTemplateResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $templateType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate::class; protected $templateDataType = ''; /** * @param CustomTemplate */ public function setTemplate(\Google\Site_Kit_Dependencies\Google\Service\TagManager\CustomTemplate $template) { $this->template = $template; } /** * @return CustomTemplate */ public function getTemplate() { return $this->template; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTemplateResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_RevertTemplateResponse'); apiclient-services/src/TagManager/TagConsentSetting.php 0000644 00000003434 14721515320 0017252 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class TagConsentSetting extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $consentStatus; protected $consentTypeType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter::class; protected $consentTypeDataType = ''; /** * @param string */ public function setConsentStatus($consentStatus) { $this->consentStatus = $consentStatus; } /** * @return string */ public function getConsentStatus() { return $this->consentStatus; } /** * @param Parameter */ public function setConsentType(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Parameter $consentType) { $this->consentType = $consentType; } /** * @return Parameter */ public function getConsentType() { return $this->consentType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\TagConsentSetting::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_TagConsentSetting'); apiclient-services/src/TagManager/QuickPreviewResponse.php 0000644 00000004502 14721515320 0020001 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class QuickPreviewResponse extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $compilerError; protected $containerVersionType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion::class; protected $containerVersionDataType = ''; protected $syncStatusType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncStatus::class; protected $syncStatusDataType = ''; /** * @param bool */ public function setCompilerError($compilerError) { $this->compilerError = $compilerError; } /** * @return bool */ public function getCompilerError() { return $this->compilerError; } /** * @param ContainerVersion */ public function setContainerVersion(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ContainerVersion $containerVersion) { $this->containerVersion = $containerVersion; } /** * @return ContainerVersion */ public function getContainerVersion() { return $this->containerVersion; } /** * @param SyncStatus */ public function setSyncStatus(\Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncStatus $syncStatus) { $this->syncStatus = $syncStatus; } /** * @return SyncStatus */ public function getSyncStatus() { return $this->syncStatus; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\QuickPreviewResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_QuickPreviewResponse'); apiclient-services/src/TagManager/ListFoldersResponse.php 0000644 00000003347 14721515320 0017623 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class ListFoldersResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'folder'; protected $folderType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Folder::class; protected $folderDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param Folder[] */ public function setFolder($folder) { $this->folder = $folder; } /** * @return Folder[] */ public function getFolder() { return $this->folder; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\ListFoldersResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_ListFoldersResponse'); apiclient-services/src/TagManager/RevertVariableResponse.php 0000644 00000002676 14721515320 0020312 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class RevertVariableResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $variableType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable::class; protected $variableDataType = ''; /** * @param Variable */ public function setVariable(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Variable $variable) { $this->variable = $variable; } /** * @return Variable */ public function getVariable() { return $this->variable; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertVariableResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_RevertVariableResponse'); apiclient-services/src/TagManager/RevertTransformationResponse.php 0000644 00000003030 14721515320 0021554 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class RevertTransformationResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $transformationType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation::class; protected $transformationDataType = ''; /** * @param Transformation */ public function setTransformation(\Google\Site_Kit_Dependencies\Google\Service\TagManager\Transformation $transformation) { $this->transformation = $transformation; } /** * @return Transformation */ public function getTransformation() { return $this->transformation; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\RevertTransformationResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_RevertTransformationResponse'); apiclient-services/src/TagManager/SetupTag.php 0000644 00000003142 14721515320 0015377 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class SetupTag extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $stopOnSetupFailure; /** * @var string */ public $tagName; /** * @param bool */ public function setStopOnSetupFailure($stopOnSetupFailure) { $this->stopOnSetupFailure = $stopOnSetupFailure; } /** * @return bool */ public function getStopOnSetupFailure() { return $this->stopOnSetupFailure; } /** * @param string */ public function setTagName($tagName) { $this->tagName = $tagName; } /** * @return string */ public function getTagName() { return $this->tagName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\SetupTag::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_SetupTag'); apiclient-services/src/TagManager/SyncWorkspaceResponse.php 0000644 00000003717 14721515320 0020165 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\TagManager; class SyncWorkspaceResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'mergeConflict'; protected $mergeConflictType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\MergeConflict::class; protected $mergeConflictDataType = 'array'; protected $syncStatusType = \Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncStatus::class; protected $syncStatusDataType = ''; /** * @param MergeConflict[] */ public function setMergeConflict($mergeConflict) { $this->mergeConflict = $mergeConflict; } /** * @return MergeConflict[] */ public function getMergeConflict() { return $this->mergeConflict; } /** * @param SyncStatus */ public function setSyncStatus(\Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncStatus $syncStatus) { $this->syncStatus = $syncStatus; } /** * @return SyncStatus */ public function getSyncStatus() { return $this->syncStatus; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager\SyncWorkspaceResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager_SyncWorkspaceResponse'); apiclient-services/src/PagespeedInsights/UserPageLoadMetricV5.php 0000644 00000005726 14721515320 0021147 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class UserPageLoadMetricV5 extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'distributions'; /** * @var string */ public $category; protected $distributionsType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Bucket::class; protected $distributionsDataType = 'array'; /** * @var string */ public $formFactor; /** * @var int */ public $median; /** * @var string */ public $metricId; /** * @var int */ public $percentile; /** * @param string */ public function setCategory($category) { $this->category = $category; } /** * @return string */ public function getCategory() { return $this->category; } /** * @param Bucket[] */ public function setDistributions($distributions) { $this->distributions = $distributions; } /** * @return Bucket[] */ public function getDistributions() { return $this->distributions; } /** * @param string */ public function setFormFactor($formFactor) { $this->formFactor = $formFactor; } /** * @return string */ public function getFormFactor() { return $this->formFactor; } /** * @param int */ public function setMedian($median) { $this->median = $median; } /** * @return int */ public function getMedian() { return $this->median; } /** * @param string */ public function setMetricId($metricId) { $this->metricId = $metricId; } /** * @return string */ public function getMetricId() { return $this->metricId; } /** * @param int */ public function setPercentile($percentile) { $this->percentile = $percentile; } /** * @return int */ public function getPercentile() { return $this->percentile; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\UserPageLoadMetricV5::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_UserPageLoadMetricV5'); apiclient-services/src/PagespeedInsights/Bucket.php 0000644 00000003256 14721515320 0016466 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class Bucket extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $max; /** * @var int */ public $min; public $proportion; /** * @param int */ public function setMax($max) { $this->max = $max; } /** * @return int */ public function getMax() { return $this->max; } /** * @param int */ public function setMin($min) { $this->min = $min; } /** * @return int */ public function getMin() { return $this->min; } public function setProportion($proportion) { $this->proportion = $proportion; } public function getProportion() { return $this->proportion; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Bucket::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_Bucket'); apiclient-services/src/PagespeedInsights/ConfigSettings.php 0000644 00000005100 14721515320 0020165 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class ConfigSettings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $channel; /** * @var string */ public $emulatedFormFactor; /** * @var string */ public $formFactor; /** * @var string */ public $locale; /** * @var array */ public $onlyCategories; /** * @param string */ public function setChannel($channel) { $this->channel = $channel; } /** * @return string */ public function getChannel() { return $this->channel; } /** * @param string */ public function setEmulatedFormFactor($emulatedFormFactor) { $this->emulatedFormFactor = $emulatedFormFactor; } /** * @return string */ public function getEmulatedFormFactor() { return $this->emulatedFormFactor; } /** * @param string */ public function setFormFactor($formFactor) { $this->formFactor = $formFactor; } /** * @return string */ public function getFormFactor() { return $this->formFactor; } /** * @param string */ public function setLocale($locale) { $this->locale = $locale; } /** * @return string */ public function getLocale() { return $this->locale; } /** * @param array */ public function setOnlyCategories($onlyCategories) { $this->onlyCategories = $onlyCategories; } /** * @return array */ public function getOnlyCategories() { return $this->onlyCategories; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\ConfigSettings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_ConfigSettings'); apiclient-services/src/PagespeedInsights/Timing.php 0000644 00000002207 14721515320 0016473 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class Timing extends \Google\Site_Kit_Dependencies\Google\Model { public $total; public function setTotal($total) { $this->total = $total; } public function getTotal() { return $this->total; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Timing::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_Timing'); apiclient-services/src/PagespeedInsights/AuditRefs.php 0000644 00000004560 14721515320 0017136 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class AuditRefs extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'relevantAudits'; /** * @var string */ public $acronym; /** * @var string */ public $group; /** * @var string */ public $id; /** * @var string[] */ public $relevantAudits; public $weight; /** * @param string */ public function setAcronym($acronym) { $this->acronym = $acronym; } /** * @return string */ public function getAcronym() { return $this->acronym; } /** * @param string */ public function setGroup($group) { $this->group = $group; } /** * @return string */ public function getGroup() { return $this->group; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string[] */ public function setRelevantAudits($relevantAudits) { $this->relevantAudits = $relevantAudits; } /** * @return string[] */ public function getRelevantAudits() { return $this->relevantAudits; } public function setWeight($weight) { $this->weight = $weight; } public function getWeight() { return $this->weight; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\AuditRefs::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_AuditRefs'); apiclient-services/src/PagespeedInsights/CategoryGroupV5.php 0000644 00000003123 14721515320 0020247 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class CategoryGroupV5 extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $description; /** * @var string */ public $title; /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\CategoryGroupV5::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_CategoryGroupV5'); apiclient-services/src/PagespeedInsights/PagespeedApiLoadingExperienceV5.php 0000644 00000005541 14721515320 0023320 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class PagespeedApiLoadingExperienceV5 extends \Google\Site_Kit_Dependencies\Google\Model { protected $internal_gapi_mappings = ["initialUrl" => "initial_url", "originFallback" => "origin_fallback", "overallCategory" => "overall_category"]; /** * @var string */ public $id; /** * @var string */ public $initialUrl; protected $metricsType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\UserPageLoadMetricV5::class; protected $metricsDataType = 'map'; /** * @var bool */ public $originFallback; /** * @var string */ public $overallCategory; /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setInitialUrl($initialUrl) { $this->initialUrl = $initialUrl; } /** * @return string */ public function getInitialUrl() { return $this->initialUrl; } /** * @param UserPageLoadMetricV5[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return UserPageLoadMetricV5[] */ public function getMetrics() { return $this->metrics; } /** * @param bool */ public function setOriginFallback($originFallback) { $this->originFallback = $originFallback; } /** * @return bool */ public function getOriginFallback() { return $this->originFallback; } /** * @param string */ public function setOverallCategory($overallCategory) { $this->overallCategory = $overallCategory; } /** * @return string */ public function getOverallCategory() { return $this->overallCategory; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedApiLoadingExperienceV5::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_PagespeedApiLoadingExperienceV5'); apiclient-services/src/PagespeedInsights/LighthouseResultV5.php 0000644 00000021073 14721515320 0020773 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class LighthouseResultV5 extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'stackPacks'; protected $auditsType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseAuditResultV5::class; protected $auditsDataType = 'map'; protected $categoriesType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Categories::class; protected $categoriesDataType = ''; protected $categoryGroupsType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\CategoryGroupV5::class; protected $categoryGroupsDataType = 'map'; protected $configSettingsType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\ConfigSettings::class; protected $configSettingsDataType = ''; protected $entitiesType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LhrEntity::class; protected $entitiesDataType = 'array'; protected $environmentType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Environment::class; protected $environmentDataType = ''; /** * @var string */ public $fetchTime; /** * @var string */ public $finalDisplayedUrl; /** * @var string */ public $finalUrl; /** * @var array */ public $fullPageScreenshot; protected $i18nType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\I18n::class; protected $i18nDataType = ''; /** * @var string */ public $lighthouseVersion; /** * @var string */ public $mainDocumentUrl; /** * @var string */ public $requestedUrl; /** * @var array[] */ public $runWarnings; protected $runtimeErrorType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\RuntimeError::class; protected $runtimeErrorDataType = ''; protected $stackPacksType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\StackPack::class; protected $stackPacksDataType = 'array'; protected $timingType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Timing::class; protected $timingDataType = ''; /** * @var string */ public $userAgent; /** * @param LighthouseAuditResultV5[] */ public function setAudits($audits) { $this->audits = $audits; } /** * @return LighthouseAuditResultV5[] */ public function getAudits() { return $this->audits; } /** * @param Categories */ public function setCategories(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Categories $categories) { $this->categories = $categories; } /** * @return Categories */ public function getCategories() { return $this->categories; } /** * @param CategoryGroupV5[] */ public function setCategoryGroups($categoryGroups) { $this->categoryGroups = $categoryGroups; } /** * @return CategoryGroupV5[] */ public function getCategoryGroups() { return $this->categoryGroups; } /** * @param ConfigSettings */ public function setConfigSettings(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\ConfigSettings $configSettings) { $this->configSettings = $configSettings; } /** * @return ConfigSettings */ public function getConfigSettings() { return $this->configSettings; } /** * @param LhrEntity[] */ public function setEntities($entities) { $this->entities = $entities; } /** * @return LhrEntity[] */ public function getEntities() { return $this->entities; } /** * @param Environment */ public function setEnvironment(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Environment $environment) { $this->environment = $environment; } /** * @return Environment */ public function getEnvironment() { return $this->environment; } /** * @param string */ public function setFetchTime($fetchTime) { $this->fetchTime = $fetchTime; } /** * @return string */ public function getFetchTime() { return $this->fetchTime; } /** * @param string */ public function setFinalDisplayedUrl($finalDisplayedUrl) { $this->finalDisplayedUrl = $finalDisplayedUrl; } /** * @return string */ public function getFinalDisplayedUrl() { return $this->finalDisplayedUrl; } /** * @param string */ public function setFinalUrl($finalUrl) { $this->finalUrl = $finalUrl; } /** * @return string */ public function getFinalUrl() { return $this->finalUrl; } /** * @param array */ public function setFullPageScreenshot($fullPageScreenshot) { $this->fullPageScreenshot = $fullPageScreenshot; } /** * @return array */ public function getFullPageScreenshot() { return $this->fullPageScreenshot; } /** * @param I18n */ public function setI18n(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\I18n $i18n) { $this->i18n = $i18n; } /** * @return I18n */ public function getI18n() { return $this->i18n; } /** * @param string */ public function setLighthouseVersion($lighthouseVersion) { $this->lighthouseVersion = $lighthouseVersion; } /** * @return string */ public function getLighthouseVersion() { return $this->lighthouseVersion; } /** * @param string */ public function setMainDocumentUrl($mainDocumentUrl) { $this->mainDocumentUrl = $mainDocumentUrl; } /** * @return string */ public function getMainDocumentUrl() { return $this->mainDocumentUrl; } /** * @param string */ public function setRequestedUrl($requestedUrl) { $this->requestedUrl = $requestedUrl; } /** * @return string */ public function getRequestedUrl() { return $this->requestedUrl; } /** * @param array[] */ public function setRunWarnings($runWarnings) { $this->runWarnings = $runWarnings; } /** * @return array[] */ public function getRunWarnings() { return $this->runWarnings; } /** * @param RuntimeError */ public function setRuntimeError(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\RuntimeError $runtimeError) { $this->runtimeError = $runtimeError; } /** * @return RuntimeError */ public function getRuntimeError() { return $this->runtimeError; } /** * @param StackPack[] */ public function setStackPacks($stackPacks) { $this->stackPacks = $stackPacks; } /** * @return StackPack[] */ public function getStackPacks() { return $this->stackPacks; } /** * @param Timing */ public function setTiming(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Timing $timing) { $this->timing = $timing; } /** * @return Timing */ public function getTiming() { return $this->timing; } /** * @param string */ public function setUserAgent($userAgent) { $this->userAgent = $userAgent; } /** * @return string */ public function getUserAgent() { return $this->userAgent; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseResultV5::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_LighthouseResultV5'); apiclient-services/src/PagespeedInsights/Environment.php 0000644 00000004271 14721515320 0017553 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class Environment extends \Google\Site_Kit_Dependencies\Google\Model { public $benchmarkIndex; /** * @var string[] */ public $credits; /** * @var string */ public $hostUserAgent; /** * @var string */ public $networkUserAgent; public function setBenchmarkIndex($benchmarkIndex) { $this->benchmarkIndex = $benchmarkIndex; } public function getBenchmarkIndex() { return $this->benchmarkIndex; } /** * @param string[] */ public function setCredits($credits) { $this->credits = $credits; } /** * @return string[] */ public function getCredits() { return $this->credits; } /** * @param string */ public function setHostUserAgent($hostUserAgent) { $this->hostUserAgent = $hostUserAgent; } /** * @return string */ public function getHostUserAgent() { return $this->hostUserAgent; } /** * @param string */ public function setNetworkUserAgent($networkUserAgent) { $this->networkUserAgent = $networkUserAgent; } /** * @return string */ public function getNetworkUserAgent() { return $this->networkUserAgent; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Environment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_Environment'); apiclient-services/src/PagespeedInsights/PagespeedApiPagespeedResponseV5.php 0000644 00000011134 14721515320 0023342 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class PagespeedApiPagespeedResponseV5 extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $analysisUTCTimestamp; /** * @var string */ public $captchaResult; /** * @var string */ public $id; /** * @var string */ public $kind; protected $lighthouseResultType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseResultV5::class; protected $lighthouseResultDataType = ''; protected $loadingExperienceType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedApiLoadingExperienceV5::class; protected $loadingExperienceDataType = ''; protected $originLoadingExperienceType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedApiLoadingExperienceV5::class; protected $originLoadingExperienceDataType = ''; protected $versionType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedVersion::class; protected $versionDataType = ''; /** * @param string */ public function setAnalysisUTCTimestamp($analysisUTCTimestamp) { $this->analysisUTCTimestamp = $analysisUTCTimestamp; } /** * @return string */ public function getAnalysisUTCTimestamp() { return $this->analysisUTCTimestamp; } /** * @param string */ public function setCaptchaResult($captchaResult) { $this->captchaResult = $captchaResult; } /** * @return string */ public function getCaptchaResult() { return $this->captchaResult; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param LighthouseResultV5 */ public function setLighthouseResult(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseResultV5 $lighthouseResult) { $this->lighthouseResult = $lighthouseResult; } /** * @return LighthouseResultV5 */ public function getLighthouseResult() { return $this->lighthouseResult; } /** * @param PagespeedApiLoadingExperienceV5 */ public function setLoadingExperience(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedApiLoadingExperienceV5 $loadingExperience) { $this->loadingExperience = $loadingExperience; } /** * @return PagespeedApiLoadingExperienceV5 */ public function getLoadingExperience() { return $this->loadingExperience; } /** * @param PagespeedApiLoadingExperienceV5 */ public function setOriginLoadingExperience(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedApiLoadingExperienceV5 $originLoadingExperience) { $this->originLoadingExperience = $originLoadingExperience; } /** * @return PagespeedApiLoadingExperienceV5 */ public function getOriginLoadingExperience() { return $this->originLoadingExperience; } /** * @param PagespeedVersion */ public function setVersion(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedVersion $version) { $this->version = $version; } /** * @return PagespeedVersion */ public function getVersion() { return $this->version; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedApiPagespeedResponseV5::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_PagespeedApiPagespeedResponseV5'); apiclient-services/src/PagespeedInsights/Categories.php 0000644 00000007150 14721515320 0017333 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class Categories extends \Google\Site_Kit_Dependencies\Google\Model { protected $internal_gapi_mappings = ["bestPractices" => "best-practices"]; protected $accessibilityType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5::class; protected $accessibilityDataType = ''; protected $bestPracticesType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5::class; protected $bestPracticesDataType = ''; protected $performanceType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5::class; protected $performanceDataType = ''; protected $pwaType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5::class; protected $pwaDataType = ''; protected $seoType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5::class; protected $seoDataType = ''; /** * @param LighthouseCategoryV5 */ public function setAccessibility(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5 $accessibility) { $this->accessibility = $accessibility; } /** * @return LighthouseCategoryV5 */ public function getAccessibility() { return $this->accessibility; } /** * @param LighthouseCategoryV5 */ public function setBestPractices(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5 $bestPractices) { $this->bestPractices = $bestPractices; } /** * @return LighthouseCategoryV5 */ public function getBestPractices() { return $this->bestPractices; } /** * @param LighthouseCategoryV5 */ public function setPerformance(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5 $performance) { $this->performance = $performance; } /** * @return LighthouseCategoryV5 */ public function getPerformance() { return $this->performance; } /** * @param LighthouseCategoryV5 */ public function setPwa(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5 $pwa) { $this->pwa = $pwa; } /** * @return LighthouseCategoryV5 */ public function getPwa() { return $this->pwa; } /** * @param LighthouseCategoryV5 */ public function setSeo(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5 $seo) { $this->seo = $seo; } /** * @return LighthouseCategoryV5 */ public function getSeo() { return $this->seo; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Categories::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_Categories'); apiclient-services/src/PagespeedInsights/LhrEntity.php 0000644 00000005506 14721515320 0017173 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class LhrEntity extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'origins'; /** * @var string */ public $category; /** * @var string */ public $homepage; /** * @var bool */ public $isFirstParty; /** * @var bool */ public $isUnrecognized; /** * @var string */ public $name; /** * @var string[] */ public $origins; /** * @param string */ public function setCategory($category) { $this->category = $category; } /** * @return string */ public function getCategory() { return $this->category; } /** * @param string */ public function setHomepage($homepage) { $this->homepage = $homepage; } /** * @return string */ public function getHomepage() { return $this->homepage; } /** * @param bool */ public function setIsFirstParty($isFirstParty) { $this->isFirstParty = $isFirstParty; } /** * @return bool */ public function getIsFirstParty() { return $this->isFirstParty; } /** * @param bool */ public function setIsUnrecognized($isUnrecognized) { $this->isUnrecognized = $isUnrecognized; } /** * @return bool */ public function getIsUnrecognized() { return $this->isUnrecognized; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string[] */ public function setOrigins($origins) { $this->origins = $origins; } /** * @return string[] */ public function getOrigins() { return $this->origins; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LhrEntity::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_LhrEntity'); apiclient-services/src/PagespeedInsights/StackPack.php 0000644 00000004225 14721515320 0017112 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class StackPack extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string[] */ public $descriptions; /** * @var string */ public $iconDataURL; /** * @var string */ public $id; /** * @var string */ public $title; /** * @param string[] */ public function setDescriptions($descriptions) { $this->descriptions = $descriptions; } /** * @return string[] */ public function getDescriptions() { return $this->descriptions; } /** * @param string */ public function setIconDataURL($iconDataURL) { $this->iconDataURL = $iconDataURL; } /** * @return string */ public function getIconDataURL() { return $this->iconDataURL; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\StackPack::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_StackPack'); apiclient-services/src/PagespeedInsights/LighthouseCategoryV5.php 0000644 00000005674 14721515320 0021303 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class LighthouseCategoryV5 extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'auditRefs'; protected $auditRefsType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\AuditRefs::class; protected $auditRefsDataType = 'array'; /** * @var string */ public $description; /** * @var string */ public $id; /** * @var string */ public $manualDescription; /** * @var array */ public $score; /** * @var string */ public $title; /** * @param AuditRefs[] */ public function setAuditRefs($auditRefs) { $this->auditRefs = $auditRefs; } /** * @return AuditRefs[] */ public function getAuditRefs() { return $this->auditRefs; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setManualDescription($manualDescription) { $this->manualDescription = $manualDescription; } /** * @return string */ public function getManualDescription() { return $this->manualDescription; } /** * @param array */ public function setScore($score) { $this->score = $score; } /** * @return array */ public function getScore() { return $this->score; } /** * @param string */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseCategoryV5::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_LighthouseCategoryV5'); apiclient-services/src/PagespeedInsights/I18n.php 0000644 00000003153 14721515320 0015764 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class I18n extends \Google\Site_Kit_Dependencies\Google\Model { protected $rendererFormattedStringsType = \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\RendererFormattedStrings::class; protected $rendererFormattedStringsDataType = ''; /** * @param RendererFormattedStrings */ public function setRendererFormattedStrings(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\RendererFormattedStrings $rendererFormattedStrings) { $this->rendererFormattedStrings = $rendererFormattedStrings; } /** * @return RendererFormattedStrings */ public function getRendererFormattedStrings() { return $this->rendererFormattedStrings; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\I18n::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_I18n'); apiclient-services/src/PagespeedInsights/RendererFormattedStrings.php 0000644 00000046432 14721515320 0022242 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class RendererFormattedStrings extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $auditGroupExpandTooltip; /** * @var string */ public $calculatorLink; /** * @var string */ public $crcInitialNavigation; /** * @var string */ public $crcLongestDurationLabel; /** * @var string */ public $dropdownCopyJSON; /** * @var string */ public $dropdownDarkTheme; /** * @var string */ public $dropdownPrintExpanded; /** * @var string */ public $dropdownPrintSummary; /** * @var string */ public $dropdownSaveGist; /** * @var string */ public $dropdownSaveHTML; /** * @var string */ public $dropdownSaveJSON; /** * @var string */ public $dropdownViewer; /** * @var string */ public $errorLabel; /** * @var string */ public $errorMissingAuditInfo; /** * @var string */ public $footerIssue; /** * @var string */ public $labDataTitle; /** * @var string */ public $lsPerformanceCategoryDescription; /** * @var string */ public $manualAuditsGroupTitle; /** * @var string */ public $notApplicableAuditsGroupTitle; /** * @var string */ public $opportunityResourceColumnLabel; /** * @var string */ public $opportunitySavingsColumnLabel; /** * @var string */ public $passedAuditsGroupTitle; /** * @var string */ public $runtimeDesktopEmulation; /** * @var string */ public $runtimeMobileEmulation; /** * @var string */ public $runtimeNoEmulation; /** * @var string */ public $runtimeSettingsAxeVersion; /** * @var string */ public $runtimeSettingsBenchmark; /** * @var string */ public $runtimeSettingsCPUThrottling; /** * @var string */ public $runtimeSettingsChannel; /** * @var string */ public $runtimeSettingsDevice; /** * @var string */ public $runtimeSettingsFetchTime; /** * @var string */ public $runtimeSettingsNetworkThrottling; /** * @var string */ public $runtimeSettingsTitle; /** * @var string */ public $runtimeSettingsUA; /** * @var string */ public $runtimeSettingsUANetwork; /** * @var string */ public $runtimeSettingsUrl; /** * @var string */ public $runtimeUnknown; /** * @var string */ public $scorescaleLabel; /** * @var string */ public $showRelevantAudits; /** * @var string */ public $snippetCollapseButtonLabel; /** * @var string */ public $snippetExpandButtonLabel; /** * @var string */ public $thirdPartyResourcesLabel; /** * @var string */ public $throttlingProvided; /** * @var string */ public $toplevelWarningsMessage; /** * @var string */ public $varianceDisclaimer; /** * @var string */ public $viewTreemapLabel; /** * @var string */ public $warningAuditsGroupTitle; /** * @var string */ public $warningHeader; /** * @param string */ public function setAuditGroupExpandTooltip($auditGroupExpandTooltip) { $this->auditGroupExpandTooltip = $auditGroupExpandTooltip; } /** * @return string */ public function getAuditGroupExpandTooltip() { return $this->auditGroupExpandTooltip; } /** * @param string */ public function setCalculatorLink($calculatorLink) { $this->calculatorLink = $calculatorLink; } /** * @return string */ public function getCalculatorLink() { return $this->calculatorLink; } /** * @param string */ public function setCrcInitialNavigation($crcInitialNavigation) { $this->crcInitialNavigation = $crcInitialNavigation; } /** * @return string */ public function getCrcInitialNavigation() { return $this->crcInitialNavigation; } /** * @param string */ public function setCrcLongestDurationLabel($crcLongestDurationLabel) { $this->crcLongestDurationLabel = $crcLongestDurationLabel; } /** * @return string */ public function getCrcLongestDurationLabel() { return $this->crcLongestDurationLabel; } /** * @param string */ public function setDropdownCopyJSON($dropdownCopyJSON) { $this->dropdownCopyJSON = $dropdownCopyJSON; } /** * @return string */ public function getDropdownCopyJSON() { return $this->dropdownCopyJSON; } /** * @param string */ public function setDropdownDarkTheme($dropdownDarkTheme) { $this->dropdownDarkTheme = $dropdownDarkTheme; } /** * @return string */ public function getDropdownDarkTheme() { return $this->dropdownDarkTheme; } /** * @param string */ public function setDropdownPrintExpanded($dropdownPrintExpanded) { $this->dropdownPrintExpanded = $dropdownPrintExpanded; } /** * @return string */ public function getDropdownPrintExpanded() { return $this->dropdownPrintExpanded; } /** * @param string */ public function setDropdownPrintSummary($dropdownPrintSummary) { $this->dropdownPrintSummary = $dropdownPrintSummary; } /** * @return string */ public function getDropdownPrintSummary() { return $this->dropdownPrintSummary; } /** * @param string */ public function setDropdownSaveGist($dropdownSaveGist) { $this->dropdownSaveGist = $dropdownSaveGist; } /** * @return string */ public function getDropdownSaveGist() { return $this->dropdownSaveGist; } /** * @param string */ public function setDropdownSaveHTML($dropdownSaveHTML) { $this->dropdownSaveHTML = $dropdownSaveHTML; } /** * @return string */ public function getDropdownSaveHTML() { return $this->dropdownSaveHTML; } /** * @param string */ public function setDropdownSaveJSON($dropdownSaveJSON) { $this->dropdownSaveJSON = $dropdownSaveJSON; } /** * @return string */ public function getDropdownSaveJSON() { return $this->dropdownSaveJSON; } /** * @param string */ public function setDropdownViewer($dropdownViewer) { $this->dropdownViewer = $dropdownViewer; } /** * @return string */ public function getDropdownViewer() { return $this->dropdownViewer; } /** * @param string */ public function setErrorLabel($errorLabel) { $this->errorLabel = $errorLabel; } /** * @return string */ public function getErrorLabel() { return $this->errorLabel; } /** * @param string */ public function setErrorMissingAuditInfo($errorMissingAuditInfo) { $this->errorMissingAuditInfo = $errorMissingAuditInfo; } /** * @return string */ public function getErrorMissingAuditInfo() { return $this->errorMissingAuditInfo; } /** * @param string */ public function setFooterIssue($footerIssue) { $this->footerIssue = $footerIssue; } /** * @return string */ public function getFooterIssue() { return $this->footerIssue; } /** * @param string */ public function setLabDataTitle($labDataTitle) { $this->labDataTitle = $labDataTitle; } /** * @return string */ public function getLabDataTitle() { return $this->labDataTitle; } /** * @param string */ public function setLsPerformanceCategoryDescription($lsPerformanceCategoryDescription) { $this->lsPerformanceCategoryDescription = $lsPerformanceCategoryDescription; } /** * @return string */ public function getLsPerformanceCategoryDescription() { return $this->lsPerformanceCategoryDescription; } /** * @param string */ public function setManualAuditsGroupTitle($manualAuditsGroupTitle) { $this->manualAuditsGroupTitle = $manualAuditsGroupTitle; } /** * @return string */ public function getManualAuditsGroupTitle() { return $this->manualAuditsGroupTitle; } /** * @param string */ public function setNotApplicableAuditsGroupTitle($notApplicableAuditsGroupTitle) { $this->notApplicableAuditsGroupTitle = $notApplicableAuditsGroupTitle; } /** * @return string */ public function getNotApplicableAuditsGroupTitle() { return $this->notApplicableAuditsGroupTitle; } /** * @param string */ public function setOpportunityResourceColumnLabel($opportunityResourceColumnLabel) { $this->opportunityResourceColumnLabel = $opportunityResourceColumnLabel; } /** * @return string */ public function getOpportunityResourceColumnLabel() { return $this->opportunityResourceColumnLabel; } /** * @param string */ public function setOpportunitySavingsColumnLabel($opportunitySavingsColumnLabel) { $this->opportunitySavingsColumnLabel = $opportunitySavingsColumnLabel; } /** * @return string */ public function getOpportunitySavingsColumnLabel() { return $this->opportunitySavingsColumnLabel; } /** * @param string */ public function setPassedAuditsGroupTitle($passedAuditsGroupTitle) { $this->passedAuditsGroupTitle = $passedAuditsGroupTitle; } /** * @return string */ public function getPassedAuditsGroupTitle() { return $this->passedAuditsGroupTitle; } /** * @param string */ public function setRuntimeDesktopEmulation($runtimeDesktopEmulation) { $this->runtimeDesktopEmulation = $runtimeDesktopEmulation; } /** * @return string */ public function getRuntimeDesktopEmulation() { return $this->runtimeDesktopEmulation; } /** * @param string */ public function setRuntimeMobileEmulation($runtimeMobileEmulation) { $this->runtimeMobileEmulation = $runtimeMobileEmulation; } /** * @return string */ public function getRuntimeMobileEmulation() { return $this->runtimeMobileEmulation; } /** * @param string */ public function setRuntimeNoEmulation($runtimeNoEmulation) { $this->runtimeNoEmulation = $runtimeNoEmulation; } /** * @return string */ public function getRuntimeNoEmulation() { return $this->runtimeNoEmulation; } /** * @param string */ public function setRuntimeSettingsAxeVersion($runtimeSettingsAxeVersion) { $this->runtimeSettingsAxeVersion = $runtimeSettingsAxeVersion; } /** * @return string */ public function getRuntimeSettingsAxeVersion() { return $this->runtimeSettingsAxeVersion; } /** * @param string */ public function setRuntimeSettingsBenchmark($runtimeSettingsBenchmark) { $this->runtimeSettingsBenchmark = $runtimeSettingsBenchmark; } /** * @return string */ public function getRuntimeSettingsBenchmark() { return $this->runtimeSettingsBenchmark; } /** * @param string */ public function setRuntimeSettingsCPUThrottling($runtimeSettingsCPUThrottling) { $this->runtimeSettingsCPUThrottling = $runtimeSettingsCPUThrottling; } /** * @return string */ public function getRuntimeSettingsCPUThrottling() { return $this->runtimeSettingsCPUThrottling; } /** * @param string */ public function setRuntimeSettingsChannel($runtimeSettingsChannel) { $this->runtimeSettingsChannel = $runtimeSettingsChannel; } /** * @return string */ public function getRuntimeSettingsChannel() { return $this->runtimeSettingsChannel; } /** * @param string */ public function setRuntimeSettingsDevice($runtimeSettingsDevice) { $this->runtimeSettingsDevice = $runtimeSettingsDevice; } /** * @return string */ public function getRuntimeSettingsDevice() { return $this->runtimeSettingsDevice; } /** * @param string */ public function setRuntimeSettingsFetchTime($runtimeSettingsFetchTime) { $this->runtimeSettingsFetchTime = $runtimeSettingsFetchTime; } /** * @return string */ public function getRuntimeSettingsFetchTime() { return $this->runtimeSettingsFetchTime; } /** * @param string */ public function setRuntimeSettingsNetworkThrottling($runtimeSettingsNetworkThrottling) { $this->runtimeSettingsNetworkThrottling = $runtimeSettingsNetworkThrottling; } /** * @return string */ public function getRuntimeSettingsNetworkThrottling() { return $this->runtimeSettingsNetworkThrottling; } /** * @param string */ public function setRuntimeSettingsTitle($runtimeSettingsTitle) { $this->runtimeSettingsTitle = $runtimeSettingsTitle; } /** * @return string */ public function getRuntimeSettingsTitle() { return $this->runtimeSettingsTitle; } /** * @param string */ public function setRuntimeSettingsUA($runtimeSettingsUA) { $this->runtimeSettingsUA = $runtimeSettingsUA; } /** * @return string */ public function getRuntimeSettingsUA() { return $this->runtimeSettingsUA; } /** * @param string */ public function setRuntimeSettingsUANetwork($runtimeSettingsUANetwork) { $this->runtimeSettingsUANetwork = $runtimeSettingsUANetwork; } /** * @return string */ public function getRuntimeSettingsUANetwork() { return $this->runtimeSettingsUANetwork; } /** * @param string */ public function setRuntimeSettingsUrl($runtimeSettingsUrl) { $this->runtimeSettingsUrl = $runtimeSettingsUrl; } /** * @return string */ public function getRuntimeSettingsUrl() { return $this->runtimeSettingsUrl; } /** * @param string */ public function setRuntimeUnknown($runtimeUnknown) { $this->runtimeUnknown = $runtimeUnknown; } /** * @return string */ public function getRuntimeUnknown() { return $this->runtimeUnknown; } /** * @param string */ public function setScorescaleLabel($scorescaleLabel) { $this->scorescaleLabel = $scorescaleLabel; } /** * @return string */ public function getScorescaleLabel() { return $this->scorescaleLabel; } /** * @param string */ public function setShowRelevantAudits($showRelevantAudits) { $this->showRelevantAudits = $showRelevantAudits; } /** * @return string */ public function getShowRelevantAudits() { return $this->showRelevantAudits; } /** * @param string */ public function setSnippetCollapseButtonLabel($snippetCollapseButtonLabel) { $this->snippetCollapseButtonLabel = $snippetCollapseButtonLabel; } /** * @return string */ public function getSnippetCollapseButtonLabel() { return $this->snippetCollapseButtonLabel; } /** * @param string */ public function setSnippetExpandButtonLabel($snippetExpandButtonLabel) { $this->snippetExpandButtonLabel = $snippetExpandButtonLabel; } /** * @return string */ public function getSnippetExpandButtonLabel() { return $this->snippetExpandButtonLabel; } /** * @param string */ public function setThirdPartyResourcesLabel($thirdPartyResourcesLabel) { $this->thirdPartyResourcesLabel = $thirdPartyResourcesLabel; } /** * @return string */ public function getThirdPartyResourcesLabel() { return $this->thirdPartyResourcesLabel; } /** * @param string */ public function setThrottlingProvided($throttlingProvided) { $this->throttlingProvided = $throttlingProvided; } /** * @return string */ public function getThrottlingProvided() { return $this->throttlingProvided; } /** * @param string */ public function setToplevelWarningsMessage($toplevelWarningsMessage) { $this->toplevelWarningsMessage = $toplevelWarningsMessage; } /** * @return string */ public function getToplevelWarningsMessage() { return $this->toplevelWarningsMessage; } /** * @param string */ public function setVarianceDisclaimer($varianceDisclaimer) { $this->varianceDisclaimer = $varianceDisclaimer; } /** * @return string */ public function getVarianceDisclaimer() { return $this->varianceDisclaimer; } /** * @param string */ public function setViewTreemapLabel($viewTreemapLabel) { $this->viewTreemapLabel = $viewTreemapLabel; } /** * @return string */ public function getViewTreemapLabel() { return $this->viewTreemapLabel; } /** * @param string */ public function setWarningAuditsGroupTitle($warningAuditsGroupTitle) { $this->warningAuditsGroupTitle = $warningAuditsGroupTitle; } /** * @return string */ public function getWarningAuditsGroupTitle() { return $this->warningAuditsGroupTitle; } /** * @param string */ public function setWarningHeader($warningHeader) { $this->warningHeader = $warningHeader; } /** * @return string */ public function getWarningHeader() { return $this->warningHeader; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\RendererFormattedStrings::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_RendererFormattedStrings'); apiclient-services/src/PagespeedInsights/PagespeedVersion.php 0000644 00000003054 14721515320 0020510 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class PagespeedVersion extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $major; /** * @var string */ public $minor; /** * @param string */ public function setMajor($major) { $this->major = $major; } /** * @return string */ public function getMajor() { return $this->major; } /** * @param string */ public function setMinor($minor) { $this->minor = $minor; } /** * @return string */ public function getMinor() { return $this->minor; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedVersion::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_PagespeedVersion'); apiclient-services/src/PagespeedInsights/Resource/Pagespeedapi.php 0000644 00000005177 14721515320 0021433 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Resource; use Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedApiPagespeedResponseV5; /** * The "pagespeedapi" collection of methods. * Typical usage is: * <code> * $pagespeedonlineService = new Google\Service\PagespeedInsights(...); * $pagespeedapi = $pagespeedonlineService->pagespeedapi; * </code> */ class Pagespeedapi extends \Google\Site_Kit_Dependencies\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 Required. The URL to fetch and analyze * @param array $optParams Optional parameters. * * @opt_param string captchaToken The captcha token passed when filling out a * captcha. * @opt_param string category A Lighthouse category to run; if none are given, * only Performance category will be run * @opt_param string locale The locale used to localize formatted results * @opt_param string strategy The analysis strategy (desktop or mobile) to use, * and desktop is the default * @opt_param string utm_campaign Campaign name for analytics. * @opt_param string utm_source Campaign source for analytics. * @return PagespeedApiPagespeedResponseV5 * @throws \Google\Service\Exception */ public function runpagespeed($url, $optParams = []) { $params = ['url' => $url]; $params = \array_merge($params, $optParams); return $this->call('runpagespeed', [$params], \Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\PagespeedApiPagespeedResponseV5::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\Resource\Pagespeedapi::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_Resource_Pagespeedapi'); apiclient-services/src/PagespeedInsights/LighthouseAuditResultV5.php 0000644 00000011066 14721515320 0021763 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class LighthouseAuditResultV5 extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $description; /** * @var array[] */ public $details; /** * @var string */ public $displayValue; /** * @var string */ public $errorMessage; /** * @var string */ public $explanation; /** * @var string */ public $id; /** * @var string */ public $numericUnit; public $numericValue; /** * @var array */ public $score; /** * @var string */ public $scoreDisplayMode; /** * @var string */ public $title; /** * @var array */ public $warnings; /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param array[] */ public function setDetails($details) { $this->details = $details; } /** * @return array[] */ public function getDetails() { return $this->details; } /** * @param string */ public function setDisplayValue($displayValue) { $this->displayValue = $displayValue; } /** * @return string */ public function getDisplayValue() { return $this->displayValue; } /** * @param string */ public function setErrorMessage($errorMessage) { $this->errorMessage = $errorMessage; } /** * @return string */ public function getErrorMessage() { return $this->errorMessage; } /** * @param string */ public function setExplanation($explanation) { $this->explanation = $explanation; } /** * @return string */ public function getExplanation() { return $this->explanation; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setNumericUnit($numericUnit) { $this->numericUnit = $numericUnit; } /** * @return string */ public function getNumericUnit() { return $this->numericUnit; } public function setNumericValue($numericValue) { $this->numericValue = $numericValue; } public function getNumericValue() { return $this->numericValue; } /** * @param array */ public function setScore($score) { $this->score = $score; } /** * @return array */ public function getScore() { return $this->score; } /** * @param string */ public function setScoreDisplayMode($scoreDisplayMode) { $this->scoreDisplayMode = $scoreDisplayMode; } /** * @return string */ public function getScoreDisplayMode() { return $this->scoreDisplayMode; } /** * @param string */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } /** * @param array */ public function setWarnings($warnings) { $this->warnings = $warnings; } /** * @return array */ public function getWarnings() { return $this->warnings; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\LighthouseAuditResultV5::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_LighthouseAuditResultV5'); apiclient-services/src/PagespeedInsights/RuntimeError.php 0000644 00000003047 14721515320 0017704 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights; class RuntimeError extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $code; /** * @var string */ public $message; /** * @param string */ public function setCode($code) { $this->code = $code; } /** * @return string */ public function getCode() { return $this->code; } /** * @param string */ public function setMessage($message) { $this->message = $message; } /** * @return string */ public function getMessage() { return $this->message; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PagespeedInsights\RuntimeError::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PagespeedInsights_RuntimeError'); apiclient-services/src/SiteVerification/SiteVerificationWebResourceResource.php 0000644 00000004270 14721515320 0024234 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SiteVerification; class SiteVerificationWebResourceResource extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'owners'; /** * @var string */ public $id; /** * @var string[] */ public $owners; protected $siteType = \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResourceSite::class; protected $siteDataType = ''; /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string[] */ public function setOwners($owners) { $this->owners = $owners; } /** * @return string[] */ public function getOwners() { return $this->owners; } /** * @param SiteVerificationWebResourceResourceSite */ public function setSite(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResourceSite $site) { $this->site = $site; } /** * @return SiteVerificationWebResourceResourceSite */ public function getSite() { return $this->site; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SiteVerification_SiteVerificationWebResourceResource'); apiclient-services/src/SiteVerification/SiteVerificationWebResourceListResponse.php 0000644 00000003070 14721515320 0025074 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SiteVerification; class SiteVerificationWebResourceListResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'items'; protected $itemsType = \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource::class; protected $itemsDataType = 'array'; /** * @param SiteVerificationWebResourceResource[] */ public function setItems($items) { $this->items = $items; } /** * @return SiteVerificationWebResourceResource[] */ public function getItems() { return $this->items; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceListResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SiteVerification_SiteVerificationWebResourceListResponse'); apiclient-services/src/SiteVerification/SiteVerificationWebResourceGettokenResponse.php 0000644 00000003201 14721515320 0025735 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SiteVerification; class SiteVerificationWebResourceGettokenResponse extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $method; /** * @var string */ public $token; /** * @param string */ public function setMethod($method) { $this->method = $method; } /** * @return string */ public function getMethod() { return $this->method; } /** * @param string */ public function setToken($token) { $this->token = $token; } /** * @return string */ public function getToken() { return $this->token; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceGettokenResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SiteVerification_SiteVerificationWebResourceGettokenResponse'); apiclient-services/src/SiteVerification/SiteVerificationWebResourceResourceSite.php 0000644 00000003212 14721515320 0025054 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SiteVerification; class SiteVerificationWebResourceResourceSite extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $identifier; /** * @var string */ public $type; /** * @param string */ public function setIdentifier($identifier) { $this->identifier = $identifier; } /** * @return string */ public function getIdentifier() { return $this->identifier; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResourceSite::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SiteVerification_SiteVerificationWebResourceResourceSite'); apiclient-services/src/SiteVerification/SiteVerificationWebResourceGettokenRequest.php 0000644 00000004004 14721515320 0025571 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SiteVerification; class SiteVerificationWebResourceGettokenRequest extends \Google\Site_Kit_Dependencies\Google\Model { protected $siteType = \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceGettokenRequestSite::class; protected $siteDataType = ''; /** * @var string */ public $verificationMethod; /** * @param SiteVerificationWebResourceGettokenRequestSite */ public function setSite(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceGettokenRequestSite $site) { $this->site = $site; } /** * @return SiteVerificationWebResourceGettokenRequestSite */ public function getSite() { return $this->site; } /** * @param string */ public function setVerificationMethod($verificationMethod) { $this->verificationMethod = $verificationMethod; } /** * @return string */ public function getVerificationMethod() { return $this->verificationMethod; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceGettokenRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest'); apiclient-services/src/SiteVerification/SiteVerificationWebResourceGettokenRequestSite.php 0000644 00000003237 14721515320 0026425 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SiteVerification; class SiteVerificationWebResourceGettokenRequestSite extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $identifier; /** * @var string */ public $type; /** * @param string */ public function setIdentifier($identifier) { $this->identifier = $identifier; } /** * @return string */ public function getIdentifier() { return $this->identifier; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceGettokenRequestSite::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequestSite'); apiclient-services/src/SiteVerification/Resource/WebResource.php 0000644 00000014735 14721515320 0021132 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SiteVerification\Resource; use Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceGettokenRequest; use Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceGettokenResponse; use Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceListResponse; use Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource; /** * The "webResource" collection of methods. * Typical usage is: * <code> * $siteVerificationService = new Google\Service\SiteVerification(...); * $webResource = $siteVerificationService->webResource; * </code> */ class WebResource extends \Google\Site_Kit_Dependencies\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. * @throws \Google\Service\Exception */ public function delete($id, $optParams = []) { $params = ['id' => $id]; $params = \array_merge($params, $optParams); return $this->call('delete', [$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 SiteVerificationWebResourceResource * @throws \Google\Service\Exception */ public function get($id, $optParams = []) { $params = ['id' => $id]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource::class); } /** * Get a verification token for placing on a website or domain. * (webResource.getToken) * * @param SiteVerificationWebResourceGettokenRequest $postBody * @param array $optParams Optional parameters. * @return SiteVerificationWebResourceGettokenResponse * @throws \Google\Service\Exception */ public function getToken(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceGettokenRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('getToken', [$params], \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceGettokenResponse::class); } /** * Attempt verification of a website or domain. (webResource.insert) * * @param string $verificationMethod The method to use for verifying a site or * domain. * @param SiteVerificationWebResourceResource $postBody * @param array $optParams Optional parameters. * @return SiteVerificationWebResourceResource * @throws \Google\Service\Exception */ public function insert($verificationMethod, \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource $postBody, $optParams = []) { $params = ['verificationMethod' => $verificationMethod, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource::class); } /** * Get the list of your verified websites and domains. * (webResource.listWebResource) * * @param array $optParams Optional parameters. * @return SiteVerificationWebResourceListResponse * @throws \Google\Service\Exception */ public function listWebResource($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceListResponse::class); } /** * 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 SiteVerificationWebResourceResource $postBody * @param array $optParams Optional parameters. * @return SiteVerificationWebResourceResource * @throws \Google\Service\Exception */ public function patch($id, \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource $postBody, $optParams = []) { $params = ['id' => $id, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource::class); } /** * Modify the list of owners for your website or domain. (webResource.update) * * @param string $id The id of a verified site or domain. * @param SiteVerificationWebResourceResource $postBody * @param array $optParams Optional parameters. * @return SiteVerificationWebResourceResource * @throws \Google\Service\Exception */ public function update($id, \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource $postBody, $optParams = []) { $params = ['id' => $id, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\SiteVerification\SiteVerificationWebResourceResource::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SiteVerification\Resource\WebResource::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SiteVerification_Resource_WebResource'); apiclient-services/src/Adsense.php 0000644 00000035226 14721515320 0013227 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Client; /** * Service definition for Adsense (v2). * * <p> * The AdSense Management API allows publishers to access their inventory and * run earnings and performance reports.</p> * * <p> * For more information about this service, see the API * <a href="https://developers.google.com/adsense/management/" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class Adsense extends \Google\Site_Kit_Dependencies\Google\Service { /** View and manage your AdSense data. */ const ADSENSE = "https://www.googleapis.com/auth/adsense"; /** View your AdSense data. */ const ADSENSE_READONLY = "https://www.googleapis.com/auth/adsense.readonly"; public $accounts; public $accounts_adclients; public $accounts_adclients_adunits; public $accounts_adclients_customchannels; public $accounts_adclients_urlchannels; public $accounts_alerts; public $accounts_payments; public $accounts_policyIssues; public $accounts_reports; public $accounts_reports_saved; public $accounts_sites; public $rootUrlTemplate; /** * Constructs the internal representation of the Adsense service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://adsense.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://adsense.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'adsense'; $this->accounts = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\Accounts($this, $this->serviceName, 'accounts', ['methods' => ['get' => ['path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'getAdBlockingRecoveryTag' => ['path' => 'v2/{+name}/adBlockingRecoveryTag', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v2/accounts', 'httpMethod' => 'GET', 'parameters' => ['pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'listChildAccounts' => ['path' => 'v2/{+parent}:listChildAccounts', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_adclients = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAdclients($this, $this->serviceName, 'adclients', ['methods' => ['get' => ['path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'getAdcode' => ['path' => 'v2/{+name}/adcode', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v2/{+parent}/adclients', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_adclients_adunits = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAdclientsAdunits($this, $this->serviceName, 'adunits', ['methods' => ['create' => ['path' => 'v2/{+parent}/adunits', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'getAdcode' => ['path' => 'v2/{+name}/adcode', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v2/{+parent}/adunits', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'listLinkedCustomChannels' => ['path' => 'v2/{+parent}:listLinkedCustomChannels', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_adclients_customchannels = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAdclientsCustomchannels($this, $this->serviceName, 'customchannels', ['methods' => ['create' => ['path' => 'v2/{+parent}/customchannels', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v2/{+parent}/customchannels', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'listLinkedAdUnits' => ['path' => 'v2/{+parent}:listLinkedAdUnits', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_adclients_urlchannels = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAdclientsUrlchannels($this, $this->serviceName, 'urlchannels', ['methods' => ['get' => ['path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v2/{+parent}/urlchannels', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_alerts = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsAlerts($this, $this->serviceName, 'alerts', ['methods' => ['list' => ['path' => 'v2/{+parent}/alerts', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'languageCode' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_payments = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsPayments($this, $this->serviceName, 'payments', ['methods' => ['list' => ['path' => 'v2/{+parent}/payments', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->accounts_policyIssues = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsPolicyIssues($this, $this->serviceName, 'policyIssues', ['methods' => ['get' => ['path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v2/{+parent}/policyIssues', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_reports = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsReports($this, $this->serviceName, 'reports', ['methods' => ['generate' => ['path' => 'v2/{+account}/reports:generate', 'httpMethod' => 'GET', 'parameters' => ['account' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'currencyCode' => ['location' => 'query', 'type' => 'string'], 'dateRange' => ['location' => 'query', 'type' => 'string'], 'dimensions' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'endDate.day' => ['location' => 'query', 'type' => 'integer'], 'endDate.month' => ['location' => 'query', 'type' => 'integer'], 'endDate.year' => ['location' => 'query', 'type' => 'integer'], 'filters' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'languageCode' => ['location' => 'query', 'type' => 'string'], 'limit' => ['location' => 'query', 'type' => 'integer'], 'metrics' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'orderBy' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'reportingTimeZone' => ['location' => 'query', 'type' => 'string'], 'startDate.day' => ['location' => 'query', 'type' => 'integer'], 'startDate.month' => ['location' => 'query', 'type' => 'integer'], 'startDate.year' => ['location' => 'query', 'type' => 'integer']]], 'generateCsv' => ['path' => 'v2/{+account}/reports:generateCsv', 'httpMethod' => 'GET', 'parameters' => ['account' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'currencyCode' => ['location' => 'query', 'type' => 'string'], 'dateRange' => ['location' => 'query', 'type' => 'string'], 'dimensions' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'endDate.day' => ['location' => 'query', 'type' => 'integer'], 'endDate.month' => ['location' => 'query', 'type' => 'integer'], 'endDate.year' => ['location' => 'query', 'type' => 'integer'], 'filters' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'languageCode' => ['location' => 'query', 'type' => 'string'], 'limit' => ['location' => 'query', 'type' => 'integer'], 'metrics' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'orderBy' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'reportingTimeZone' => ['location' => 'query', 'type' => 'string'], 'startDate.day' => ['location' => 'query', 'type' => 'integer'], 'startDate.month' => ['location' => 'query', 'type' => 'integer'], 'startDate.year' => ['location' => 'query', 'type' => 'integer']]], 'getSaved' => ['path' => 'v2/{+name}/saved', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->accounts_reports_saved = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsReportsSaved($this, $this->serviceName, 'saved', ['methods' => ['generate' => ['path' => 'v2/{+name}/saved:generate', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'currencyCode' => ['location' => 'query', 'type' => 'string'], 'dateRange' => ['location' => 'query', 'type' => 'string'], 'endDate.day' => ['location' => 'query', 'type' => 'integer'], 'endDate.month' => ['location' => 'query', 'type' => 'integer'], 'endDate.year' => ['location' => 'query', 'type' => 'integer'], 'languageCode' => ['location' => 'query', 'type' => 'string'], 'reportingTimeZone' => ['location' => 'query', 'type' => 'string'], 'startDate.day' => ['location' => 'query', 'type' => 'integer'], 'startDate.month' => ['location' => 'query', 'type' => 'integer'], 'startDate.year' => ['location' => 'query', 'type' => 'integer']]], 'generateCsv' => ['path' => 'v2/{+name}/saved:generateCsv', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'currencyCode' => ['location' => 'query', 'type' => 'string'], 'dateRange' => ['location' => 'query', 'type' => 'string'], 'endDate.day' => ['location' => 'query', 'type' => 'integer'], 'endDate.month' => ['location' => 'query', 'type' => 'integer'], 'endDate.year' => ['location' => 'query', 'type' => 'integer'], 'languageCode' => ['location' => 'query', 'type' => 'string'], 'reportingTimeZone' => ['location' => 'query', 'type' => 'string'], 'startDate.day' => ['location' => 'query', 'type' => 'integer'], 'startDate.month' => ['location' => 'query', 'type' => 'integer'], 'startDate.year' => ['location' => 'query', 'type' => 'integer']]], 'list' => ['path' => 'v2/{+parent}/reports/saved', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_sites = new \Google\Site_Kit_Dependencies\Google\Service\Adsense\Resource\AccountsSites($this, $this->serviceName, 'sites', ['methods' => ['get' => ['path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v2/{+parent}/sites', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Adsense::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Adsense'); apiclient-services/src/SearchConsole/WmxSitemapContent.php 0000644 00000003537 14721515320 0020026 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class WmxSitemapContent extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $indexed; /** * @var string */ public $submitted; /** * @var string */ public $type; /** * @param string */ public function setIndexed($indexed) { $this->indexed = $indexed; } /** * @return string */ public function getIndexed() { return $this->indexed; } /** * @param string */ public function setSubmitted($submitted) { $this->submitted = $submitted; } /** * @return string */ public function getSubmitted() { return $this->submitted; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSitemapContent::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_WmxSitemapContent'); apiclient-services/src/SearchConsole/Item.php 0000644 00000003245 14721515320 0015267 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class Item extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'issues'; protected $issuesType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RichResultsIssue::class; protected $issuesDataType = 'array'; /** * @var string */ public $name; /** * @param RichResultsIssue[] */ public function setIssues($issues) { $this->issues = $issues; } /** * @return RichResultsIssue[] */ public function getIssues() { return $this->issues; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Item::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_Item'); apiclient-services/src/SearchConsole/AmpIssue.php 0000644 00000003116 14721515320 0016114 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class AmpIssue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $issueMessage; /** * @var string */ public $severity; /** * @param string */ public function setIssueMessage($issueMessage) { $this->issueMessage = $issueMessage; } /** * @return string */ public function getIssueMessage() { return $this->issueMessage; } /** * @param string */ public function setSeverity($severity) { $this->severity = $severity; } /** * @return string */ public function getSeverity() { return $this->severity; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\AmpIssue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_AmpIssue'); apiclient-services/src/SearchConsole/MobileFriendlyIssue.php 0000644 00000002411 14721515320 0020300 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class MobileFriendlyIssue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $rule; /** * @param string */ public function setRule($rule) { $this->rule = $rule; } /** * @return string */ public function getRule() { return $this->rule; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\MobileFriendlyIssue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_MobileFriendlyIssue'); apiclient-services/src/SearchConsole/WmxSitemap.php 0000644 00000007535 14721515320 0016475 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class WmxSitemap extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'contents'; protected $contentsType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSitemapContent::class; protected $contentsDataType = 'array'; /** * @var string */ public $errors; /** * @var bool */ public $isPending; /** * @var bool */ public $isSitemapsIndex; /** * @var string */ public $lastDownloaded; /** * @var string */ public $lastSubmitted; /** * @var string */ public $path; /** * @var string */ public $type; /** * @var string */ public $warnings; /** * @param WmxSitemapContent[] */ public function setContents($contents) { $this->contents = $contents; } /** * @return WmxSitemapContent[] */ public function getContents() { return $this->contents; } /** * @param string */ public function setErrors($errors) { $this->errors = $errors; } /** * @return string */ public function getErrors() { return $this->errors; } /** * @param bool */ public function setIsPending($isPending) { $this->isPending = $isPending; } /** * @return bool */ public function getIsPending() { return $this->isPending; } /** * @param bool */ public function setIsSitemapsIndex($isSitemapsIndex) { $this->isSitemapsIndex = $isSitemapsIndex; } /** * @return bool */ public function getIsSitemapsIndex() { return $this->isSitemapsIndex; } /** * @param string */ public function setLastDownloaded($lastDownloaded) { $this->lastDownloaded = $lastDownloaded; } /** * @return string */ public function getLastDownloaded() { return $this->lastDownloaded; } /** * @param string */ public function setLastSubmitted($lastSubmitted) { $this->lastSubmitted = $lastSubmitted; } /** * @return string */ public function getLastSubmitted() { return $this->lastSubmitted; } /** * @param string */ public function setPath($path) { $this->path = $path; } /** * @return string */ public function getPath() { return $this->path; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setWarnings($warnings) { $this->warnings = $warnings; } /** * @return string */ public function getWarnings() { return $this->warnings; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSitemap::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_WmxSitemap'); apiclient-services/src/SearchConsole/RunMobileFriendlyTestRequest.php 0000644 00000003204 14721515320 0022166 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class RunMobileFriendlyTestRequest extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $requestScreenshot; /** * @var string */ public $url; /** * @param bool */ public function setRequestScreenshot($requestScreenshot) { $this->requestScreenshot = $requestScreenshot; } /** * @return bool */ public function getRequestScreenshot() { return $this->requestScreenshot; } /** * @param string */ public function setUrl($url) { $this->url = $url; } /** * @return string */ public function getUrl() { return $this->url; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RunMobileFriendlyTestRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_RunMobileFriendlyTestRequest'); apiclient-services/src/SearchConsole/UrlInspectionResult.php 0000644 00000007315 14721515320 0020370 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class UrlInspectionResult extends \Google\Site_Kit_Dependencies\Google\Model { protected $ampResultType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\AmpInspectionResult::class; protected $ampResultDataType = ''; protected $indexStatusResultType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\IndexStatusInspectionResult::class; protected $indexStatusResultDataType = ''; /** * @var string */ public $inspectionResultLink; protected $mobileUsabilityResultType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\MobileUsabilityInspectionResult::class; protected $mobileUsabilityResultDataType = ''; protected $richResultsResultType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RichResultsInspectionResult::class; protected $richResultsResultDataType = ''; /** * @param AmpInspectionResult */ public function setAmpResult(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\AmpInspectionResult $ampResult) { $this->ampResult = $ampResult; } /** * @return AmpInspectionResult */ public function getAmpResult() { return $this->ampResult; } /** * @param IndexStatusInspectionResult */ public function setIndexStatusResult(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\IndexStatusInspectionResult $indexStatusResult) { $this->indexStatusResult = $indexStatusResult; } /** * @return IndexStatusInspectionResult */ public function getIndexStatusResult() { return $this->indexStatusResult; } /** * @param string */ public function setInspectionResultLink($inspectionResultLink) { $this->inspectionResultLink = $inspectionResultLink; } /** * @return string */ public function getInspectionResultLink() { return $this->inspectionResultLink; } /** * @param MobileUsabilityInspectionResult */ public function setMobileUsabilityResult(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\MobileUsabilityInspectionResult $mobileUsabilityResult) { $this->mobileUsabilityResult = $mobileUsabilityResult; } /** * @return MobileUsabilityInspectionResult */ public function getMobileUsabilityResult() { return $this->mobileUsabilityResult; } /** * @param RichResultsInspectionResult */ public function setRichResultsResult(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RichResultsInspectionResult $richResultsResult) { $this->richResultsResult = $richResultsResult; } /** * @return RichResultsInspectionResult */ public function getRichResultsResult() { return $this->richResultsResult; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\UrlInspectionResult::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_UrlInspectionResult'); apiclient-services/src/SearchConsole/ResourceIssue.php 0000644 00000003006 14721515320 0017164 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class ResourceIssue extends \Google\Site_Kit_Dependencies\Google\Model { protected $blockedResourceType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\BlockedResource::class; protected $blockedResourceDataType = ''; /** * @param BlockedResource */ public function setBlockedResource(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\BlockedResource $blockedResource) { $this->blockedResource = $blockedResource; } /** * @return BlockedResource */ public function getBlockedResource() { return $this->blockedResource; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\ResourceIssue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_ResourceIssue'); apiclient-services/src/SearchConsole/SearchAnalyticsQueryResponse.php 0000644 00000003516 14721515320 0022214 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class SearchAnalyticsQueryResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'rows'; /** * @var string */ public $responseAggregationType; protected $rowsType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\ApiDataRow::class; protected $rowsDataType = 'array'; /** * @param string */ public function setResponseAggregationType($responseAggregationType) { $this->responseAggregationType = $responseAggregationType; } /** * @return string */ public function getResponseAggregationType() { return $this->responseAggregationType; } /** * @param ApiDataRow[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return ApiDataRow[] */ public function getRows() { return $this->rows; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SearchAnalyticsQueryResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_SearchAnalyticsQueryResponse'); apiclient-services/src/SearchConsole/Image.php 0000644 00000003015 14721515320 0015406 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class Image extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $data; /** * @var string */ public $mimeType; /** * @param string */ public function setData($data) { $this->data = $data; } /** * @return string */ public function getData() { return $this->data; } /** * @param string */ public function setMimeType($mimeType) { $this->mimeType = $mimeType; } /** * @return string */ public function getMimeType() { return $this->mimeType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Image::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_Image'); apiclient-services/src/SearchConsole/BlockedResource.php 0000644 00000002366 14721515320 0017447 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class BlockedResource extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $url; /** * @param string */ public function setUrl($url) { $this->url = $url; } /** * @return string */ public function getUrl() { return $this->url; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\BlockedResource::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_BlockedResource'); apiclient-services/src/SearchConsole/WmxSite.php 0000644 00000003131 14721515320 0015763 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class WmxSite extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $permissionLevel; /** * @var string */ public $siteUrl; /** * @param string */ public function setPermissionLevel($permissionLevel) { $this->permissionLevel = $permissionLevel; } /** * @return string */ public function getPermissionLevel() { return $this->permissionLevel; } /** * @param string */ public function setSiteUrl($siteUrl) { $this->siteUrl = $siteUrl; } /** * @return string */ public function getSiteUrl() { return $this->siteUrl; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSite::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_WmxSite'); apiclient-services/src/SearchConsole/RichResultsInspectionResult.php 0000644 00000003465 14721515320 0022077 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class RichResultsInspectionResult extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'detectedItems'; protected $detectedItemsType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\DetectedItems::class; protected $detectedItemsDataType = 'array'; /** * @var string */ public $verdict; /** * @param DetectedItems[] */ public function setDetectedItems($detectedItems) { $this->detectedItems = $detectedItems; } /** * @return DetectedItems[] */ public function getDetectedItems() { return $this->detectedItems; } /** * @param string */ public function setVerdict($verdict) { $this->verdict = $verdict; } /** * @return string */ public function getVerdict() { return $this->verdict; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RichResultsInspectionResult::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_RichResultsInspectionResult'); apiclient-services/src/SearchConsole/RunMobileFriendlyTestResponse.php 0000644 00000006532 14721515320 0022343 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class RunMobileFriendlyTestResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'resourceIssues'; /** * @var string */ public $mobileFriendliness; protected $mobileFriendlyIssuesType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\MobileFriendlyIssue::class; protected $mobileFriendlyIssuesDataType = 'array'; protected $resourceIssuesType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\ResourceIssue::class; protected $resourceIssuesDataType = 'array'; protected $screenshotType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Image::class; protected $screenshotDataType = ''; protected $testStatusType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\TestStatus::class; protected $testStatusDataType = ''; /** * @param string */ public function setMobileFriendliness($mobileFriendliness) { $this->mobileFriendliness = $mobileFriendliness; } /** * @return string */ public function getMobileFriendliness() { return $this->mobileFriendliness; } /** * @param MobileFriendlyIssue[] */ public function setMobileFriendlyIssues($mobileFriendlyIssues) { $this->mobileFriendlyIssues = $mobileFriendlyIssues; } /** * @return MobileFriendlyIssue[] */ public function getMobileFriendlyIssues() { return $this->mobileFriendlyIssues; } /** * @param ResourceIssue[] */ public function setResourceIssues($resourceIssues) { $this->resourceIssues = $resourceIssues; } /** * @return ResourceIssue[] */ public function getResourceIssues() { return $this->resourceIssues; } /** * @param Image */ public function setScreenshot(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Image $screenshot) { $this->screenshot = $screenshot; } /** * @return Image */ public function getScreenshot() { return $this->screenshot; } /** * @param TestStatus */ public function setTestStatus(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\TestStatus $testStatus) { $this->testStatus = $testStatus; } /** * @return TestStatus */ public function getTestStatus() { return $this->testStatus; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RunMobileFriendlyTestResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_RunMobileFriendlyTestResponse'); apiclient-services/src/SearchConsole/SearchAnalyticsQueryRequest.php 0000644 00000010463 14721515320 0022045 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class SearchAnalyticsQueryRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'dimensions'; /** * @var string */ public $aggregationType; /** * @var string */ public $dataState; protected $dimensionFilterGroupsType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\ApiDimensionFilterGroup::class; protected $dimensionFilterGroupsDataType = 'array'; /** * @var string[] */ public $dimensions; /** * @var string */ public $endDate; /** * @var int */ public $rowLimit; /** * @var string */ public $searchType; /** * @var string */ public $startDate; /** * @var int */ public $startRow; /** * @var string */ public $type; /** * @param string */ public function setAggregationType($aggregationType) { $this->aggregationType = $aggregationType; } /** * @return string */ public function getAggregationType() { return $this->aggregationType; } /** * @param string */ public function setDataState($dataState) { $this->dataState = $dataState; } /** * @return string */ public function getDataState() { return $this->dataState; } /** * @param ApiDimensionFilterGroup[] */ public function setDimensionFilterGroups($dimensionFilterGroups) { $this->dimensionFilterGroups = $dimensionFilterGroups; } /** * @return ApiDimensionFilterGroup[] */ public function getDimensionFilterGroups() { return $this->dimensionFilterGroups; } /** * @param string[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return string[] */ public function getDimensions() { return $this->dimensions; } /** * @param string */ public function setEndDate($endDate) { $this->endDate = $endDate; } /** * @return string */ public function getEndDate() { return $this->endDate; } /** * @param int */ public function setRowLimit($rowLimit) { $this->rowLimit = $rowLimit; } /** * @return int */ public function getRowLimit() { return $this->rowLimit; } /** * @param string */ public function setSearchType($searchType) { $this->searchType = $searchType; } /** * @return string */ public function getSearchType() { return $this->searchType; } /** * @param string */ public function setStartDate($startDate) { $this->startDate = $startDate; } /** * @return string */ public function getStartDate() { return $this->startDate; } /** * @param int */ public function setStartRow($startRow) { $this->startRow = $startRow; } /** * @return int */ public function getStartRow() { return $this->startRow; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SearchAnalyticsQueryRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_SearchAnalyticsQueryRequest'); apiclient-services/src/SearchConsole/InspectUrlIndexRequest.php 0000644 00000003702 14721515320 0021020 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class InspectUrlIndexRequest extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $inspectionUrl; /** * @var string */ public $languageCode; /** * @var string */ public $siteUrl; /** * @param string */ public function setInspectionUrl($inspectionUrl) { $this->inspectionUrl = $inspectionUrl; } /** * @return string */ public function getInspectionUrl() { return $this->inspectionUrl; } /** * @param string */ public function setLanguageCode($languageCode) { $this->languageCode = $languageCode; } /** * @return string */ public function getLanguageCode() { return $this->languageCode; } /** * @param string */ public function setSiteUrl($siteUrl) { $this->siteUrl = $siteUrl; } /** * @return string */ public function getSiteUrl() { return $this->siteUrl; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\InspectUrlIndexRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_InspectUrlIndexRequest'); apiclient-services/src/SearchConsole/ApiDimensionFilter.php 0000644 00000003623 14721515320 0020116 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class ApiDimensionFilter extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $dimension; /** * @var string */ public $expression; /** * @var string */ public $operator; /** * @param string */ public function setDimension($dimension) { $this->dimension = $dimension; } /** * @return string */ public function getDimension() { return $this->dimension; } /** * @param string */ public function setExpression($expression) { $this->expression = $expression; } /** * @return string */ public function getExpression() { return $this->expression; } /** * @param string */ public function setOperator($operator) { $this->operator = $operator; } /** * @return string */ public function getOperator() { return $this->operator; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\ApiDimensionFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_ApiDimensionFilter'); apiclient-services/src/SearchConsole/ApiDataRow.php 0000644 00000004005 14721515320 0016357 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class ApiDataRow extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'keys'; public $clicks; public $ctr; public $impressions; /** * @var string[] */ public $keys; public $position; public function setClicks($clicks) { $this->clicks = $clicks; } public function getClicks() { return $this->clicks; } public function setCtr($ctr) { $this->ctr = $ctr; } public function getCtr() { return $this->ctr; } public function setImpressions($impressions) { $this->impressions = $impressions; } public function getImpressions() { return $this->impressions; } /** * @param string[] */ public function setKeys($keys) { $this->keys = $keys; } /** * @return string[] */ public function getKeys() { return $this->keys; } public function setPosition($position) { $this->position = $position; } public function getPosition() { return $this->position; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\ApiDataRow::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_ApiDataRow'); apiclient-services/src/SearchConsole/MobileUsabilityInspectionResult.php 0000644 00000003427 14721515320 0022723 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class MobileUsabilityInspectionResult extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'issues'; protected $issuesType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\MobileUsabilityIssue::class; protected $issuesDataType = 'array'; /** * @var string */ public $verdict; /** * @param MobileUsabilityIssue[] */ public function setIssues($issues) { $this->issues = $issues; } /** * @return MobileUsabilityIssue[] */ public function getIssues() { return $this->issues; } /** * @param string */ public function setVerdict($verdict) { $this->verdict = $verdict; } /** * @return string */ public function getVerdict() { return $this->verdict; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\MobileUsabilityInspectionResult::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_MobileUsabilityInspectionResult'); apiclient-services/src/SearchConsole/AmpInspectionResult.php 0000644 00000007312 14721515320 0020340 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class AmpInspectionResult extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'issues'; /** * @var string */ public $ampIndexStatusVerdict; /** * @var string */ public $ampUrl; /** * @var string */ public $indexingState; protected $issuesType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\AmpIssue::class; protected $issuesDataType = 'array'; /** * @var string */ public $lastCrawlTime; /** * @var string */ public $pageFetchState; /** * @var string */ public $robotsTxtState; /** * @var string */ public $verdict; /** * @param string */ public function setAmpIndexStatusVerdict($ampIndexStatusVerdict) { $this->ampIndexStatusVerdict = $ampIndexStatusVerdict; } /** * @return string */ public function getAmpIndexStatusVerdict() { return $this->ampIndexStatusVerdict; } /** * @param string */ public function setAmpUrl($ampUrl) { $this->ampUrl = $ampUrl; } /** * @return string */ public function getAmpUrl() { return $this->ampUrl; } /** * @param string */ public function setIndexingState($indexingState) { $this->indexingState = $indexingState; } /** * @return string */ public function getIndexingState() { return $this->indexingState; } /** * @param AmpIssue[] */ public function setIssues($issues) { $this->issues = $issues; } /** * @return AmpIssue[] */ public function getIssues() { return $this->issues; } /** * @param string */ public function setLastCrawlTime($lastCrawlTime) { $this->lastCrawlTime = $lastCrawlTime; } /** * @return string */ public function getLastCrawlTime() { return $this->lastCrawlTime; } /** * @param string */ public function setPageFetchState($pageFetchState) { $this->pageFetchState = $pageFetchState; } /** * @return string */ public function getPageFetchState() { return $this->pageFetchState; } /** * @param string */ public function setRobotsTxtState($robotsTxtState) { $this->robotsTxtState = $robotsTxtState; } /** * @return string */ public function getRobotsTxtState() { return $this->robotsTxtState; } /** * @param string */ public function setVerdict($verdict) { $this->verdict = $verdict; } /** * @return string */ public function getVerdict() { return $this->verdict; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\AmpInspectionResult::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_AmpInspectionResult'); apiclient-services/src/SearchConsole/MobileUsabilityIssue.php 0000644 00000003604 14721515320 0020476 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class MobileUsabilityIssue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $issueType; /** * @var string */ public $message; /** * @var string */ public $severity; /** * @param string */ public function setIssueType($issueType) { $this->issueType = $issueType; } /** * @return string */ public function getIssueType() { return $this->issueType; } /** * @param string */ public function setMessage($message) { $this->message = $message; } /** * @return string */ public function getMessage() { return $this->message; } /** * @param string */ public function setSeverity($severity) { $this->severity = $severity; } /** * @return string */ public function getSeverity() { return $this->severity; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\MobileUsabilityIssue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_MobileUsabilityIssue'); apiclient-services/src/SearchConsole/SitesListResponse.php 0000644 00000002672 14721515320 0020036 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class SitesListResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'siteEntry'; protected $siteEntryType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSite::class; protected $siteEntryDataType = 'array'; /** * @param WmxSite[] */ public function setSiteEntry($siteEntry) { $this->siteEntry = $siteEntry; } /** * @return WmxSite[] */ public function getSiteEntry() { return $this->siteEntry; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SitesListResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_SitesListResponse'); apiclient-services/src/SearchConsole/DetectedItems.php 0000644 00000003331 14721515320 0017110 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class DetectedItems extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'items'; protected $itemsType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Item::class; protected $itemsDataType = 'array'; /** * @var string */ public $richResultType; /** * @param Item[] */ public function setItems($items) { $this->items = $items; } /** * @return Item[] */ public function getItems() { return $this->items; } /** * @param string */ public function setRichResultType($richResultType) { $this->richResultType = $richResultType; } /** * @return string */ public function getRichResultType() { return $this->richResultType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\DetectedItems::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_DetectedItems'); apiclient-services/src/SearchConsole/RichResultsIssue.php 0000644 00000003146 14721515320 0017651 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class RichResultsIssue extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $issueMessage; /** * @var string */ public $severity; /** * @param string */ public function setIssueMessage($issueMessage) { $this->issueMessage = $issueMessage; } /** * @return string */ public function getIssueMessage() { return $this->issueMessage; } /** * @param string */ public function setSeverity($severity) { $this->severity = $severity; } /** * @return string */ public function getSeverity() { return $this->severity; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RichResultsIssue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_RichResultsIssue'); apiclient-services/src/SearchConsole/ApiDimensionFilterGroup.php 0000644 00000003420 14721515320 0021126 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class ApiDimensionFilterGroup extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'filters'; protected $filtersType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\ApiDimensionFilter::class; protected $filtersDataType = 'array'; /** * @var string */ public $groupType; /** * @param ApiDimensionFilter[] */ public function setFilters($filters) { $this->filters = $filters; } /** * @return ApiDimensionFilter[] */ public function getFilters() { return $this->filters; } /** * @param string */ public function setGroupType($groupType) { $this->groupType = $groupType; } /** * @return string */ public function getGroupType() { return $this->groupType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\ApiDimensionFilterGroup::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_ApiDimensionFilterGroup'); apiclient-services/src/SearchConsole/IndexStatusInspectionResult.php 0000644 00000011162 14721515320 0022074 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class IndexStatusInspectionResult extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'sitemap'; /** * @var string */ public $coverageState; /** * @var string */ public $crawledAs; /** * @var string */ public $googleCanonical; /** * @var string */ public $indexingState; /** * @var string */ public $lastCrawlTime; /** * @var string */ public $pageFetchState; /** * @var string[] */ public $referringUrls; /** * @var string */ public $robotsTxtState; /** * @var string[] */ public $sitemap; /** * @var string */ public $userCanonical; /** * @var string */ public $verdict; /** * @param string */ public function setCoverageState($coverageState) { $this->coverageState = $coverageState; } /** * @return string */ public function getCoverageState() { return $this->coverageState; } /** * @param string */ public function setCrawledAs($crawledAs) { $this->crawledAs = $crawledAs; } /** * @return string */ public function getCrawledAs() { return $this->crawledAs; } /** * @param string */ public function setGoogleCanonical($googleCanonical) { $this->googleCanonical = $googleCanonical; } /** * @return string */ public function getGoogleCanonical() { return $this->googleCanonical; } /** * @param string */ public function setIndexingState($indexingState) { $this->indexingState = $indexingState; } /** * @return string */ public function getIndexingState() { return $this->indexingState; } /** * @param string */ public function setLastCrawlTime($lastCrawlTime) { $this->lastCrawlTime = $lastCrawlTime; } /** * @return string */ public function getLastCrawlTime() { return $this->lastCrawlTime; } /** * @param string */ public function setPageFetchState($pageFetchState) { $this->pageFetchState = $pageFetchState; } /** * @return string */ public function getPageFetchState() { return $this->pageFetchState; } /** * @param string[] */ public function setReferringUrls($referringUrls) { $this->referringUrls = $referringUrls; } /** * @return string[] */ public function getReferringUrls() { return $this->referringUrls; } /** * @param string */ public function setRobotsTxtState($robotsTxtState) { $this->robotsTxtState = $robotsTxtState; } /** * @return string */ public function getRobotsTxtState() { return $this->robotsTxtState; } /** * @param string[] */ public function setSitemap($sitemap) { $this->sitemap = $sitemap; } /** * @return string[] */ public function getSitemap() { return $this->sitemap; } /** * @param string */ public function setUserCanonical($userCanonical) { $this->userCanonical = $userCanonical; } /** * @return string */ public function getUserCanonical() { return $this->userCanonical; } /** * @param string */ public function setVerdict($verdict) { $this->verdict = $verdict; } /** * @return string */ public function getVerdict() { return $this->verdict; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\IndexStatusInspectionResult::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_IndexStatusInspectionResult'); apiclient-services/src/SearchConsole/Resource/UrlInspectionIndex.php 0000644 00000004027 14721515320 0021745 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\InspectUrlIndexRequest; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\InspectUrlIndexResponse; /** * The "index" collection of methods. * Typical usage is: * <code> * $searchconsoleService = new Google\Service\SearchConsole(...); * $index = $searchconsoleService->urlInspection_index; * </code> */ class UrlInspectionIndex extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Index inspection. (index.inspect) * * @param InspectUrlIndexRequest $postBody * @param array $optParams Optional parameters. * @return InspectUrlIndexResponse * @throws \Google\Service\Exception */ public function inspect(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\InspectUrlIndexRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('inspect', [$params], \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\InspectUrlIndexResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\UrlInspectionIndex::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_Resource_UrlInspectionIndex'); apiclient-services/src/SearchConsole/Resource/UrlTestingTools.php 0000644 00000002371 14721515320 0021300 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource; /** * The "urlTestingTools" collection of methods. * Typical usage is: * <code> * $searchconsoleService = new Google\Service\SearchConsole(...); * $urlTestingTools = $searchconsoleService->urlTestingTools; * </code> */ class UrlTestingTools extends \Google\Site_Kit_Dependencies\Google\Service\Resource { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\UrlTestingTools::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_Resource_UrlTestingTools'); apiclient-services/src/SearchConsole/Resource/Sitemaps.php 0000644 00000010651 14721515320 0017744 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SitemapsListResponse; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSitemap; /** * The "sitemaps" collection of methods. * Typical usage is: * <code> * $searchconsoleService = new Google\Service\SearchConsole(...); * $sitemaps = $searchconsoleService->sitemaps; * </code> */ class Sitemaps extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Deletes a sitemap from the Sitemaps report. Does not stop Google from * crawling this sitemap or the URLs that were previously crawled in the deleted * sitemap. (sitemaps.delete) * * @param string $siteUrl The site's URL, including protocol. For example: * `http://www.example.com/`. * @param string $feedpath The URL of the actual sitemap. For example: * `http://www.example.com/sitemap.xml`. * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($siteUrl, $feedpath, $optParams = []) { $params = ['siteUrl' => $siteUrl, 'feedpath' => $feedpath]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Retrieves information about a specific sitemap. (sitemaps.get) * * @param string $siteUrl The site's URL, including protocol. For example: * `http://www.example.com/`. * @param string $feedpath The URL of the actual sitemap. For example: * `http://www.example.com/sitemap.xml`. * @param array $optParams Optional parameters. * @return WmxSitemap * @throws \Google\Service\Exception */ public function get($siteUrl, $feedpath, $optParams = []) { $params = ['siteUrl' => $siteUrl, 'feedpath' => $feedpath]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSitemap::class); } /** * Lists the [sitemaps-entries](/webmaster-tools/v3/sitemaps) submitted for this * site, or included in the sitemap index file (if `sitemapIndex` is specified * in the request). (sitemaps.listSitemaps) * * @param string $siteUrl The site's URL, including protocol. For example: * `http://www.example.com/`. * @param array $optParams Optional parameters. * * @opt_param string sitemapIndex A URL of a site's sitemap index. For example: * `http://www.example.com/sitemapindex.xml`. * @return SitemapsListResponse * @throws \Google\Service\Exception */ public function listSitemaps($siteUrl, $optParams = []) { $params = ['siteUrl' => $siteUrl]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SitemapsListResponse::class); } /** * Submits a sitemap for a site. (sitemaps.submit) * * @param string $siteUrl The site's URL, including protocol. For example: * `http://www.example.com/`. * @param string $feedpath The URL of the actual sitemap. For example: * `http://www.example.com/sitemap.xml`. * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function submit($siteUrl, $feedpath, $optParams = []) { $params = ['siteUrl' => $siteUrl, 'feedpath' => $feedpath]; $params = \array_merge($params, $optParams); return $this->call('submit', [$params]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\Sitemaps::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_Resource_Sitemaps'); apiclient-services/src/SearchConsole/Resource/UrlTestingToolsMobileFriendlyTest.php 0000644 00000004253 14721515320 0024766 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RunMobileFriendlyTestRequest; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RunMobileFriendlyTestResponse; /** * The "mobileFriendlyTest" collection of methods. * Typical usage is: * <code> * $searchconsoleService = new Google\Service\SearchConsole(...); * $mobileFriendlyTest = $searchconsoleService->urlTestingTools_mobileFriendlyTest; * </code> */ class UrlTestingToolsMobileFriendlyTest extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Runs Mobile-Friendly Test for a given URL. (mobileFriendlyTest.run) * * @param RunMobileFriendlyTestRequest $postBody * @param array $optParams Optional parameters. * @return RunMobileFriendlyTestResponse * @throws \Google\Service\Exception */ public function run(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RunMobileFriendlyTestRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('run', [$params], \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\RunMobileFriendlyTestResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\UrlTestingToolsMobileFriendlyTest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_Resource_UrlTestingToolsMobileFriendlyTest'); apiclient-services/src/SearchConsole/Resource/Sites.php 0000644 00000006703 14721515320 0017251 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SitesListResponse; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSite; /** * The "sites" collection of methods. * Typical usage is: * <code> * $searchconsoleService = new Google\Service\SearchConsole(...); * $sites = $searchconsoleService->sites; * </code> */ class Sites extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Adds a site to the set of the user's sites in Search Console. (sites.add) * * @param string $siteUrl The URL of the site to add. * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function add($siteUrl, $optParams = []) { $params = ['siteUrl' => $siteUrl]; $params = \array_merge($params, $optParams); return $this->call('add', [$params]); } /** * Removes a site from the set of the user's Search Console sites. * (sites.delete) * * @param string $siteUrl The URI of the property as defined in Search Console. * **Examples:** `http://www.example.com/` or `sc-domain:example.com`. * @param array $optParams Optional parameters. * @throws \Google\Service\Exception */ public function delete($siteUrl, $optParams = []) { $params = ['siteUrl' => $siteUrl]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Retrieves information about specific site. (sites.get) * * @param string $siteUrl The URI of the property as defined in Search Console. * **Examples:** `http://www.example.com/` or `sc-domain:example.com`. * @param array $optParams Optional parameters. * @return WmxSite * @throws \Google\Service\Exception */ public function get($siteUrl, $optParams = []) { $params = ['siteUrl' => $siteUrl]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSite::class); } /** * Lists the user's Search Console sites. (sites.listSites) * * @param array $optParams Optional parameters. * @return SitesListResponse * @throws \Google\Service\Exception */ public function listSites($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SitesListResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\Sites::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_Resource_Sites'); apiclient-services/src/SearchConsole/Resource/Searchanalytics.php 0000644 00000005204 14721515320 0021272 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SearchAnalyticsQueryRequest; use Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SearchAnalyticsQueryResponse; /** * The "searchanalytics" collection of methods. * Typical usage is: * <code> * $searchconsoleService = new Google\Service\SearchConsole(...); * $searchanalytics = $searchconsoleService->searchanalytics; * </code> */ class Searchanalytics extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Query your data with filters and parameters that you define. Returns zero or * more rows grouped by the row keys that you define. You must define a date * range of one or more days. When date is one of the group by values, any days * without data are omitted from the result list. If you need to know which days * have data, issue a broad date range query grouped by date for any metric, and * see which day rows are returned. (searchanalytics.query) * * @param string $siteUrl The site's URL, including protocol. For example: * `http://www.example.com/`. * @param SearchAnalyticsQueryRequest $postBody * @param array $optParams Optional parameters. * @return SearchAnalyticsQueryResponse * @throws \Google\Service\Exception */ public function query($siteUrl, \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SearchAnalyticsQueryRequest $postBody, $optParams = []) { $params = ['siteUrl' => $siteUrl, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('query', [$params], \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SearchAnalyticsQueryResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\Searchanalytics::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_Resource_Searchanalytics'); apiclient-services/src/SearchConsole/Resource/UrlInspection.php 0000644 00000002355 14721515320 0020757 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource; /** * The "urlInspection" collection of methods. * Typical usage is: * <code> * $searchconsoleService = new Google\Service\SearchConsole(...); * $urlInspection = $searchconsoleService->urlInspection; * </code> */ class UrlInspection extends \Google\Site_Kit_Dependencies\Google\Service\Resource { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\Resource\UrlInspection::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_Resource_UrlInspection'); apiclient-services/src/SearchConsole/TestStatus.php 0000644 00000003043 14721515320 0016510 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class TestStatus extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $details; /** * @var string */ public $status; /** * @param string */ public function setDetails($details) { $this->details = $details; } /** * @return string */ public function getDetails() { return $this->details; } /** * @param string */ public function setStatus($status) { $this->status = $status; } /** * @return string */ public function getStatus() { return $this->status; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\TestStatus::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_TestStatus'); apiclient-services/src/SearchConsole/SitemapsListResponse.php 0000644 00000002672 14721515320 0020534 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class SitemapsListResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'sitemap'; protected $sitemapType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\WmxSitemap::class; protected $sitemapDataType = 'array'; /** * @param WmxSitemap[] */ public function setSitemap($sitemap) { $this->sitemap = $sitemap; } /** * @return WmxSitemap[] */ public function getSitemap() { return $this->sitemap; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\SitemapsListResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_SitemapsListResponse'); apiclient-services/src/SearchConsole/InspectUrlIndexResponse.php 0000644 00000003074 14721515320 0021170 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SearchConsole; class InspectUrlIndexResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $inspectionResultType = \Google\Site_Kit_Dependencies\Google\Service\SearchConsole\UrlInspectionResult::class; protected $inspectionResultDataType = ''; /** * @param UrlInspectionResult */ public function setInspectionResult(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\UrlInspectionResult $inspectionResult) { $this->inspectionResult = $inspectionResult; } /** * @return UrlInspectionResult */ public function getInspectionResult() { return $this->inspectionResult; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SearchConsole\InspectUrlIndexResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SearchConsole_InspectUrlIndexResponse'); apiclient-services/src/PeopleService/Residence.php 0000644 00000003764 14721515320 0016315 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Residence extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $current; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param bool */ public function setCurrent($current) { $this->current = $current; } /** * @return bool */ public function getCurrent() { return $this->current; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Residence::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Residence'); apiclient-services/src/PeopleService/ImClient.php 0000644 00000005743 14721515320 0016117 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ImClient extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $formattedProtocol; /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $protocol; /** * @var string */ public $type; /** * @var string */ public $username; /** * @param string */ public function setFormattedProtocol($formattedProtocol) { $this->formattedProtocol = $formattedProtocol; } /** * @return string */ public function getFormattedProtocol() { return $this->formattedProtocol; } /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setProtocol($protocol) { $this->protocol = $protocol; } /** * @return string */ public function getProtocol() { return $this->protocol; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUsername($username) { $this->username = $username; } /** * @return string */ public function getUsername() { return $this->username; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ImClient::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ImClient'); apiclient-services/src/PeopleService/ClientData.php 0000644 00000003741 14721515320 0016417 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ClientData extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $key; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param string */ public function setKey($key) { $this->key = $key; } /** * @return string */ public function getKey() { return $this->key; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ClientData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ClientData'); apiclient-services/src/PeopleService/Locale.php 0000644 00000003312 14721515320 0015600 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Locale extends \Google\Site_Kit_Dependencies\Google\Model { protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Locale::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Locale'); apiclient-services/src/PeopleService/FieldMetadata.php 0000644 00000004456 14721515320 0017077 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class FieldMetadata extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $primary; protected $sourceType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Source::class; protected $sourceDataType = ''; /** * @var bool */ public $sourcePrimary; /** * @var bool */ public $verified; /** * @param bool */ public function setPrimary($primary) { $this->primary = $primary; } /** * @return bool */ public function getPrimary() { return $this->primary; } /** * @param Source */ public function setSource(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Source $source) { $this->source = $source; } /** * @return Source */ public function getSource() { return $this->source; } /** * @param bool */ public function setSourcePrimary($sourcePrimary) { $this->sourcePrimary = $sourcePrimary; } /** * @return bool */ public function getSourcePrimary() { return $this->sourcePrimary; } /** * @param bool */ public function setVerified($verified) { $this->verified = $verified; } /** * @return bool */ public function getVerified() { return $this->verified; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_FieldMetadata'); apiclient-services/src/PeopleService/Address.php 0000644 00000011420 14721515320 0015765 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Address extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $city; /** * @var string */ public $country; /** * @var string */ public $countryCode; /** * @var string */ public $extendedAddress; /** * @var string */ public $formattedType; /** * @var string */ public $formattedValue; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $poBox; /** * @var string */ public $postalCode; /** * @var string */ public $region; /** * @var string */ public $streetAddress; /** * @var string */ public $type; /** * @param string */ public function setCity($city) { $this->city = $city; } /** * @return string */ public function getCity() { return $this->city; } /** * @param string */ public function setCountry($country) { $this->country = $country; } /** * @return string */ public function getCountry() { return $this->country; } /** * @param string */ public function setCountryCode($countryCode) { $this->countryCode = $countryCode; } /** * @return string */ public function getCountryCode() { return $this->countryCode; } /** * @param string */ public function setExtendedAddress($extendedAddress) { $this->extendedAddress = $extendedAddress; } /** * @return string */ public function getExtendedAddress() { return $this->extendedAddress; } /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param string */ public function setFormattedValue($formattedValue) { $this->formattedValue = $formattedValue; } /** * @return string */ public function getFormattedValue() { return $this->formattedValue; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setPoBox($poBox) { $this->poBox = $poBox; } /** * @return string */ public function getPoBox() { return $this->poBox; } /** * @param string */ public function setPostalCode($postalCode) { $this->postalCode = $postalCode; } /** * @return string */ public function getPostalCode() { return $this->postalCode; } /** * @param string */ public function setRegion($region) { $this->region = $region; } /** * @return string */ public function getRegion() { return $this->region; } /** * @param string */ public function setStreetAddress($streetAddress) { $this->streetAddress = $streetAddress; } /** * @return string */ public function getStreetAddress() { return $this->streetAddress; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Address::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Address'); apiclient-services/src/PeopleService/DeleteContactPhotoResponse.php 0000644 00000002701 14721515320 0021651 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class DeleteContactPhotoResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $personType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $personDataType = ''; /** * @param Person */ public function setPerson(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person $person) { $this->person = $person; } /** * @return Person */ public function getPerson() { return $this->person; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\DeleteContactPhotoResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_DeleteContactPhotoResponse'); apiclient-services/src/PeopleService/PersonResponse.php 0000644 00000005052 14721515320 0017371 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class PersonResponse extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $httpStatusCode; protected $personType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $personDataType = ''; /** * @var string */ public $requestedResourceName; protected $statusType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Status::class; protected $statusDataType = ''; /** * @param int */ public function setHttpStatusCode($httpStatusCode) { $this->httpStatusCode = $httpStatusCode; } /** * @return int */ public function getHttpStatusCode() { return $this->httpStatusCode; } /** * @param Person */ public function setPerson(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person $person) { $this->person = $person; } /** * @return Person */ public function getPerson() { return $this->person; } /** * @param string */ public function setRequestedResourceName($requestedResourceName) { $this->requestedResourceName = $requestedResourceName; } /** * @return string */ public function getRequestedResourceName() { return $this->requestedResourceName; } /** * @param Status */ public function setStatus(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Status $status) { $this->status = $status; } /** * @return Status */ public function getStatus() { return $this->status; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\PersonResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_PersonResponse'); apiclient-services/src/PeopleService/CoverPhoto.php 0000644 00000003751 14721515320 0016500 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class CoverPhoto extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $default; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $url; /** * @param bool */ public function setDefault($default) { $this->default = $default; } /** * @return bool */ public function getDefault() { return $this->default; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setUrl($url) { $this->url = $url; } /** * @return string */ public function getUrl() { return $this->url; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\CoverPhoto::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_CoverPhoto'); apiclient-services/src/PeopleService/PhoneNumber.php 0000644 00000005215 14721515320 0016627 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class PhoneNumber extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $canonicalForm; /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $value; /** * @param string */ public function setCanonicalForm($canonicalForm) { $this->canonicalForm = $canonicalForm; } /** * @return string */ public function getCanonicalForm() { return $this->canonicalForm; } /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\PhoneNumber::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_PhoneNumber'); apiclient-services/src/PeopleService/ContactGroupResponse.php 0000644 00000004465 14721515320 0020542 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ContactGroupResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $contactGroupType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup::class; protected $contactGroupDataType = ''; /** * @var string */ public $requestedResourceName; protected $statusType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Status::class; protected $statusDataType = ''; /** * @param ContactGroup */ public function setContactGroup(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup $contactGroup) { $this->contactGroup = $contactGroup; } /** * @return ContactGroup */ public function getContactGroup() { return $this->contactGroup; } /** * @param string */ public function setRequestedResourceName($requestedResourceName) { $this->requestedResourceName = $requestedResourceName; } /** * @return string */ public function getRequestedResourceName() { return $this->requestedResourceName; } /** * @param Status */ public function setStatus(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Status $status) { $this->status = $status; } /** * @return Status */ public function getStatus() { return $this->status; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroupResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ContactGroupResponse'); apiclient-services/src/PeopleService/SearchResponse.php 0000644 00000002656 14721515320 0017337 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class SearchResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'results'; protected $resultsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchResult::class; protected $resultsDataType = 'array'; /** * @param SearchResult[] */ public function setResults($results) { $this->results = $results; } /** * @return SearchResult[] */ public function getResults() { return $this->results; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_SearchResponse'); apiclient-services/src/PeopleService/Nickname.php 0000644 00000003742 14721515320 0016135 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Nickname extends \Google\Site_Kit_Dependencies\Google\Model { protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $value; /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Nickname::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Nickname'); apiclient-services/src/PeopleService/AgeRangeType.php 0000644 00000003361 14721515320 0016720 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class AgeRangeType extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $ageRange; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @param string */ public function setAgeRange($ageRange) { $this->ageRange = $ageRange; } /** * @return string */ public function getAgeRange() { return $this->ageRange; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\AgeRangeType::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_AgeRangeType'); apiclient-services/src/PeopleService/ExternalId.php 0000644 00000004471 14721515320 0016447 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ExternalId extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $value; /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ExternalId::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ExternalId'); apiclient-services/src/PeopleService/ContactToCreate.php 0000644 00000002730 14721515320 0017426 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ContactToCreate extends \Google\Site_Kit_Dependencies\Google\Model { protected $contactPersonType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $contactPersonDataType = ''; /** * @param Person */ public function setContactPerson(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person $contactPerson) { $this->contactPerson = $contactPerson; } /** * @return Person */ public function getContactPerson() { return $this->contactPerson; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactToCreate::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ContactToCreate'); apiclient-services/src/PeopleService/Tagline.php 0000644 00000003315 14721515320 0015767 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Tagline extends \Google\Site_Kit_Dependencies\Google\Model { protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Tagline::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Tagline'); apiclient-services/src/PeopleService/Source.php 0000644 00000005125 14721515320 0015645 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Source extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $etag; /** * @var string */ public $id; protected $profileMetadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ProfileMetadata::class; protected $profileMetadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $updateTime; /** * @param string */ public function setEtag($etag) { $this->etag = $etag; } /** * @return string */ public function getEtag() { return $this->etag; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param ProfileMetadata */ public function setProfileMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ProfileMetadata $profileMetadata) { $this->profileMetadata = $profileMetadata; } /** * @return ProfileMetadata */ public function getProfileMetadata() { return $this->profileMetadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Source::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Source'); apiclient-services/src/PeopleService/BatchGetContactGroupsResponse.php 0000644 00000003005 14721515320 0022314 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class BatchGetContactGroupsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'responses'; protected $responsesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroupResponse::class; protected $responsesDataType = 'array'; /** * @param ContactGroupResponse[] */ public function setResponses($responses) { $this->responses = $responses; } /** * @return ContactGroupResponse[] */ public function getResponses() { return $this->responses; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchGetContactGroupsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_BatchGetContactGroupsResponse'); apiclient-services/src/PeopleService/Photo.php 0000644 00000003732 14721515320 0015500 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Photo extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $default; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $url; /** * @param bool */ public function setDefault($default) { $this->default = $default; } /** * @return bool */ public function getDefault() { return $this->default; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setUrl($url) { $this->url = $url; } /** * @return string */ public function getUrl() { return $this->url; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Photo::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Photo'); apiclient-services/src/PeopleService/Birthday.php 0000644 00000004146 14721515320 0016155 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Birthday extends \Google\Site_Kit_Dependencies\Google\Model { protected $dateType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Date::class; protected $dateDataType = ''; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $text; /** * @param Date */ public function setDate(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Date $date) { $this->date = $date; } /** * @return Date */ public function getDate() { return $this->date; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setText($text) { $this->text = $text; } /** * @return string */ public function getText() { return $this->text; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Birthday::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Birthday'); apiclient-services/src/PeopleService/FileAs.php 0000644 00000003312 14721515320 0015544 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class FileAs extends \Google\Site_Kit_Dependencies\Google\Model { protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FileAs::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_FileAs'); apiclient-services/src/PeopleService/Membership.php 0000644 00000005137 14721515320 0016503 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Membership extends \Google\Site_Kit_Dependencies\Google\Model { protected $contactGroupMembershipType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroupMembership::class; protected $contactGroupMembershipDataType = ''; protected $domainMembershipType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\DomainMembership::class; protected $domainMembershipDataType = ''; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @param ContactGroupMembership */ public function setContactGroupMembership(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroupMembership $contactGroupMembership) { $this->contactGroupMembership = $contactGroupMembership; } /** * @return ContactGroupMembership */ public function getContactGroupMembership() { return $this->contactGroupMembership; } /** * @param DomainMembership */ public function setDomainMembership(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\DomainMembership $domainMembership) { $this->domainMembership = $domainMembership; } /** * @return DomainMembership */ public function getDomainMembership() { return $this->domainMembership; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Membership::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Membership'); apiclient-services/src/PeopleService/CreateContactGroupRequest.php 0000644 00000003545 14721515320 0021516 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class CreateContactGroupRequest extends \Google\Site_Kit_Dependencies\Google\Model { protected $contactGroupType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup::class; protected $contactGroupDataType = ''; /** * @var string */ public $readGroupFields; /** * @param ContactGroup */ public function setContactGroup(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup $contactGroup) { $this->contactGroup = $contactGroup; } /** * @return ContactGroup */ public function getContactGroup() { return $this->contactGroup; } /** * @param string */ public function setReadGroupFields($readGroupFields) { $this->readGroupFields = $readGroupFields; } /** * @return string */ public function getReadGroupFields() { return $this->readGroupFields; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\CreateContactGroupRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_CreateContactGroupRequest'); apiclient-services/src/PeopleService/Location.php 0000644 00000006720 14721515320 0016157 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Location extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $buildingId; /** * @var bool */ public $current; /** * @var string */ public $deskCode; /** * @var string */ public $floor; /** * @var string */ public $floorSection; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $value; /** * @param string */ public function setBuildingId($buildingId) { $this->buildingId = $buildingId; } /** * @return string */ public function getBuildingId() { return $this->buildingId; } /** * @param bool */ public function setCurrent($current) { $this->current = $current; } /** * @return bool */ public function getCurrent() { return $this->current; } /** * @param string */ public function setDeskCode($deskCode) { $this->deskCode = $deskCode; } /** * @return string */ public function getDeskCode() { return $this->deskCode; } /** * @param string */ public function setFloor($floor) { $this->floor = $floor; } /** * @return string */ public function getFloor() { return $this->floor; } /** * @param string */ public function setFloorSection($floorSection) { $this->floorSection = $floorSection; } /** * @return string */ public function getFloorSection() { return $this->floorSection; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Location::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Location'); apiclient-services/src/PeopleService/Biography.php 0000644 00000004026 14721515320 0016330 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Biography extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $contentType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param string */ public function setContentType($contentType) { $this->contentType = $contentType; } /** * @return string */ public function getContentType() { return $this->contentType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Biography::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Biography'); apiclient-services/src/PeopleService/Status.php 0000644 00000003532 14721515320 0015670 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Status extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'details'; /** * @var int */ public $code; /** * @var array[] */ public $details; /** * @var string */ public $message; /** * @param int */ public function setCode($code) { $this->code = $code; } /** * @return int */ public function getCode() { return $this->code; } /** * @param array[] */ public function setDetails($details) { $this->details = $details; } /** * @return array[] */ public function getDetails() { return $this->details; } /** * @param string */ public function setMessage($message) { $this->message = $message; } /** * @return string */ public function getMessage() { return $this->message; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Status::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Status'); apiclient-services/src/PeopleService/ListOtherContactsResponse.php 0000644 00000004701 14721515320 0021537 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ListOtherContactsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'otherContacts'; /** * @var string */ public $nextPageToken; /** * @var string */ public $nextSyncToken; protected $otherContactsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $otherContactsDataType = 'array'; /** * @var int */ public $totalSize; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param string */ public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; } /** * @return string */ public function getNextSyncToken() { return $this->nextSyncToken; } /** * @param Person[] */ public function setOtherContacts($otherContacts) { $this->otherContacts = $otherContacts; } /** * @return Person[] */ public function getOtherContacts() { return $this->otherContacts; } /** * @param int */ public function setTotalSize($totalSize) { $this->totalSize = $totalSize; } /** * @return int */ public function getTotalSize() { return $this->totalSize; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListOtherContactsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ListOtherContactsResponse'); apiclient-services/src/PeopleService/ListConnectionsResponse.php 0000644 00000005352 14721515320 0021244 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ListConnectionsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'connections'; protected $connectionsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $connectionsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @var string */ public $nextSyncToken; /** * @var int */ public $totalItems; /** * @var int */ public $totalPeople; /** * @param Person[] */ public function setConnections($connections) { $this->connections = $connections; } /** * @return Person[] */ public function getConnections() { return $this->connections; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param string */ public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; } /** * @return string */ public function getNextSyncToken() { return $this->nextSyncToken; } /** * @param int */ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } /** * @return int */ public function getTotalItems() { return $this->totalItems; } /** * @param int */ public function setTotalPeople($totalPeople) { $this->totalPeople = $totalPeople; } /** * @return int */ public function getTotalPeople() { return $this->totalPeople; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListConnectionsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ListConnectionsResponse'); apiclient-services/src/PeopleService/MiscKeyword.php 0000644 00000004474 14721515320 0016653 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class MiscKeyword extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $value; /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\MiscKeyword::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_MiscKeyword'); apiclient-services/src/PeopleService/EmailAddress.php 0000644 00000005202 14721515320 0016736 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class EmailAddress extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $displayName; /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $value; /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\EmailAddress::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_EmailAddress'); apiclient-services/src/PeopleService/Name.php 0000644 00000014452 14721515320 0015270 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Name extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $displayName; /** * @var string */ public $displayNameLastFirst; /** * @var string */ public $familyName; /** * @var string */ public $givenName; /** * @var string */ public $honorificPrefix; /** * @var string */ public $honorificSuffix; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $middleName; /** * @var string */ public $phoneticFamilyName; /** * @var string */ public $phoneticFullName; /** * @var string */ public $phoneticGivenName; /** * @var string */ public $phoneticHonorificPrefix; /** * @var string */ public $phoneticHonorificSuffix; /** * @var string */ public $phoneticMiddleName; /** * @var string */ public $unstructuredName; /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setDisplayNameLastFirst($displayNameLastFirst) { $this->displayNameLastFirst = $displayNameLastFirst; } /** * @return string */ public function getDisplayNameLastFirst() { return $this->displayNameLastFirst; } /** * @param string */ public function setFamilyName($familyName) { $this->familyName = $familyName; } /** * @return string */ public function getFamilyName() { return $this->familyName; } /** * @param string */ public function setGivenName($givenName) { $this->givenName = $givenName; } /** * @return string */ public function getGivenName() { return $this->givenName; } /** * @param string */ public function setHonorificPrefix($honorificPrefix) { $this->honorificPrefix = $honorificPrefix; } /** * @return string */ public function getHonorificPrefix() { return $this->honorificPrefix; } /** * @param string */ public function setHonorificSuffix($honorificSuffix) { $this->honorificSuffix = $honorificSuffix; } /** * @return string */ public function getHonorificSuffix() { return $this->honorificSuffix; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setMiddleName($middleName) { $this->middleName = $middleName; } /** * @return string */ public function getMiddleName() { return $this->middleName; } /** * @param string */ public function setPhoneticFamilyName($phoneticFamilyName) { $this->phoneticFamilyName = $phoneticFamilyName; } /** * @return string */ public function getPhoneticFamilyName() { return $this->phoneticFamilyName; } /** * @param string */ public function setPhoneticFullName($phoneticFullName) { $this->phoneticFullName = $phoneticFullName; } /** * @return string */ public function getPhoneticFullName() { return $this->phoneticFullName; } /** * @param string */ public function setPhoneticGivenName($phoneticGivenName) { $this->phoneticGivenName = $phoneticGivenName; } /** * @return string */ public function getPhoneticGivenName() { return $this->phoneticGivenName; } /** * @param string */ public function setPhoneticHonorificPrefix($phoneticHonorificPrefix) { $this->phoneticHonorificPrefix = $phoneticHonorificPrefix; } /** * @return string */ public function getPhoneticHonorificPrefix() { return $this->phoneticHonorificPrefix; } /** * @param string */ public function setPhoneticHonorificSuffix($phoneticHonorificSuffix) { $this->phoneticHonorificSuffix = $phoneticHonorificSuffix; } /** * @return string */ public function getPhoneticHonorificSuffix() { return $this->phoneticHonorificSuffix; } /** * @param string */ public function setPhoneticMiddleName($phoneticMiddleName) { $this->phoneticMiddleName = $phoneticMiddleName; } /** * @return string */ public function getPhoneticMiddleName() { return $this->phoneticMiddleName; } /** * @param string */ public function setUnstructuredName($unstructuredName) { $this->unstructuredName = $unstructuredName; } /** * @return string */ public function getUnstructuredName() { return $this->unstructuredName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Name::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Name'); apiclient-services/src/PeopleService/PeopleEmpty.php 0000644 00000001737 14721515320 0016655 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class PeopleEmpty extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\PeopleEmpty::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_PeopleEmpty'); apiclient-services/src/PeopleService/ModifyContactGroupMembersResponse.php 0000644 00000004011 14721515320 0023210 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ModifyContactGroupMembersResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'notFoundResourceNames'; /** * @var string[] */ public $canNotRemoveLastContactGroupResourceNames; /** * @var string[] */ public $notFoundResourceNames; /** * @param string[] */ public function setCanNotRemoveLastContactGroupResourceNames($canNotRemoveLastContactGroupResourceNames) { $this->canNotRemoveLastContactGroupResourceNames = $canNotRemoveLastContactGroupResourceNames; } /** * @return string[] */ public function getCanNotRemoveLastContactGroupResourceNames() { return $this->canNotRemoveLastContactGroupResourceNames; } /** * @param string[] */ public function setNotFoundResourceNames($notFoundResourceNames) { $this->notFoundResourceNames = $notFoundResourceNames; } /** * @return string[] */ public function getNotFoundResourceNames() { return $this->notFoundResourceNames; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ModifyContactGroupMembersResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ModifyContactGroupMembersResponse'); apiclient-services/src/PeopleService/ProfileMetadata.php 0000644 00000003224 14721515320 0017444 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ProfileMetadata extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'userTypes'; /** * @var string */ public $objectType; /** * @var string[] */ public $userTypes; /** * @param string */ public function setObjectType($objectType) { $this->objectType = $objectType; } /** * @return string */ public function getObjectType() { return $this->objectType; } /** * @param string[] */ public function setUserTypes($userTypes) { $this->userTypes = $userTypes; } /** * @return string[] */ public function getUserTypes() { return $this->userTypes; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ProfileMetadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ProfileMetadata'); apiclient-services/src/PeopleService/CalendarUrl.php 0000644 00000004456 14721515320 0016607 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class CalendarUrl extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $url; /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUrl($url) { $this->url = $url; } /** * @return string */ public function getUrl() { return $this->url; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\CalendarUrl::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_CalendarUrl'); apiclient-services/src/PeopleService/SearchResult.php 0000644 00000002627 14721515320 0017015 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class SearchResult extends \Google\Site_Kit_Dependencies\Google\Model { protected $personType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $personDataType = ''; /** * @param Person */ public function setPerson(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person $person) { $this->person = $person; } /** * @return Person */ public function getPerson() { return $this->person; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchResult::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_SearchResult'); apiclient-services/src/PeopleService/PersonMetadata.php 0000644 00000005463 14721515320 0017321 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class PersonMetadata extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'sources'; /** * @var bool */ public $deleted; /** * @var string[] */ public $linkedPeopleResourceNames; /** * @var string */ public $objectType; /** * @var string[] */ public $previousResourceNames; protected $sourcesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Source::class; protected $sourcesDataType = 'array'; /** * @param bool */ public function setDeleted($deleted) { $this->deleted = $deleted; } /** * @return bool */ public function getDeleted() { return $this->deleted; } /** * @param string[] */ public function setLinkedPeopleResourceNames($linkedPeopleResourceNames) { $this->linkedPeopleResourceNames = $linkedPeopleResourceNames; } /** * @return string[] */ public function getLinkedPeopleResourceNames() { return $this->linkedPeopleResourceNames; } /** * @param string */ public function setObjectType($objectType) { $this->objectType = $objectType; } /** * @return string */ public function getObjectType() { return $this->objectType; } /** * @param string[] */ public function setPreviousResourceNames($previousResourceNames) { $this->previousResourceNames = $previousResourceNames; } /** * @return string[] */ public function getPreviousResourceNames() { return $this->previousResourceNames; } /** * @param Source[] */ public function setSources($sources) { $this->sources = $sources; } /** * @return Source[] */ public function getSources() { return $this->sources; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\PersonMetadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_PersonMetadata'); apiclient-services/src/PeopleService/CopyOtherContactToMyContactsGroupRequest.php 0000644 00000003757 14721515320 0024544 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class CopyOtherContactToMyContactsGroupRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'sources'; /** * @var string */ public $copyMask; /** * @var string */ public $readMask; /** * @var string[] */ public $sources; /** * @param string */ public function setCopyMask($copyMask) { $this->copyMask = $copyMask; } /** * @return string */ public function getCopyMask() { return $this->copyMask; } /** * @param string */ public function setReadMask($readMask) { $this->readMask = $readMask; } /** * @return string */ public function getReadMask() { return $this->readMask; } /** * @param string[] */ public function setSources($sources) { $this->sources = $sources; } /** * @return string[] */ public function getSources() { return $this->sources; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\CopyOtherContactToMyContactsGroupRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_CopyOtherContactToMyContactsGroupRequest'); apiclient-services/src/PeopleService/GroupClientData.php 0000644 00000003017 14721515320 0017430 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class GroupClientData extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $key; /** * @var string */ public $value; /** * @param string */ public function setKey($key) { $this->key = $key; } /** * @return string */ public function getKey() { return $this->key; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\GroupClientData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_GroupClientData'); apiclient-services/src/PeopleService/Skill.php 0000644 00000003307 14721515320 0015463 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Skill extends \Google\Site_Kit_Dependencies\Google\Model { protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Skill::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Skill'); apiclient-services/src/PeopleService/ContactGroupMembership.php 0000644 00000003366 14721515320 0021036 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ContactGroupMembership extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $contactGroupId; /** * @var string */ public $contactGroupResourceName; /** * @param string */ public function setContactGroupId($contactGroupId) { $this->contactGroupId = $contactGroupId; } /** * @return string */ public function getContactGroupId() { return $this->contactGroupId; } /** * @param string */ public function setContactGroupResourceName($contactGroupResourceName) { $this->contactGroupResourceName = $contactGroupResourceName; } /** * @return string */ public function getContactGroupResourceName() { return $this->contactGroupResourceName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroupMembership::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ContactGroupMembership'); apiclient-services/src/PeopleService/Url.php 0000644 00000004444 14721515320 0015152 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Url extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $value; /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Url::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Url'); apiclient-services/src/PeopleService/ListDirectoryPeopleResponse.php 0000644 00000004134 14721515320 0022070 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ListDirectoryPeopleResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'people'; /** * @var string */ public $nextPageToken; /** * @var string */ public $nextSyncToken; protected $peopleType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $peopleDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param string */ public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; } /** * @return string */ public function getNextSyncToken() { return $this->nextSyncToken; } /** * @param Person[] */ public function setPeople($people) { $this->people = $people; } /** * @return Person[] */ public function getPeople() { return $this->people; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListDirectoryPeopleResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ListDirectoryPeopleResponse'); apiclient-services/src/PeopleService/ListContactGroupsResponse.php 0000644 00000004732 14721515320 0021556 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ListContactGroupsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'contactGroups'; protected $contactGroupsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup::class; protected $contactGroupsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @var string */ public $nextSyncToken; /** * @var int */ public $totalItems; /** * @param ContactGroup[] */ public function setContactGroups($contactGroups) { $this->contactGroups = $contactGroups; } /** * @return ContactGroup[] */ public function getContactGroups() { return $this->contactGroups; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param string */ public function setNextSyncToken($nextSyncToken) { $this->nextSyncToken = $nextSyncToken; } /** * @return string */ public function getNextSyncToken() { return $this->nextSyncToken; } /** * @param int */ public function setTotalItems($totalItems) { $this->totalItems = $totalItems; } /** * @return int */ public function getTotalItems() { return $this->totalItems; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListContactGroupsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ListContactGroupsResponse'); apiclient-services/src/PeopleService/BatchCreateContactsResponse.php 0000644 00000003021 14721515320 0021761 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class BatchCreateContactsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'createdPeople'; protected $createdPeopleType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\PersonResponse::class; protected $createdPeopleDataType = 'array'; /** * @param PersonResponse[] */ public function setCreatedPeople($createdPeople) { $this->createdPeople = $createdPeople; } /** * @return PersonResponse[] */ public function getCreatedPeople() { return $this->createdPeople; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchCreateContactsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_BatchCreateContactsResponse'); apiclient-services/src/PeopleService/ModifyContactGroupMembersRequest.php 0000644 00000003545 14721515320 0023055 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ModifyContactGroupMembersRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'resourceNamesToRemove'; /** * @var string[] */ public $resourceNamesToAdd; /** * @var string[] */ public $resourceNamesToRemove; /** * @param string[] */ public function setResourceNamesToAdd($resourceNamesToAdd) { $this->resourceNamesToAdd = $resourceNamesToAdd; } /** * @return string[] */ public function getResourceNamesToAdd() { return $this->resourceNamesToAdd; } /** * @param string[] */ public function setResourceNamesToRemove($resourceNamesToRemove) { $this->resourceNamesToRemove = $resourceNamesToRemove; } /** * @return string[] */ public function getResourceNamesToRemove() { return $this->resourceNamesToRemove; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ModifyContactGroupMembersRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ModifyContactGroupMembersRequest'); apiclient-services/src/PeopleService/UserDefined.php 0000644 00000003744 14721515320 0016607 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class UserDefined extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $key; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param string */ public function setKey($key) { $this->key = $key; } /** * @return string */ public function getKey() { return $this->key; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\UserDefined::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_UserDefined'); apiclient-services/src/PeopleService/Event.php 0000644 00000004656 14721515320 0015476 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Event extends \Google\Site_Kit_Dependencies\Google\Model { protected $dateType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Date::class; protected $dateDataType = ''; /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @param Date */ public function setDate(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Date $date) { $this->date = $date; } /** * @return Date */ public function getDate() { return $this->date; } /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Event::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Event'); apiclient-services/src/PeopleService/RelationshipStatus.php 0000644 00000004106 14721515320 0020250 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class RelationshipStatus extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $formattedValue; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param string */ public function setFormattedValue($formattedValue) { $this->formattedValue = $formattedValue; } /** * @return string */ public function getFormattedValue() { return $this->formattedValue; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\RelationshipStatus::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_RelationshipStatus'); apiclient-services/src/PeopleService/Occupation.php 0000644 00000003326 14721515320 0016512 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Occupation extends \Google\Site_Kit_Dependencies\Google\Model { protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Occupation::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Occupation'); apiclient-services/src/PeopleService/Date.php 0000644 00000003345 14721515320 0015264 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Date extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $day; /** * @var int */ public $month; /** * @var int */ public $year; /** * @param int */ public function setDay($day) { $this->day = $day; } /** * @return int */ public function getDay() { return $this->day; } /** * @param int */ public function setMonth($month) { $this->month = $month; } /** * @return int */ public function getMonth() { return $this->month; } /** * @param int */ public function setYear($year) { $this->year = $year; } /** * @return int */ public function getYear() { return $this->year; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Date::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Date'); apiclient-services/src/PeopleService/Relation.php 0000644 00000004472 14721515320 0016166 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Relation extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $person; /** * @var string */ public $type; /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setPerson($person) { $this->person = $person; } /** * @return string */ public function getPerson() { return $this->person; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Relation::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Relation'); apiclient-services/src/PeopleService/BatchUpdateContactsResponse.php 0000644 00000002721 14721515320 0022006 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class BatchUpdateContactsResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $updateResultType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\PersonResponse::class; protected $updateResultDataType = 'map'; /** * @param PersonResponse[] */ public function setUpdateResult($updateResult) { $this->updateResult = $updateResult; } /** * @return PersonResponse[] */ public function getUpdateResult() { return $this->updateResult; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchUpdateContactsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_BatchUpdateContactsResponse'); apiclient-services/src/PeopleService/Organization.php 0000644 00000014463 14721515320 0017056 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Organization extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $costCenter; /** * @var bool */ public $current; /** * @var string */ public $department; /** * @var string */ public $domain; protected $endDateType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Date::class; protected $endDateDataType = ''; /** * @var string */ public $formattedType; /** * @var int */ public $fullTimeEquivalentMillipercent; /** * @var string */ public $jobDescription; /** * @var string */ public $location; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $name; /** * @var string */ public $phoneticName; protected $startDateType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Date::class; protected $startDateDataType = ''; /** * @var string */ public $symbol; /** * @var string */ public $title; /** * @var string */ public $type; /** * @param string */ public function setCostCenter($costCenter) { $this->costCenter = $costCenter; } /** * @return string */ public function getCostCenter() { return $this->costCenter; } /** * @param bool */ public function setCurrent($current) { $this->current = $current; } /** * @return bool */ public function getCurrent() { return $this->current; } /** * @param string */ public function setDepartment($department) { $this->department = $department; } /** * @return string */ public function getDepartment() { return $this->department; } /** * @param string */ public function setDomain($domain) { $this->domain = $domain; } /** * @return string */ public function getDomain() { return $this->domain; } /** * @param Date */ public function setEndDate(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Date $endDate) { $this->endDate = $endDate; } /** * @return Date */ public function getEndDate() { return $this->endDate; } /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param int */ public function setFullTimeEquivalentMillipercent($fullTimeEquivalentMillipercent) { $this->fullTimeEquivalentMillipercent = $fullTimeEquivalentMillipercent; } /** * @return int */ public function getFullTimeEquivalentMillipercent() { return $this->fullTimeEquivalentMillipercent; } /** * @param string */ public function setJobDescription($jobDescription) { $this->jobDescription = $jobDescription; } /** * @return string */ public function getJobDescription() { return $this->jobDescription; } /** * @param string */ public function setLocation($location) { $this->location = $location; } /** * @return string */ public function getLocation() { return $this->location; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setPhoneticName($phoneticName) { $this->phoneticName = $phoneticName; } /** * @return string */ public function getPhoneticName() { return $this->phoneticName; } /** * @param Date */ public function setStartDate(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Date $startDate) { $this->startDate = $startDate; } /** * @return Date */ public function getStartDate() { return $this->startDate; } /** * @param string */ public function setSymbol($symbol) { $this->symbol = $symbol; } /** * @return string */ public function getSymbol() { return $this->symbol; } /** * @param string */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Organization::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Organization'); apiclient-services/src/PeopleService/UpdateContactGroupRequest.php 0000644 00000004322 14721515320 0021527 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class UpdateContactGroupRequest extends \Google\Site_Kit_Dependencies\Google\Model { protected $contactGroupType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup::class; protected $contactGroupDataType = ''; /** * @var string */ public $readGroupFields; /** * @var string */ public $updateGroupFields; /** * @param ContactGroup */ public function setContactGroup(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup $contactGroup) { $this->contactGroup = $contactGroup; } /** * @return ContactGroup */ public function getContactGroup() { return $this->contactGroup; } /** * @param string */ public function setReadGroupFields($readGroupFields) { $this->readGroupFields = $readGroupFields; } /** * @return string */ public function getReadGroupFields() { return $this->readGroupFields; } /** * @param string */ public function setUpdateGroupFields($updateGroupFields) { $this->updateGroupFields = $updateGroupFields; } /** * @return string */ public function getUpdateGroupFields() { return $this->updateGroupFields; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\UpdateContactGroupRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_UpdateContactGroupRequest'); apiclient-services/src/PeopleService/DomainMembership.php 0000644 00000002500 14721515320 0017622 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class DomainMembership extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $inViewerDomain; /** * @param bool */ public function setInViewerDomain($inViewerDomain) { $this->inViewerDomain = $inViewerDomain; } /** * @return bool */ public function getInViewerDomain() { return $this->inViewerDomain; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\DomainMembership::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_DomainMembership'); apiclient-services/src/PeopleService/BatchCreateContactsRequest.php 0000644 00000004076 14721515320 0021626 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class BatchCreateContactsRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'sources'; protected $contactsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactToCreate::class; protected $contactsDataType = 'array'; /** * @var string */ public $readMask; /** * @var string[] */ public $sources; /** * @param ContactToCreate[] */ public function setContacts($contacts) { $this->contacts = $contacts; } /** * @return ContactToCreate[] */ public function getContacts() { return $this->contacts; } /** * @param string */ public function setReadMask($readMask) { $this->readMask = $readMask; } /** * @return string */ public function getReadMask() { return $this->readMask; } /** * @param string[] */ public function setSources($sources) { $this->sources = $sources; } /** * @return string[] */ public function getSources() { return $this->sources; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchCreateContactsRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_BatchCreateContactsRequest'); apiclient-services/src/PeopleService/Interest.php 0000644 00000003320 14721515320 0016175 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Interest extends \Google\Site_Kit_Dependencies\Google\Model { protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Interest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Interest'); apiclient-services/src/PeopleService/ContactGroupMetadata.php 0000644 00000003127 14721515320 0020456 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ContactGroupMetadata extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $deleted; /** * @var string */ public $updateTime; /** * @param bool */ public function setDeleted($deleted) { $this->deleted = $deleted; } /** * @return bool */ public function getDeleted() { return $this->deleted; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroupMetadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ContactGroupMetadata'); apiclient-services/src/PeopleService/RelationshipInterest.php 0000644 00000004114 14721515320 0020561 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class RelationshipInterest extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $formattedValue; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param string */ public function setFormattedValue($formattedValue) { $this->formattedValue = $formattedValue; } /** * @return string */ public function getFormattedValue() { return $this->formattedValue; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\RelationshipInterest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_RelationshipInterest'); apiclient-services/src/PeopleService/Resource/People.php 0000644 00000061460 14721515320 0017424 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchCreateContactsRequest; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchCreateContactsResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchDeleteContactsRequest; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchUpdateContactsRequest; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchUpdateContactsResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\DeleteContactPhotoResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\GetPeopleResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListDirectoryPeopleResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\PeopleEmpty; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchDirectoryPeopleResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\UpdateContactPhotoRequest; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\UpdateContactPhotoResponse; /** * The "people" collection of methods. * Typical usage is: * <code> * $peopleService = new Google\Service\PeopleService(...); * $people = $peopleService->people; * </code> */ class People extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Create a batch of new contacts and return the PersonResponses for the newly * Mutate requests for the same user should be sent sequentially to avoid * increased latency and failures. (people.batchCreateContacts) * * @param BatchCreateContactsRequest $postBody * @param array $optParams Optional parameters. * @return BatchCreateContactsResponse * @throws \Google\Service\Exception */ public function batchCreateContacts(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchCreateContactsRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchCreateContacts', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchCreateContactsResponse::class); } /** * Delete a batch of contacts. Any non-contact data will not be deleted. Mutate * requests for the same user should be sent sequentially to avoid increased * latency and failures. (people.batchDeleteContacts) * * @param BatchDeleteContactsRequest $postBody * @param array $optParams Optional parameters. * @return PeopleEmpty * @throws \Google\Service\Exception */ public function batchDeleteContacts(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchDeleteContactsRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchDeleteContacts', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\PeopleEmpty::class); } /** * Update a batch of contacts and return a map of resource names to * PersonResponses for the updated contacts. Mutate requests for the same user * should be sent sequentially to avoid increased latency and failures. * (people.batchUpdateContacts) * * @param BatchUpdateContactsRequest $postBody * @param array $optParams Optional parameters. * @return BatchUpdateContactsResponse * @throws \Google\Service\Exception */ public function batchUpdateContacts(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchUpdateContactsRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchUpdateContacts', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchUpdateContactsResponse::class); } /** * Create a new contact and return the person resource for that contact. The * request returns a 400 error if more than one field is specified on a field * that is a singleton for contact sources: * biographies * birthdays * genders * * names Mutate requests for the same user should be sent sequentially to * avoid increased latency and failures. (people.createContact) * * @param Person $postBody * @param array $optParams Optional parameters. * * @opt_param string personFields Required. A field mask to restrict which * fields on each person are returned. Multiple fields can be specified by * separating them with commas. Defaults to all fields if not set. Valid values * are: * addresses * ageRanges * biographies * birthdays * calendarUrls * * clientData * coverPhotos * emailAddresses * events * externalIds * genders * * imClients * interests * locales * locations * memberships * metadata * * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * * photos * relations * sipAddresses * skills * urls * userDefined * @opt_param string sources Optional. A mask of what source types to return. * Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. * @return Person * @throws \Google\Service\Exception */ public function createContact(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('createContact', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class); } /** * Delete a contact person. Any non-contact data will not be deleted. Mutate * requests for the same user should be sent sequentially to avoid increased * latency and failures. (people.deleteContact) * * @param string $resourceName Required. The resource name of the contact to * delete. * @param array $optParams Optional parameters. * @return PeopleEmpty * @throws \Google\Service\Exception */ public function deleteContact($resourceName, $optParams = []) { $params = ['resourceName' => $resourceName]; $params = \array_merge($params, $optParams); return $this->call('deleteContact', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\PeopleEmpty::class); } /** * Delete a contact's photo. Mutate requests for the same user should be done * sequentially to avoid // lock contention. (people.deleteContactPhoto) * * @param string $resourceName Required. The resource name of the contact whose * photo will be deleted. * @param array $optParams Optional parameters. * * @opt_param string personFields Optional. A field mask to restrict which * fields on the person are returned. Multiple fields can be specified by * separating them with commas. Defaults to empty if not set, which will skip * the post mutate get. Valid values are: * addresses * ageRanges * biographies * * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * * events * externalIds * genders * imClients * interests * locales * locations * * memberships * metadata * miscKeywords * names * nicknames * occupations * * organizations * phoneNumbers * photos * relations * sipAddresses * skills * * urls * userDefined * @opt_param string sources Optional. A mask of what source types to return. * Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. * @return DeleteContactPhotoResponse * @throws \Google\Service\Exception */ public function deleteContactPhoto($resourceName, $optParams = []) { $params = ['resourceName' => $resourceName]; $params = \array_merge($params, $optParams); return $this->call('deleteContactPhoto', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\DeleteContactPhotoResponse::class); } /** * Provides information about a person by specifying a resource name. Use * `people/me` to indicate the authenticated user. The request returns a 400 * error if 'personFields' is not specified. (people.get) * * @param string $resourceName Required. The resource name of the person to * provide information about. - To get information about the authenticated user, * specify `people/me`. - To get information about a google account, specify * `people/{account_id}`. - To get information about a contact, specify the * resource name that identifies the contact as returned by * `people.connections.list`. * @param array $optParams Optional parameters. * * @opt_param string personFields Required. A field mask to restrict which * fields on the person are returned. Multiple fields can be specified by * separating them with commas. Valid values are: * addresses * ageRanges * * biographies * birthdays * calendarUrls * clientData * coverPhotos * * emailAddresses * events * externalIds * genders * imClients * interests * * locales * locations * memberships * metadata * miscKeywords * names * * nicknames * occupations * organizations * phoneNumbers * photos * relations * * sipAddresses * skills * urls * userDefined * @opt_param string requestMask.includeField Required. Comma-separated list of * person fields to be included in the response. Each path should start with * `person.`: for example, `person.names` or `person.photos`. * @opt_param string sources Optional. A mask of what source types to return. * Defaults to READ_SOURCE_TYPE_PROFILE and READ_SOURCE_TYPE_CONTACT if not set. * @return Person * @throws \Google\Service\Exception */ public function get($resourceName, $optParams = []) { $params = ['resourceName' => $resourceName]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class); } /** * Provides information about a list of specific people by specifying a list of * requested resource names. Use `people/me` to indicate the authenticated user. * The request returns a 400 error if 'personFields' is not specified. * (people.getBatchGet) * * @param array $optParams Optional parameters. * * @opt_param string personFields Required. A field mask to restrict which * fields on each person are returned. Multiple fields can be specified by * separating them with commas. Valid values are: * addresses * ageRanges * * biographies * birthdays * calendarUrls * clientData * coverPhotos * * emailAddresses * events * externalIds * genders * imClients * interests * * locales * locations * memberships * metadata * miscKeywords * names * * nicknames * occupations * organizations * phoneNumbers * photos * relations * * sipAddresses * skills * urls * userDefined * @opt_param string requestMask.includeField Required. Comma-separated list of * person fields to be included in the response. Each path should start with * `person.`: for example, `person.names` or `person.photos`. * @opt_param string resourceNames Required. The resource names of the people to * provide information about. It's repeatable. The URL query parameter should be * resourceNames=&resourceNames=&... - To get information about the * authenticated user, specify `people/me`. - To get information about a google * account, specify `people/{account_id}`. - To get information about a contact, * specify the resource name that identifies the contact as returned by * `people.connections.list`. There is a maximum of 200 resource names. * @opt_param string sources Optional. A mask of what source types to return. * Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. * @return GetPeopleResponse * @throws \Google\Service\Exception */ public function getBatchGet($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('getBatchGet', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\GetPeopleResponse::class); } /** * Provides a list of domain profiles and domain contacts in the authenticated * user's domain directory. When the `sync_token` is specified, resources * deleted since the last sync will be returned as a person with * `PersonMetadata.deleted` set to true. When the `page_token` or `sync_token` * is specified, all other request parameters must match the first call. Writes * may have a propagation delay of several minutes for sync requests. * Incremental syncs are not intended for read-after-write use cases. See * example usage at [List the directory people that have * changed](/people/v1/directory#list_the_directory_people_that_have_changed). * (people.listDirectoryPeople) * * @param array $optParams Optional parameters. * * @opt_param string mergeSources Optional. Additional data to merge into the * directory sources if they are connected through verified join keys such as * email addresses or phone numbers. * @opt_param int pageSize Optional. The number of people to include in the * response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if * not set or set to 0. * @opt_param string pageToken Optional. A page token, received from a previous * response `next_page_token`. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to * `people.listDirectoryPeople` must match the first call that provided the page * token. * @opt_param string readMask Required. A field mask to restrict which fields on * each person are returned. Multiple fields can be specified by separating them * with commas. Valid values are: * addresses * ageRanges * biographies * * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * * externalIds * genders * imClients * interests * locales * locations * * memberships * metadata * miscKeywords * names * nicknames * occupations * * organizations * phoneNumbers * photos * relations * sipAddresses * skills * * urls * userDefined * @opt_param bool requestSyncToken Optional. Whether the response should return * `next_sync_token`. It can be used to get incremental changes since the last * request by setting it on the request `sync_token`. More details about sync * behavior at `people.listDirectoryPeople`. * @opt_param string sources Required. Directory sources to return. * @opt_param string syncToken Optional. A sync token, received from a previous * response `next_sync_token` Provide this to retrieve only the resources * changed since the last request. When syncing, all other parameters provided * to `people.listDirectoryPeople` must match the first call that provided the * sync token. More details about sync behavior at `people.listDirectoryPeople`. * @return ListDirectoryPeopleResponse * @throws \Google\Service\Exception */ public function listDirectoryPeople($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('listDirectoryPeople', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListDirectoryPeopleResponse::class); } /** * Provides a list of contacts in the authenticated user's grouped contacts that * matches the search query. The query matches on a contact's `names`, * `nickNames`, `emailAddresses`, `phoneNumbers`, and `organizations` fields * that are from the CONTACT source. **IMPORTANT**: Before searching, clients * should send a warmup request with an empty query to update the cache. See * https://developers.google.com/people/v1/contacts#search_the_users_contacts * (people.searchContacts) * * @param array $optParams Optional parameters. * * @opt_param int pageSize Optional. The number of results to return. Defaults * to 10 if field is not set, or set to 0. Values greater than 30 will be capped * to 30. * @opt_param string query Required. The plain-text query for the request. The * query is used to match prefix phrases of the fields on a person. For example, * a person with name "foo name" matches queries such as "f", "fo", "foo", "foo * n", "nam", etc., but not "oo n". * @opt_param string readMask Required. A field mask to restrict which fields on * each person are returned. Multiple fields can be specified by separating them * with commas. Valid values are: * addresses * ageRanges * biographies * * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * * externalIds * genders * imClients * interests * locales * locations * * memberships * metadata * miscKeywords * names * nicknames * occupations * * organizations * phoneNumbers * photos * relations * sipAddresses * skills * * urls * userDefined * @opt_param string sources Optional. A mask of what source types to return. * Defaults to READ_SOURCE_TYPE_CONTACT if not set. * @return SearchResponse * @throws \Google\Service\Exception */ public function searchContacts($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('searchContacts', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchResponse::class); } /** * Provides a list of domain profiles and domain contacts in the authenticated * user's domain directory that match the search query. * (people.searchDirectoryPeople) * * @param array $optParams Optional parameters. * * @opt_param string mergeSources Optional. Additional data to merge into the * directory sources if they are connected through verified join keys such as * email addresses or phone numbers. * @opt_param int pageSize Optional. The number of people to include in the * response. Valid values are between 1 and 500, inclusive. Defaults to 100 if * not set or set to 0. * @opt_param string pageToken Optional. A page token, received from a previous * response `next_page_token`. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `SearchDirectoryPeople` * must match the first call that provided the page token. * @opt_param string query Required. Prefix query that matches fields in the * person. Does NOT use the read_mask for determining what fields to match. * @opt_param string readMask Required. A field mask to restrict which fields on * each person are returned. Multiple fields can be specified by separating them * with commas. Valid values are: * addresses * ageRanges * biographies * * birthdays * calendarUrls * clientData * coverPhotos * emailAddresses * events * * externalIds * genders * imClients * interests * locales * locations * * memberships * metadata * miscKeywords * names * nicknames * occupations * * organizations * phoneNumbers * photos * relations * sipAddresses * skills * * urls * userDefined * @opt_param string sources Required. Directory sources to return. * @return SearchDirectoryPeopleResponse * @throws \Google\Service\Exception */ public function searchDirectoryPeople($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('searchDirectoryPeople', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchDirectoryPeopleResponse::class); } /** * Update contact data for an existing contact person. Any non-contact data will * not be modified. Any non-contact data in the person to update will be * ignored. All fields specified in the `update_mask` will be replaced. The * server returns a 400 error if `person.metadata.sources` is not specified for * the contact to be updated or if there is no contact source. The server * returns a 400 error with reason `"failedPrecondition"` if * `person.metadata.sources.etag` is different than the contact's etag, which * indicates the contact has changed since its data was read. Clients should get * the latest person and merge their updates into the latest person. The server * returns a 400 error if `memberships` are being updated and there are no * contact group memberships specified on the person. The server returns a 400 * error if more than one field is specified on a field that is a singleton for * contact sources: * biographies * birthdays * genders * names Mutate requests * for the same user should be sent sequentially to avoid increased latency and * failures. (people.updateContact) * * @param string $resourceName The resource name for the person, assigned by the * server. An ASCII string in the form of `people/{person_id}`. * @param Person $postBody * @param array $optParams Optional parameters. * * @opt_param string personFields Optional. A field mask to restrict which * fields on each person are returned. Multiple fields can be specified by * separating them with commas. Defaults to all fields if not set. Valid values * are: * addresses * ageRanges * biographies * birthdays * calendarUrls * * clientData * coverPhotos * emailAddresses * events * externalIds * genders * * imClients * interests * locales * locations * memberships * metadata * * miscKeywords * names * nicknames * occupations * organizations * phoneNumbers * * photos * relations * sipAddresses * skills * urls * userDefined * @opt_param string sources Optional. A mask of what source types to return. * Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. * @opt_param string updatePersonFields Required. A field mask to restrict which * fields on the person are updated. Multiple fields can be specified by * separating them with commas. All updated fields will be replaced. Valid * values are: * addresses * biographies * birthdays * calendarUrls * clientData * * emailAddresses * events * externalIds * genders * imClients * interests * * locales * locations * memberships * miscKeywords * names * nicknames * * occupations * organizations * phoneNumbers * relations * sipAddresses * urls * * userDefined * @return Person * @throws \Google\Service\Exception */ public function updateContact($resourceName, \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person $postBody, $optParams = []) { $params = ['resourceName' => $resourceName, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('updateContact', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class); } /** * Update a contact's photo. Mutate requests for the same user should be sent * sequentially to avoid increased latency and failures. * (people.updateContactPhoto) * * @param string $resourceName Required. Person resource name * @param UpdateContactPhotoRequest $postBody * @param array $optParams Optional parameters. * @return UpdateContactPhotoResponse * @throws \Google\Service\Exception */ public function updateContactPhoto($resourceName, \Google\Site_Kit_Dependencies\Google\Service\PeopleService\UpdateContactPhotoRequest $postBody, $optParams = []) { $params = ['resourceName' => $resourceName, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('updateContactPhoto', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\UpdateContactPhotoResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\People::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Resource_People'); apiclient-services/src/PeopleService/Resource/OtherContacts.php 0000644 00000020506 14721515320 0020754 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\CopyOtherContactToMyContactsGroupRequest; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListOtherContactsResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchResponse; /** * The "otherContacts" collection of methods. * Typical usage is: * <code> * $peopleService = new Google\Service\PeopleService(...); * $otherContacts = $peopleService->otherContacts; * </code> */ class OtherContacts extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Copies an "Other contact" to a new contact in the user's "myContacts" group * Mutate requests for the same user should be sent sequentially to avoid * increased latency and failures. * (otherContacts.copyOtherContactToMyContactsGroup) * * @param string $resourceName Required. The resource name of the "Other * contact" to copy. * @param CopyOtherContactToMyContactsGroupRequest $postBody * @param array $optParams Optional parameters. * @return Person * @throws \Google\Service\Exception */ public function copyOtherContactToMyContactsGroup($resourceName, \Google\Site_Kit_Dependencies\Google\Service\PeopleService\CopyOtherContactToMyContactsGroupRequest $postBody, $optParams = []) { $params = ['resourceName' => $resourceName, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('copyOtherContactToMyContactsGroup', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class); } /** * List all "Other contacts", that is contacts that are not in a contact group. * "Other contacts" are typically auto created contacts from interactions. Sync * tokens expire 7 days after the full sync. A request with an expired sync * token will get an error with an [google.rpc.ErrorInfo](https://cloud.google.c * om/apis/design/errors#error_info) with reason "EXPIRED_SYNC_TOKEN". In the * case of such an error clients should make a full sync request without a * `sync_token`. The first page of a full sync request has an additional quota. * If the quota is exceeded, a 429 error will be returned. This quota is fixed * and can not be increased. When the `sync_token` is specified, resources * deleted since the last sync will be returned as a person with * `PersonMetadata.deleted` set to true. When the `page_token` or `sync_token` * is specified, all other request parameters must match the first call. Writes * may have a propagation delay of several minutes for sync requests. * Incremental syncs are not intended for read-after-write use cases. See * example usage at [List the user's other contacts that have * changed](/people/v1/other- * contacts#list_the_users_other_contacts_that_have_changed). * (otherContacts.listOtherContacts) * * @param array $optParams Optional parameters. * * @opt_param int pageSize Optional. The number of "Other contacts" to include * in the response. Valid values are between 1 and 1000, inclusive. Defaults to * 100 if not set or set to 0. * @opt_param string pageToken Optional. A page token, received from a previous * response `next_page_token`. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `otherContacts.list` must * match the first call that provided the page token. * @opt_param string readMask Required. A field mask to restrict which fields on * each person are returned. Multiple fields can be specified by separating them * with commas. What values are valid depend on what ReadSourceType is used. If * READ_SOURCE_TYPE_CONTACT is used, valid values are: * emailAddresses * * metadata * names * phoneNumbers * photos If READ_SOURCE_TYPE_PROFILE is used, * valid values are: * addresses * ageRanges * biographies * birthdays * * calendarUrls * clientData * coverPhotos * emailAddresses * events * * externalIds * genders * imClients * interests * locales * locations * * memberships * metadata * miscKeywords * names * nicknames * occupations * * organizations * phoneNumbers * photos * relations * sipAddresses * skills * * urls * userDefined * @opt_param bool requestSyncToken Optional. Whether the response should return * `next_sync_token` on the last page of results. It can be used to get * incremental changes since the last request by setting it on the request * `sync_token`. More details about sync behavior at `otherContacts.list`. * @opt_param string sources Optional. A mask of what source types to return. * Defaults to READ_SOURCE_TYPE_CONTACT if not set. Possible values for this * field are: * READ_SOURCE_TYPE_CONTACT * * READ_SOURCE_TYPE_CONTACT,READ_SOURCE_TYPE_PROFILE Specifying * READ_SOURCE_TYPE_PROFILE without specifying READ_SOURCE_TYPE_CONTACT is not * permitted. * @opt_param string syncToken Optional. A sync token, received from a previous * response `next_sync_token` Provide this to retrieve only the resources * changed since the last request. When syncing, all other parameters provided * to `otherContacts.list` must match the first call that provided the sync * token. More details about sync behavior at `otherContacts.list`. * @return ListOtherContactsResponse * @throws \Google\Service\Exception */ public function listOtherContacts($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListOtherContactsResponse::class); } /** * Provides a list of contacts in the authenticated user's other contacts that * matches the search query. The query matches on a contact's `names`, * `emailAddresses`, and `phoneNumbers` fields that are from the OTHER_CONTACT * source. **IMPORTANT**: Before searching, clients should send a warmup request * with an empty query to update the cache. See * https://developers.google.com/people/v1/other- * contacts#search_the_users_other_contacts (otherContacts.search) * * @param array $optParams Optional parameters. * * @opt_param int pageSize Optional. The number of results to return. Defaults * to 10 if field is not set, or set to 0. Values greater than 30 will be capped * to 30. * @opt_param string query Required. The plain-text query for the request. The * query is used to match prefix phrases of the fields on a person. For example, * a person with name "foo name" matches queries such as "f", "fo", "foo", "foo * n", "nam", etc., but not "oo n". * @opt_param string readMask Required. A field mask to restrict which fields on * each person are returned. Multiple fields can be specified by separating them * with commas. Valid values are: * emailAddresses * metadata * names * * phoneNumbers * @return SearchResponse * @throws \Google\Service\Exception */ public function search($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('search', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\OtherContacts::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Resource_OtherContacts'); apiclient-services/src/PeopleService/Resource/PeopleConnections.php 0000644 00000012667 14721515320 0021634 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListConnectionsResponse; /** * The "connections" collection of methods. * Typical usage is: * <code> * $peopleService = new Google\Service\PeopleService(...); * $connections = $peopleService->people_connections; * </code> */ class PeopleConnections extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Provides a list of the authenticated user's contacts. Sync tokens expire 7 * days after the full sync. A request with an expired sync token will get an * error with an [google.rpc.ErrorInfo](https://cloud.google.com/apis/design/err * ors#error_info) with reason "EXPIRED_SYNC_TOKEN". In the case of such an * error clients should make a full sync request without a `sync_token`. The * first page of a full sync request has an additional quota. If the quota is * exceeded, a 429 error will be returned. This quota is fixed and can not be * increased. When the `sync_token` is specified, resources deleted since the * last sync will be returned as a person with `PersonMetadata.deleted` set to * true. When the `page_token` or `sync_token` is specified, all other request * parameters must match the first call. Writes may have a propagation delay of * several minutes for sync requests. Incremental syncs are not intended for * read-after-write use cases. See example usage at [List the user's contacts * that have * changed](/people/v1/contacts#list_the_users_contacts_that_have_changed). * (connections.listPeopleConnections) * * @param string $resourceName Required. The resource name to return connections * for. Only `people/me` is valid. * @param array $optParams Optional parameters. * * @opt_param int pageSize Optional. The number of connections to include in the * response. Valid values are between 1 and 1000, inclusive. Defaults to 100 if * not set or set to 0. * @opt_param string pageToken Optional. A page token, received from a previous * response `next_page_token`. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `people.connections.list` * must match the first call that provided the page token. * @opt_param string personFields Required. A field mask to restrict which * fields on each person are returned. Multiple fields can be specified by * separating them with commas. Valid values are: * addresses * ageRanges * * biographies * birthdays * calendarUrls * clientData * coverPhotos * * emailAddresses * events * externalIds * genders * imClients * interests * * locales * locations * memberships * metadata * miscKeywords * names * * nicknames * occupations * organizations * phoneNumbers * photos * relations * * sipAddresses * skills * urls * userDefined * @opt_param string requestMask.includeField Required. Comma-separated list of * person fields to be included in the response. Each path should start with * `person.`: for example, `person.names` or `person.photos`. * @opt_param bool requestSyncToken Optional. Whether the response should return * `next_sync_token` on the last page of results. It can be used to get * incremental changes since the last request by setting it on the request * `sync_token`. More details about sync behavior at `people.connections.list`. * @opt_param string sortOrder Optional. The order in which the connections * should be sorted. Defaults to `LAST_MODIFIED_ASCENDING`. * @opt_param string sources Optional. A mask of what source types to return. * Defaults to READ_SOURCE_TYPE_CONTACT and READ_SOURCE_TYPE_PROFILE if not set. * @opt_param string syncToken Optional. A sync token, received from a previous * response `next_sync_token` Provide this to retrieve only the resources * changed since the last request. When syncing, all other parameters provided * to `people.connections.list` must match the first call that provided the sync * token. More details about sync behavior at `people.connections.list`. * @return ListConnectionsResponse * @throws \Google\Service\Exception */ public function listPeopleConnections($resourceName, $optParams = []) { $params = ['resourceName' => $resourceName]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListConnectionsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\PeopleConnections::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Resource_PeopleConnections'); apiclient-services/src/PeopleService/Resource/ContactGroupsMembers.php 0000644 00000004766 14721515320 0022314 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\ModifyContactGroupMembersRequest; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\ModifyContactGroupMembersResponse; /** * The "members" collection of methods. * Typical usage is: * <code> * $peopleService = new Google\Service\PeopleService(...); * $members = $peopleService->contactGroups_members; * </code> */ class ContactGroupsMembers extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Modify the members of a contact group owned by the authenticated user. The * only system contact groups that can have members added are * `contactGroups/myContacts` and `contactGroups/starred`. Other system contact * groups are deprecated and can only have contacts removed. (members.modify) * * @param string $resourceName Required. The resource name of the contact group * to modify. * @param ModifyContactGroupMembersRequest $postBody * @param array $optParams Optional parameters. * @return ModifyContactGroupMembersResponse * @throws \Google\Service\Exception */ public function modify($resourceName, \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ModifyContactGroupMembersRequest $postBody, $optParams = []) { $params = ['resourceName' => $resourceName, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('modify', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ModifyContactGroupMembersResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\ContactGroupsMembers::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Resource_ContactGroupsMembers'); apiclient-services/src/PeopleService/Resource/ContactGroups.php 0000644 00000021025 14721515320 0020764 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchGetContactGroupsResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\CreateContactGroupRequest; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListContactGroupsResponse; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\PeopleEmpty; use Google\Site_Kit_Dependencies\Google\Service\PeopleService\UpdateContactGroupRequest; /** * The "contactGroups" collection of methods. * Typical usage is: * <code> * $peopleService = new Google\Service\PeopleService(...); * $contactGroups = $peopleService->contactGroups; * </code> */ class ContactGroups extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Get a list of contact groups owned by the authenticated user by specifying a * list of contact group resource names. (contactGroups.batchGet) * * @param array $optParams Optional parameters. * * @opt_param string groupFields Optional. A field mask to restrict which fields * on the group are returned. Defaults to `metadata`, `groupType`, * `memberCount`, and `name` if not set or set to empty. Valid fields are: * * clientData * groupType * memberCount * metadata * name * @opt_param int maxMembers Optional. Specifies the maximum number of members * to return for each group. Defaults to 0 if not set, which will return zero * members. * @opt_param string resourceNames Required. The resource names of the contact * groups to get. There is a maximum of 200 resource names. * @return BatchGetContactGroupsResponse * @throws \Google\Service\Exception */ public function batchGet($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('batchGet', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchGetContactGroupsResponse::class); } /** * Create a new contact group owned by the authenticated user. Created contact * group names must be unique to the users contact groups. Attempting to create * a group with a duplicate name will return a HTTP 409 error. Mutate requests * for the same user should be sent sequentially to avoid increased latency and * failures. (contactGroups.create) * * @param CreateContactGroupRequest $postBody * @param array $optParams Optional parameters. * @return ContactGroup * @throws \Google\Service\Exception */ public function create(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\CreateContactGroupRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup::class); } /** * Delete an existing contact group owned by the authenticated user by * specifying a contact group resource name. Mutate requests for the same user * should be sent sequentially to avoid increased latency and failures. * (contactGroups.delete) * * @param string $resourceName Required. The resource name of the contact group * to delete. * @param array $optParams Optional parameters. * * @opt_param bool deleteContacts Optional. Set to true to also delete the * contacts in the specified group. * @return PeopleEmpty * @throws \Google\Service\Exception */ public function delete($resourceName, $optParams = []) { $params = ['resourceName' => $resourceName]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\PeopleEmpty::class); } /** * Get a specific contact group owned by the authenticated user by specifying a * contact group resource name. (contactGroups.get) * * @param string $resourceName Required. The resource name of the contact group * to get. * @param array $optParams Optional parameters. * * @opt_param string groupFields Optional. A field mask to restrict which fields * on the group are returned. Defaults to `metadata`, `groupType`, * `memberCount`, and `name` if not set or set to empty. Valid fields are: * * clientData * groupType * memberCount * metadata * name * @opt_param int maxMembers Optional. Specifies the maximum number of members * to return. Defaults to 0 if not set, which will return zero members. * @return ContactGroup * @throws \Google\Service\Exception */ public function get($resourceName, $optParams = []) { $params = ['resourceName' => $resourceName]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup::class); } /** * List all contact groups owned by the authenticated user. Members of the * contact groups are not populated. (contactGroups.listContactGroups) * * @param array $optParams Optional parameters. * * @opt_param string groupFields Optional. A field mask to restrict which fields * on the group are returned. Defaults to `metadata`, `groupType`, * `memberCount`, and `name` if not set or set to empty. Valid fields are: * * clientData * groupType * memberCount * metadata * name * @opt_param int pageSize Optional. The maximum number of resources to return. * Valid values are between 1 and 1000, inclusive. Defaults to 30 if not set or * set to 0. * @opt_param string pageToken Optional. The next_page_token value returned from * a previous call to * [ListContactGroups](/people/api/rest/v1/contactgroups/list). Requests the * next page of resources. * @opt_param string syncToken Optional. A sync token, returned by a previous * call to `contactgroups.list`. Only resources changed since the sync token was * created will be returned. * @return ListContactGroupsResponse * @throws \Google\Service\Exception */ public function listContactGroups($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ListContactGroupsResponse::class); } /** * Update the name of an existing contact group owned by the authenticated user. * Updated contact group names must be unique to the users contact groups. * Attempting to create a group with a duplicate name will return a HTTP 409 * error. Mutate requests for the same user should be sent sequentially to avoid * increased latency and failures. (contactGroups.update) * * @param string $resourceName The resource name for the contact group, assigned * by the server. An ASCII string, in the form of * `contactGroups/{contact_group_id}`. * @param UpdateContactGroupRequest $postBody * @param array $optParams Optional parameters. * @return ContactGroup * @throws \Google\Service\Exception */ public function update($resourceName, \Google\Site_Kit_Dependencies\Google\Service\PeopleService\UpdateContactGroupRequest $postBody, $optParams = []) { $params = ['resourceName' => $resourceName, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Resource\ContactGroups::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Resource_ContactGroups'); apiclient-services/src/PeopleService/UpdateContactPhotoResponse.php 0000644 00000002701 14721515320 0021671 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class UpdateContactPhotoResponse extends \Google\Site_Kit_Dependencies\Google\Model { protected $personType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $personDataType = ''; /** * @param Person */ public function setPerson(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person $person) { $this->person = $person; } /** * @return Person */ public function getPerson() { return $this->person; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\UpdateContactPhotoResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_UpdateContactPhotoResponse'); apiclient-services/src/PeopleService/SearchDirectoryPeopleResponse.php 0000644 00000004075 14721515320 0022366 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class SearchDirectoryPeopleResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'people'; /** * @var string */ public $nextPageToken; protected $peopleType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $peopleDataType = 'array'; /** * @var int */ public $totalSize; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Person[] */ public function setPeople($people) { $this->people = $people; } /** * @return Person[] */ public function getPeople() { return $this->people; } /** * @param int */ public function setTotalSize($totalSize) { $this->totalSize = $totalSize; } /** * @return int */ public function getTotalSize() { return $this->totalSize; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\SearchDirectoryPeopleResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_SearchDirectoryPeopleResponse'); apiclient-services/src/PeopleService/BatchUpdateContactsRequest.php 0000644 00000004535 14721515320 0021645 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class BatchUpdateContactsRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'sources'; protected $contactsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class; protected $contactsDataType = 'map'; /** * @var string */ public $readMask; /** * @var string[] */ public $sources; /** * @var string */ public $updateMask; /** * @param Person[] */ public function setContacts($contacts) { $this->contacts = $contacts; } /** * @return Person[] */ public function getContacts() { return $this->contacts; } /** * @param string */ public function setReadMask($readMask) { $this->readMask = $readMask; } /** * @return string */ public function getReadMask() { return $this->readMask; } /** * @param string[] */ public function setSources($sources) { $this->sources = $sources; } /** * @return string[] */ public function getSources() { return $this->sources; } /** * @param string */ public function setUpdateMask($updateMask) { $this->updateMask = $updateMask; } /** * @return string */ public function getUpdateMask() { return $this->updateMask; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchUpdateContactsRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_BatchUpdateContactsRequest'); apiclient-services/src/PeopleService/BatchDeleteContactsRequest.php 0000644 00000002631 14721515320 0021620 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class BatchDeleteContactsRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'resourceNames'; /** * @var string[] */ public $resourceNames; /** * @param string[] */ public function setResourceNames($resourceNames) { $this->resourceNames = $resourceNames; } /** * @return string[] */ public function getResourceNames() { return $this->resourceNames; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BatchDeleteContactsRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_BatchDeleteContactsRequest'); apiclient-services/src/PeopleService/ContactGroup.php 0000644 00000010201 14721515320 0017004 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class ContactGroup extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'memberResourceNames'; protected $clientDataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\GroupClientData::class; protected $clientDataDataType = 'array'; /** * @var string */ public $etag; /** * @var string */ public $formattedName; /** * @var string */ public $groupType; /** * @var int */ public $memberCount; /** * @var string[] */ public $memberResourceNames; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroupMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $name; /** * @var string */ public $resourceName; /** * @param GroupClientData[] */ public function setClientData($clientData) { $this->clientData = $clientData; } /** * @return GroupClientData[] */ public function getClientData() { return $this->clientData; } /** * @param string */ public function setEtag($etag) { $this->etag = $etag; } /** * @return string */ public function getEtag() { return $this->etag; } /** * @param string */ public function setFormattedName($formattedName) { $this->formattedName = $formattedName; } /** * @return string */ public function getFormattedName() { return $this->formattedName; } /** * @param string */ public function setGroupType($groupType) { $this->groupType = $groupType; } /** * @return string */ public function getGroupType() { return $this->groupType; } /** * @param int */ public function setMemberCount($memberCount) { $this->memberCount = $memberCount; } /** * @return int */ public function getMemberCount() { return $this->memberCount; } /** * @param string[] */ public function setMemberResourceNames($memberResourceNames) { $this->memberResourceNames = $memberResourceNames; } /** * @return string[] */ public function getMemberResourceNames() { return $this->memberResourceNames; } /** * @param ContactGroupMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroupMetadata $metadata) { $this->metadata = $metadata; } /** * @return ContactGroupMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setResourceName($resourceName) { $this->resourceName = $resourceName; } /** * @return string */ public function getResourceName() { return $this->resourceName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\ContactGroup::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_ContactGroup'); apiclient-services/src/PeopleService/BraggingRights.php 0000644 00000003342 14721515320 0017305 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class BraggingRights extends \Google\Site_Kit_Dependencies\Google\Model { protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\BraggingRights::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_BraggingRights'); apiclient-services/src/PeopleService/GetPeopleResponse.php 0000644 00000002717 14721515320 0020014 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class GetPeopleResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'responses'; protected $responsesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\PersonResponse::class; protected $responsesDataType = 'array'; /** * @param PersonResponse[] */ public function setResponses($responses) { $this->responses = $responses; } /** * @return PersonResponse[] */ public function getResponses() { return $this->responses; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\GetPeopleResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_GetPeopleResponse'); apiclient-services/src/PeopleService/UpdateContactPhotoRequest.php 0000644 00000003754 14721515320 0021534 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class UpdateContactPhotoRequest extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'sources'; /** * @var string */ public $personFields; /** * @var string */ public $photoBytes; /** * @var string[] */ public $sources; /** * @param string */ public function setPersonFields($personFields) { $this->personFields = $personFields; } /** * @return string */ public function getPersonFields() { return $this->personFields; } /** * @param string */ public function setPhotoBytes($photoBytes) { $this->photoBytes = $photoBytes; } /** * @return string */ public function getPhotoBytes() { return $this->photoBytes; } /** * @param string[] */ public function setSources($sources) { $this->sources = $sources; } /** * @return string[] */ public function getSources() { return $this->sources; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\UpdateContactPhotoRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_UpdateContactPhotoRequest'); apiclient-services/src/PeopleService/SipAddress.php 0000644 00000004471 14721515320 0016451 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class SipAddress extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $formattedType; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $type; /** * @var string */ public $value; /** * @param string */ public function setFormattedType($formattedType) { $this->formattedType = $formattedType; } /** * @return string */ public function getFormattedType() { return $this->formattedType; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\SipAddress::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_SipAddress'); apiclient-services/src/PeopleService/Person.php 0000644 00000040627 14721515320 0015661 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Person extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'userDefined'; protected $addressesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Address::class; protected $addressesDataType = 'array'; /** * @var string */ public $ageRange; protected $ageRangesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\AgeRangeType::class; protected $ageRangesDataType = 'array'; protected $biographiesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Biography::class; protected $biographiesDataType = 'array'; protected $birthdaysType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Birthday::class; protected $birthdaysDataType = 'array'; protected $braggingRightsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\BraggingRights::class; protected $braggingRightsDataType = 'array'; protected $calendarUrlsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\CalendarUrl::class; protected $calendarUrlsDataType = 'array'; protected $clientDataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ClientData::class; protected $clientDataDataType = 'array'; protected $coverPhotosType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\CoverPhoto::class; protected $coverPhotosDataType = 'array'; protected $emailAddressesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\EmailAddress::class; protected $emailAddressesDataType = 'array'; /** * @var string */ public $etag; protected $eventsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Event::class; protected $eventsDataType = 'array'; protected $externalIdsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ExternalId::class; protected $externalIdsDataType = 'array'; protected $fileAsesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FileAs::class; protected $fileAsesDataType = 'array'; protected $gendersType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Gender::class; protected $gendersDataType = 'array'; protected $imClientsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\ImClient::class; protected $imClientsDataType = 'array'; protected $interestsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Interest::class; protected $interestsDataType = 'array'; protected $localesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Locale::class; protected $localesDataType = 'array'; protected $locationsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Location::class; protected $locationsDataType = 'array'; protected $membershipsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Membership::class; protected $membershipsDataType = 'array'; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\PersonMetadata::class; protected $metadataDataType = ''; protected $miscKeywordsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\MiscKeyword::class; protected $miscKeywordsDataType = 'array'; protected $namesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Name::class; protected $namesDataType = 'array'; protected $nicknamesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Nickname::class; protected $nicknamesDataType = 'array'; protected $occupationsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Occupation::class; protected $occupationsDataType = 'array'; protected $organizationsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Organization::class; protected $organizationsDataType = 'array'; protected $phoneNumbersType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\PhoneNumber::class; protected $phoneNumbersDataType = 'array'; protected $photosType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Photo::class; protected $photosDataType = 'array'; protected $relationsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Relation::class; protected $relationsDataType = 'array'; protected $relationshipInterestsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\RelationshipInterest::class; protected $relationshipInterestsDataType = 'array'; protected $relationshipStatusesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\RelationshipStatus::class; protected $relationshipStatusesDataType = 'array'; protected $residencesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Residence::class; protected $residencesDataType = 'array'; /** * @var string */ public $resourceName; protected $sipAddressesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\SipAddress::class; protected $sipAddressesDataType = 'array'; protected $skillsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Skill::class; protected $skillsDataType = 'array'; protected $taglinesType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Tagline::class; protected $taglinesDataType = 'array'; protected $urlsType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\Url::class; protected $urlsDataType = 'array'; protected $userDefinedType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\UserDefined::class; protected $userDefinedDataType = 'array'; /** * @param Address[] */ public function setAddresses($addresses) { $this->addresses = $addresses; } /** * @return Address[] */ public function getAddresses() { return $this->addresses; } /** * @param string */ public function setAgeRange($ageRange) { $this->ageRange = $ageRange; } /** * @return string */ public function getAgeRange() { return $this->ageRange; } /** * @param AgeRangeType[] */ public function setAgeRanges($ageRanges) { $this->ageRanges = $ageRanges; } /** * @return AgeRangeType[] */ public function getAgeRanges() { return $this->ageRanges; } /** * @param Biography[] */ public function setBiographies($biographies) { $this->biographies = $biographies; } /** * @return Biography[] */ public function getBiographies() { return $this->biographies; } /** * @param Birthday[] */ public function setBirthdays($birthdays) { $this->birthdays = $birthdays; } /** * @return Birthday[] */ public function getBirthdays() { return $this->birthdays; } /** * @param BraggingRights[] */ public function setBraggingRights($braggingRights) { $this->braggingRights = $braggingRights; } /** * @return BraggingRights[] */ public function getBraggingRights() { return $this->braggingRights; } /** * @param CalendarUrl[] */ public function setCalendarUrls($calendarUrls) { $this->calendarUrls = $calendarUrls; } /** * @return CalendarUrl[] */ public function getCalendarUrls() { return $this->calendarUrls; } /** * @param ClientData[] */ public function setClientData($clientData) { $this->clientData = $clientData; } /** * @return ClientData[] */ public function getClientData() { return $this->clientData; } /** * @param CoverPhoto[] */ public function setCoverPhotos($coverPhotos) { $this->coverPhotos = $coverPhotos; } /** * @return CoverPhoto[] */ public function getCoverPhotos() { return $this->coverPhotos; } /** * @param EmailAddress[] */ public function setEmailAddresses($emailAddresses) { $this->emailAddresses = $emailAddresses; } /** * @return EmailAddress[] */ public function getEmailAddresses() { return $this->emailAddresses; } /** * @param string */ public function setEtag($etag) { $this->etag = $etag; } /** * @return string */ public function getEtag() { return $this->etag; } /** * @param Event[] */ public function setEvents($events) { $this->events = $events; } /** * @return Event[] */ public function getEvents() { return $this->events; } /** * @param ExternalId[] */ public function setExternalIds($externalIds) { $this->externalIds = $externalIds; } /** * @return ExternalId[] */ public function getExternalIds() { return $this->externalIds; } /** * @param FileAs[] */ public function setFileAses($fileAses) { $this->fileAses = $fileAses; } /** * @return FileAs[] */ public function getFileAses() { return $this->fileAses; } /** * @param Gender[] */ public function setGenders($genders) { $this->genders = $genders; } /** * @return Gender[] */ public function getGenders() { return $this->genders; } /** * @param ImClient[] */ public function setImClients($imClients) { $this->imClients = $imClients; } /** * @return ImClient[] */ public function getImClients() { return $this->imClients; } /** * @param Interest[] */ public function setInterests($interests) { $this->interests = $interests; } /** * @return Interest[] */ public function getInterests() { return $this->interests; } /** * @param Locale[] */ public function setLocales($locales) { $this->locales = $locales; } /** * @return Locale[] */ public function getLocales() { return $this->locales; } /** * @param Location[] */ public function setLocations($locations) { $this->locations = $locations; } /** * @return Location[] */ public function getLocations() { return $this->locations; } /** * @param Membership[] */ public function setMemberships($memberships) { $this->memberships = $memberships; } /** * @return Membership[] */ public function getMemberships() { return $this->memberships; } /** * @param PersonMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\PersonMetadata $metadata) { $this->metadata = $metadata; } /** * @return PersonMetadata */ public function getMetadata() { return $this->metadata; } /** * @param MiscKeyword[] */ public function setMiscKeywords($miscKeywords) { $this->miscKeywords = $miscKeywords; } /** * @return MiscKeyword[] */ public function getMiscKeywords() { return $this->miscKeywords; } /** * @param Name[] */ public function setNames($names) { $this->names = $names; } /** * @return Name[] */ public function getNames() { return $this->names; } /** * @param Nickname[] */ public function setNicknames($nicknames) { $this->nicknames = $nicknames; } /** * @return Nickname[] */ public function getNicknames() { return $this->nicknames; } /** * @param Occupation[] */ public function setOccupations($occupations) { $this->occupations = $occupations; } /** * @return Occupation[] */ public function getOccupations() { return $this->occupations; } /** * @param Organization[] */ public function setOrganizations($organizations) { $this->organizations = $organizations; } /** * @return Organization[] */ public function getOrganizations() { return $this->organizations; } /** * @param PhoneNumber[] */ public function setPhoneNumbers($phoneNumbers) { $this->phoneNumbers = $phoneNumbers; } /** * @return PhoneNumber[] */ public function getPhoneNumbers() { return $this->phoneNumbers; } /** * @param Photo[] */ public function setPhotos($photos) { $this->photos = $photos; } /** * @return Photo[] */ public function getPhotos() { return $this->photos; } /** * @param Relation[] */ public function setRelations($relations) { $this->relations = $relations; } /** * @return Relation[] */ public function getRelations() { return $this->relations; } /** * @param RelationshipInterest[] */ public function setRelationshipInterests($relationshipInterests) { $this->relationshipInterests = $relationshipInterests; } /** * @return RelationshipInterest[] */ public function getRelationshipInterests() { return $this->relationshipInterests; } /** * @param RelationshipStatus[] */ public function setRelationshipStatuses($relationshipStatuses) { $this->relationshipStatuses = $relationshipStatuses; } /** * @return RelationshipStatus[] */ public function getRelationshipStatuses() { return $this->relationshipStatuses; } /** * @param Residence[] */ public function setResidences($residences) { $this->residences = $residences; } /** * @return Residence[] */ public function getResidences() { return $this->residences; } /** * @param string */ public function setResourceName($resourceName) { $this->resourceName = $resourceName; } /** * @return string */ public function getResourceName() { return $this->resourceName; } /** * @param SipAddress[] */ public function setSipAddresses($sipAddresses) { $this->sipAddresses = $sipAddresses; } /** * @return SipAddress[] */ public function getSipAddresses() { return $this->sipAddresses; } /** * @param Skill[] */ public function setSkills($skills) { $this->skills = $skills; } /** * @return Skill[] */ public function getSkills() { return $this->skills; } /** * @param Tagline[] */ public function setTaglines($taglines) { $this->taglines = $taglines; } /** * @return Tagline[] */ public function getTaglines() { return $this->taglines; } /** * @param Url[] */ public function setUrls($urls) { $this->urls = $urls; } /** * @return Url[] */ public function getUrls() { return $this->urls; } /** * @param UserDefined[] */ public function setUserDefined($userDefined) { $this->userDefined = $userDefined; } /** * @return UserDefined[] */ public function getUserDefined() { return $this->userDefined; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Person::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Person'); apiclient-services/src/PeopleService/Gender.php 0000644 00000004545 14721515320 0015616 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\PeopleService; class Gender extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $addressMeAs; /** * @var string */ public $formattedValue; protected $metadataType = \Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata::class; protected $metadataDataType = ''; /** * @var string */ public $value; /** * @param string */ public function setAddressMeAs($addressMeAs) { $this->addressMeAs = $addressMeAs; } /** * @return string */ public function getAddressMeAs() { return $this->addressMeAs; } /** * @param string */ public function setFormattedValue($formattedValue) { $this->formattedValue = $formattedValue; } /** * @return string */ public function getFormattedValue() { return $this->formattedValue; } /** * @param FieldMetadata */ public function setMetadata(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\FieldMetadata $metadata) { $this->metadata = $metadata; } /** * @return FieldMetadata */ public function getMetadata() { return $this->metadata; } /** * @param string */ public function setValue($value) { $this->value = $value; } /** * @return string */ public function getValue() { return $this->value; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\PeopleService\Gender::class, 'Google\\Site_Kit_Dependencies\\Google_Service_PeopleService_Gender'); apiclient-services/src/TagManager.php 0000644 00000072244 14721515320 0013654 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Client; /** * Service definition for TagManager (v2). * * <p> * This API allows clients to access and modify container and tag configuration.</p> * * <p> * For more information about this service, see the API * <a href="https://developers.google.com/tag-manager" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class TagManager extends \Google\Site_Kit_Dependencies\Google\Service { /** Delete your Google Tag Manager containers. */ const TAGMANAGER_DELETE_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.delete.containers"; /** Manage your Google Tag Manager container and its subcomponents, excluding versioning and publishing. */ const TAGMANAGER_EDIT_CONTAINERS = "https://www.googleapis.com/auth/tagmanager.edit.containers"; /** Manage your Google Tag Manager container versions. */ const TAGMANAGER_EDIT_CONTAINERVERSIONS = "https://www.googleapis.com/auth/tagmanager.edit.containerversions"; /** View and manage your Google Tag Manager accounts. */ const TAGMANAGER_MANAGE_ACCOUNTS = "https://www.googleapis.com/auth/tagmanager.manage.accounts"; /** Manage user permissions of your Google Tag Manager account and container. */ const TAGMANAGER_MANAGE_USERS = "https://www.googleapis.com/auth/tagmanager.manage.users"; /** Publish your Google Tag Manager container versions. */ const TAGMANAGER_PUBLISH = "https://www.googleapis.com/auth/tagmanager.publish"; /** View your Google Tag Manager container and its subcomponents. */ const TAGMANAGER_READONLY = "https://www.googleapis.com/auth/tagmanager.readonly"; public $accounts; public $accounts_containers; public $accounts_containers_destinations; public $accounts_containers_environments; public $accounts_containers_version_headers; public $accounts_containers_versions; public $accounts_containers_workspaces; public $accounts_containers_workspaces_built_in_variables; public $accounts_containers_workspaces_clients; public $accounts_containers_workspaces_folders; public $accounts_containers_workspaces_gtag_config; public $accounts_containers_workspaces_tags; public $accounts_containers_workspaces_templates; public $accounts_containers_workspaces_transformations; public $accounts_containers_workspaces_triggers; public $accounts_containers_workspaces_variables; public $accounts_containers_workspaces_zones; public $accounts_user_permissions; public $rootUrlTemplate; /** * Constructs the internal representation of the TagManager service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://tagmanager.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://tagmanager.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'tagmanager'; $this->accounts = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\Accounts($this, $this->serviceName, 'accounts', ['methods' => ['get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/accounts', 'httpMethod' => 'GET', 'parameters' => ['includeGoogleTags' => ['location' => 'query', 'type' => 'boolean'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainers($this, $this->serviceName, 'containers', ['methods' => ['combine' => ['path' => 'tagmanager/v2/{+path}:combine', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'allowUserPermissionFeatureUpdate' => ['location' => 'query', 'type' => 'boolean'], 'containerId' => ['location' => 'query', 'type' => 'string'], 'settingSource' => ['location' => 'query', 'type' => 'string']]], 'create' => ['path' => 'tagmanager/v2/{+parent}/containers', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/containers', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'lookup' => ['path' => 'tagmanager/v2/accounts/containers:lookup', 'httpMethod' => 'GET', 'parameters' => ['destinationId' => ['location' => 'query', 'type' => 'string']]], 'move_tag_id' => ['path' => 'tagmanager/v2/{+path}:move_tag_id', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'allowUserPermissionFeatureUpdate' => ['location' => 'query', 'type' => 'boolean'], 'copySettings' => ['location' => 'query', 'type' => 'boolean'], 'copyTermsOfService' => ['location' => 'query', 'type' => 'boolean'], 'copyUsers' => ['location' => 'query', 'type' => 'boolean'], 'tagId' => ['location' => 'query', 'type' => 'string'], 'tagName' => ['location' => 'query', 'type' => 'string']]], 'snippet' => ['path' => 'tagmanager/v2/{+path}:snippet', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_destinations = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersDestinations($this, $this->serviceName, 'destinations', ['methods' => ['get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'link' => ['path' => 'tagmanager/v2/{+parent}/destinations:link', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'allowUserPermissionFeatureUpdate' => ['location' => 'query', 'type' => 'boolean'], 'destinationId' => ['location' => 'query', 'type' => 'string']]], 'list' => ['path' => 'tagmanager/v2/{+parent}/destinations', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->accounts_containers_environments = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersEnvironments($this, $this->serviceName, 'environments', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/environments', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/environments', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'reauthorize' => ['path' => 'tagmanager/v2/{+path}:reauthorize', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_version_headers = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersVersionHeaders($this, $this->serviceName, 'version_headers', ['methods' => ['latest' => ['path' => 'tagmanager/v2/{+parent}/version_headers:latest', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/version_headers', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'includeDeleted' => ['location' => 'query', 'type' => 'boolean'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_versions = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersVersions($this, $this->serviceName, 'versions', ['methods' => ['delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'containerVersionId' => ['location' => 'query', 'type' => 'string']]], 'live' => ['path' => 'tagmanager/v2/{+parent}/versions:live', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'publish' => ['path' => 'tagmanager/v2/{+path}:publish', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'set_latest' => ['path' => 'tagmanager/v2/{+path}:set_latest', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'undelete' => ['path' => 'tagmanager/v2/{+path}:undelete', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspaces($this, $this->serviceName, 'workspaces', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/workspaces', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'create_version' => ['path' => 'tagmanager/v2/{+path}:create_version', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'getStatus' => ['path' => 'tagmanager/v2/{+path}/status', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/workspaces', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'quick_preview' => ['path' => 'tagmanager/v2/{+path}:quick_preview', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'resolve_conflict' => ['path' => 'tagmanager/v2/{+path}:resolve_conflict', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'sync' => ['path' => 'tagmanager/v2/{+path}:sync', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_built_in_variables = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesBuiltInVariables($this, $this->serviceName, 'built_in_variables', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/built_in_variables', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'type' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'type' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/built_in_variables', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'revert' => ['path' => 'tagmanager/v2/{+path}/built_in_variables:revert', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'type' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_clients = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesClients($this, $this->serviceName, 'clients', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/clients', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/clients', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'revert' => ['path' => 'tagmanager/v2/{+path}:revert', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_folders = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesFolders($this, $this->serviceName, 'folders', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/folders', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'entities' => ['path' => 'tagmanager/v2/{+path}:entities', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/folders', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'move_entities_to_folder' => ['path' => 'tagmanager/v2/{+path}:move_entities_to_folder', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'tagId' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'triggerId' => ['location' => 'query', 'type' => 'string', 'repeated' => \true], 'variableId' => ['location' => 'query', 'type' => 'string', 'repeated' => \true]]], 'revert' => ['path' => 'tagmanager/v2/{+path}:revert', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_gtag_config = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesGtagConfig($this, $this->serviceName, 'gtag_config', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/gtag_config', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/gtag_config', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_tags = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesTags($this, $this->serviceName, 'tags', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/tags', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/tags', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'revert' => ['path' => 'tagmanager/v2/{+path}:revert', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_templates = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesTemplates($this, $this->serviceName, 'templates', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/templates', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/templates', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'revert' => ['path' => 'tagmanager/v2/{+path}:revert', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_transformations = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesTransformations($this, $this->serviceName, 'transformations', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/transformations', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/transformations', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'revert' => ['path' => 'tagmanager/v2/{+path}:revert', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_triggers = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesTriggers($this, $this->serviceName, 'triggers', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/triggers', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/triggers', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'revert' => ['path' => 'tagmanager/v2/{+path}:revert', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_variables = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesVariables($this, $this->serviceName, 'variables', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/variables', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/variables', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'revert' => ['path' => 'tagmanager/v2/{+path}:revert', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_containers_workspaces_zones = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsContainersWorkspacesZones($this, $this->serviceName, 'zones', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/zones', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/zones', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'revert' => ['path' => 'tagmanager/v2/{+path}:revert', 'httpMethod' => 'POST', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'fingerprint' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts_user_permissions = new \Google\Site_Kit_Dependencies\Google\Service\TagManager\Resource\AccountsUserPermissions($this, $this->serviceName, 'user_permissions', ['methods' => ['create' => ['path' => 'tagmanager/v2/{+parent}/user_permissions', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'DELETE', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'GET', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'tagmanager/v2/{+parent}/user_permissions', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'update' => ['path' => 'tagmanager/v2/{+path}', 'httpMethod' => 'PUT', 'parameters' => ['path' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\TagManager::class, 'Google\\Site_Kit_Dependencies\\Google_Service_TagManager'); apiclient-services/src/GoogleAnalyticsAdmin.php 0000644 00000040350 14721515320 0015674 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Client; /** * Service definition for GoogleAnalyticsAdmin (v1beta). * * <p> * Manage properties in Google Analytics. Warning: Creating multiple Customer * Applications, Accounts, or Projects to simulate or act as a single Customer * Application, Account, or Project (respectively) or to circumvent Service- * specific usage limits or quotas is a direct violation of Google Cloud * Platform Terms of Service as well as Google APIs Terms of Service. These * actions can result in immediate termination of your GCP project(s) without * any warning.</p> * * <p> * For more information about this service, see the API * <a href="http://code.google.com/apis/analytics/docs/mgmt/home.html" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class GoogleAnalyticsAdmin extends \Google\Site_Kit_Dependencies\Google\Service { /** Edit Google Analytics management entities. */ const ANALYTICS_EDIT = "https://www.googleapis.com/auth/analytics.edit"; /** See and download your Google Analytics data. */ const ANALYTICS_READONLY = "https://www.googleapis.com/auth/analytics.readonly"; public $accountSummaries; public $accounts; public $properties; public $properties_conversionEvents; public $properties_customDimensions; public $properties_customMetrics; public $properties_dataStreams; public $properties_dataStreams_measurementProtocolSecrets; public $properties_firebaseLinks; public $properties_googleAdsLinks; public $properties_keyEvents; public $rootUrlTemplate; /** * Constructs the internal representation of the GoogleAnalyticsAdmin service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://analyticsadmin.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://analyticsadmin.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1beta'; $this->serviceName = 'analyticsadmin'; $this->accountSummaries = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\AccountSummaries($this, $this->serviceName, 'accountSummaries', ['methods' => ['list' => ['path' => 'v1beta/accountSummaries', 'httpMethod' => 'GET', 'parameters' => ['pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->accounts = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\Accounts($this, $this->serviceName, 'accounts', ['methods' => ['delete' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'DELETE', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'getDataSharingSettings' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/accounts', 'httpMethod' => 'GET', 'parameters' => ['pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string'], 'showDeleted' => ['location' => 'query', 'type' => 'boolean']]], 'patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]], 'provisionAccountTicket' => ['path' => 'v1beta/accounts:provisionAccountTicket', 'httpMethod' => 'POST', 'parameters' => []], 'runAccessReport' => ['path' => 'v1beta/{+entity}:runAccessReport', 'httpMethod' => 'POST', 'parameters' => ['entity' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'searchChangeHistoryEvents' => ['path' => 'v1beta/{+account}:searchChangeHistoryEvents', 'httpMethod' => 'POST', 'parameters' => ['account' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->properties = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\Properties($this, $this->serviceName, 'properties', ['methods' => ['acknowledgeUserDataCollection' => ['path' => 'v1beta/{+property}:acknowledgeUserDataCollection', 'httpMethod' => 'POST', 'parameters' => ['property' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'create' => ['path' => 'v1beta/properties', 'httpMethod' => 'POST', 'parameters' => []], 'delete' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'DELETE', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'getDataRetentionSettings' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/properties', 'httpMethod' => 'GET', 'parameters' => ['filter' => ['location' => 'query', 'type' => 'string'], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string'], 'showDeleted' => ['location' => 'query', 'type' => 'boolean']]], 'patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]], 'runAccessReport' => ['path' => 'v1beta/{+entity}:runAccessReport', 'httpMethod' => 'POST', 'parameters' => ['entity' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'updateDataRetentionSettings' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->properties_conversionEvents = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesConversionEvents($this, $this->serviceName, 'conversionEvents', ['methods' => ['create' => ['path' => 'v1beta/{+parent}/conversionEvents', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'DELETE', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/{+parent}/conversionEvents', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->properties_customDimensions = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesCustomDimensions($this, $this->serviceName, 'customDimensions', ['methods' => ['archive' => ['path' => 'v1beta/{+name}:archive', 'httpMethod' => 'POST', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'create' => ['path' => 'v1beta/{+parent}/customDimensions', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/{+parent}/customDimensions', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->properties_customMetrics = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesCustomMetrics($this, $this->serviceName, 'customMetrics', ['methods' => ['archive' => ['path' => 'v1beta/{+name}:archive', 'httpMethod' => 'POST', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'create' => ['path' => 'v1beta/{+parent}/customMetrics', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/{+parent}/customMetrics', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->properties_dataStreams = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesDataStreams($this, $this->serviceName, 'dataStreams', ['methods' => ['create' => ['path' => 'v1beta/{+parent}/dataStreams', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'DELETE', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/{+parent}/dataStreams', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->properties_dataStreams_measurementProtocolSecrets = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesDataStreamsMeasurementProtocolSecrets($this, $this->serviceName, 'measurementProtocolSecrets', ['methods' => ['create' => ['path' => 'v1beta/{+parent}/measurementProtocolSecrets', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'DELETE', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/{+parent}/measurementProtocolSecrets', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->properties_firebaseLinks = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesFirebaseLinks($this, $this->serviceName, 'firebaseLinks', ['methods' => ['create' => ['path' => 'v1beta/{+parent}/firebaseLinks', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'DELETE', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/{+parent}/firebaseLinks', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->properties_googleAdsLinks = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesGoogleAdsLinks($this, $this->serviceName, 'googleAdsLinks', ['methods' => ['create' => ['path' => 'v1beta/{+parent}/googleAdsLinks', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'DELETE', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/{+parent}/googleAdsLinks', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->properties_keyEvents = new \Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin\Resource\PropertiesKeyEvents($this, $this->serviceName, 'keyEvents', ['methods' => ['create' => ['path' => 'v1beta/{+parent}/keyEvents', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'delete' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'DELETE', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1beta/{+parent}/keyEvents', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\GoogleAnalyticsAdmin::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin'); apiclient-services/autoload.php 0000644 00000002707 14721515320 0012664 0 ustar 00 <?php namespace Google\Site_Kit_Dependencies; // For older (pre-2.7.2) verions of google/apiclient if (\file_exists(__DIR__ . '/../apiclient/src/Google/Client.php') && !\class_exists('Google\\Site_Kit_Dependencies\\Google_Client', \false)) { require_once __DIR__ . '/../apiclient/src/Google/Client.php'; if (\defined('Google_Client::LIBVER') && \version_compare(\Google\Site_Kit_Dependencies\Google_Client::LIBVER, '2.7.2', '<=')) { $servicesClassMap = ['Google\\Site_Kit_Dependencies\\Google\\Client' => 'Google_Client', 'Google\\Site_Kit_Dependencies\\Google\\Service' => 'Google_Service', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Resource' => 'Google_Service_Resource', 'Google\\Site_Kit_Dependencies\\Google\\Model' => 'Google_Model', 'Google\\Site_Kit_Dependencies\\Google\\Collection' => 'Google_Collection']; foreach ($servicesClassMap as $alias => $class) { \class_alias($class, $alias); } } } \spl_autoload_register(function ($class) { if (0 === \strpos($class, 'Google_Service_')) { // Autoload the new class, which will also create an alias for the // old class by changing underscores to namespaces: // Google_Service_Speech_Resource_Operations // => Google\Service\Speech\Resource\Operations $classExists = \class_exists($newClass = \str_replace('_', '\\', $class)); if ($classExists) { return \true; } } }, \true, \true); apiclient/src/Service/Exception.php 0000644 00000004131 14721515320 0013351 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Exception as GoogleException; class Exception extends \Google\Site_Kit_Dependencies\Google\Exception { /** * Optional list of errors returned in a JSON body of an HTTP error response. */ protected $errors = []; /** * Override default constructor to add the ability to set $errors and a retry * map. * * @param string $message * @param int $code * @param Exception|null $previous * @param array<array<string,string>>|null $errors List of errors returned in an HTTP * response or null. Defaults to []. */ public function __construct($message, $code = 0, \Google\Site_Kit_Dependencies\Google\Service\Exception $previous = null, $errors = []) { if (\version_compare(\PHP_VERSION, '5.3.0') >= 0) { parent::__construct($message, $code, $previous); } else { parent::__construct($message, $code); } $this->errors = $errors; } /** * An example of the possible errors returned. * * [ * { * "domain": "global", * "reason": "authError", * "message": "Invalid Credentials", * "locationType": "header", * "location": "Authorization", * } * ] * * @return array<array<string,string>>|null List of errors returned in an HTTP response or null. */ public function getErrors() { return $this->errors; } } apiclient/src/Service/Resource.php 0000644 00000024716 14721515320 0013215 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Exception as GoogleException; use Google\Site_Kit_Dependencies\Google\Http\MediaFileUpload; use Google\Site_Kit_Dependencies\Google\Model; use Google\Site_Kit_Dependencies\Google\Utils\UriTemplate; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request; /** * Implements the actual methods/resources of the discovered Google API using magic function * calling overloading (__call()), which on call will see if the method name (plus.activities.list) * is available in this service, and if so construct an apiHttpRequest representing it. * */ class Resource { // Valid query parameters that work, but don't appear in discovery. private $stackParameters = ['alt' => ['type' => 'string', 'location' => 'query'], 'fields' => ['type' => 'string', 'location' => 'query'], 'trace' => ['type' => 'string', 'location' => 'query'], 'userIp' => ['type' => 'string', 'location' => 'query'], 'quotaUser' => ['type' => 'string', 'location' => 'query'], 'data' => ['type' => 'string', 'location' => 'body'], 'mimeType' => ['type' => 'string', 'location' => 'header'], 'uploadType' => ['type' => 'string', 'location' => 'query'], 'mediaUpload' => ['type' => 'complex', 'location' => 'query'], 'prettyPrint' => ['type' => 'string', 'location' => 'query']]; /** @var string $rootUrl */ private $rootUrl; /** @var \Google\Client $client */ private $client; /** @var string $serviceName */ private $serviceName; /** @var string $servicePath */ private $servicePath; /** @var string $resourceName */ private $resourceName; /** @var array $methods */ private $methods; public function __construct($service, $serviceName, $resourceName, $resource) { $this->rootUrl = $service->rootUrl; $this->client = $service->getClient(); $this->servicePath = $service->servicePath; $this->serviceName = $serviceName; $this->resourceName = $resourceName; $this->methods = \is_array($resource) && isset($resource['methods']) ? $resource['methods'] : [$resourceName => $resource]; } /** * TODO: This function needs simplifying. * * @template T * @param string $name * @param array $arguments * @param class-string<T> $expectedClass - optional, the expected class name * @return mixed|T|ResponseInterface|RequestInterface * @throws \Google\Exception */ public function call($name, $arguments, $expectedClass = null) { if (!isset($this->methods[$name])) { $this->client->getLogger()->error('Service method unknown', ['service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name]); throw new \Google\Site_Kit_Dependencies\Google\Exception("Unknown function: " . "{$this->serviceName}->{$this->resourceName}->{$name}()"); } $method = $this->methods[$name]; $parameters = $arguments[0]; // postBody is a special case since it's not defined in the discovery // document as parameter, but we abuse the param entry for storing it. $postBody = null; if (isset($parameters['postBody'])) { if ($parameters['postBody'] instanceof \Google\Site_Kit_Dependencies\Google\Model) { // In the cases the post body is an existing object, we want // to use the smart method to create a simple object for // for JSONification. $parameters['postBody'] = $parameters['postBody']->toSimpleObject(); } elseif (\is_object($parameters['postBody'])) { // If the post body is another kind of object, we will try and // wrangle it into a sensible format. $parameters['postBody'] = $this->convertToArrayAndStripNulls($parameters['postBody']); } $postBody = (array) $parameters['postBody']; unset($parameters['postBody']); } // TODO: optParams here probably should have been // handled already - this may well be redundant code. if (isset($parameters['optParams'])) { $optParams = $parameters['optParams']; unset($parameters['optParams']); $parameters = \array_merge($parameters, $optParams); } if (!isset($method['parameters'])) { $method['parameters'] = []; } $method['parameters'] = \array_merge($this->stackParameters, $method['parameters']); foreach ($parameters as $key => $val) { if ($key != 'postBody' && !isset($method['parameters'][$key])) { $this->client->getLogger()->error('Service parameter unknown', ['service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'parameter' => $key]); throw new \Google\Site_Kit_Dependencies\Google\Exception("({$name}) unknown parameter: '{$key}'"); } } foreach ($method['parameters'] as $paramName => $paramSpec) { if (isset($paramSpec['required']) && $paramSpec['required'] && !isset($parameters[$paramName])) { $this->client->getLogger()->error('Service parameter missing', ['service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'parameter' => $paramName]); throw new \Google\Site_Kit_Dependencies\Google\Exception("({$name}) missing required param: '{$paramName}'"); } if (isset($parameters[$paramName])) { $value = $parameters[$paramName]; $parameters[$paramName] = $paramSpec; $parameters[$paramName]['value'] = $value; unset($parameters[$paramName]['required']); } else { // Ensure we don't pass nulls. unset($parameters[$paramName]); } } $this->client->getLogger()->info('Service Call', ['service' => $this->serviceName, 'resource' => $this->resourceName, 'method' => $name, 'arguments' => $parameters]); // build the service uri $url = $this->createRequestUri($method['path'], $parameters); // NOTE: because we're creating the request by hand, // and because the service has a rootUrl property // the "base_uri" of the Http Client is not accounted for $request = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request($method['httpMethod'], $url, $postBody ? ['content-type' => 'application/json'] : [], $postBody ? \json_encode($postBody) : ''); // support uploads if (isset($parameters['data'])) { $mimeType = isset($parameters['mimeType']) ? $parameters['mimeType']['value'] : 'application/octet-stream'; $data = $parameters['data']['value']; $upload = new \Google\Site_Kit_Dependencies\Google\Http\MediaFileUpload($this->client, $request, $mimeType, $data); // pull down the modified request $request = $upload->getRequest(); } // if this is a media type, we will return the raw response // rather than using an expected class if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') { $expectedClass = null; } // if the client is marked for deferring, rather than // execute the request, return the response if ($this->client->shouldDefer()) { // @TODO find a better way to do this $request = $request->withHeader('X-Php-Expected-Class', $expectedClass); return $request; } return $this->client->execute($request, $expectedClass); } protected function convertToArrayAndStripNulls($o) { $o = (array) $o; foreach ($o as $k => $v) { if ($v === null) { unset($o[$k]); } elseif (\is_object($v) || \is_array($v)) { $o[$k] = $this->convertToArrayAndStripNulls($o[$k]); } } return $o; } /** * Parse/expand request parameters and create a fully qualified * request uri. * @static * @param string $restPath * @param array $params * @return string $requestUrl */ public function createRequestUri($restPath, $params) { // Override the default servicePath address if the $restPath use a / if ('/' == \substr($restPath, 0, 1)) { $requestUrl = \substr($restPath, 1); } else { $requestUrl = $this->servicePath . $restPath; } // code for leading slash if ($this->rootUrl) { if ('/' !== \substr($this->rootUrl, -1) && '/' !== \substr($requestUrl, 0, 1)) { $requestUrl = '/' . $requestUrl; } $requestUrl = $this->rootUrl . $requestUrl; } $uriTemplateVars = []; $queryVars = []; foreach ($params as $paramName => $paramSpec) { if ($paramSpec['type'] == 'boolean') { $paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false'; } if ($paramSpec['location'] == 'path') { $uriTemplateVars[$paramName] = $paramSpec['value']; } elseif ($paramSpec['location'] == 'query') { if (\is_array($paramSpec['value'])) { foreach ($paramSpec['value'] as $value) { $queryVars[] = $paramName . '=' . \rawurlencode(\rawurldecode($value)); } } else { $queryVars[] = $paramName . '=' . \rawurlencode(\rawurldecode($paramSpec['value'])); } } } if (\count($uriTemplateVars)) { $uriTemplateParser = new \Google\Site_Kit_Dependencies\Google\Utils\UriTemplate(); $requestUrl = $uriTemplateParser->parse($requestUrl, $uriTemplateVars); } if (\count($queryVars)) { $requestUrl .= '?' . \implode('&', $queryVars); } return $requestUrl; } } apiclient/src/AuthHandler/Guzzle7AuthHandler.php 0000644 00000001442 14721515320 0015703 0 ustar 00 <?php /** * Copyright 2020 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\AuthHandler; /** * This supports Guzzle 7 */ class Guzzle7AuthHandler extends \Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle6AuthHandler { } apiclient/src/AuthHandler/Guzzle6AuthHandler.php 0000644 00000007641 14721515320 0015711 0 ustar 00 <?php namespace Google\Site_Kit_Dependencies\Google\AuthHandler; use Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader; use Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\Google\Auth\Middleware\AuthTokenMiddleware; use Google\Site_Kit_Dependencies\Google\Auth\Middleware\ScopedAccessTokenMiddleware; use Google\Site_Kit_Dependencies\Google\Auth\Middleware\SimpleMiddleware; use Google\Site_Kit_Dependencies\GuzzleHttp\Client; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; /** * This supports Guzzle 6 */ class Guzzle6AuthHandler { protected $cache; protected $cacheConfig; public function __construct(\Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null, array $cacheConfig = []) { $this->cache = $cache; $this->cacheConfig = $cacheConfig; } public function attachCredentials(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http, \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader $credentials, callable $tokenCallback = null) { // use the provided cache if ($this->cache) { $credentials = new \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache($credentials, $this->cacheConfig, $this->cache); } return $this->attachCredentialsCache($http, $credentials, $tokenCallback); } public function attachCredentialsCache(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http, \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache $credentials, callable $tokenCallback = null) { // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error // bubbles up. $authHttp = $this->createAuthHttp($http); $authHttpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build($authHttp); $middleware = new \Google\Site_Kit_Dependencies\Google\Auth\Middleware\AuthTokenMiddleware($credentials, $authHttpHandler, $tokenCallback); $config = $http->getConfig(); $config['handler']->remove('google_auth'); $config['handler']->push($middleware, 'google_auth'); $config['auth'] = 'google_auth'; $http = new \Google\Site_Kit_Dependencies\GuzzleHttp\Client($config); return $http; } public function attachToken(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http, array $token, array $scopes) { $tokenFunc = function ($scopes) use($token) { return $token['access_token']; }; $middleware = new \Google\Site_Kit_Dependencies\Google\Auth\Middleware\ScopedAccessTokenMiddleware($tokenFunc, $scopes, $this->cacheConfig, $this->cache); $config = $http->getConfig(); $config['handler']->remove('google_auth'); $config['handler']->push($middleware, 'google_auth'); $config['auth'] = 'scoped'; $http = new \Google\Site_Kit_Dependencies\GuzzleHttp\Client($config); return $http; } public function attachKey(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http, $key) { $middleware = new \Google\Site_Kit_Dependencies\Google\Auth\Middleware\SimpleMiddleware(['key' => $key]); $config = $http->getConfig(); $config['handler']->remove('google_auth'); $config['handler']->push($middleware, 'google_auth'); $config['auth'] = 'simple'; $http = new \Google\Site_Kit_Dependencies\GuzzleHttp\Client($config); return $http; } private function createAuthHttp(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Client(['http_errors' => \true] + $http->getConfig()); } } apiclient/src/AuthHandler/Guzzle5AuthHandler.php 0000644 00000007056 14721515320 0015710 0 ustar 00 <?php namespace Google\Site_Kit_Dependencies\Google\AuthHandler; use Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader; use Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\Google\Auth\Subscriber\AuthTokenSubscriber; use Google\Site_Kit_Dependencies\Google\Auth\Subscriber\ScopedAccessTokenSubscriber; use Google\Site_Kit_Dependencies\Google\Auth\Subscriber\SimpleSubscriber; use Google\Site_Kit_Dependencies\GuzzleHttp\Client; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; /** * This supports Guzzle 5 */ class Guzzle5AuthHandler { protected $cache; protected $cacheConfig; public function __construct(\Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null, array $cacheConfig = []) { $this->cache = $cache; $this->cacheConfig = $cacheConfig; } public function attachCredentials(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http, \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader $credentials, callable $tokenCallback = null) { // use the provided cache if ($this->cache) { $credentials = new \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache($credentials, $this->cacheConfig, $this->cache); } return $this->attachCredentialsCache($http, $credentials, $tokenCallback); } public function attachCredentialsCache(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http, \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache $credentials, callable $tokenCallback = null) { // if we end up needing to make an HTTP request to retrieve credentials, we // can use our existing one, but we need to throw exceptions so the error // bubbles up. $authHttp = $this->createAuthHttp($http); $authHttpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build($authHttp); $subscriber = new \Google\Site_Kit_Dependencies\Google\Auth\Subscriber\AuthTokenSubscriber($credentials, $authHttpHandler, $tokenCallback); $http->setDefaultOption('auth', 'google_auth'); $http->getEmitter()->attach($subscriber); return $http; } public function attachToken(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http, array $token, array $scopes) { $tokenFunc = function ($scopes) use($token) { return $token['access_token']; }; $subscriber = new \Google\Site_Kit_Dependencies\Google\Auth\Subscriber\ScopedAccessTokenSubscriber($tokenFunc, $scopes, $this->cacheConfig, $this->cache); $http->setDefaultOption('auth', 'scoped'); $http->getEmitter()->attach($subscriber); return $http; } public function attachKey(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http, $key) { $subscriber = new \Google\Site_Kit_Dependencies\Google\Auth\Subscriber\SimpleSubscriber(['key' => $key]); $http->setDefaultOption('auth', 'simple'); $http->getEmitter()->attach($subscriber); return $http; } private function createAuthHttp(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Client(['base_url' => $http->getBaseUrl(), 'defaults' => ['exceptions' => \true, 'verify' => $http->getDefaultOption('verify'), 'proxy' => $http->getDefaultOption('proxy')]]); } } apiclient/src/AuthHandler/AuthHandlerFactory.php 0000644 00000004041 14721515320 0015741 0 ustar 00 <?php /** * Copyright 2015 Google Inc. All Rights Reserved. * * 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. */ namespace Google\Site_Kit_Dependencies\Google\AuthHandler; use Exception; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; class AuthHandlerFactory { /** * Builds out a default http handler for the installed version of guzzle. * * @return Guzzle5AuthHandler|Guzzle6AuthHandler|Guzzle7AuthHandler * @throws Exception */ public static function build($cache = null, array $cacheConfig = []) { $guzzleVersion = null; if (\defined('\\Google\\Site_Kit_Dependencies\\GuzzleHttp\\ClientInterface::MAJOR_VERSION')) { $guzzleVersion = \Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface::MAJOR_VERSION; } elseif (\defined('\\Google\\Site_Kit_Dependencies\\GuzzleHttp\\ClientInterface::VERSION')) { $guzzleVersion = (int) \substr(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface::VERSION, 0, 1); } switch ($guzzleVersion) { case 5: return new \Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle5AuthHandler($cache, $cacheConfig); case 6: return new \Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle6AuthHandler($cache, $cacheConfig); case 7: return new \Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle7AuthHandler($cache, $cacheConfig); default: throw new \Exception('Version not supported'); } } } apiclient/src/Exception.php 0000644 00000001321 14721515320 0011747 0 ustar 00 <?php /* * Copyright 2013 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. */ namespace Google\Site_Kit_Dependencies\Google; use Exception as BaseException; class Exception extends \Exception { } apiclient/src/Service.php 0000644 00000003750 14721515320 0011421 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google; use Google\Site_Kit_Dependencies\Google\Http\Batch; use TypeError; class Service { public $batchPath; public $rootUrl; public $version; public $servicePath; public $serviceName; public $availableScopes; public $resource; private $client; public function __construct($clientOrConfig = []) { if ($clientOrConfig instanceof \Google\Site_Kit_Dependencies\Google\Client) { $this->client = $clientOrConfig; } elseif (\is_array($clientOrConfig)) { $this->client = new \Google\Site_Kit_Dependencies\Google\Client($clientOrConfig ?: []); } else { $errorMessage = 'Google\\Site_Kit_Dependencies\\constructor must be array or instance of Google\\Client'; if (\class_exists('TypeError')) { throw new \TypeError($errorMessage); } \trigger_error($errorMessage, \E_USER_ERROR); } } /** * Return the associated Google\Client class. * @return \Google\Client */ public function getClient() { return $this->client; } /** * Create a new HTTP Batch handler for this service * * @return Batch */ public function createBatch() { return new \Google\Site_Kit_Dependencies\Google\Http\Batch($this->client, \false, $this->rootUrl, $this->batchPath); } } apiclient/src/aliases.php 0000644 00000012002 14721515320 0011430 0 ustar 00 <?php namespace Google\Site_Kit_Dependencies; if (\class_exists('Google\\Site_Kit_Dependencies\\Google_Client', \false)) { // Prevent error with preloading in PHP 7.4 // @see https://github.com/googleapis/google-api-php-client/issues/1976 return; } $classMap = ['Google\\Site_Kit_Dependencies\\Google\\Client' => 'Google\Site_Kit_Dependencies\Google_Client', 'Google\\Site_Kit_Dependencies\\Google\\Service' => 'Google\Site_Kit_Dependencies\Google_Service', 'Google\\Site_Kit_Dependencies\\Google\\AccessToken\\Revoke' => 'Google\Site_Kit_Dependencies\Google_AccessToken_Revoke', 'Google\\Site_Kit_Dependencies\\Google\\AccessToken\\Verify' => 'Google\Site_Kit_Dependencies\Google_AccessToken_Verify', 'Google\\Site_Kit_Dependencies\\Google\\Model' => 'Google\Site_Kit_Dependencies\Google_Model', 'Google\\Site_Kit_Dependencies\\Google\\Utils\\UriTemplate' => 'Google\Site_Kit_Dependencies\Google_Utils_UriTemplate', 'Google\\Site_Kit_Dependencies\\Google\\AuthHandler\\Guzzle6AuthHandler' => 'Google\Site_Kit_Dependencies\Google_AuthHandler_Guzzle6AuthHandler', 'Google\\Site_Kit_Dependencies\\Google\\AuthHandler\\Guzzle7AuthHandler' => 'Google\Site_Kit_Dependencies\Google_AuthHandler_Guzzle7AuthHandler', 'Google\\Site_Kit_Dependencies\\Google\\AuthHandler\\Guzzle5AuthHandler' => 'Google\Site_Kit_Dependencies\Google_AuthHandler_Guzzle5AuthHandler', 'Google\\Site_Kit_Dependencies\\Google\\AuthHandler\\AuthHandlerFactory' => 'Google\Site_Kit_Dependencies\Google_AuthHandler_AuthHandlerFactory', 'Google\\Site_Kit_Dependencies\\Google\\Http\\Batch' => 'Google\Site_Kit_Dependencies\Google_Http_Batch', 'Google\\Site_Kit_Dependencies\\Google\\Http\\MediaFileUpload' => 'Google\Site_Kit_Dependencies\Google_Http_MediaFileUpload', 'Google\\Site_Kit_Dependencies\\Google\\Http\\REST' => 'Google\Site_Kit_Dependencies\Google_Http_REST', 'Google\\Site_Kit_Dependencies\\Google\\Task\\Retryable' => 'Google\Site_Kit_Dependencies\Google_Task_Retryable', 'Google\\Site_Kit_Dependencies\\Google\\Task\\Exception' => 'Google\Site_Kit_Dependencies\Google_Task_Exception', 'Google\\Site_Kit_Dependencies\\Google\\Task\\Runner' => 'Google\Site_Kit_Dependencies\Google_Task_Runner', 'Google\\Site_Kit_Dependencies\\Google\\Collection' => 'Google\Site_Kit_Dependencies\Google_Collection', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Exception' => 'Google\Site_Kit_Dependencies\Google_Service_Exception', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Resource' => 'Google\Site_Kit_Dependencies\Google_Service_Resource', 'Google\\Site_Kit_Dependencies\\Google\\Exception' => 'Google\Site_Kit_Dependencies\Google_Exception']; foreach ($classMap as $class => $alias) { \class_alias($class, $alias); } /** * This class needs to be defined explicitly as scripts must be recognized by * the autoloader. */ class Google_Task_Composer extends \Google\Site_Kit_Dependencies\Google\Task\Composer { } /** @phpstan-ignore-next-line */ if (\false) { class Google_AccessToken_Revoke extends \Google\Site_Kit_Dependencies\Google\AccessToken\Revoke { } class Google_AccessToken_Verify extends \Google\Site_Kit_Dependencies\Google\AccessToken\Verify { } class Google_AuthHandler_AuthHandlerFactory extends \Google\Site_Kit_Dependencies\Google\AuthHandler\AuthHandlerFactory { } class Google_AuthHandler_Guzzle5AuthHandler extends \Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle5AuthHandler { } class Google_AuthHandler_Guzzle6AuthHandler extends \Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle6AuthHandler { } class Google_AuthHandler_Guzzle7AuthHandler extends \Google\Site_Kit_Dependencies\Google\AuthHandler\Guzzle7AuthHandler { } class Google_Client extends \Google\Site_Kit_Dependencies\Google\Client { } class Google_Collection extends \Google\Site_Kit_Dependencies\Google\Collection { } class Google_Exception extends \Google\Site_Kit_Dependencies\Google\Exception { } class Google_Http_Batch extends \Google\Site_Kit_Dependencies\Google\Http\Batch { } class Google_Http_MediaFileUpload extends \Google\Site_Kit_Dependencies\Google\Http\MediaFileUpload { } class Google_Http_REST extends \Google\Site_Kit_Dependencies\Google\Http\REST { } class Google_Model extends \Google\Site_Kit_Dependencies\Google\Model { } class Google_Service extends \Google\Site_Kit_Dependencies\Google\Service { } class Google_Service_Exception extends \Google\Site_Kit_Dependencies\Google\Service\Exception { } class Google_Service_Resource extends \Google\Site_Kit_Dependencies\Google\Service\Resource { } class Google_Task_Exception extends \Google\Site_Kit_Dependencies\Google\Task\Exception { } interface Google_Task_Retryable extends \Google\Site_Kit_Dependencies\Google\Task\Retryable { } class Google_Task_Runner extends \Google\Site_Kit_Dependencies\Google\Task\Runner { } class Google_Utils_UriTemplate extends \Google\Site_Kit_Dependencies\Google\Utils\UriTemplate { } } apiclient/src/Task/Retryable.php 0000644 00000001414 14721515320 0012647 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Task; /** * Interface for checking how many times a given task can be retried following * a failure. */ interface Retryable { } apiclient/src/Task/Runner.php 0000644 00000017672 14721515320 0012204 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Task; use Google\Site_Kit_Dependencies\Google\Service\Exception as GoogleServiceException; use Google\Site_Kit_Dependencies\Google\Task\Exception as GoogleTaskException; /** * A task runner with exponential backoff support. * * @see https://developers.google.com/drive/web/handle-errors#implementing_exponential_backoff */ class Runner { const TASK_RETRY_NEVER = 0; const TASK_RETRY_ONCE = 1; const TASK_RETRY_ALWAYS = -1; /** * @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 callable $action The task to run and possibly retry. */ private $action; /** * @var array $arguments The task arguments. */ private $arguments; /** * @var array $retryMap Map of errors with retry counts. */ protected $retryMap = [ '500' => self::TASK_RETRY_ALWAYS, '503' => self::TASK_RETRY_ALWAYS, 'rateLimitExceeded' => self::TASK_RETRY_ALWAYS, 'userRateLimitExceeded' => self::TASK_RETRY_ALWAYS, 6 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_RESOLVE_HOST 7 => self::TASK_RETRY_ALWAYS, // CURLE_COULDNT_CONNECT 28 => self::TASK_RETRY_ALWAYS, // CURLE_OPERATION_TIMEOUTED 35 => self::TASK_RETRY_ALWAYS, // CURLE_SSL_CONNECT_ERROR 52 => self::TASK_RETRY_ALWAYS, // CURLE_GOT_NOTHING 'lighthouseError' => self::TASK_RETRY_NEVER, ]; /** * Creates a new task runner with exponential backoff support. * * @param array $config The task runner config * @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 */ // @phpstan-ignore-next-line public function __construct($config, $name, $action, array $arguments = []) { if (isset($config['initial_delay'])) { if ($config['initial_delay'] < 0) { throw new \Google\Site_Kit_Dependencies\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\Site_Kit_Dependencies\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\Site_Kit_Dependencies\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\Site_Kit_Dependencies\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\Site_Kit_Dependencies\Google\Task\Exception('Task configuration `retries` must not be negative.'); } $this->maxAttempts += $config['retries']; } if (!\is_callable($action)) { throw new \Google\Site_Kit_Dependencies\Google\Task\Exception('Task argument `$action` must be a valid callable.'); } $this->action = $action; $this->arguments = $arguments; } /** * Checks if a retry can be attempted. * * @return boolean */ public function canAttempt() { return $this->attempts < $this->maxAttempts; } /** * Runs the task and (if applicable) automatically retries when errors occur. * * @return mixed * @throws \Google\Service\Exception 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\Site_Kit_Dependencies\Google\Service\Exception $exception) { $allowedRetries = $this->allowedRetries($exception->getCode(), $exception->getErrors()); if (!$this->canAttempt() || !$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->canAttempt()) { 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(); \usleep((int) ($delay * 1000000)); } /** * Gets the delay (in seconds) for the current backoff period. * * @return int */ 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; } /** * 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($code, $errors = []) { if (isset($this->retryMap[$code])) { return $this->retryMap[$code]; } if (!empty($errors) && isset($errors[0]['reason'], $this->retryMap[$errors[0]['reason']])) { return $this->retryMap[$errors[0]['reason']]; } return 0; } public function setRetryMap($retryMap) { $this->retryMap = $retryMap; } } apiclient/src/Task/Exception.php 0000644 00000001440 14721515320 0012653 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Task; use Google\Site_Kit_Dependencies\Google\Exception as GoogleException; class Exception extends \Google\Site_Kit_Dependencies\Google\Exception { } apiclient/src/Task/Composer.php 0000644 00000007112 14721515320 0012506 0 ustar 00 <?php /* * Copyright 2020 Google LLC * * 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. */ namespace Google\Site_Kit_Dependencies\Google\Task; use Google\Site_Kit_Dependencies\Composer\Script\Event; use InvalidArgumentException; use Google\Site_Kit_Dependencies\Symfony\Component\Filesystem\Filesystem; use Google\Site_Kit_Dependencies\Symfony\Component\Finder\Finder; class Composer { /** * @param Event $event Composer event passed in for any script method * @param Filesystem $filesystem Optional. Used for testing. */ public static function cleanup(\Google\Site_Kit_Dependencies\Composer\Script\Event $event, \Google\Site_Kit_Dependencies\Symfony\Component\Filesystem\Filesystem $filesystem = null) { $composer = $event->getComposer(); $extra = $composer->getPackage()->getExtra(); $servicesToKeep = isset($extra['google/apiclient-services']) ? $extra['google/apiclient-services'] : []; if ($servicesToKeep) { $vendorDir = $composer->getConfig()->get('vendor-dir'); $serviceDir = \sprintf('%s/google/apiclient-services/src/Google/Service', $vendorDir); if (!\is_dir($serviceDir)) { // path for google/apiclient-services >= 0.200.0 $serviceDir = \sprintf('%s/google/apiclient-services/src', $vendorDir); } self::verifyServicesToKeep($serviceDir, $servicesToKeep); $finder = self::getServicesToRemove($serviceDir, $servicesToKeep); $filesystem = $filesystem ?: new \Google\Site_Kit_Dependencies\Symfony\Component\Filesystem\Filesystem(); if (0 !== ($count = \count($finder))) { $event->getIO()->write(\sprintf('Removing %s google services', $count)); foreach ($finder as $file) { $realpath = $file->getRealPath(); $filesystem->remove($realpath); $filesystem->remove($realpath . '.php'); } } } } /** * @throws InvalidArgumentException when the service doesn't exist */ private static function verifyServicesToKeep($serviceDir, array $servicesToKeep) { $finder = (new \Google\Site_Kit_Dependencies\Symfony\Component\Finder\Finder())->directories()->depth('== 0'); foreach ($servicesToKeep as $service) { if (!\preg_match('/^[a-zA-Z0-9]*$/', $service)) { throw new \InvalidArgumentException(\sprintf('Invalid Google service name "%s"', $service)); } try { $finder->in($serviceDir . '/' . $service); } catch (\InvalidArgumentException $e) { throw new \InvalidArgumentException(\sprintf('Google service "%s" does not exist or was removed previously', $service)); } } } private static function getServicesToRemove($serviceDir, array $servicesToKeep) { // find all files in the current directory return (new \Google\Site_Kit_Dependencies\Symfony\Component\Finder\Finder())->directories()->depth('== 0')->in($serviceDir)->exclude($servicesToKeep); } } apiclient/src/Collection.php 0000644 00000005774 14721515320 0012124 0 ustar 00 <?php namespace Google\Site_Kit_Dependencies\Google; /** * Extension to the regular Google\Model that automatically * exposes the items array for iteration, so you can just * iterate over the object rather than a reference inside. */ class Collection extends \Google\Site_Kit_Dependencies\Google\Model implements \Iterator, \Countable { protected $collection_key = 'items'; /** @return void */ #[\ReturnTypeWillChange] public function rewind() { if (isset($this->{$this->collection_key}) && \is_array($this->{$this->collection_key})) { \reset($this->{$this->collection_key}); } } /** @return mixed */ #[\ReturnTypeWillChange] public function current() { $this->coerceType($this->key()); if (\is_array($this->{$this->collection_key})) { return \current($this->{$this->collection_key}); } } /** @return mixed */ #[\ReturnTypeWillChange] public function key() { if (isset($this->{$this->collection_key}) && \is_array($this->{$this->collection_key})) { return \key($this->{$this->collection_key}); } } /** @return mixed */ #[\ReturnTypeWillChange] public function next() { return \next($this->{$this->collection_key}); } /** @return bool */ #[\ReturnTypeWillChange] public function valid() { $key = $this->key(); return $key !== null && $key !== \false; } /** @return int */ #[\ReturnTypeWillChange] public function count() { if (!isset($this->{$this->collection_key})) { return 0; } return \count($this->{$this->collection_key}); } /** @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) { if (!\is_numeric($offset)) { return parent::offsetExists($offset); } return isset($this->{$this->collection_key}[$offset]); } /** @return mixed */ public function offsetGet($offset) { if (!\is_numeric($offset)) { return parent::offsetGet($offset); } $this->coerceType($offset); return $this->{$this->collection_key}[$offset]; } /** @return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (!\is_numeric($offset)) { parent::offsetSet($offset, $value); } $this->{$this->collection_key}[$offset] = $value; } /** @return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { if (!\is_numeric($offset)) { parent::offsetUnset($offset); } unset($this->{$this->collection_key}[$offset]); } private function coerceType($offset) { $keyType = $this->keyType($this->collection_key); if ($keyType && !\is_object($this->{$this->collection_key}[$offset])) { $this->{$this->collection_key}[$offset] = new $keyType($this->{$this->collection_key}[$offset]); } } } apiclient/src/AccessToken/Verify.php 0000644 00000025222 14721515320 0013465 0 ustar 00 <?php /* * Copyright 2008 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. */ namespace Google\Site_Kit_Dependencies\Google\AccessToken; use DateTime; use DomainException; use Exception; use Google\Site_Kit_Dependencies\ExpiredException; use Google\Site_Kit_Dependencies\Firebase\JWT\ExpiredException as ExpiredExceptionV3; use Google\Site_Kit_Dependencies\Firebase\JWT\Key; use Google\Site_Kit_Dependencies\Firebase\JWT\SignatureInvalidException; use Google\Site_Kit_Dependencies\Google\Auth\Cache\MemoryCacheItemPool; use Google\Site_Kit_Dependencies\Google\Exception as GoogleException; use Google\Site_Kit_Dependencies\GuzzleHttp\Client; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; use InvalidArgumentException; use LogicException; use Google\Site_Kit_Dependencies\phpseclib3\Crypt\PublicKeyLoader; use Google\Site_Kit_Dependencies\phpseclib3\Crypt\RSA\PublicKey; // Firebase v2 use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; /** * Wrapper around Google Access Tokens which provides convenience functions * */ class Verify { const FEDERATED_SIGNON_CERT_URL = 'https://www.googleapis.com/oauth2/v3/certs'; const OAUTH2_ISSUER = 'accounts.google.com'; const OAUTH2_ISSUER_HTTPS = 'https://accounts.google.com'; /** * @var ClientInterface The http client */ private $http; /** * @var CacheItemPoolInterface cache class */ private $cache; /** * @var \Firebase\JWT\JWT */ public $jwt; /** * Instantiates the class, but does not initiate the login flow, leaving it * to the discretion of the caller. */ public function __construct(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null, $jwt = null) { if (null === $http) { $http = new \Google\Site_Kit_Dependencies\GuzzleHttp\Client(); } if (null === $cache) { $cache = new \Google\Site_Kit_Dependencies\Google\Auth\Cache\MemoryCacheItemPool(); } $this->http = $http; $this->cache = $cache; $this->jwt = $jwt ?: $this->getJwtService(); } /** * Verifies an id token and returns the authenticated apiLoginTicket. * Throws an exception if the id token is not valid. * The audience parameter can be used to control which id tokens are * accepted. By default, the id token must have been issued to this OAuth2 client. * * @param string $idToken the ID token in JWT format * @param string $audience Optional. The audience to verify against JWt "aud" * @return array|false the token payload, if successful */ public function verifyIdToken($idToken, $audience = null) { if (empty($idToken)) { throw new \LogicException('id_token cannot be null'); } // set phpseclib constants if applicable $this->setPhpsecConstants(); // Check signature $certs = $this->getFederatedSignOnCerts(); foreach ($certs as $cert) { try { $args = [$idToken]; $publicKey = $this->getPublicKey($cert); if (\class_exists(\Google\Site_Kit_Dependencies\Firebase\JWT\Key::class)) { $args[] = new \Google\Site_Kit_Dependencies\Firebase\JWT\Key($publicKey, 'RS256'); } else { $args[] = $publicKey; $args[] = ['RS256']; } $payload = \call_user_func_array([$this->jwt, 'decode'], $args); if (\property_exists($payload, 'aud')) { if ($audience && $payload->aud != $audience) { return \false; } } // support HTTP and HTTPS issuers // @see https://developers.google.com/identity/sign-in/web/backend-auth $issuers = [self::OAUTH2_ISSUER, self::OAUTH2_ISSUER_HTTPS]; if (!isset($payload->iss) || !\in_array($payload->iss, $issuers)) { return \false; } return (array) $payload; } catch (\Google\Site_Kit_Dependencies\ExpiredException $e) { // @phpstan-ignore-line return \false; } catch (\Google\Site_Kit_Dependencies\Firebase\JWT\ExpiredException $e) { return \false; } catch (\Google\Site_Kit_Dependencies\Firebase\JWT\SignatureInvalidException $e) { // continue } catch (\DomainException $e) { // continue } } return \false; } private function getCache() { return $this->cache; } /** * Retrieve and cache a certificates file. * * @param string $url location * @throws \Google\Exception * @return array certificates */ private function retrieveCertsFromLocation($url) { // If we're retrieving a local file, just grab it. if (0 !== \strpos($url, 'http')) { if (!($file = \file_get_contents($url))) { throw new \Google\Site_Kit_Dependencies\Google\Exception("Failed to retrieve verification certificates: '" . $url . "'."); } return \json_decode($file, \true); } // @phpstan-ignore-next-line $response = $this->http->get($url); if ($response->getStatusCode() == 200) { return \json_decode((string) $response->getBody(), \true); } throw new \Google\Site_Kit_Dependencies\Google\Exception(\sprintf('Failed to retrieve verification certificates: "%s".', $response->getBody()->getContents()), $response->getStatusCode()); } // Gets federated sign-on certificates to use for verifying identity tokens. // Returns certs as array structure, where keys are key ids, and values // are PEM encoded certificates. private function getFederatedSignOnCerts() { $certs = null; if ($cache = $this->getCache()) { $cacheItem = $cache->getItem('federated_signon_certs_v3'); $certs = $cacheItem->get(); } if (!$certs) { $certs = $this->retrieveCertsFromLocation(self::FEDERATED_SIGNON_CERT_URL); if ($cache) { $cacheItem->expiresAt(new \DateTime('+1 hour')); $cacheItem->set($certs); $cache->save($cacheItem); } } if (!isset($certs['keys'])) { throw new \InvalidArgumentException('federated sign-on certs expects "keys" to be set'); } return $certs['keys']; } private function getJwtService() { $jwtClass = 'JWT'; if (\class_exists('Google\\Site_Kit_Dependencies\\Firebase\\JWT\\JWT')) { $jwtClass = 'Google\\Site_Kit_Dependencies\\Firebase\\JWT\\JWT'; } if (\property_exists($jwtClass, 'leeway') && $jwtClass::$leeway < 1) { // Ensures JWT leeway is at least 1 // @see https://github.com/google/google-api-php-client/issues/827 $jwtClass::$leeway = 1; } // @phpstan-ignore-next-line return new $jwtClass(); } private function getPublicKey($cert) { $bigIntClass = $this->getBigIntClass(); $modulus = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['n']), 256); $exponent = new $bigIntClass($this->jwt->urlsafeB64Decode($cert['e']), 256); $component = ['n' => $modulus, 'e' => $exponent]; if (\class_exists('Google\\Site_Kit_Dependencies\\phpseclib3\\Crypt\\RSA\\PublicKey')) { /** @var PublicKey $loader */ $loader = \Google\Site_Kit_Dependencies\phpseclib3\Crypt\PublicKeyLoader::load($component); return $loader->toString('PKCS8'); } $rsaClass = $this->getRsaClass(); $rsa = new $rsaClass(); $rsa->loadKey($component); return $rsa->getPublicKey(); } private function getRsaClass() { if (\class_exists('Google\\Site_Kit_Dependencies\\phpseclib3\\Crypt\\RSA')) { return 'Google\\Site_Kit_Dependencies\\phpseclib3\\Crypt\\RSA'; } if (\class_exists('Google\\Site_Kit_Dependencies\\phpseclib\\Crypt\\RSA')) { return 'Google\\Site_Kit_Dependencies\\phpseclib\\Crypt\\RSA'; } return 'Crypt_RSA'; } private function getBigIntClass() { if (\class_exists('Google\\Site_Kit_Dependencies\\phpseclib3\\Math\\BigInteger')) { return 'Google\\Site_Kit_Dependencies\\phpseclib3\\Math\\BigInteger'; } if (\class_exists('Google\\Site_Kit_Dependencies\\phpseclib\\Math\\BigInteger')) { return 'Google\\Site_Kit_Dependencies\\phpseclib\\Math\\BigInteger'; } return 'Math_BigInteger'; } private function getOpenSslConstant() { if (\class_exists('Google\\Site_Kit_Dependencies\\phpseclib3\\Crypt\\AES')) { return 'phpseclib3\\Crypt\\AES::ENGINE_OPENSSL'; } if (\class_exists('Google\\Site_Kit_Dependencies\\phpseclib\\Crypt\\RSA')) { return 'phpseclib\\Crypt\\RSA::MODE_OPENSSL'; } if (\class_exists('Google\\Site_Kit_Dependencies\\Crypt_RSA')) { return 'CRYPT_RSA_MODE_OPENSSL'; } throw new \Exception('Cannot find RSA class'); } /** * phpseclib calls "phpinfo" by default, which requires special * whitelisting in the AppEngine VM environment. This function * sets constants to bypass the need for phpseclib to check phpinfo * * @see phpseclib/Math/BigInteger * @see https://github.com/GoogleCloudPlatform/getting-started-php/issues/85 */ private function setPhpsecConstants() { if (\filter_var(\getenv('GAE_VM'), \FILTER_VALIDATE_BOOLEAN)) { if (!\defined('Google\\Site_Kit_Dependencies\\MATH_BIGINTEGER_OPENSSL_ENABLED')) { \define('Google\\Site_Kit_Dependencies\\MATH_BIGINTEGER_OPENSSL_ENABLED', \true); } if (!\defined('Google\\Site_Kit_Dependencies\\CRYPT_RSA_MODE')) { \define('Google\\Site_Kit_Dependencies\\CRYPT_RSA_MODE', \constant($this->getOpenSslConstant())); } } } } apiclient/src/AccessToken/Revoke.php 0000644 00000005101 14721515320 0013446 0 ustar 00 <?php /* * Copyright 2008 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. */ namespace Google\Site_Kit_Dependencies\Google\AccessToken; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\Google\Client; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request; /** * Wrapper around Google Access Tokens which provides convenience functions * */ class Revoke { /** * @var ClientInterface The http client */ private $http; /** * Instantiates the class, but does not initiate the login flow, leaving it * to the discretion of the caller. */ public function __construct(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http = null) { $this->http = $http; } /** * Revoke an OAuth2 access token or refresh token. This method will revoke the current access * token, if a token isn't provided. * * @param string|array $token The token (access token or a refresh token) that should be revoked. * @return boolean Returns True if the revocation was successful, otherwise False. */ public function revokeToken($token) { if (\is_array($token)) { if (isset($token['refresh_token'])) { $token = $token['refresh_token']; } else { $token = $token['access_token']; } } $body = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor(\http_build_query(['token' => $token])); $request = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('POST', \Google\Site_Kit_Dependencies\Google\Client::OAUTH2_REVOKE_URI, ['Cache-Control' => 'no-store', 'Content-Type' => 'application/x-www-form-urlencoded'], $body); $httpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build($this->http); $response = $httpHandler($request); return $response->getStatusCode() == 200; } } apiclient/src/Utils/UriTemplate.php 0000644 00000024471 14721515320 0013357 0 ustar 00 <?php /* * Copyright 2013 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. */ namespace Google\Site_Kit_Dependencies\Google\Utils; /** * Implementation of levels 1-3 of the URI Template spec. * @see http://tools.ietf.org/html/rfc6570 */ class UriTemplate { const TYPE_MAP = "1"; const TYPE_LIST = "2"; const TYPE_SCALAR = "4"; /** * @var array $operators * These are valid at the start of a template block to * modify the way in which the variables inside are * processed. */ private $operators = ["+" => "reserved", "/" => "segments", "." => "dotprefix", "#" => "fragment", ";" => "semicolon", "?" => "form", "&" => "continuation"]; /** * @var array<string> * These are the characters which should not be URL encoded in reserved * strings. */ private $reserved = ["=", ",", "!", "@", "|", ":", "/", "?", "#", "[", "]", '$', "&", "'", "(", ")", "*", "+", ";"]; private $reservedEncoded = ["%3D", "%2C", "%21", "%40", "%7C", "%3A", "%2F", "%3F", "%23", "%5B", "%5D", "%24", "%26", "%27", "%28", "%29", "%2A", "%2B", "%3B"]; public function parse($string, array $parameters) { return $this->resolveNextSection($string, $parameters); } /** * This function finds the first matching {...} block and * executes the replacement. It then calls itself to find * subsequent blocks, if any. */ private function resolveNextSection($string, $parameters) { $start = \strpos($string, "{"); if ($start === \false) { return $string; } $end = \strpos($string, "}"); if ($end === \false) { return $string; } $string = $this->replace($string, $start, $end, $parameters); return $this->resolveNextSection($string, $parameters); } private function replace($string, $start, $end, $parameters) { // We know a data block will have {} round it, so we can strip that. $data = \substr($string, $start + 1, $end - $start - 1); // If the first character is one of the reserved operators, it effects // the processing of the stream. if (isset($this->operators[$data[0]])) { $op = $this->operators[$data[0]]; $data = \substr($data, 1); $prefix = ""; $prefix_on_missing = \false; switch ($op) { case "reserved": // Reserved means certain characters should not be URL encoded $data = $this->replaceVars($data, $parameters, ",", null, \true); break; case "fragment": // Comma separated with fragment prefix. Bare values only. $prefix = "#"; $prefix_on_missing = \true; $data = $this->replaceVars($data, $parameters, ",", null, \true); break; case "segments": // Slash separated data. Bare values only. $prefix = "/"; $data = $this->replaceVars($data, $parameters, "/"); break; case "dotprefix": // Dot separated data. Bare values only. $prefix = "."; $prefix_on_missing = \true; $data = $this->replaceVars($data, $parameters, "."); break; case "semicolon": // Semicolon prefixed and separated. Uses the key name $prefix = ";"; $data = $this->replaceVars($data, $parameters, ";", "=", \false, \true, \false); break; case "form": // Standard URL format. Uses the key name $prefix = "?"; $data = $this->replaceVars($data, $parameters, "&", "="); break; case "continuation": // Standard URL, but with leading ampersand. Uses key name. $prefix = "&"; $data = $this->replaceVars($data, $parameters, "&", "="); break; } // Add the initial prefix character if data is valid. if ($data || $data !== \false && $prefix_on_missing) { $data = $prefix . $data; } } else { // If no operator we replace with the defaults. $data = $this->replaceVars($data, $parameters); } // This is chops out the {...} and replaces with the new section. return \substr($string, 0, $start) . $data . \substr($string, $end + 1); } private function replaceVars($section, $parameters, $sep = ",", $combine = null, $reserved = \false, $tag_empty = \false, $combine_on_empty = \true) { if (\strpos($section, ",") === \false) { // If we only have a single value, we can immediately process. return $this->combine($section, $parameters, $sep, $combine, $reserved, $tag_empty, $combine_on_empty); } else { // If we have multiple values, we need to split and loop over them. // Each is treated individually, then glued together with the // separator character. $vars = \explode(",", $section); return $this->combineList( $vars, $sep, $parameters, $combine, $reserved, \false, // Never emit empty strings in multi-param replacements $combine_on_empty ); } } public function combine($key, $parameters, $sep, $combine, $reserved, $tag_empty, $combine_on_empty) { $length = \false; $explode = \false; $skip_final_combine = \false; $value = \false; // Check for length restriction. if (\strpos($key, ":") !== \false) { list($key, $length) = \explode(":", $key); } // Check for explode parameter. if ($key[\strlen($key) - 1] == "*") { $explode = \true; $key = \substr($key, 0, -1); $skip_final_combine = \true; } // Define the list separator. $list_sep = $explode ? $sep : ","; if (isset($parameters[$key])) { $data_type = $this->getDataType($parameters[$key]); switch ($data_type) { case self::TYPE_SCALAR: $value = $this->getValue($parameters[$key], $length); break; case self::TYPE_LIST: $values = []; foreach ($parameters[$key] as $pkey => $pvalue) { $pvalue = $this->getValue($pvalue, $length); if ($combine && $explode) { $values[$pkey] = $key . $combine . $pvalue; } else { $values[$pkey] = $pvalue; } } $value = \implode($list_sep, $values); if ($value == '') { return ''; } break; case self::TYPE_MAP: $values = []; foreach ($parameters[$key] as $pkey => $pvalue) { $pvalue = $this->getValue($pvalue, $length); if ($explode) { $pkey = $this->getValue($pkey, $length); $values[] = $pkey . "=" . $pvalue; // Explode triggers = combine. } else { $values[] = $pkey; $values[] = $pvalue; } } $value = \implode($list_sep, $values); if ($value == '') { return \false; } break; } } elseif ($tag_empty) { // If we are just indicating empty values with their key name, return that. return $key; } else { // Otherwise we can skip this variable due to not being defined. return \false; } if ($reserved) { $value = \str_replace($this->reservedEncoded, $this->reserved, $value); } // If we do not need to include the key name, we just return the raw // value. if (!$combine || $skip_final_combine) { return $value; } // Else we combine the key name: foo=bar, if value is not the empty string. return $key . ($value != '' || $combine_on_empty ? $combine . $value : ''); } /** * Return the type of a passed in value */ private function getDataType($data) { if (\is_array($data)) { \reset($data); if (\key($data) !== 0) { return self::TYPE_MAP; } return self::TYPE_LIST; } return self::TYPE_SCALAR; } /** * Utility function that merges multiple combine calls * for multi-key templates. */ private function combineList($vars, $sep, $parameters, $combine, $reserved, $tag_empty, $combine_on_empty) { $ret = []; foreach ($vars as $var) { $response = $this->combine($var, $parameters, $sep, $combine, $reserved, $tag_empty, $combine_on_empty); if ($response === \false) { continue; } $ret[] = $response; } return \implode($sep, $ret); } /** * Utility function to encode and trim values */ private function getValue($value, $length) { if ($length) { $value = \substr($value, 0, $length); } $value = \rawurlencode($value); return $value; } } apiclient/src/Http/MediaFileUpload.php 0000644 00000024317 14721515320 0013726 0 ustar 00 <?php /** * Copyright 2012 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. */ namespace Google\Site_Kit_Dependencies\Google\Http; use Google\Site_Kit_Dependencies\Google\Client; use Google\Site_Kit_Dependencies\Google\Exception as GoogleException; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; /** * Manage large file uploads, which may be media but can be any type * of sizable data. */ class MediaFileUpload { const UPLOAD_MEDIA_TYPE = 'media'; const UPLOAD_MULTIPART_TYPE = 'multipart'; const UPLOAD_RESUMABLE_TYPE = 'resumable'; /** @var string $mimeType */ private $mimeType; /** @var string $data */ private $data; /** @var bool $resumable */ private $resumable; /** @var int $chunkSize */ private $chunkSize; /** @var int $size */ private $size; /** @var string $resumeUri */ private $resumeUri; /** @var int $progress */ private $progress; /** @var Client */ private $client; /** @var RequestInterface */ private $request; /** @var string */ private $boundary; // @phpstan-ignore-line /** * Result code from last HTTP call * @var int */ private $httpResultCode; /** * @param Client $client * @param RequestInterface $request * @param string $mimeType * @param string $data The bytes you want to upload. * @param bool $resumable * @param int $chunkSize File will be uploaded in chunks of this many bytes. * only used if resumable=True */ public function __construct(\Google\Site_Kit_Dependencies\Google\Client $client, \Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, $mimeType, $data, $resumable = \false, $chunkSize = 0) { $this->client = $client; $this->request = $request; $this->mimeType = $mimeType; $this->data = $data; $this->resumable = $resumable; $this->chunkSize = $chunkSize; $this->progress = 0; $this->process(); } /** * Set the size of the file that is being uploaded. * @param int $size - int file size in bytes */ public function setFileSize($size) { $this->size = $size; } /** * Return the progress on the upload * @return int progress in bytes uploaded. */ public function getProgress() { return $this->progress; } /** * Send the next part of the file to upload. * @param string|bool $chunk Optional. The next set of bytes to send. If false will * use $data passed at construct time. */ public function nextChunk($chunk = \false) { $resumeUri = $this->getResumeUri(); if (\false == $chunk) { $chunk = \substr($this->data, $this->progress, $this->chunkSize); } $lastBytePos = $this->progress + \strlen($chunk) - 1; $headers = ['content-range' => "bytes {$this->progress}-{$lastBytePos}/{$this->size}", 'content-length' => (string) \strlen($chunk), 'expect' => '']; $request = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('PUT', $resumeUri, $headers, \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor($chunk)); return $this->makePutRequest($request); } /** * Return the HTTP result code from the last call made. * @return int code */ public function getHttpResultCode() { return $this->httpResultCode; } /** * Sends a PUT-Request to google drive and parses the response, * setting the appropiate variables from the response() * * @param RequestInterface $request the Request which will be send * * @return false|mixed false when the upload is unfinished or the decoded http response * */ private function makePutRequest(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request) { $response = $this->client->execute($request); $this->httpResultCode = $response->getStatusCode(); if (308 == $this->httpResultCode) { // Track the amount uploaded. $range = $response->getHeaderLine('range'); if ($range) { $range_array = \explode('-', $range); $this->progress = (int) $range_array[1] + 1; } // Allow for changing upload URLs. $location = $response->getHeaderLine('location'); if ($location) { $this->resumeUri = $location; } // No problems, but upload not complete. return \false; } return \Google\Site_Kit_Dependencies\Google\Http\REST::decodeHttpResponse($response, $this->request); } /** * Resume a previously unfinished upload * @param string $resumeUri the resume-URI of the unfinished, resumable upload. */ public function resume($resumeUri) { $this->resumeUri = $resumeUri; $headers = ['content-range' => "bytes */{$this->size}", 'content-length' => '0']; $httpRequest = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('PUT', $this->resumeUri, $headers); return $this->makePutRequest($httpRequest); } /** * @return RequestInterface * @visible for testing */ private function process() { $this->transformToUploadUrl(); $request = $this->request; $postBody = ''; $contentType = \false; $meta = \json_decode((string) $request->getBody(), \true); $uploadType = $this->getUploadType($meta); $request = $request->withUri(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri::withQueryValue($request->getUri(), 'uploadType', $uploadType)); $mimeType = $this->mimeType ?: $request->getHeaderLine('content-type'); if (self::UPLOAD_RESUMABLE_TYPE == $uploadType) { $contentType = $mimeType; $postBody = \is_string($meta) ? $meta : \json_encode($meta); } elseif (self::UPLOAD_MEDIA_TYPE == $uploadType) { $contentType = $mimeType; $postBody = $this->data; } elseif (self::UPLOAD_MULTIPART_TYPE == $uploadType) { // This is a multipart/related upload. $boundary = $this->boundary ?: \mt_rand(); $boundary = \str_replace('"', '', $boundary); $contentType = 'multipart/related; boundary=' . $boundary; $related = "--{$boundary}\r\n"; $related .= "Content-Type: application/json; charset=UTF-8\r\n"; $related .= "\r\n" . \json_encode($meta) . "\r\n"; $related .= "--{$boundary}\r\n"; $related .= "Content-Type: {$mimeType}\r\n"; $related .= "Content-Transfer-Encoding: base64\r\n"; $related .= "\r\n" . \base64_encode($this->data) . "\r\n"; $related .= "--{$boundary}--"; $postBody = $related; } $request = $request->withBody(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor($postBody)); if ($contentType) { $request = $request->withHeader('content-type', $contentType); } return $this->request = $request; } /** * Valid upload types: * - resumable (UPLOAD_RESUMABLE_TYPE) * - media (UPLOAD_MEDIA_TYPE) * - multipart (UPLOAD_MULTIPART_TYPE) * @param string|false $meta * @return string * @visible for testing */ public function getUploadType($meta) { if ($this->resumable) { return self::UPLOAD_RESUMABLE_TYPE; } if (\false == $meta && $this->data) { return self::UPLOAD_MEDIA_TYPE; } return self::UPLOAD_MULTIPART_TYPE; } public function getResumeUri() { if (null === $this->resumeUri) { $this->resumeUri = $this->fetchResumeUri(); } return $this->resumeUri; } private function fetchResumeUri() { $body = $this->request->getBody(); $headers = ['content-type' => 'application/json; charset=UTF-8', 'content-length' => $body->getSize(), 'x-upload-content-type' => $this->mimeType, 'x-upload-content-length' => $this->size, 'expect' => '']; foreach ($headers as $key => $value) { $this->request = $this->request->withHeader($key, $value); } $response = $this->client->execute($this->request, \false); $location = $response->getHeaderLine('location'); $code = $response->getStatusCode(); if (200 == $code && \true == $location) { return $location; } $message = $code; $body = \json_decode((string) $this->request->getBody(), \true); if (isset($body['error']['errors'])) { $message .= ': '; foreach ($body['error']['errors'] as $error) { $message .= "{$error['domain']}, {$error['message']};"; } $message = \rtrim($message, ';'); } $error = "Failed to start the resumable upload (HTTP {$message})"; $this->client->getLogger()->error($error); throw new \Google\Site_Kit_Dependencies\Google\Exception($error); } private function transformToUploadUrl() { $parts = \parse_url((string) $this->request->getUri()); if (!isset($parts['path'])) { $parts['path'] = ''; } $parts['path'] = '/upload' . $parts['path']; $uri = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri::fromParts($parts); $this->request = $this->request->withUri($uri); } public function setChunkSize($chunkSize) { $this->chunkSize = $chunkSize; } public function getRequest() { return $this->request; } } apiclient/src/Http/REST.php 0000644 00000015736 14721515320 0011524 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Http; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\Google\Service\Exception as GoogleServiceException; use Google\Site_Kit_Dependencies\Google\Task\Runner; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; use Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Response; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface; /** * This class implements the RESTful transport of apiServiceRequest()'s */ class REST { /** * Executes a Psr\Http\Message\RequestInterface and (if applicable) automatically retries * when errors occur. * * @template T * @param ClientInterface $client * @param RequestInterface $request * @param class-string<T>|false|null $expectedClass * @param array $config * @param array $retryMap * @return mixed|T|null * @throws \Google\Service\Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ public static function execute(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $client, \Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, $expectedClass = null, $config = [], $retryMap = null) { $runner = new \Google\Site_Kit_Dependencies\Google\Task\Runner($config, \sprintf('%s %s', $request->getMethod(), (string) $request->getUri()), [\get_class(), 'doExecute'], [$client, $request, $expectedClass]); if (null !== $retryMap) { $runner->setRetryMap($retryMap); } return $runner->run(); } /** * Executes a Psr\Http\Message\RequestInterface * * @template T * @param ClientInterface $client * @param RequestInterface $request * @param class-string<T>|false|null $expectedClass * @return mixed|T|null * @throws \Google\Service\Exception on server side error (ie: not authenticated, * invalid or malformed post body, invalid url) */ public static function doExecute(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $client, \Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, $expectedClass = null) { try { $httpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build($client); $response = $httpHandler($request); } catch (\Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException $e) { // if Guzzle throws an exception, catch it and handle the response if (!$e->hasResponse()) { throw $e; } $response = $e->getResponse(); // specific checking for Guzzle 5: convert to PSR7 response if (\interface_exists('Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\ResponseInterface') && $response instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface) { $response = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Response($response->getStatusCode(), $response->getHeaders() ?: [], $response->getBody(), $response->getProtocolVersion(), $response->getReasonPhrase()); } } return self::decodeHttpResponse($response, $request, $expectedClass); } /** * Decode an HTTP Response. * @static * * @template T * @param RequestInterface $response The http response to be decoded. * @param ResponseInterface $response * @param class-string<T>|false|null $expectedClass * @return mixed|T|null * @throws \Google\Service\Exception */ public static function decodeHttpResponse(\Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface $response, \Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request = null, $expectedClass = null) { $code = $response->getStatusCode(); // retry strategy if (\intVal($code) >= 400) { // if we errored out, it should be safe to grab the response body $body = (string) $response->getBody(); // Check if we received errors, and add those to the Exception for convenience throw new \Google\Site_Kit_Dependencies\Google\Service\Exception($body, $code, null, self::getResponseErrors($body)); } // Ensure we only pull the entire body into memory if the request is not // of media type $body = self::decodeBody($response, $request); if ($expectedClass = self::determineExpectedClass($expectedClass, $request)) { $json = \json_decode($body, \true); return new $expectedClass($json); } return $response; } private static function decodeBody(\Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface $response, \Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request = null) { if (self::isAltMedia($request)) { // don't decode the body, it's probably a really long string return ''; } return (string) $response->getBody(); } private static function determineExpectedClass($expectedClass, \Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request = null) { // "false" is used to explicitly prevent an expected class from being returned if (\false === $expectedClass) { return null; } // if we don't have a request, we just use what's passed in if (null === $request) { return $expectedClass; } // return what we have in the request header if one was not supplied return $expectedClass ?: $request->getHeaderLine('X-Php-Expected-Class'); } private static function getResponseErrors($body) { $json = \json_decode($body, \true); if (isset($json['error']['errors'])) { return $json['error']['errors']; } return null; } private static function isAltMedia(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request = null) { if ($request && ($qs = $request->getUri()->getQuery())) { \parse_str($qs, $query); if (isset($query['alt']) && $query['alt'] == 'media') { return \true; } } return \false; } } apiclient/src/Http/Batch.php 0000644 00000017755 14721515320 0011773 0 ustar 00 <?php /* * Copyright 2012 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. */ namespace Google\Site_Kit_Dependencies\Google\Http; use Google\Site_Kit_Dependencies\Google\Client; use Google\Site_Kit_Dependencies\Google\Service\Exception as GoogleServiceException; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request; use Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Response; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface; /** * Class to handle batched requests to the Google API service. * * Note that calls to `Google\Http\Batch::execute()` do not clear the queued * requests. To start a new batch, be sure to create a new instance of this * class. */ class Batch { const BATCH_PATH = 'batch'; private static $CONNECTION_ESTABLISHED_HEADERS = ["HTTP/1.0 200 Connection established\r\n\r\n", "HTTP/1.1 200 Connection established\r\n\r\n"]; /** @var string Multipart Boundary. */ private $boundary; /** @var array service requests to be executed. */ private $requests = []; /** @var Client */ private $client; private $rootUrl; private $batchPath; public function __construct(\Google\Site_Kit_Dependencies\Google\Client $client, $boundary = \false, $rootUrl = null, $batchPath = null) { $this->client = $client; $this->boundary = $boundary ?: \mt_rand(); $this->rootUrl = \rtrim($rootUrl ?: $this->client->getConfig('base_path'), '/'); $this->batchPath = $batchPath ?: self::BATCH_PATH; } public function add(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, $key = \false) { if (\false == $key) { $key = \mt_rand(); } $this->requests[$key] = $request; } public function execute() { $body = ''; $classes = []; $batchHttpTemplate = <<<EOF --%s Content-Type: application/http Content-Transfer-Encoding: binary MIME-Version: 1.0 Content-ID: %s %s %s%s EOF; /** @var RequestInterface $request */ foreach ($this->requests as $key => $request) { $firstLine = \sprintf('%s %s HTTP/%s', $request->getMethod(), $request->getRequestTarget(), $request->getProtocolVersion()); $content = (string) $request->getBody(); $headers = ''; foreach ($request->getHeaders() as $name => $values) { $headers .= \sprintf("%s:%s\r\n", $name, \implode(', ', $values)); } $body .= \sprintf($batchHttpTemplate, $this->boundary, $key, $firstLine, $headers, $content ? "\n" . $content : ''); $classes['response-' . $key] = $request->getHeaderLine('X-Php-Expected-Class'); } $body .= "--{$this->boundary}--"; $body = \trim($body); $url = $this->rootUrl . '/' . $this->batchPath; $headers = ['Content-Type' => \sprintf('multipart/mixed; boundary=%s', $this->boundary), 'Content-Length' => (string) \strlen($body)]; $request = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request('POST', $url, $headers, $body); $response = $this->client->execute($request); return $this->parseResponse($response, $classes); } public function parseResponse(\Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface $response, $classes = []) { $contentType = $response->getHeaderLine('content-type'); $contentType = \explode(';', $contentType); $boundary = \false; foreach ($contentType as $part) { $part = \explode('=', $part, 2); if (isset($part[0]) && 'boundary' == \trim($part[0])) { $boundary = $part[1]; } } $body = (string) $response->getBody(); if (!empty($body)) { $body = \str_replace("--{$boundary}--", "--{$boundary}", $body); $parts = \explode("--{$boundary}", $body); $responses = []; $requests = \array_values($this->requests); foreach ($parts as $i => $part) { $part = \trim($part); if (!empty($part)) { list($rawHeaders, $part) = \explode("\r\n\r\n", $part, 2); $headers = $this->parseRawHeaders($rawHeaders); $status = \substr($part, 0, \strpos($part, "\n")); $status = \explode(" ", $status); $status = $status[1]; list($partHeaders, $partBody) = $this->parseHttpResponse($part, 0); $response = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Response((int) $status, $partHeaders, \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor($partBody)); // Need content id. $key = $headers['content-id']; try { $response = \Google\Site_Kit_Dependencies\Google\Http\REST::decodeHttpResponse($response, $requests[$i - 1]); } catch (\Google\Site_Kit_Dependencies\Google\Service\Exception $e) { // Store the exception as the response, so successful responses // can be processed. $response = $e; } $responses[$key] = $response; } } return $responses; } return null; } private function parseRawHeaders($rawHeaders) { $headers = []; $responseHeaderLines = \explode("\r\n", $rawHeaders); foreach ($responseHeaderLines as $headerLine) { if ($headerLine && \strpos($headerLine, ':') !== \false) { list($header, $value) = \explode(': ', $headerLine, 2); $header = \strtolower($header); if (isset($headers[$header])) { $headers[$header] = \array_merge((array) $headers[$header], (array) $value); } else { $headers[$header] = $value; } } } return $headers; } /** * Used by the IO lib and also the batch processing. * * @param string $respData * @param int $headerSize * @return array */ private function parseHttpResponse($respData, $headerSize) { // check proxy header foreach (self::$CONNECTION_ESTABLISHED_HEADERS as $established_header) { if (\stripos($respData, $established_header) !== \false) { // existed, remove it $respData = \str_ireplace($established_header, '', $respData); // Subtract the proxy header size unless the cURL bug prior to 7.30.0 // is present which prevented the proxy header size from being taken into // account. // @TODO look into this // if (!$this->needsQuirk()) { // $headerSize -= strlen($established_header); // } break; } } if ($headerSize) { $responseBody = \substr($respData, $headerSize); $responseHeaders = \substr($respData, 0, $headerSize); } else { $responseSegments = \explode("\r\n\r\n", $respData, 2); $responseHeaders = $responseSegments[0]; $responseBody = isset($responseSegments[1]) ? $responseSegments[1] : null; } $responseHeaders = $this->parseRawHeaders($responseHeaders); return [$responseHeaders, $responseBody]; } } apiclient/src/Model.php 0000644 00000024144 14721515320 0011061 0 ustar 00 <?php /* * Copyright 2011 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. */ namespace Google\Site_Kit_Dependencies\Google; use Google\Site_Kit_Dependencies\Google\Exception as GoogleException; use ReflectionObject; use ReflectionProperty; use stdClass; /** * This class defines attributes, valid values, and usage which is generated * from a given json schema. * http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5 * */ #[\AllowDynamicProperties] class Model implements \ArrayAccess { /** * If you need to specify a NULL JSON value, use Google\Model::NULL_VALUE * instead - it will be replaced when converting to JSON with a real null. */ const NULL_VALUE = "{}gapi-php-null"; protected $internal_gapi_mappings = []; protected $modelData = []; protected $processed = []; /** * Polymorphic - accepts a variable number of arguments dependent * on the type of the model subclass. */ public final function __construct() { if (\func_num_args() == 1 && \is_array(\func_get_arg(0))) { // Initialize the model with the array's contents. $array = \func_get_arg(0); $this->mapTypes($array); } $this->gapiInit(); } /** * Getter that handles passthrough access to the data array, and lazy object creation. * @param string $key Property name. * @return mixed The value if any, or null. */ public function __get($key) { $keyType = $this->keyType($key); $keyDataType = $this->dataType($key); if ($keyType && !isset($this->processed[$key])) { if (isset($this->modelData[$key])) { $val = $this->modelData[$key]; } elseif ($keyDataType == 'array' || $keyDataType == 'map') { $val = []; } else { $val = null; } if ($this->isAssociativeArray($val)) { if ($keyDataType && 'map' == $keyDataType) { foreach ($val as $arrayKey => $arrayItem) { $this->modelData[$key][$arrayKey] = new $keyType($arrayItem); } } else { $this->modelData[$key] = new $keyType($val); } } elseif (\is_array($val)) { $arrayObject = []; foreach ($val as $arrayIndex => $arrayItem) { $arrayObject[$arrayIndex] = new $keyType($arrayItem); } $this->modelData[$key] = $arrayObject; } $this->processed[$key] = \true; } return isset($this->modelData[$key]) ? $this->modelData[$key] : null; } /** * Initialize this object's properties from an array. * * @param array $array Used to seed this object's properties. * @return void */ protected function mapTypes($array) { // Hard initialise simple types, lazy load more complex ones. foreach ($array as $key => $val) { if ($keyType = $this->keyType($key)) { $dataType = $this->dataType($key); if ($dataType == 'array' || $dataType == 'map') { $this->{$key} = []; foreach ($val as $itemKey => $itemVal) { if ($itemVal instanceof $keyType) { $this->{$key}[$itemKey] = $itemVal; } else { $this->{$key}[$itemKey] = new $keyType($itemVal); } } } elseif ($val instanceof $keyType) { $this->{$key} = $val; } else { $this->{$key} = new $keyType($val); } unset($array[$key]); } elseif (\property_exists($this, $key)) { $this->{$key} = $val; unset($array[$key]); } elseif (\property_exists($this, $camelKey = $this->camelCase($key))) { // This checks if property exists as camelCase, leaving it in array as snake_case // in case of backwards compatibility issues. $this->{$camelKey} = $val; } } $this->modelData = $array; } /** * Blank initialiser to be used in subclasses to do post-construction initialisation - this * avoids the need for subclasses to have to implement the variadics handling in their * constructors. */ protected function gapiInit() { return; } /** * Create a simplified object suitable for straightforward * conversion to JSON. This is relatively expensive * due to the usage of reflection, but shouldn't be called * a whole lot, and is the most straightforward way to filter. */ public function toSimpleObject() { $object = new \stdClass(); // Process all other data. foreach ($this->modelData as $key => $val) { $result = $this->getSimpleValue($val); if ($result !== null) { $object->{$key} = $this->nullPlaceholderCheck($result); } } // Process all public properties. $reflect = new \ReflectionObject($this); $props = $reflect->getProperties(\ReflectionProperty::IS_PUBLIC); foreach ($props as $member) { $name = $member->getName(); $result = $this->getSimpleValue($this->{$name}); if ($result !== null) { $name = $this->getMappedName($name); $object->{$name} = $this->nullPlaceholderCheck($result); } } return $object; } /** * Handle different types of values, primarily * other objects and map and array data types. */ private function getSimpleValue($value) { if ($value instanceof \Google\Site_Kit_Dependencies\Google\Model) { return $value->toSimpleObject(); } elseif (\is_array($value)) { $return = []; foreach ($value as $key => $a_value) { $a_value = $this->getSimpleValue($a_value); if ($a_value !== null) { $key = $this->getMappedName($key); $return[$key] = $this->nullPlaceholderCheck($a_value); } } return $return; } return $value; } /** * Check whether the value is the null placeholder and return true null. */ private function nullPlaceholderCheck($value) { if ($value === self::NULL_VALUE) { return null; } return $value; } /** * If there is an internal name mapping, use that. */ private function getMappedName($key) { if (isset($this->internal_gapi_mappings, $this->internal_gapi_mappings[$key])) { $key = $this->internal_gapi_mappings[$key]; } return $key; } /** * Returns true only if the array is associative. * @param array $array * @return bool True if the array is associative. */ protected function isAssociativeArray($array) { if (!\is_array($array)) { return \false; } $keys = \array_keys($array); foreach ($keys as $key) { if (\is_string($key)) { return \true; } } return \false; } /** * Verify if $obj is an array. * @throws \Google\Exception Thrown if $obj isn't an array. * @param array $obj Items that should be validated. * @param string $method Method expecting an array as an argument. */ public function assertIsArray($obj, $method) { if ($obj && !\is_array($obj)) { throw new \Google\Site_Kit_Dependencies\Google\Exception("Incorrect parameter type passed to {$method}(). Expected an array."); } } /** @return bool */ #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->{$offset}) || isset($this->modelData[$offset]); } /** @return mixed */ #[\ReturnTypeWillChange] public function offsetGet($offset) { return isset($this->{$offset}) ? $this->{$offset} : $this->__get($offset); } /** @return void */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if (\property_exists($this, $offset)) { $this->{$offset} = $value; } else { $this->modelData[$offset] = $value; $this->processed[$offset] = \true; } } /** @return void */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset($this->modelData[$offset]); } protected function keyType($key) { $keyType = $key . "Type"; // ensure keyType is a valid class if (\property_exists($this, $keyType) && $this->{$keyType} !== null && \class_exists($this->{$keyType})) { return $this->{$keyType}; } } protected function dataType($key) { $dataType = $key . "DataType"; if (\property_exists($this, $dataType)) { return $this->{$dataType}; } } public function __isset($key) { return isset($this->modelData[$key]); } public function __unset($key) { unset($this->modelData[$key]); } /** * Convert a string to camelCase * @param string $value * @return string */ private function camelCase($value) { $value = \ucwords(\str_replace(['-', '_'], ' ', $value)); $value = \str_replace(' ', '', $value); $value[0] = \strtolower($value[0]); return $value; } } apiclient/src/Client.php 0000644 00000121023 14721515320 0011231 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google; use BadMethodCallException; use DomainException; use Google\Site_Kit_Dependencies\Google\AccessToken\Revoke; use Google\Site_Kit_Dependencies\Google\AccessToken\Verify; use Google\Site_Kit_Dependencies\Google\Auth\ApplicationDefaultCredentials; use Google\Site_Kit_Dependencies\Google\Auth\Cache\MemoryCacheItemPool; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\ServiceAccountCredentials; use Google\Site_Kit_Dependencies\Google\Auth\Credentials\UserRefreshCredentials; use Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader; use Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache; use Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory; use Google\Site_Kit_Dependencies\Google\Auth\OAuth2; use Google\Site_Kit_Dependencies\Google\AuthHandler\AuthHandlerFactory; use Google\Site_Kit_Dependencies\Google\Http\REST; use Google\Site_Kit_Dependencies\GuzzleHttp\Client as GuzzleClient; use Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface; use Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\StreamHandler; use InvalidArgumentException; use LogicException; use Google\Site_Kit_Dependencies\Monolog\Handler\StreamHandler as MonologStreamHandler; use Google\Site_Kit_Dependencies\Monolog\Handler\SyslogHandler as MonologSyslogHandler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface; use Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface; use Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface; use UnexpectedValueException; /** * The Google API Client * https://github.com/google/google-api-php-client */ class Client { const LIBVER = "2.12.6"; const USER_AGENT_SUFFIX = "google-api-php-client/"; const OAUTH2_REVOKE_URI = 'https://oauth2.googleapis.com/revoke'; const OAUTH2_TOKEN_URI = 'https://oauth2.googleapis.com/token'; const OAUTH2_AUTH_URL = 'https://accounts.google.com/o/oauth2/v2/auth'; const API_BASE_PATH = 'https://www.googleapis.com'; /** * @var ?OAuth2 $auth */ private $auth; /** * @var ClientInterface $http */ private $http; /** * @var ?CacheItemPoolInterface $cache */ private $cache; /** * @var array access token */ private $token; /** * @var array $config */ private $config; /** * @var ?LoggerInterface $logger */ private $logger; /** * @var ?CredentialsLoader $credentials */ private $credentials; /** * @var boolean $deferExecution */ private $deferExecution = \false; /** @var array $scopes */ // Scopes requested by the client protected $requestedScopes = []; /** * Construct the Google Client. * * @param array $config */ public function __construct(array $config = []) { $this->config = \array_merge([ 'application_name' => '', // Don't change these unless you're working against a special development // or testing environment. 'base_path' => self::API_BASE_PATH, // https://developers.google.com/console 'client_id' => '', 'client_secret' => '', // Can be a path to JSON credentials or an array representing those // credentials (@see Google\Client::setAuthConfig), or an instance of // Google\Auth\CredentialsLoader. 'credentials' => null, // @see Google\Client::setScopes 'scopes' => null, // Sets X-Goog-User-Project, which specifies a user project to bill // for access charges associated with the request 'quota_project' => null, 'redirect_uri' => null, 'state' => null, // Simple API access key, also from the API console. Ensure you get // a Server key, and not a Browser key. 'developer_key' => '', // For use with Google Cloud Platform // fetch the ApplicationDefaultCredentials, if applicable // @see https://developers.google.com/identity/protocols/application-default-credentials 'use_application_default_credentials' => \false, 'signing_key' => null, 'signing_algorithm' => null, 'subject' => null, // Other OAuth2 parameters. 'hd' => '', 'prompt' => '', 'openid.realm' => '', 'include_granted_scopes' => null, 'login_hint' => '', 'request_visible_actions' => '', 'access_type' => 'online', 'approval_prompt' => 'auto', // Task Runner retry configuration // @see Google\Task\Runner 'retry' => [], 'retry_map' => null, // Cache class implementing Psr\Cache\CacheItemPoolInterface. // Defaults to Google\Auth\Cache\MemoryCacheItemPool. 'cache' => null, // cache config for downstream auth caching 'cache_config' => [], // function to be called when an access token is fetched // follows the signature function ($cacheKey, $accessToken) 'token_callback' => null, // Service class used in Google\Client::verifyIdToken. // Explicitly pass this in to avoid setting JWT::$leeway 'jwt' => null, // Setting api_format_v2 will return more detailed error messages // from certain APIs. 'api_format_v2' => \false, ], $config); if (!\is_null($this->config['credentials'])) { if ($this->config['credentials'] instanceof \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader) { $this->credentials = $this->config['credentials']; } else { $this->setAuthConfig($this->config['credentials']); } unset($this->config['credentials']); } if (!\is_null($this->config['scopes'])) { $this->setScopes($this->config['scopes']); unset($this->config['scopes']); } // Set a default token callback to update the in-memory access token if (\is_null($this->config['token_callback'])) { $this->config['token_callback'] = function ($cacheKey, $newAccessToken) { $this->setAccessToken([ 'access_token' => $newAccessToken, 'expires_in' => 3600, // Google default 'created' => \time(), ]); }; } if (!\is_null($this->config['cache'])) { $this->setCache($this->config['cache']); unset($this->config['cache']); } } /** * Get a string containing the version of the library. * * @return string */ public function getLibraryVersion() { return self::LIBVER; } /** * For backwards compatibility * alias for fetchAccessTokenWithAuthCode * * @param string $code string code from accounts.google.com * @return array access token * @deprecated */ public function authenticate($code) { return $this->fetchAccessTokenWithAuthCode($code); } /** * Attempt to exchange a code for an valid authentication token. * Helper wrapped around the OAuth 2.0 implementation. * * @param string $code code from accounts.google.com * @return array access token */ public function fetchAccessTokenWithAuthCode($code) { if (\strlen($code) == 0) { throw new \InvalidArgumentException("Invalid code"); } $auth = $this->getOAuth2Service(); $auth->setCode($code); $auth->setRedirectUri($this->getRedirectUri()); $httpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build($this->getHttpClient()); $creds = $auth->fetchAuthToken($httpHandler); if ($creds && isset($creds['access_token'])) { $creds['created'] = \time(); $this->setAccessToken($creds); } return $creds; } /** * For backwards compatibility * alias for fetchAccessTokenWithAssertion * * @return array access token * @deprecated */ public function refreshTokenWithAssertion() { return $this->fetchAccessTokenWithAssertion(); } /** * Fetches a fresh access token with a given assertion token. * @param ClientInterface $authHttp optional. * @return array access token */ public function fetchAccessTokenWithAssertion(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $authHttp = null) { if (!$this->isUsingApplicationDefaultCredentials()) { throw new \DomainException('set the JSON service account credentials using' . ' Google\\Client::setAuthConfig or set the path to your JSON file' . ' with the "GOOGLE_APPLICATION_CREDENTIALS" environment variable' . ' and call Google\\Client::useApplicationDefaultCredentials to' . ' refresh a token with assertion.'); } $this->getLogger()->log('info', 'OAuth2 access token refresh with Signed JWT assertion grants.'); $credentials = $this->createApplicationDefaultCredentials(); $httpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build($authHttp); $creds = $credentials->fetchAuthToken($httpHandler); if ($creds && isset($creds['access_token'])) { $creds['created'] = \time(); $this->setAccessToken($creds); } return $creds; } /** * For backwards compatibility * alias for fetchAccessTokenWithRefreshToken * * @param string $refreshToken * @return array access token */ public function refreshToken($refreshToken) { return $this->fetchAccessTokenWithRefreshToken($refreshToken); } /** * Fetches a fresh OAuth 2.0 access token with the given refresh token. * @param string $refreshToken * @return array access token */ public function fetchAccessTokenWithRefreshToken($refreshToken = null) { if (null === $refreshToken) { if (!isset($this->token['refresh_token'])) { throw new \LogicException('refresh token must be passed in or set as part of setAccessToken'); } $refreshToken = $this->token['refresh_token']; } $this->getLogger()->info('OAuth2 access token refresh'); $auth = $this->getOAuth2Service(); $auth->setRefreshToken($refreshToken); $httpHandler = \Google\Site_Kit_Dependencies\Google\Auth\HttpHandler\HttpHandlerFactory::build($this->getHttpClient()); $creds = $auth->fetchAuthToken($httpHandler); if ($creds && isset($creds['access_token'])) { $creds['created'] = \time(); if (!isset($creds['refresh_token'])) { $creds['refresh_token'] = $refreshToken; } $this->setAccessToken($creds); } return $creds; } /** * Create a URL to obtain user authorization. * The authorization endpoint allows the user to first * authenticate, and then grant/deny the access request. * @param string|array $scope The scope is expressed as an array or list of space-delimited strings. * @param array $queryParams Querystring params to add to the authorization URL. * @return string */ public function createAuthUrl($scope = null, array $queryParams = []) { if (empty($scope)) { $scope = $this->prepareScopes(); } if (\is_array($scope)) { $scope = \implode(' ', $scope); } // only accept one of prompt or approval_prompt $approvalPrompt = $this->config['prompt'] ? null : $this->config['approval_prompt']; // include_granted_scopes should be string "true", string "false", or null $includeGrantedScopes = $this->config['include_granted_scopes'] === null ? null : \var_export($this->config['include_granted_scopes'], \true); $params = \array_filter(['access_type' => $this->config['access_type'], 'approval_prompt' => $approvalPrompt, 'hd' => $this->config['hd'], 'include_granted_scopes' => $includeGrantedScopes, 'login_hint' => $this->config['login_hint'], 'openid.realm' => $this->config['openid.realm'], 'prompt' => $this->config['prompt'], 'redirect_uri' => $this->config['redirect_uri'], 'response_type' => 'code', 'scope' => $scope, 'state' => $this->config['state']]) + $queryParams; // If the list of scopes contains plus.login, add request_visible_actions // to auth URL. $rva = $this->config['request_visible_actions']; if (\strlen($rva) > 0 && \false !== \strpos($scope, 'plus.login')) { $params['request_visible_actions'] = $rva; } $auth = $this->getOAuth2Service(); return (string) $auth->buildFullAuthorizationUri($params); } /** * Adds auth listeners to the HTTP client based on the credentials * set in the Google API Client object * * @param ClientInterface $http the http client object. * @return ClientInterface the http client object */ public function authorize(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http = null) { $http = $http ?: $this->getHttpClient(); $authHandler = $this->getAuthHandler(); // These conditionals represent the decision tree for authentication // 1. Check if a Google\Auth\CredentialsLoader instance has been supplied via the "credentials" option // 2. Check for Application Default Credentials // 3a. Check for an Access Token // 3b. If access token exists but is expired, try to refresh it // 4. Check for API Key if ($this->credentials) { return $authHandler->attachCredentials($http, $this->credentials, $this->config['token_callback']); } if ($this->isUsingApplicationDefaultCredentials()) { $credentials = $this->createApplicationDefaultCredentials(); return $authHandler->attachCredentialsCache($http, $credentials, $this->config['token_callback']); } if ($token = $this->getAccessToken()) { $scopes = $this->prepareScopes(); // add refresh subscriber to request a new token if (isset($token['refresh_token']) && $this->isAccessTokenExpired()) { $credentials = $this->createUserRefreshCredentials($scopes, $token['refresh_token']); return $authHandler->attachCredentials($http, $credentials, $this->config['token_callback']); } return $authHandler->attachToken($http, $token, (array) $scopes); } if ($key = $this->config['developer_key']) { return $authHandler->attachKey($http, $key); } return $http; } /** * Set the configuration to use application default credentials for * authentication * * @see https://developers.google.com/identity/protocols/application-default-credentials * @param boolean $useAppCreds */ public function useApplicationDefaultCredentials($useAppCreds = \true) { $this->config['use_application_default_credentials'] = $useAppCreds; } /** * To prevent useApplicationDefaultCredentials from inappropriately being * called in a conditional * * @see https://developers.google.com/identity/protocols/application-default-credentials */ public function isUsingApplicationDefaultCredentials() { return $this->config['use_application_default_credentials']; } /** * Set the access token used for requests. * * Note that at the time requests are sent, tokens are cached. A token will be * cached for each combination of service and authentication scopes. If a * cache pool is not provided, creating a new instance of the client will * allow modification of access tokens. If a persistent cache pool is * provided, in order to change the access token, you must clear the cached * token by calling `$client->getCache()->clear()`. (Use caution in this case, * as calling `clear()` will remove all cache items, including any items not * related to Google API PHP Client.) * * @param string|array $token * @throws InvalidArgumentException */ public function setAccessToken($token) { if (\is_string($token)) { if ($json = \json_decode($token, \true)) { $token = $json; } else { // assume $token is just the token string $token = ['access_token' => $token]; } } if ($token == null) { throw new \InvalidArgumentException('invalid json token'); } if (!isset($token['access_token'])) { throw new \InvalidArgumentException("Invalid token format"); } $this->token = $token; } public function getAccessToken() { return $this->token; } /** * @return string|null */ public function getRefreshToken() { if (isset($this->token['refresh_token'])) { return $this->token['refresh_token']; } return null; } /** * Returns if the access_token is expired. * @return bool Returns True if the access_token is expired. */ public function isAccessTokenExpired() { if (!$this->token) { return \true; } $created = 0; if (isset($this->token['created'])) { $created = $this->token['created']; } elseif (isset($this->token['id_token'])) { // check the ID token for "iat" // signature verification is not required here, as we are just // using this for convenience to save a round trip request // to the Google API server $idToken = $this->token['id_token']; if (\substr_count($idToken, '.') == 2) { $parts = \explode('.', $idToken); $payload = \json_decode(\base64_decode($parts[1]), \true); if ($payload && isset($payload['iat'])) { $created = $payload['iat']; } } } if (!isset($this->token['expires_in'])) { // if the token does not have an "expires_in", then it's considered expired return \true; } // If the token is set to expire in the next 30 seconds. return $created + ($this->token['expires_in'] - 30) < \time(); } /** * @deprecated See UPGRADING.md for more information */ public function getAuth() { throw new \BadMethodCallException('This function no longer exists. See UPGRADING.md for more information'); } /** * @deprecated See UPGRADING.md for more information */ public function setAuth($auth) { throw new \BadMethodCallException('This function no longer exists. See UPGRADING.md for more information'); } /** * Set the OAuth 2.0 Client ID. * @param string $clientId */ public function setClientId($clientId) { $this->config['client_id'] = $clientId; } public function getClientId() { return $this->config['client_id']; } /** * Set the OAuth 2.0 Client Secret. * @param string $clientSecret */ public function setClientSecret($clientSecret) { $this->config['client_secret'] = $clientSecret; } public function getClientSecret() { return $this->config['client_secret']; } /** * Set the OAuth 2.0 Redirect URI. * @param string $redirectUri */ public function setRedirectUri($redirectUri) { $this->config['redirect_uri'] = $redirectUri; } public function getRedirectUri() { return $this->config['redirect_uri']; } /** * Set OAuth 2.0 "state" parameter to achieve per-request customization. * @see http://tools.ietf.org/html/draft-ietf-oauth-v2-22#section-3.1.2.2 * @param string $state */ public function setState($state) { $this->config['state'] = $state; } /** * @param string $accessType Possible values for access_type include: * {@code "offline"} to request offline access from the user. * {@code "online"} to request online access from the user. */ public function setAccessType($accessType) { $this->config['access_type'] = $accessType; } /** * @param string $approvalPrompt Possible values for approval_prompt include: * {@code "force"} to force the approval UI to appear. * {@code "auto"} to request auto-approval when possible. (This is the default value) */ public function setApprovalPrompt($approvalPrompt) { $this->config['approval_prompt'] = $approvalPrompt; } /** * Set the login hint, email address or sub id. * @param string $loginHint */ public function setLoginHint($loginHint) { $this->config['login_hint'] = $loginHint; } /** * Set the application name, this is included in the User-Agent HTTP header. * @param string $applicationName */ public function setApplicationName($applicationName) { $this->config['application_name'] = $applicationName; } /** * If 'plus.login' is included in the list of requested scopes, you can use * this method to define types of app activities that your app will write. * You can find a list of available types here: * @link https://developers.google.com/+/api/moment-types * * @param array $requestVisibleActions Array of app activity types */ public function setRequestVisibleActions($requestVisibleActions) { if (\is_array($requestVisibleActions)) { $requestVisibleActions = \implode(" ", $requestVisibleActions); } $this->config['request_visible_actions'] = $requestVisibleActions; } /** * Set the developer key to use, these are obtained through the API Console. * @see http://code.google.com/apis/console-help/#generatingdevkeys * @param string $developerKey */ public function setDeveloperKey($developerKey) { $this->config['developer_key'] = $developerKey; } /** * Set the hd (hosted domain) parameter streamlines the login process for * Google Apps hosted accounts. By including the domain of the user, you * restrict sign-in to accounts at that domain. * @param string $hd the domain to use. */ public function setHostedDomain($hd) { $this->config['hd'] = $hd; } /** * Set the prompt hint. Valid values are none, consent and select_account. * If no value is specified and the user has not previously authorized * access, then the user is shown a consent screen. * @param string $prompt * {@code "none"} Do not display any authentication or consent screens. Must not be specified with other values. * {@code "consent"} Prompt the user for consent. * {@code "select_account"} Prompt the user to select an account. */ public function setPrompt($prompt) { $this->config['prompt'] = $prompt; } /** * openid.realm is a parameter from the OpenID 2.0 protocol, not from OAuth * 2.0. It is used in OpenID 2.0 requests to signify the URL-space for which * an authentication request is valid. * @param string $realm the URL-space to use. */ public function setOpenidRealm($realm) { $this->config['openid.realm'] = $realm; } /** * If this is provided with the value true, and the authorization request is * granted, the authorization will include any previous authorizations * granted to this user/application combination for other scopes. * @param bool $include the URL-space to use. */ public function setIncludeGrantedScopes($include) { $this->config['include_granted_scopes'] = $include; } /** * sets function to be called when an access token is fetched * @param callable $tokenCallback - function ($cacheKey, $accessToken) */ public function setTokenCallback(callable $tokenCallback) { $this->config['token_callback'] = $tokenCallback; } /** * Revoke an OAuth2 access token or refresh token. This method will revoke the current access * token, if a token isn't provided. * * @param string|array|null $token The token (access token or a refresh token) that should be revoked. * @return boolean Returns True if the revocation was successful, otherwise False. */ public function revokeToken($token = null) { $tokenRevoker = new \Google\Site_Kit_Dependencies\Google\AccessToken\Revoke($this->getHttpClient()); return $tokenRevoker->revokeToken($token ?: $this->getAccessToken()); } /** * Verify an id_token. This method will verify the current id_token, if one * isn't provided. * * @throws LogicException If no token was provided and no token was set using `setAccessToken`. * @throws UnexpectedValueException If the token is not a valid JWT. * @param string|null $idToken The token (id_token) that should be verified. * @return array|false Returns the token payload as an array if the verification was * successful, false otherwise. */ public function verifyIdToken($idToken = null) { $tokenVerifier = new \Google\Site_Kit_Dependencies\Google\AccessToken\Verify($this->getHttpClient(), $this->getCache(), $this->config['jwt']); if (null === $idToken) { $token = $this->getAccessToken(); if (!isset($token['id_token'])) { throw new \LogicException('id_token must be passed in or set as part of setAccessToken'); } $idToken = $token['id_token']; } return $tokenVerifier->verifyIdToken($idToken, $this->getClientId()); } /** * Set the scopes to be requested. Must be called before createAuthUrl(). * Will remove any previously configured scopes. * @param string|array $scope_or_scopes, ie: * array( * 'https://www.googleapis.com/auth/plus.login', * 'https://www.googleapis.com/auth/moderator' * ); */ public function setScopes($scope_or_scopes) { $this->requestedScopes = []; $this->addScope($scope_or_scopes); } /** * This functions adds a scope to be requested as part of the OAuth2.0 flow. * Will append any scopes not previously requested to the scope parameter. * A single string will be treated as a scope to request. An array of strings * will each be appended. * @param string|string[] $scope_or_scopes e.g. "profile" */ public function addScope($scope_or_scopes) { if (\is_string($scope_or_scopes) && !\in_array($scope_or_scopes, $this->requestedScopes)) { $this->requestedScopes[] = $scope_or_scopes; } elseif (\is_array($scope_or_scopes)) { foreach ($scope_or_scopes as $scope) { $this->addScope($scope); } } } /** * Returns the list of scopes requested by the client * @return array the list of scopes * */ public function getScopes() { return $this->requestedScopes; } /** * @return string|null * @visible For Testing */ public function prepareScopes() { if (empty($this->requestedScopes)) { return null; } return \implode(' ', $this->requestedScopes); } /** * Helper method to execute deferred HTTP requests. * * @template T * @param RequestInterface $request * @param class-string<T>|false|null $expectedClass * @throws \Google\Exception * @return mixed|T|ResponseInterface */ public function execute(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, $expectedClass = null) { $request = $request->withHeader('User-Agent', \sprintf('%s %s%s', $this->config['application_name'], self::USER_AGENT_SUFFIX, $this->getLibraryVersion()))->withHeader('x-goog-api-client', \sprintf('gl-php/%s gdcl/%s', \phpversion(), $this->getLibraryVersion())); if ($this->config['api_format_v2']) { $request = $request->withHeader('X-GOOG-API-FORMAT-VERSION', '2'); } // call the authorize method // this is where most of the grunt work is done $http = $this->authorize(); return \Google\Site_Kit_Dependencies\Google\Http\REST::execute($http, $request, $expectedClass, $this->config['retry'], $this->config['retry_map']); } /** * Declare whether batch calls should be used. This may increase throughput * by making multiple requests in one connection. * * @param boolean $useBatch True if the batch support should * be enabled. Defaults to False. */ public function setUseBatch($useBatch) { // This is actually an alias for setDefer. $this->setDefer($useBatch); } /** * Are we running in Google AppEngine? * return bool */ public function isAppEngine() { return isset($_SERVER['SERVER_SOFTWARE']) && \strpos($_SERVER['SERVER_SOFTWARE'], 'Google App Engine') !== \false; } public function setConfig($name, $value) { $this->config[$name] = $value; } public function getConfig($name, $default = null) { return isset($this->config[$name]) ? $this->config[$name] : $default; } /** * For backwards compatibility * alias for setAuthConfig * * @param string $file the configuration file * @throws \Google\Exception * @deprecated */ public function setAuthConfigFile($file) { $this->setAuthConfig($file); } /** * Set the auth config from new or deprecated JSON config. * This structure should match the file downloaded from * the "Download JSON" button on in the Google Developer * Console. * @param string|array $config the configuration json * @throws \Google\Exception */ public function setAuthConfig($config) { if (\is_string($config)) { if (!\file_exists($config)) { throw new \InvalidArgumentException(\sprintf('file "%s" does not exist', $config)); } $json = \file_get_contents($config); if (!($config = \json_decode($json, \true))) { throw new \LogicException('invalid json for auth config'); } } $key = isset($config['installed']) ? 'installed' : 'web'; if (isset($config['type']) && $config['type'] == 'service_account') { // application default credentials $this->useApplicationDefaultCredentials(); // set the information from the config $this->setClientId($config['client_id']); $this->config['client_email'] = $config['client_email']; $this->config['signing_key'] = $config['private_key']; $this->config['signing_algorithm'] = 'HS256'; } elseif (isset($config[$key])) { // old-style $this->setClientId($config[$key]['client_id']); $this->setClientSecret($config[$key]['client_secret']); if (isset($config[$key]['redirect_uris'])) { $this->setRedirectUri($config[$key]['redirect_uris'][0]); } } else { // new-style $this->setClientId($config['client_id']); $this->setClientSecret($config['client_secret']); if (isset($config['redirect_uris'])) { $this->setRedirectUri($config['redirect_uris'][0]); } } } /** * Use when the service account has been delegated domain wide access. * * @param string $subject an email address account to impersonate */ public function setSubject($subject) { $this->config['subject'] = $subject; } /** * Declare whether making API calls should make the call immediately, or * return a request which can be called with ->execute(); * * @param boolean $defer True if calls should not be executed right away. */ public function setDefer($defer) { $this->deferExecution = $defer; } /** * Whether or not to return raw requests * @return boolean */ public function shouldDefer() { return $this->deferExecution; } /** * @return OAuth2 implementation */ public function getOAuth2Service() { if (!isset($this->auth)) { $this->auth = $this->createOAuth2Service(); } return $this->auth; } /** * create a default google auth object */ protected function createOAuth2Service() { $auth = new \Google\Site_Kit_Dependencies\Google\Auth\OAuth2(['clientId' => $this->getClientId(), 'clientSecret' => $this->getClientSecret(), 'authorizationUri' => self::OAUTH2_AUTH_URL, 'tokenCredentialUri' => self::OAUTH2_TOKEN_URI, 'redirectUri' => $this->getRedirectUri(), 'issuer' => $this->config['client_id'], 'signingKey' => $this->config['signing_key'], 'signingAlgorithm' => $this->config['signing_algorithm']]); return $auth; } /** * Set the Cache object * @param CacheItemPoolInterface $cache */ public function setCache(\Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache) { $this->cache = $cache; } /** * @return CacheItemPoolInterface */ public function getCache() { if (!$this->cache) { $this->cache = $this->createDefaultCache(); } return $this->cache; } /** * @param array $cacheConfig */ public function setCacheConfig(array $cacheConfig) { $this->config['cache_config'] = $cacheConfig; } /** * Set the Logger object * @param LoggerInterface $logger */ public function setLogger(\Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface $logger) { $this->logger = $logger; } /** * @return LoggerInterface */ public function getLogger() { if (!isset($this->logger)) { $this->logger = $this->createDefaultLogger(); } return $this->logger; } protected function createDefaultLogger() { $logger = new \Google\Site_Kit_Dependencies\Monolog\Logger('google-api-php-client'); if ($this->isAppEngine()) { $handler = new \Google\Site_Kit_Dependencies\Monolog\Handler\SyslogHandler('app', \LOG_USER, \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE); } else { $handler = new \Google\Site_Kit_Dependencies\Monolog\Handler\StreamHandler('php://stderr', \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE); } $logger->pushHandler($handler); return $logger; } protected function createDefaultCache() { return new \Google\Site_Kit_Dependencies\Google\Auth\Cache\MemoryCacheItemPool(); } /** * Set the Http Client object * @param ClientInterface $http */ public function setHttpClient(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $http) { $this->http = $http; } /** * @return ClientInterface */ public function getHttpClient() { if (null === $this->http) { $this->http = $this->createDefaultHttpClient(); } return $this->http; } /** * Set the API format version. * * `true` will use V2, which may return more useful error messages. * * @param bool $value */ public function setApiFormatV2($value) { $this->config['api_format_v2'] = (bool) $value; } protected function createDefaultHttpClient() { $guzzleVersion = null; if (\defined('\\Google\\Site_Kit_Dependencies\\GuzzleHttp\\ClientInterface::MAJOR_VERSION')) { $guzzleVersion = \Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface::MAJOR_VERSION; } elseif (\defined('\\Google\\Site_Kit_Dependencies\\GuzzleHttp\\ClientInterface::VERSION')) { $guzzleVersion = (int) \substr(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface::VERSION, 0, 1); } if (5 === $guzzleVersion) { $options = ['base_url' => $this->config['base_path'], 'defaults' => ['exceptions' => \false]]; if ($this->isAppEngine()) { if (\class_exists(\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\StreamHandler::class)) { // set StreamHandler on AppEngine by default $options['handler'] = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\StreamHandler(); $options['defaults']['verify'] = '/etc/ca-certificates.crt'; } } } elseif (6 === $guzzleVersion || 7 === $guzzleVersion) { // guzzle 6 or 7 $options = ['base_uri' => $this->config['base_path'], 'http_errors' => \false]; } else { throw new \LogicException('Could not find supported version of Guzzle.'); } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Client($options); } /** * @return FetchAuthTokenCache */ private function createApplicationDefaultCredentials() { $scopes = $this->prepareScopes(); $sub = $this->config['subject']; $signingKey = $this->config['signing_key']; // create credentials using values supplied in setAuthConfig if ($signingKey) { $serviceAccountCredentials = ['client_id' => $this->config['client_id'], 'client_email' => $this->config['client_email'], 'private_key' => $signingKey, 'type' => 'service_account', 'quota_project_id' => $this->config['quota_project']]; $credentials = \Google\Site_Kit_Dependencies\Google\Auth\CredentialsLoader::makeCredentials($scopes, $serviceAccountCredentials); } else { // When $sub is provided, we cannot pass cache classes to ::getCredentials // because FetchAuthTokenCache::setSub does not exist. // The result is when $sub is provided, calls to ::onGce are not cached. $credentials = \Google\Site_Kit_Dependencies\Google\Auth\ApplicationDefaultCredentials::getCredentials($scopes, null, $sub ? null : $this->config['cache_config'], $sub ? null : $this->getCache(), $this->config['quota_project']); } // for service account domain-wide authority (impersonating a user) // @see https://developers.google.com/identity/protocols/OAuth2ServiceAccount if ($sub) { if (!$credentials instanceof \Google\Site_Kit_Dependencies\Google\Auth\Credentials\ServiceAccountCredentials) { throw new \DomainException('domain-wide authority requires service account credentials'); } $credentials->setSub($sub); } // If we are not using FetchAuthTokenCache yet, create it now if (!$credentials instanceof \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache) { $credentials = new \Google\Site_Kit_Dependencies\Google\Auth\FetchAuthTokenCache($credentials, $this->config['cache_config'], $this->getCache()); } return $credentials; } protected function getAuthHandler() { // Be very careful using the cache, as the underlying auth library's cache // implementation is naive, and the cache keys do not account for user // sessions. // // @see https://github.com/google/google-api-php-client/issues/821 return \Google\Site_Kit_Dependencies\Google\AuthHandler\AuthHandlerFactory::build($this->getCache(), $this->config['cache_config']); } private function createUserRefreshCredentials($scope, $refreshToken) { $creds = \array_filter(['client_id' => $this->getClientId(), 'client_secret' => $this->getClientSecret(), 'refresh_token' => $refreshToken]); return new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\UserRefreshCredentials($scope, $creds); } } apiclient-services-subscribewithgoogle/SubscribewithGoogle/ListUserEntitlementsPlansResponse.php 0000644 00000003746 14721515320 0027765 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class ListUserEntitlementsPlansResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'userEntitlementsPlans'; /** * @var string */ public $nextPageToken; protected $userEntitlementsPlansType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\UserEntitlementsPlan::class; protected $userEntitlementsPlansDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param UserEntitlementsPlan[] */ public function setUserEntitlementsPlans($userEntitlementsPlans) { $this->userEntitlementsPlans = $userEntitlementsPlans; } /** * @return UserEntitlementsPlan[] */ public function getUserEntitlementsPlans() { return $this->userEntitlementsPlans; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListUserEntitlementsPlansResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_ListUserEntitlementsPlansResponse'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/PlanEntitlement.php 0000644 00000004473 14721515320 0024203 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class PlanEntitlement extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'productIds'; /** * @var string */ public $expireTime; /** * @var string[] */ public $productIds; /** * @var string */ public $source; /** * @var string */ public $subscriptionToken; /** * @param string */ public function setExpireTime($expireTime) { $this->expireTime = $expireTime; } /** * @return string */ public function getExpireTime() { return $this->expireTime; } /** * @param string[] */ public function setProductIds($productIds) { $this->productIds = $productIds; } /** * @return string[] */ public function getProductIds() { return $this->productIds; } /** * @param string */ public function setSource($source) { $this->source = $source; } /** * @return string */ public function getSource() { return $this->source; } /** * @param string */ public function setSubscriptionToken($subscriptionToken) { $this->subscriptionToken = $subscriptionToken; } /** * @return string */ public function getSubscriptionToken() { return $this->subscriptionToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PlanEntitlement::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_PlanEntitlement'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/PurchaseInfo.php 0000644 00000003452 14721515320 0023462 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class PurchaseInfo extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $latestOrderId; protected $totalAmountType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money::class; protected $totalAmountDataType = ''; /** * @param string */ public function setLatestOrderId($latestOrderId) { $this->latestOrderId = $latestOrderId; } /** * @return string */ public function getLatestOrderId() { return $this->latestOrderId; } /** * @param Money */ public function setTotalAmount(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money $totalAmount) { $this->totalAmount = $totalAmount; } /** * @return Money */ public function getTotalAmount() { return $this->totalAmount; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PurchaseInfo::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_PurchaseInfo'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Entitlement.php 0000644 00000005503 14721515320 0023363 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class Entitlement extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'products'; /** * @var string */ public $name; /** * @var string[] */ public $products; /** * @var string */ public $readerId; /** * @var string */ public $source; /** * @var string */ public $subscriptionToken; /** * @var string */ public $userId; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string[] */ public function setProducts($products) { $this->products = $products; } /** * @return string[] */ public function getProducts() { return $this->products; } /** * @param string */ public function setReaderId($readerId) { $this->readerId = $readerId; } /** * @return string */ public function getReaderId() { return $this->readerId; } /** * @param string */ public function setSource($source) { $this->source = $source; } /** * @return string */ public function getSource() { return $this->source; } /** * @param string */ public function setSubscriptionToken($subscriptionToken) { $this->subscriptionToken = $subscriptionToken; } /** * @return string */ public function getSubscriptionToken() { return $this->subscriptionToken; } /** * @param string */ public function setUserId($userId) { $this->userId = $userId; } /** * @return string */ public function getUserId() { return $this->userId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Entitlement::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Entitlement'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/WaitingToRecurDetails.php 0000644 00000003262 14721515320 0025307 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class WaitingToRecurDetails extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $freeTrial; /** * @var string */ public $nextRecurrenceTime; /** * @param bool */ public function setFreeTrial($freeTrial) { $this->freeTrial = $freeTrial; } /** * @return bool */ public function getFreeTrial() { return $this->freeTrial; } /** * @param string */ public function setNextRecurrenceTime($nextRecurrenceTime) { $this->nextRecurrenceTime = $nextRecurrenceTime; } /** * @return string */ public function getNextRecurrenceTime() { return $this->nextRecurrenceTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\WaitingToRecurDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_WaitingToRecurDetails'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/RecurrenceDuration.php 0000644 00000003050 14721515320 0024671 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class RecurrenceDuration extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var int */ public $count; /** * @var string */ public $unit; /** * @param int */ public function setCount($count) { $this->count = $count; } /** * @return int */ public function getCount() { return $this->count; } /** * @param string */ public function setUnit($unit) { $this->unit = $unit; } /** * @return string */ public function getUnit() { return $this->unit; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_RecurrenceDuration'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/SuspendedDetails.php 0000644 00000002000 14721515320 0024320 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class SuspendedDetails extends \Google\Site_Kit_Dependencies\Google\Model { } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\SuspendedDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_SuspendedDetails'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/PaymentOptions.php 0000644 00000004412 14721515321 0024063 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class PaymentOptions extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $contributions; /** * @var bool */ public $noPayment; /** * @var bool */ public $subscriptions; /** * @var bool */ public $thankStickers; /** * @param bool */ public function setContributions($contributions) { $this->contributions = $contributions; } /** * @return bool */ public function getContributions() { return $this->contributions; } /** * @param bool */ public function setNoPayment($noPayment) { $this->noPayment = $noPayment; } /** * @return bool */ public function getNoPayment() { return $this->noPayment; } /** * @param bool */ public function setSubscriptions($subscriptions) { $this->subscriptions = $subscriptions; } /** * @return bool */ public function getSubscriptions() { return $this->subscriptions; } /** * @param bool */ public function setThankStickers($thankStickers) { $this->thankStickers = $thankStickers; } /** * @return bool */ public function getThankStickers() { return $this->thankStickers; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PaymentOptions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_PaymentOptions'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/BusinessPredicates.php 0000644 00000003200 14721515321 0024663 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class BusinessPredicates extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var bool */ public $canSell; /** * @var bool */ public $supportsSiteKit; /** * @param bool */ public function setCanSell($canSell) { $this->canSell = $canSell; } /** * @return bool */ public function getCanSell() { return $this->canSell; } /** * @param bool */ public function setSupportsSiteKit($supportsSiteKit) { $this->supportsSiteKit = $supportsSiteKit; } /** * @return bool */ public function getSupportsSiteKit() { return $this->supportsSiteKit; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\BusinessPredicates::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_BusinessPredicates'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/RecurringPlanDetails.php 0000644 00000007704 14721515321 0025162 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class RecurringPlanDetails extends \Google\Site_Kit_Dependencies\Google\Model { protected $canceledDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\CanceledDetails::class; protected $canceledDetailsDataType = ''; protected $recurrenceTermsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceTerms::class; protected $recurrenceTermsDataType = ''; /** * @var string */ public $recurringPlanState; protected $suspendedDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\SuspendedDetails::class; protected $suspendedDetailsDataType = ''; /** * @var string */ public $updateTime; protected $waitingToRecurDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\WaitingToRecurDetails::class; protected $waitingToRecurDetailsDataType = ''; /** * @param CanceledDetails */ public function setCanceledDetails(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\CanceledDetails $canceledDetails) { $this->canceledDetails = $canceledDetails; } /** * @return CanceledDetails */ public function getCanceledDetails() { return $this->canceledDetails; } /** * @param RecurrenceTerms */ public function setRecurrenceTerms(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceTerms $recurrenceTerms) { $this->recurrenceTerms = $recurrenceTerms; } /** * @return RecurrenceTerms */ public function getRecurrenceTerms() { return $this->recurrenceTerms; } /** * @param string */ public function setRecurringPlanState($recurringPlanState) { $this->recurringPlanState = $recurringPlanState; } /** * @return string */ public function getRecurringPlanState() { return $this->recurringPlanState; } /** * @param SuspendedDetails */ public function setSuspendedDetails(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\SuspendedDetails $suspendedDetails) { $this->suspendedDetails = $suspendedDetails; } /** * @return SuspendedDetails */ public function getSuspendedDetails() { return $this->suspendedDetails; } /** * @param string */ public function setUpdateTime($updateTime) { $this->updateTime = $updateTime; } /** * @return string */ public function getUpdateTime() { return $this->updateTime; } /** * @param WaitingToRecurDetails */ public function setWaitingToRecurDetails(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\WaitingToRecurDetails $waitingToRecurDetails) { $this->waitingToRecurDetails = $waitingToRecurDetails; } /** * @return WaitingToRecurDetails */ public function getWaitingToRecurDetails() { return $this->waitingToRecurDetails; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurringPlanDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_RecurringPlanDetails'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/StateDetails.php 0000644 00000003777 14721515321 0023475 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class StateDetails extends \Google\Site_Kit_Dependencies\Google\Model { protected $amountType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money::class; protected $amountDataType = ''; /** * @var string */ public $orderState; /** * @var string */ public $time; /** * @param Money */ public function setAmount(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money $amount) { $this->amount = $amount; } /** * @return Money */ public function getAmount() { return $this->amount; } /** * @param string */ public function setOrderState($orderState) { $this->orderState = $orderState; } /** * @return string */ public function getOrderState() { return $this->orderState; } /** * @param string */ public function setTime($time) { $this->time = $time; } /** * @return string */ public function getTime() { return $this->time; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\StateDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_StateDetails'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/CanceledDetails.php 0000644 00000002507 14721515321 0024101 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class CanceledDetails extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $cancelReason; /** * @param string */ public function setCancelReason($cancelReason) { $this->cancelReason = $cancelReason; } /** * @return string */ public function getCancelReason() { return $this->cancelReason; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\CanceledDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_CanceledDetails'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/ListPublicationsResponse.php 0000644 00000003537 14721515321 0026110 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class ListPublicationsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'publications'; /** * @var string */ public $nextPageToken; protected $publicationsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Publication::class; protected $publicationsDataType = 'array'; /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } /** * @param Publication[] */ public function setPublications($publications) { $this->publications = $publications; } /** * @return Publication[] */ public function getPublications() { return $this->publications; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListPublicationsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_ListPublicationsResponse'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/UserEntitlementsPlan.php 0000644 00000010643 14721515321 0025222 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class UserEntitlementsPlan extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'planEntitlements'; /** * @var string */ public $name; protected $planEntitlementsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PlanEntitlement::class; protected $planEntitlementsDataType = 'array'; /** * @var string */ public $planId; /** * @var string */ public $planType; /** * @var string */ public $publicationId; protected $purchaseInfoType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PurchaseInfo::class; protected $purchaseInfoDataType = ''; /** * @var string */ public $readerId; protected $recurringPlanDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurringPlanDetails::class; protected $recurringPlanDetailsDataType = ''; /** * @var string */ public $userId; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param PlanEntitlement[] */ public function setPlanEntitlements($planEntitlements) { $this->planEntitlements = $planEntitlements; } /** * @return PlanEntitlement[] */ public function getPlanEntitlements() { return $this->planEntitlements; } /** * @param string */ public function setPlanId($planId) { $this->planId = $planId; } /** * @return string */ public function getPlanId() { return $this->planId; } /** * @param string */ public function setPlanType($planType) { $this->planType = $planType; } /** * @return string */ public function getPlanType() { return $this->planType; } /** * @param string */ public function setPublicationId($publicationId) { $this->publicationId = $publicationId; } /** * @return string */ public function getPublicationId() { return $this->publicationId; } /** * @param PurchaseInfo */ public function setPurchaseInfo(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PurchaseInfo $purchaseInfo) { $this->purchaseInfo = $purchaseInfo; } /** * @return PurchaseInfo */ public function getPurchaseInfo() { return $this->purchaseInfo; } /** * @param string */ public function setReaderId($readerId) { $this->readerId = $readerId; } /** * @return string */ public function getReaderId() { return $this->readerId; } /** * @param RecurringPlanDetails */ public function setRecurringPlanDetails(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurringPlanDetails $recurringPlanDetails) { $this->recurringPlanDetails = $recurringPlanDetails; } /** * @return RecurringPlanDetails */ public function getRecurringPlanDetails() { return $this->recurringPlanDetails; } /** * @param string */ public function setUserId($userId) { $this->userId = $userId; } /** * @return string */ public function getUserId() { return $this->userId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\UserEntitlementsPlan::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_UserEntitlementsPlan'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Publication.php 0000644 00000007654 14721515321 0023356 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class Publication extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'verifiedDomains'; /** * @var string */ public $displayName; /** * @var string */ public $onboardingState; protected $paymentOptionsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PaymentOptions::class; protected $paymentOptionsDataType = ''; protected $productsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Product::class; protected $productsDataType = 'array'; /** * @var string */ public $publicationId; protected $publicationPredicatesType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PublicationPredicates::class; protected $publicationPredicatesDataType = ''; /** * @var string[] */ public $verifiedDomains; /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setOnboardingState($onboardingState) { $this->onboardingState = $onboardingState; } /** * @return string */ public function getOnboardingState() { return $this->onboardingState; } /** * @param PaymentOptions */ public function setPaymentOptions(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PaymentOptions $paymentOptions) { $this->paymentOptions = $paymentOptions; } /** * @return PaymentOptions */ public function getPaymentOptions() { return $this->paymentOptions; } /** * @param Product[] */ public function setProducts($products) { $this->products = $products; } /** * @return Product[] */ public function getProducts() { return $this->products; } /** * @param string */ public function setPublicationId($publicationId) { $this->publicationId = $publicationId; } /** * @return string */ public function getPublicationId() { return $this->publicationId; } /** * @param PublicationPredicates */ public function setPublicationPredicates(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PublicationPredicates $publicationPredicates) { $this->publicationPredicates = $publicationPredicates; } /** * @return PublicationPredicates */ public function getPublicationPredicates() { return $this->publicationPredicates; } /** * @param string[] */ public function setVerifiedDomains($verifiedDomains) { $this->verifiedDomains = $verifiedDomains; } /** * @return string[] */ public function getVerifiedDomains() { return $this->verifiedDomains; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Publication::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Publication'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Product.php 0000644 00000002367 14721515321 0022521 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class Product extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $name; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Product::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Product'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Money.php 0000644 00000003522 14721515321 0022162 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class Money extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $currencyCode; /** * @var int */ public $nanos; /** * @var string */ public $units; /** * @param string */ public function setCurrencyCode($currencyCode) { $this->currencyCode = $currencyCode; } /** * @return string */ public function getCurrencyCode() { return $this->currencyCode; } /** * @param int */ public function setNanos($nanos) { $this->nanos = $nanos; } /** * @return int */ public function getNanos() { return $this->nanos; } /** * @param string */ public function setUnits($units) { $this->units = $units; } /** * @return string */ public function getUnits() { return $this->units; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Money::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Money'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Resource/PublicationsReaders.php 0000644 00000003701 14721515321 0026623 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource; use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Reader; /** * The "readers" collection of methods. * Typical usage is: * <code> * $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...); * $readers = $subscribewithgoogleService->publications_readers; * </code> */ class PublicationsReaders extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets Reader's Profile information. (readers.get) * * @param string $name Required. The resource name of the Reader. Format: * publications/{publication}/readers/{reader} * @param array $optParams Optional parameters. * @return Reader * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Reader::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReaders::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_PublicationsReaders'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Resource/Publications.php 0000644 00000005143 14721515321 0025317 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource; use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListPublicationsResponse; /** * The "publications" collection of methods. * Typical usage is: * <code> * $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...); * $publications = $subscribewithgoogleService->publications; * </code> */ class Publications extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * List all publications based on the filter, only the publications owned by the * current user will be returned (publications.listPublications) * * @param array $optParams Optional parameters. * * @opt_param string filter Filters the publications list. e.g. * verified_domains: "xyz.com" Grammar defined as https://google.aip.dev/160. * @opt_param int pageSize LINT.IfChange The maximum number of publications to * return, the service may return fewer than this value. if unspecified, at most * 100 publications will be returned. The maximum value is 1000; values above * 1000 will be coerced to 1000. LINT.ThenChange(//depot/google3/java/com/google * /subscribewithgoogle/client/opservice/ListPublicationsPromiseGraph.java) * @opt_param string pageToken A token identifying a page of results the server * should return. * @return ListPublicationsResponse * @throws \Google\Service\Exception */ public function listPublications($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListPublicationsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\Publications::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_Publications'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Resource/PublicationsReadersOrders.php 0000644 00000003731 14721515321 0030005 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource; use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Order; /** * The "orders" collection of methods. * Typical usage is: * <code> * $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...); * $orders = $subscribewithgoogleService->publications_readers_orders; * </code> */ class PublicationsReadersOrders extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets order's information. (orders.get) * * @param string $name Required. The resource name of the Order. Format: * publications/{publication}/readers/{reader}/orders/{order} * @param array $optParams Optional parameters. * @return Order * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Order::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReadersOrders::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_PublicationsReadersOrders'); SubscribewithGoogle/Resource/PublicationsReadersEntitlementsplans.php 0000644 00000007226 14721515321 0032204 0 ustar 00 apiclient-services-subscribewithgoogle <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource; use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListUserEntitlementsPlansResponse; use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\UserEntitlementsPlan; /** * The "entitlementsplans" collection of methods. * Typical usage is: * <code> * $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...); * $entitlementsplans = $subscribewithgoogleService->publications_readers_entitlementsplans; * </code> */ class PublicationsReadersEntitlementsplans extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets the entitlements plan identitfied by plan id for a given user under the * given publication. (entitlementsplans.get) * * @param string $name Required. The resource name of the UserEntitlementsPlan. * Format: publications/{publication}/readers/{reader}/entitlementsplans/{plan} * @param array $optParams Optional parameters. * @return UserEntitlementsPlan * @throws \Google\Service\Exception */ public function get($name, $optParams = []) { $params = ['name' => $name]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\UserEntitlementsPlan::class); } /** * Lists all the entitlements plans for a given user under a given publication. * (entitlementsplans.listPublicationsReadersEntitlementsplans) * * @param string $parent Required. The parent, which owns this collection of * UserEntitlementsPlans. Format: publications/{publication}/readers/{reader} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of UserEntitlementsPlans to * return. The service may return fewer than this value. If unspecified, at most * 100 UserEntitlementsPlans will be returned. The maximum value is 1000; values * above 1000 will be coerced to 1000. * @opt_param string pageToken A token identifying a page of results the server * should return. Typically, this is the value of * ListUserEntitlementsPlansResponse.next_page_token returned from the previous * call to `ListUserEntitlementsPlans` method. * @return ListUserEntitlementsPlansResponse * @throws \Google\Service\Exception */ public function listPublicationsReadersEntitlementsplans($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListUserEntitlementsPlansResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReadersEntitlementsplans::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_PublicationsReadersEntitlementsplans'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Resource/PublicationsEntitlements.php 0000644 00000005026 14721515321 0027713 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource; use Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListEntitlementsResponse; /** * The "entitlements" collection of methods. * Typical usage is: * <code> * $subscribewithgoogleService = new Google\Service\SubscribewithGoogle(...); * $entitlements = $subscribewithgoogleService->publications_entitlements; * </code> */ class PublicationsEntitlements extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets a set of entitlements for the user for this publication. The publication * can fetch entitlements on behalf of a user authenticated via OAuth2. * (entitlements.listPublicationsEntitlements) * * @param string $publicationId Mapped to the URL. * @param array $optParams Optional parameters. * * @opt_param int pageSize Requested page size. If unspecified, server will pick * an appropriate default. * @opt_param string pageToken A token identifying a page of results the server * should return. Typically, this is the value of * ListEntitlementsResponse.next_page_token returned from the previous call to * `ListEntitlements` method. * @return ListEntitlementsResponse * @throws \Google\Service\Exception */ public function listPublicationsEntitlements($publicationId, $optParams = []) { $params = ['publicationId' => $publicationId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListEntitlementsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsEntitlements::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Resource_PublicationsEntitlements'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Reader.php 0000644 00000006243 14721515321 0022300 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class Reader extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $displayName; /** * @var string */ public $emailAddress; /** * @var string */ public $familyName; /** * @var string */ public $givenName; /** * @var bool */ public $isReaderInfoAvailable; /** * @var string */ public $name; /** * @var string */ public $readerId; /** * @param string */ public function setDisplayName($displayName) { $this->displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setEmailAddress($emailAddress) { $this->emailAddress = $emailAddress; } /** * @return string */ public function getEmailAddress() { return $this->emailAddress; } /** * @param string */ public function setFamilyName($familyName) { $this->familyName = $familyName; } /** * @return string */ public function getFamilyName() { return $this->familyName; } /** * @param string */ public function setGivenName($givenName) { $this->givenName = $givenName; } /** * @return string */ public function getGivenName() { return $this->givenName; } /** * @param bool */ public function setIsReaderInfoAvailable($isReaderInfoAvailable) { $this->isReaderInfoAvailable = $isReaderInfoAvailable; } /** * @return bool */ public function getIsReaderInfoAvailable() { return $this->isReaderInfoAvailable; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setReaderId($readerId) { $this->readerId = $readerId; } /** * @return string */ public function getReaderId() { return $this->readerId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Reader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Reader'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/Order.php 0000644 00000004021 14721515321 0022141 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class Order extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'stateDetails'; /** * @var string */ public $name; /** * @var string */ public $orderId; protected $stateDetailsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\StateDetails::class; protected $stateDetailsDataType = 'array'; /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setOrderId($orderId) { $this->orderId = $orderId; } /** * @return string */ public function getOrderId() { return $this->orderId; } /** * @param StateDetails[] */ public function setStateDetails($stateDetails) { $this->stateDetails = $stateDetails; } /** * @return StateDetails[] */ public function getStateDetails() { return $this->stateDetails; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Order::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_Order'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/RecurrenceTerms.php 0000644 00000005537 14721515321 0024213 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class RecurrenceTerms extends \Google\Site_Kit_Dependencies\Google\Model { /** * @var string */ public $accountOnHoldMillis; protected $freeTrialPeriodType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration::class; protected $freeTrialPeriodDataType = ''; /** * @var string */ public $gracePeriodMillis; protected $recurrencePeriodType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration::class; protected $recurrencePeriodDataType = ''; /** * @param string */ public function setAccountOnHoldMillis($accountOnHoldMillis) { $this->accountOnHoldMillis = $accountOnHoldMillis; } /** * @return string */ public function getAccountOnHoldMillis() { return $this->accountOnHoldMillis; } /** * @param RecurrenceDuration */ public function setFreeTrialPeriod(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration $freeTrialPeriod) { $this->freeTrialPeriod = $freeTrialPeriod; } /** * @return RecurrenceDuration */ public function getFreeTrialPeriod() { return $this->freeTrialPeriod; } /** * @param string */ public function setGracePeriodMillis($gracePeriodMillis) { $this->gracePeriodMillis = $gracePeriodMillis; } /** * @return string */ public function getGracePeriodMillis() { return $this->gracePeriodMillis; } /** * @param RecurrenceDuration */ public function setRecurrencePeriod(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceDuration $recurrencePeriod) { $this->recurrencePeriod = $recurrencePeriod; } /** * @return RecurrenceDuration */ public function getRecurrencePeriod() { return $this->recurrencePeriod; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\RecurrenceTerms::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_RecurrenceTerms'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/ListEntitlementsResponse.php 0000644 00000003537 14721515321 0026127 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class ListEntitlementsResponse extends \Google\Site_Kit_Dependencies\Google\Collection { protected $collection_key = 'entitlements'; protected $entitlementsType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Entitlement::class; protected $entitlementsDataType = 'array'; /** * @var string */ public $nextPageToken; /** * @param Entitlement[] */ public function setEntitlements($entitlements) { $this->entitlements = $entitlements; } /** * @return Entitlement[] */ public function getEntitlements() { return $this->entitlements; } /** * @param string */ public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\ListEntitlementsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_ListEntitlementsResponse'); apiclient-services-subscribewithgoogle/SubscribewithGoogle/PublicationPredicates.php 0000644 00000003140 14721515321 0025344 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle; class PublicationPredicates extends \Google\Site_Kit_Dependencies\Google\Model { protected $businessPredicatesType = \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\BusinessPredicates::class; protected $businessPredicatesDataType = ''; /** * @param BusinessPredicates */ public function setBusinessPredicates(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\BusinessPredicates $businessPredicates) { $this->businessPredicates = $businessPredicates; } /** * @return BusinessPredicates */ public function getBusinessPredicates() { return $this->businessPredicates; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\PublicationPredicates::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle_PublicationPredicates'); apiclient-services-subscribewithgoogle/SubscribewithGoogle.php 0000644 00000012427 14721515321 0021077 0 ustar 00 <?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. */ namespace Google\Site_Kit_Dependencies\Google\Service; use Google\Site_Kit_Dependencies\Google\Client; /** * Service definition for SubscribewithGoogle (v1). * * <p> * The Subscribe with Google Publication APIs enable a publisher to fetch * information related to their SwG subscriptions, including the entitlement * status of users who are requesting publisher content, the publications owned * by the publisher, the entitlements plans of their SwG readers, the readers' * profile information and purchase order information.</p> * * <p> * For more information about this service, see the API * <a href="https://developers.google.com/news/subscribe/guides/overview" target="_blank">Documentation</a> * </p> * * @author Google, Inc. */ class SubscribewithGoogle extends \Google\Site_Kit_Dependencies\Google\Service { /** See and review your subscription information. */ const SUBSCRIBEWITHGOOGLE_PUBLICATIONS_ENTITLEMENTS_READONLY = "https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.readonly"; /** See your primary Google Account email address. */ const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; public $publications; public $publications_entitlements; public $publications_readers; public $publications_readers_entitlementsplans; public $publications_readers_orders; public $rootUrlTemplate; /** * Constructs the internal representation of the SubscribewithGoogle service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://subscribewithgoogle.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://subscribewithgoogle.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'subscribewithgoogle'; $this->publications = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\Publications($this, $this->serviceName, 'publications', ['methods' => ['list' => ['path' => 'v1/publications', 'httpMethod' => 'GET', 'parameters' => ['filter' => ['location' => 'query', 'type' => 'string'], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->publications_entitlements = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsEntitlements($this, $this->serviceName, 'entitlements', ['methods' => ['list' => ['path' => 'v1/publications/{publicationId}/entitlements', 'httpMethod' => 'GET', 'parameters' => ['publicationId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->publications_readers = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReaders($this, $this->serviceName, 'readers', ['methods' => ['get' => ['path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->publications_readers_entitlementsplans = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReadersEntitlementsplans($this, $this->serviceName, 'entitlementsplans', ['methods' => ['get' => ['path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'v1/{+parent}/entitlementsplans', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->publications_readers_orders = new \Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle\Resource\PublicationsReadersOrders($this, $this->serviceName, 'orders', ['methods' => ['get' => ['path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\SubscribewithGoogle::class, 'Google\\Site_Kit_Dependencies\\Google_Service_SubscribewithGoogle');
| ver. 1.4 |
Github
|
.
| PHP 7.4.3-4ubuntu2.24 | Генерация страницы: 0.23 |
proxy
|
phpinfo
|
Настройка