8889841cfirebase/php-jwt/src/BeforeValidException.php000064400000000176150544704730015273 0ustar00 * @license http://opensource.org/licenses/BSD-3-Clause 3-clause BSD * @link https://github.com/firebase/php-jwt */ class JWK { /** * Parse a set of JWK keys * * @param array $jwks The JSON Web Key Set as an associative array * * @return array An associative array that represents the set of keys * * @throws InvalidArgumentException Provided JWK Set is empty * @throws UnexpectedValueException Provided JWK Set was invalid * @throws DomainException OpenSSL failure * * @uses parseKey */ public static function parseKeySet(array $jwks) { $keys = array(); if (!isset($jwks['keys'])) { throw new \UnexpectedValueException('"keys" member must exist in the JWK Set'); } if (empty($jwks['keys'])) { throw new \InvalidArgumentException('JWK Set did not contain any keys'); } foreach ($jwks['keys'] as $k => $v) { $kid = isset($v['kid']) ? $v['kid'] : $k; if ($key = self::parseKey($v)) { $keys[$kid] = $key; } } if (0 === \count($keys)) { throw new \UnexpectedValueException('No supported algorithms found in JWK Set'); } return $keys; } /** * Parse a JWK key * * @param array $jwk An individual JWK * * @return resource|array An associative array that represents the key * * @throws InvalidArgumentException Provided JWK is empty * @throws UnexpectedValueException Provided JWK was invalid * @throws DomainException OpenSSL failure * * @uses createPemFromModulusAndExponent */ public static function parseKey(array $jwk) { if (empty($jwk)) { throw new \InvalidArgumentException('JWK must not be empty'); } if (!isset($jwk['kty'])) { throw new \UnexpectedValueException('JWK must contain a "kty" parameter'); } switch ($jwk['kty']) { case 'RSA': if (!empty($jwk['d'])) { throw new \UnexpectedValueException('RSA private keys are not supported'); } if (!isset($jwk['n']) || !isset($jwk['e'])) { throw new \UnexpectedValueException('RSA keys must contain values for both "n" and "e"'); } $pem = self::createPemFromModulusAndExponent($jwk['n'], $jwk['e']); $publicKey = \openssl_pkey_get_public($pem); if (\false === $publicKey) { throw new \DomainException('OpenSSL error: ' . \openssl_error_string()); } return $publicKey; default: // Currently only RSA is supported break; } } /** * Create a public key represented in PEM format from RSA modulus and exponent information * * @param string $n The RSA modulus encoded in Base64 * @param string $e The RSA exponent encoded in Base64 * * @return string The RSA public key represented in PEM format * * @uses encodeLength */ private static function createPemFromModulusAndExponent($n, $e) { $modulus = \Google\Site_Kit_Dependencies\Firebase\JWT\JWT::urlsafeB64Decode($n); $publicExponent = \Google\Site_Kit_Dependencies\Firebase\JWT\JWT::urlsafeB64Decode($e); $components = array('modulus' => \pack('Ca*a*', 2, self::encodeLength(\strlen($modulus)), $modulus), 'publicExponent' => \pack('Ca*a*', 2, self::encodeLength(\strlen($publicExponent)), $publicExponent)); $rsaPublicKey = \pack('Ca*a*a*', 48, self::encodeLength(\strlen($components['modulus']) + \strlen($components['publicExponent'])), $components['modulus'], $components['publicExponent']); // sequence(oid(1.2.840.113549.1.1.1), null)) = rsaEncryption. $rsaOID = \pack('H*', '300d06092a864886f70d0101010500'); // hex version of MA0GCSqGSIb3DQEBAQUA $rsaPublicKey = \chr(0) . $rsaPublicKey; $rsaPublicKey = \chr(3) . self::encodeLength(\strlen($rsaPublicKey)) . $rsaPublicKey; $rsaPublicKey = \pack('Ca*a*', 48, self::encodeLength(\strlen($rsaOID . $rsaPublicKey)), $rsaOID . $rsaPublicKey); $rsaPublicKey = "-----BEGIN PUBLIC KEY-----\r\n" . \chunk_split(\base64_encode($rsaPublicKey), 64) . '-----END PUBLIC KEY-----'; return $rsaPublicKey; } /** * DER-encode the length * * DER supports lengths up to (2**8)**127, however, we'll only support lengths up to (2**8)**4. See * {@link http://itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf#p=13 X.690 paragraph 8.1.3} for more information. * * @param int $length * @return string */ private static function encodeLength($length) { if ($length <= 0x7f) { return \chr($length); } $temp = \ltrim(\pack('N', $length), \chr(0)); return \pack('Ca*', 0x80 | \strlen($temp), $temp); } } firebase/php-jwt/src/SignatureInvalidException.php000064400000000203150544704730016350 0ustar00 * @author Anant Narayanan * @license http://opensource.org/licenses/BSD-3-Clause 3-clause BSD * @link https://github.com/firebase/php-jwt */ class JWT { const ASN1_INTEGER = 0x2; const ASN1_SEQUENCE = 0x10; const ASN1_BIT_STRING = 0x3; /** * When checking nbf, iat or expiration times, * we want to provide some extra leeway time to * account for clock skew. */ public static $leeway = 0; /** * Allow the current timestamp to be specified. * Useful for fixing a value within unit testing. * * Will default to PHP time() value if null. */ public static $timestamp = null; public static $supported_algs = array('ES384' => array('openssl', 'SHA384'), 'ES256' => array('openssl', 'SHA256'), 'HS256' => array('hash_hmac', 'SHA256'), 'HS384' => array('hash_hmac', 'SHA384'), 'HS512' => array('hash_hmac', 'SHA512'), 'RS256' => array('openssl', 'SHA256'), 'RS384' => array('openssl', 'SHA384'), 'RS512' => array('openssl', 'SHA512'), 'EdDSA' => array('sodium_crypto', 'EdDSA')); /** * Decodes a JWT string into a PHP object. * * @param string $jwt The JWT * @param Key|array|mixed $keyOrKeyArray The Key or array of Key objects. * If the algorithm used is asymmetric, this is the public key * Each Key object contains an algorithm and matching key. * Supported algorithms are 'ES384','ES256', 'HS256', 'HS384', * 'HS512', 'RS256', 'RS384', and 'RS512' * @param array $allowed_algs [DEPRECATED] List of supported verification algorithms. Only * should be used for backwards compatibility. * * @return object The JWT's payload as a PHP object * * @throws InvalidArgumentException Provided JWT was empty * @throws UnexpectedValueException Provided JWT was invalid * @throws SignatureInvalidException Provided JWT was invalid because the signature verification failed * @throws BeforeValidException Provided JWT is trying to be used before it's eligible as defined by 'nbf' * @throws BeforeValidException Provided JWT is trying to be used before it's been created as defined by 'iat' * @throws ExpiredException Provided JWT has since expired, as defined by the 'exp' claim * * @uses jsonDecode * @uses urlsafeB64Decode */ public static function decode($jwt, $keyOrKeyArray, array $allowed_algs = array()) { $timestamp = \is_null(static::$timestamp) ? \time() : static::$timestamp; if (empty($keyOrKeyArray)) { throw new \InvalidArgumentException('Key may not be empty'); } $tks = \explode('.', $jwt); if (\count($tks) != 3) { throw new \UnexpectedValueException('Wrong number of segments'); } list($headb64, $bodyb64, $cryptob64) = $tks; if (null === ($header = static::jsonDecode(static::urlsafeB64Decode($headb64)))) { throw new \UnexpectedValueException('Invalid header encoding'); } if (null === ($payload = static::jsonDecode(static::urlsafeB64Decode($bodyb64)))) { throw new \UnexpectedValueException('Invalid claims encoding'); } if (\false === ($sig = static::urlsafeB64Decode($cryptob64))) { throw new \UnexpectedValueException('Invalid signature encoding'); } if (empty($header->alg)) { throw new \UnexpectedValueException('Empty algorithm'); } if (empty(static::$supported_algs[$header->alg])) { throw new \UnexpectedValueException('Algorithm not supported'); } list($keyMaterial, $algorithm) = self::getKeyMaterialAndAlgorithm($keyOrKeyArray, empty($header->kid) ? null : $header->kid); if (empty($algorithm)) { // Use deprecated "allowed_algs" to determine if the algorithm is supported. // This opens up the possibility of an attack in some implementations. // @see https://github.com/firebase/php-jwt/issues/351 if (!\in_array($header->alg, $allowed_algs)) { throw new \UnexpectedValueException('Algorithm not allowed'); } } else { // Check the algorithm if (!self::constantTimeEquals($algorithm, $header->alg)) { // See issue #351 throw new \UnexpectedValueException('Incorrect key for this algorithm'); } } if ($header->alg === 'ES256' || $header->alg === 'ES384') { // OpenSSL expects an ASN.1 DER sequence for ES256/ES384 signatures $sig = self::signatureToDER($sig); } if (!static::verify("{$headb64}.{$bodyb64}", $sig, $keyMaterial, $header->alg)) { throw new \Google\Site_Kit_Dependencies\Firebase\JWT\SignatureInvalidException('Signature verification failed'); } // Check the nbf if it is defined. This is the time that the // token can actually be used. If it's not yet that time, abort. if (isset($payload->nbf) && $payload->nbf > $timestamp + static::$leeway) { throw new \Google\Site_Kit_Dependencies\Firebase\JWT\BeforeValidException('Cannot handle token prior to ' . \date(\DateTime::ISO8601, $payload->nbf)); } // Check that this token has been created before 'now'. This prevents // using tokens that have been created for later use (and haven't // correctly used the nbf claim). if (isset($payload->iat) && $payload->iat > $timestamp + static::$leeway) { throw new \Google\Site_Kit_Dependencies\Firebase\JWT\BeforeValidException('Cannot handle token prior to ' . \date(\DateTime::ISO8601, $payload->iat)); } // Check if this token has expired. if (isset($payload->exp) && $timestamp - static::$leeway >= $payload->exp) { throw new \Google\Site_Kit_Dependencies\Firebase\JWT\ExpiredException('Expired token'); } return $payload; } /** * Converts and signs a PHP object or array into a JWT string. * * @param object|array $payload PHP object or array * @param string|resource $key The secret key. * If the algorithm used is asymmetric, this is the private key * @param string $alg The signing algorithm. * Supported algorithms are 'ES384','ES256', 'HS256', 'HS384', * 'HS512', 'RS256', 'RS384', and 'RS512' * @param mixed $keyId * @param array $head An array with header elements to attach * * @return string A signed JWT * * @uses jsonEncode * @uses urlsafeB64Encode */ public static function encode($payload, $key, $alg = 'HS256', $keyId = null, $head = null) { $header = array('typ' => 'JWT', 'alg' => $alg); if ($keyId !== null) { $header['kid'] = $keyId; } if (isset($head) && \is_array($head)) { $header = \array_merge($head, $header); } $segments = array(); $segments[] = static::urlsafeB64Encode(static::jsonEncode($header)); $segments[] = static::urlsafeB64Encode(static::jsonEncode($payload)); $signing_input = \implode('.', $segments); $signature = static::sign($signing_input, $key, $alg); $segments[] = static::urlsafeB64Encode($signature); return \implode('.', $segments); } /** * Sign a string with a given key and algorithm. * * @param string $msg The message to sign * @param string|resource $key The secret key * @param string $alg The signing algorithm. * Supported algorithms are 'ES384','ES256', 'HS256', 'HS384', * 'HS512', 'RS256', 'RS384', and 'RS512' * * @return string An encrypted message * * @throws DomainException Unsupported algorithm or bad key was specified */ public static function sign($msg, $key, $alg = 'HS256') { if (empty(static::$supported_algs[$alg])) { throw new \DomainException('Algorithm not supported'); } list($function, $algorithm) = static::$supported_algs[$alg]; switch ($function) { case 'hash_hmac': return \hash_hmac($algorithm, $msg, $key, \true); case 'openssl': $signature = ''; $success = \openssl_sign($msg, $signature, $key, $algorithm); if (!$success) { throw new \DomainException("OpenSSL unable to sign data"); } if ($alg === 'ES256') { $signature = self::signatureFromDER($signature, 256); } elseif ($alg === 'ES384') { $signature = self::signatureFromDER($signature, 384); } return $signature; case 'sodium_crypto': if (!\function_exists('sodium_crypto_sign_detached')) { throw new \DomainException('libsodium is not available'); } try { // The last non-empty line is used as the key. $lines = \array_filter(\explode("\n", $key)); $key = \base64_decode(\end($lines)); return \sodium_crypto_sign_detached($msg, $key); } catch (\Exception $e) { throw new \DomainException($e->getMessage(), 0, $e); } } } /** * Verify a signature with the message, key and method. Not all methods * are symmetric, so we must have a separate verify and sign method. * * @param string $msg The original message (header and body) * @param string $signature The original signature * @param string|resource $key For HS*, a string key works. for RS*, must be a resource of an openssl public key * @param string $alg The algorithm * * @return bool * * @throws DomainException Invalid Algorithm, bad key, or OpenSSL failure */ private static function verify($msg, $signature, $key, $alg) { if (empty(static::$supported_algs[$alg])) { throw new \DomainException('Algorithm not supported'); } list($function, $algorithm) = static::$supported_algs[$alg]; switch ($function) { case 'openssl': $success = \openssl_verify($msg, $signature, $key, $algorithm); if ($success === 1) { return \true; } elseif ($success === 0) { return \false; } // returns 1 on success, 0 on failure, -1 on error. throw new \DomainException('OpenSSL error: ' . \openssl_error_string()); case 'sodium_crypto': if (!\function_exists('sodium_crypto_sign_verify_detached')) { throw new \DomainException('libsodium is not available'); } try { // The last non-empty line is used as the key. $lines = \array_filter(\explode("\n", $key)); $key = \base64_decode(\end($lines)); return \sodium_crypto_sign_verify_detached($signature, $msg, $key); } catch (\Exception $e) { throw new \DomainException($e->getMessage(), 0, $e); } case 'hash_hmac': default: $hash = \hash_hmac($algorithm, $msg, $key, \true); return self::constantTimeEquals($signature, $hash); } } /** * Decode a JSON string into a PHP object. * * @param string $input JSON string * * @return object Object representation of JSON string * * @throws DomainException Provided string was invalid JSON */ public static function jsonDecode($input) { if (\version_compare(\PHP_VERSION, '5.4.0', '>=') && !(\defined('Google\\Site_Kit_Dependencies\\JSON_C_VERSION') && \PHP_INT_SIZE > 4)) { /** In PHP >=5.4.0, json_decode() accepts an options parameter, that allows you * to specify that large ints (like Steam Transaction IDs) should be treated as * strings, rather than the PHP default behaviour of converting them to floats. */ $obj = \json_decode($input, \false, 512, \JSON_BIGINT_AS_STRING); } else { /** Not all servers will support that, however, so for older versions we must * manually detect large ints in the JSON string and quote them (thus converting *them to strings) before decoding, hence the preg_replace() call. */ $max_int_length = \strlen((string) \PHP_INT_MAX) - 1; $json_without_bigints = \preg_replace('/:\\s*(-?\\d{' . $max_int_length . ',})/', ': "$1"', $input); $obj = \json_decode($json_without_bigints); } if ($errno = \json_last_error()) { static::handleJsonError($errno); } elseif ($obj === null && $input !== 'null') { throw new \DomainException('Null result with non-null input'); } return $obj; } /** * Encode a PHP object into a JSON string. * * @param object|array $input A PHP object or array * * @return string JSON representation of the PHP object or array * * @throws DomainException Provided object could not be encoded to valid JSON */ public static function jsonEncode($input) { $json = \json_encode($input); if ($errno = \json_last_error()) { static::handleJsonError($errno); } elseif ($json === 'null' && $input !== null) { throw new \DomainException('Null result with non-null input'); } return $json; } /** * Decode a string with URL-safe Base64. * * @param string $input A Base64 encoded string * * @return string A decoded string */ public static function urlsafeB64Decode($input) { $remainder = \strlen($input) % 4; if ($remainder) { $padlen = 4 - $remainder; $input .= \str_repeat('=', $padlen); } return \base64_decode(\strtr($input, '-_', '+/')); } /** * Encode a string with URL-safe Base64. * * @param string $input The string you want encoded * * @return string The base64 encode of what you passed in */ public static function urlsafeB64Encode($input) { return \str_replace('=', '', \strtr(\base64_encode($input), '+/', '-_')); } /** * Determine if an algorithm has been provided for each Key * * @param Key|array|mixed $keyOrKeyArray * @param string|null $kid * * @throws UnexpectedValueException * * @return array containing the keyMaterial and algorithm */ private static function getKeyMaterialAndAlgorithm($keyOrKeyArray, $kid = null) { if (\is_string($keyOrKeyArray) || \is_resource($keyOrKeyArray) || $keyOrKeyArray instanceof \OpenSSLAsymmetricKey) { return array($keyOrKeyArray, null); } if ($keyOrKeyArray instanceof \Google\Site_Kit_Dependencies\Firebase\JWT\Key) { return array($keyOrKeyArray->getKeyMaterial(), $keyOrKeyArray->getAlgorithm()); } if (\is_array($keyOrKeyArray) || $keyOrKeyArray instanceof \ArrayAccess) { if (!isset($kid)) { throw new \UnexpectedValueException('"kid" empty, unable to lookup correct key'); } if (!isset($keyOrKeyArray[$kid])) { throw new \UnexpectedValueException('"kid" invalid, unable to lookup correct key'); } $key = $keyOrKeyArray[$kid]; if ($key instanceof \Google\Site_Kit_Dependencies\Firebase\JWT\Key) { return array($key->getKeyMaterial(), $key->getAlgorithm()); } return array($key, null); } throw new \UnexpectedValueException('$keyOrKeyArray must be a string|resource key, an array of string|resource keys, ' . 'an instance of Firebase\\JWT\\Key key or an array of Firebase\\JWT\\Key keys'); } /** * @param string $left * @param string $right * @return bool */ public static function constantTimeEquals($left, $right) { if (\function_exists('hash_equals')) { return \hash_equals($left, $right); } $len = \min(static::safeStrlen($left), static::safeStrlen($right)); $status = 0; for ($i = 0; $i < $len; $i++) { $status |= \ord($left[$i]) ^ \ord($right[$i]); } $status |= static::safeStrlen($left) ^ static::safeStrlen($right); return $status === 0; } /** * Helper method to create a JSON error. * * @param int $errno An error number from json_last_error() * * @return void */ private static function handleJsonError($errno) { $messages = array(\JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', \JSON_ERROR_STATE_MISMATCH => 'Invalid or malformed JSON', \JSON_ERROR_CTRL_CHAR => 'Unexpected control character found', \JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON', \JSON_ERROR_UTF8 => 'Malformed UTF-8 characters'); throw new \DomainException(isset($messages[$errno]) ? $messages[$errno] : 'Unknown JSON error: ' . $errno); } /** * Get the number of bytes in cryptographic strings. * * @param string $str * * @return int */ private static function safeStrlen($str) { if (\function_exists('mb_strlen')) { return \mb_strlen($str, '8bit'); } return \strlen($str); } /** * Convert an ECDSA signature to an ASN.1 DER sequence * * @param string $sig The ECDSA signature to convert * @return string The encoded DER object */ private static function signatureToDER($sig) { // Separate the signature into r-value and s-value list($r, $s) = \str_split($sig, (int) (\strlen($sig) / 2)); // Trim leading zeros $r = \ltrim($r, "\0"); $s = \ltrim($s, "\0"); // Convert r-value and s-value from unsigned big-endian integers to // signed two's complement if (\ord($r[0]) > 0x7f) { $r = "\0" . $r; } if (\ord($s[0]) > 0x7f) { $s = "\0" . $s; } return self::encodeDER(self::ASN1_SEQUENCE, self::encodeDER(self::ASN1_INTEGER, $r) . self::encodeDER(self::ASN1_INTEGER, $s)); } /** * Encodes a value into a DER object. * * @param int $type DER tag * @param string $value the value to encode * @return string the encoded object */ private static function encodeDER($type, $value) { $tag_header = 0; if ($type === self::ASN1_SEQUENCE) { $tag_header |= 0x20; } // Type $der = \chr($tag_header | $type); // Length $der .= \chr(\strlen($value)); return $der . $value; } /** * Encodes signature from a DER object. * * @param string $der binary signature in DER format * @param int $keySize the number of bits in the key * @return string the signature */ private static function signatureFromDER($der, $keySize) { // OpenSSL returns the ECDSA signatures as a binary ASN.1 DER SEQUENCE list($offset, $_) = self::readDER($der); list($offset, $r) = self::readDER($der, $offset); list($offset, $s) = self::readDER($der, $offset); // Convert r-value and s-value from signed two's compliment to unsigned // big-endian integers $r = \ltrim($r, "\0"); $s = \ltrim($s, "\0"); // Pad out r and s so that they are $keySize bits long $r = \str_pad($r, $keySize / 8, "\0", \STR_PAD_LEFT); $s = \str_pad($s, $keySize / 8, "\0", \STR_PAD_LEFT); return $r . $s; } /** * Reads binary DER-encoded data and decodes into a single object * * @param string $der the binary data in DER format * @param int $offset the offset of the data stream containing the object * to decode * @return array [$offset, $data] the new offset and the decoded object */ private static function readDER($der, $offset = 0) { $pos = $offset; $size = \strlen($der); $constructed = \ord($der[$pos]) >> 5 & 0x1; $type = \ord($der[$pos++]) & 0x1f; // Length $len = \ord($der[$pos++]); if ($len & 0x80) { $n = $len & 0x1f; $len = 0; while ($n-- && $pos < $size) { $len = $len << 8 | \ord($der[$pos++]); } } // Value if ($type == self::ASN1_BIT_STRING) { $pos++; // Skip the first contents octet (padding indicator) $data = \substr($der, $pos, $len - 1); $pos += $len - 1; } elseif (!$constructed) { $data = \substr($der, $pos, $len); $pos += $len; } else { $data = null; } return array($pos, $data); } } firebase/php-jwt/src/ExpiredException.php000064400000000172150544704730014505 0ustar00keyMaterial = $keyMaterial; $this->algorithm = $algorithm; } /** * Return the algorithm valid for this key * * @return string */ public function getAlgorithm() { return $this->algorithm; } /** * @return string|resource|OpenSSLAsymmetricKey */ public function getKeyMaterial() { return $this->keyMaterial; } } google/apiclient/src/Collection.php000064400000005644150544704730013405 0ustar00{$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 void */ #[\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 */ 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 */ public function offsetSet($offset, $value) { if (!\is_numeric($offset)) { parent::offsetSet($offset, $value); } $this->{$this->collection_key}[$offset] = $value; } /** @return void */ 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]); } } } google/apiclient/src/Http/REST.php000064400000015473150544704730013007 0ustar00getMethod(), (string) $request->getUri()), array(\get_class(), 'doExecute'), array($client, $request, $expectedClass)); if (null !== $retryMap) { $runner->setRetryMap($retryMap); } return $runner->run(); } /** * Executes a Psr\Http\Message\RequestInterface * * @param Client $client * @param RequestInterface $request * @param string $expectedClass * @return array decoded result * @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 ($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 * @throws \Google\Service\Exception * @param RequestInterface $response The http response to be decoded. * @param ResponseInterface $response * @param string $expectedClass * @return mixed|null */ 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; } } google/apiclient/src/Http/MediaFileUpload.php000064400000025001150544704730015202 0ustar00client = $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 $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 = array('content-range' => "bytes {$this->progress}-{$lastBytePos}/{$this->size}", 'content-length' => \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 = $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 $resumeUri the resume-URI of the unfinished, resumable upload. */ public function resume($resumeUri) { $this->resumeUri = $resumeUri; $headers = array('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 = (string) $request->getBody(); $meta = \is_string($meta) ? \json_decode($meta, \true) : $meta; $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); } else { if (self::UPLOAD_MEDIA_TYPE == $uploadType) { $contentType = $mimeType; $postBody = $this->data; } else { if (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 (isset($contentType) && $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 $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(); if ($body) { $headers = array('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; } } google/apiclient/src/Http/Batch.php000064400000020057150544704730013245 0ustar00client = $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 = array(); $batchHttpTemplate = <<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 = array('Content-Type' => \sprintf('multipart/mixed; boundary=%s', $this->boundary), 'Content-Length' => \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 = array()) { $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 = array(); $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, \false); $response = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Response($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 = array(); $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 $respData * @param $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 array($responseHeaders, $responseBody); } } google/apiclient/src/Service/Resource.php000064400000025144150544704730014476 0ustar00 array('type' => 'string', 'location' => 'query'), 'fields' => array('type' => 'string', 'location' => 'query'), 'trace' => array('type' => 'string', 'location' => 'query'), 'userIp' => array('type' => 'string', 'location' => 'query'), 'quotaUser' => array('type' => 'string', 'location' => 'query'), 'data' => array('type' => 'string', 'location' => 'body'), 'mimeType' => array('type' => 'string', 'location' => 'header'), 'uploadType' => array('type' => 'string', 'location' => 'query'), 'mediaUpload' => array('type' => 'complex', 'location' => 'query'), 'prettyPrint' => array('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'] : array($resourceName => $resource); } /** * TODO: This function needs simplifying. * @param $name * @param $arguments * @param $expectedClass - optional, the expected class name * @return mixed|$expectedClass|ResponseInterface|RequestInterface * @throws \Google\Exception */ public function call($name, $arguments, $expectedClass = null) { if (!isset($this->methods[$name])) { $this->client->getLogger()->error('Service method unknown', array('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(); } else { if (\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'] = array(); } $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', array('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', array('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', array('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, ['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 = array(); $queryVars = array(); foreach ($params as $paramName => $paramSpec) { if ($paramSpec['type'] == 'boolean') { $paramSpec['value'] = $paramSpec['value'] ? 'true' : 'false'; } if ($paramSpec['location'] == 'path') { $uriTemplateVars[$paramName] = $paramSpec['value']; } else { if ($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; } } google/apiclient/src/Service/Exception.php000064400000004033150544704730014637 0ustar00= 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 [{string, string}] List of errors return in an HTTP response or []. */ public function getErrors() { return $this->errors; } } google/apiclient/src/Service.php000064400000003717150544704730012711 0ustar00client = $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); } } google/apiclient/src/Task/Retryable.php000064400000001414150544704730014134 0ustar00 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 */ public function __construct($config, $name, $action, array $arguments = array()) { 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($delay * 1000000); } /** * Gets the delay (in seconds) for the current backoff period. * * @return float */ private function getDelay() { $jitter = $this->getJitter(); $factor = $this->attempts > 1 ? $this->factor + $jitter : 1 + \abs($jitter); return $this->delay = \min($this->maxDelay, $this->delay * $factor); } /** * Gets the current jitter (random number between -$this->jitter and * $this->jitter). * * @return float */ private function getJitter() { return $this->jitter * 2 * \mt_rand() / \mt_getrandmax() - $this->jitter; } /** * 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 = array()) { 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; } } google/apiclient/src/Task/Exception.php000064400000001440150544704730014140 0ustar00getComposer(); $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); } } google/apiclient/src/Utils/UriTemplate.php000064400000024611150544704730014640 0ustar00 "reserved", "/" => "segments", "." => "dotprefix", "#" => "fragment", ";" => "semicolon", "?" => "form", "&" => "continuation"); /** * @var reserved array * These are the characters which should not be URL encoded in reserved * strings. */ private $reserved = array("=", ",", "!", "@", "|", ":", "/", "?", "#", "[", "]", '$', "&", "'", "(", ")", "*", "+", ";"); private $reservedEncoded = array("%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 = array(); 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 = array(); 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; } } else { if ($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 = array(); 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; } } google/apiclient/src/AuthHandler/Guzzle7AuthHandler.php000064400000001440150544704730017166 0ustar00cache = $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')]]); } } google/apiclient/src/AuthHandler/Guzzle6AuthHandler.php000064400000010004150544704730017161 0ustar00cache = $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(['base_uri' => $http->getConfig('base_uri'), 'http_errors' => \true, 'verify' => $http->getConfig('verify'), 'proxy' => $http->getConfig('proxy')]); } } google/apiclient/src/AuthHandler/AuthHandlerFactory.php000064400000004125150544704730017231 0ustar00http = $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(array('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; } } google/apiclient/src/AccessToken/Verify.php000064400000024241150544704730014752 0ustar00http = $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 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 { $payload = $this->jwt->decode($idToken, $this->getPublicKey($cert), array('RS256')); 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 = array(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) { 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 $url string 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); } $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 \Google\Site_Kit_Dependencies\Google\AccessToken\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; } 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 = array('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())); } } } } google/apiclient/src/Model.php000064400000024315150544704730012346 0ustar00mapTypes($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 = array(); } 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); } } else { if (\is_array($val)) { $arrayObject = array(); 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} = array(); 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(); } else { if (\is_array($value)) { $return = array(); 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) && \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(array('-', '_'), ' ', $value)); $value = \str_replace(' ', '', $value); $value[0] = \strtolower($value[0]); return $value; } } google/apiclient/src/aliases.php000064400000011765150544704730012734 0ustar00 '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 { } 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 { } } google/apiclient/src/Client.php000064400000117774150544704730012540 0ustar00config = \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' => array(), '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 $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 $code string 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. * @return string */ public function createAuthUrl($scope = null) { 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'], 'response_type' => 'code', 'scope' => $scope, 'state' => $this->config['state']]); // 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 = array('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 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 $hd string - 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 $prompt string * {@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 $realm string - 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 $include boolean - 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 = array(); $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 $scope_or_scopes string|array 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; } else { if (\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. * * @param $request RequestInterface|\Google\Http\Batch * @param string $expectedClass * @throws \Google\Exception * @return mixed|$expectedClass|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()) { // 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 = array('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(array('client_id' => $this->getClientId(), 'client_secret' => $this->getClientSecret(), 'refresh_token' => $refreshToken)); return new \Google\Site_Kit_Dependencies\Google\Auth\Credentials\UserRefreshCredentials($scope, $creds); } } google/apiclient-services/autoload.php000064400000002707150544704730014151 0ustar00 '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); google/apiclient-services/src/AnalyticsData.php000064400000007361150544704730015652 0ustar00 * Accesses report data in Google Analytics.

* *

* For more information about this service, see the API * Documentation *

* * @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; /** * 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->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]]]]]); } } // 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'); google/apiclient-services/src/PeopleService/UserDefined.php000064400000003744150544704730020074 0ustar00key = $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'); google/apiclient-services/src/PeopleService/BatchUpdateContactsRequest.php000064400000004535150544704730023132 0ustar00contacts = $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'); google/apiclient-services/src/PeopleService/Skill.php000064400000003307150544704730016750 0ustar00metadata = $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'); google/apiclient-services/src/PeopleService/GroupClientData.php000064400000003017150544704730020715 0ustar00key = $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'); google/apiclient-services/src/PeopleService/Source.php000064400000005125150544704730017132 0ustar00etag = $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'); google/apiclient-services/src/PeopleService/Locale.php000064400000003312150544704730017065 0ustar00metadata = $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'); google/apiclient-services/src/PeopleService/Photo.php000064400000003732150544704730016765 0ustar00default = $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'); google/apiclient-services/src/PeopleService/BatchDeleteContactsRequest.php000064400000002631150544704730023105 0ustar00resourceNames = $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'); google/apiclient-services/src/PeopleService/EmailAddress.php000064400000005202150544704730020223 0ustar00displayName = $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'); google/apiclient-services/src/PeopleService/CalendarUrl.php000064400000004456150544704730020074 0ustar00formattedType = $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'); google/apiclient-services/src/PeopleService/DomainMembership.php000064400000002500150544704730021107 0ustar00inViewerDomain = $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'); google/apiclient-services/src/PeopleService/RelationshipStatus.php000064400000004106150544704730021535 0ustar00formattedValue = $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'); google/apiclient-services/src/PeopleService/CreateContactGroupRequest.php000064400000003545150544704730023003 0ustar00contactGroup = $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'); google/apiclient-services/src/PeopleService/BatchGetContactGroupsResponse.php000064400000003005150544704730023601 0ustar00responses = $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'); google/apiclient-services/src/PeopleService/FieldMetadata.php000064400000004456150544704730020364 0ustar00primary = $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'); google/apiclient-services/src/PeopleService/Tagline.php000064400000003315150544704730017254 0ustar00metadata = $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'); google/apiclient-services/src/PeopleService/FileAs.php000064400000003312150544704730017031 0ustar00metadata = $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'); google/apiclient-services/src/PeopleService/AgeRangeType.php000064400000003361150544704730020205 0ustar00ageRange = $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'); google/apiclient-services/src/PeopleService/UpdateContactGroupRequest.php000064400000004322150544704730023014 0ustar00contactGroup = $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'); google/apiclient-services/src/PeopleService/BatchCreateContactsResponse.php000064400000003021150544704730023246 0ustar00createdPeople = $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'); google/apiclient-services/src/PeopleService/ExternalId.php000064400000004471150544704730017734 0ustar00formattedType = $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'); google/apiclient-services/src/PeopleService/Occupation.php000064400000003326150544704730017777 0ustar00metadata = $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'); google/apiclient-services/src/PeopleService/ModifyContactGroupMembersResponse.php000064400000004011150544704730024475 0ustar00canNotRemoveLastContactGroupResourceNames = $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'); google/apiclient-services/src/PeopleService/ListDirectoryPeopleResponse.php000064400000004134150544704730023355 0ustar00nextPageToken = $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'); google/apiclient-services/src/PeopleService/SearchResult.php000064400000002627150544704730020302 0ustar00person = $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'); google/apiclient-services/src/PeopleService/ListContactGroupsResponse.php000064400000004732150544704730023043 0ustar00contactGroups = $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'); google/apiclient-services/src/PeopleService/BatchUpdateContactsResponse.php000064400000002721150544704730023273 0ustar00updateResult = $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'); google/apiclient-services/src/PeopleService/Birthday.php000064400000004146150544704730017442 0ustar00date = $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'); google/apiclient-services/src/PeopleService/Resource/ContactGroupsMembers.php000064400000004677150544704730023602 0ustar00 * $peopleService = new Google\Service\PeopleService(...); * $members = $peopleService->members; * */ 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 */ 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'); google/apiclient-services/src/PeopleService/Resource/OtherContacts.php000064400000020313150544704730022235 0ustar00 * $peopleService = new Google\Service\PeopleService(...); * $otherContacts = $peopleService->otherContacts; * */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/PeopleService/Resource/PeopleConnections.php000064400000012607150544704730023113 0ustar00 * $peopleService = new Google\Service\PeopleService(...); * $connections = $peopleService->connections; * */ 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 */ 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'); google/apiclient-services/src/PeopleService/Resource/People.php000064400000060470150544704730020711 0ustar00 * $peopleService = new Google\Service\PeopleService(...); * $people = $peopleService->people; * */ 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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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==&... - 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 */ 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 */ 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 */ 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 */ 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 with a max length of 27 characters, 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 */ 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 */ 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'); google/apiclient-services/src/PeopleService/Resource/ContactGroups.php000064400000020437150544704730022257 0ustar00 * $peopleService = new Google\Service\PeopleService(...); * $contactGroups = $peopleService->contactGroups; * */ 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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/PeopleService/ContactGroup.php000064400000010201150544704730020271 0ustar00clientData = $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'); google/apiclient-services/src/PeopleService/MiscKeyword.php000064400000004474150544704730020140 0ustar00formattedType = $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'); google/apiclient-services/src/PeopleService/PersonMetadata.php000064400000005463150544704730020606 0ustar00deleted = $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'); google/apiclient-services/src/PeopleService/DeleteContactPhotoResponse.php000064400000002701150544704730023136 0ustar00person = $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'); google/apiclient-services/src/PeopleService/ClientData.php000064400000003741150544704730017704 0ustar00key = $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'); google/apiclient-services/src/PeopleService/PhoneNumber.php000064400000005215150544704730020114 0ustar00canonicalForm = $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'); google/apiclient-services/src/PeopleService/ProfileMetadata.php000064400000003224150544704730020731 0ustar00objectType = $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'); google/apiclient-services/src/PeopleService/ListConnectionsResponse.php000064400000005352150544704730022531 0ustar00connections = $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'); google/apiclient-services/src/PeopleService/BraggingRights.php000064400000003342150544704730020572 0ustar00metadata = $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'); google/apiclient-services/src/PeopleService/ContactGroupResponse.php000064400000004465150544704730022027 0ustar00contactGroup = $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'); google/apiclient-services/src/PeopleService/ContactGroupMetadata.php000064400000003127150544704730021743 0ustar00deleted = $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'); google/apiclient-services/src/PeopleService/Relation.php000064400000004472150544704730017453 0ustar00formattedType = $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'); google/apiclient-services/src/PeopleService/CoverPhoto.php000064400000003751150544704730017765 0ustar00default = $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'); google/apiclient-services/src/PeopleService/PeopleEmpty.php000064400000001737150544704730020142 0ustar00results = $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'); google/apiclient-services/src/PeopleService/ImClient.php000064400000005743150544704730017404 0ustar00formattedProtocol = $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'); google/apiclient-services/src/PeopleService/Address.php000064400000011420150544704730017252 0ustar00city = $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'); google/apiclient-services/src/PeopleService/SipAddress.php000064400000004471150544704730017736 0ustar00formattedType = $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'); google/apiclient-services/src/PeopleService/UpdateContactPhotoResponse.php000064400000002701150544704730023156 0ustar00person = $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'); google/apiclient-services/src/PeopleService/Person.php000064400000040627150544704730017146 0ustar00addresses = $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'); google/apiclient-services/src/PeopleService/UpdateContactPhotoRequest.php000064400000003754150544704730023021 0ustar00personFields = $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'); google/apiclient-services/src/PeopleService/Location.php000064400000006720150544704730017444 0ustar00buildingId = $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'); google/apiclient-services/src/PeopleService/ContactGroupMembership.php000064400000003366150544704730022323 0ustar00contactGroupId = $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'); google/apiclient-services/src/PeopleService/Date.php000064400000003345150544704730016551 0ustar00day = $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'); google/apiclient-services/src/PeopleService/ModifyContactGroupMembersRequest.php000064400000003545150544704730024342 0ustar00resourceNamesToAdd = $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'); google/apiclient-services/src/PeopleService/Interest.php000064400000003320150544704730017462 0ustar00metadata = $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'); google/apiclient-services/src/PeopleService/Organization.php000064400000014463150544704730020343 0ustar00costCenter = $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'); google/apiclient-services/src/PeopleService/ListOtherContactsResponse.php000064400000004701150544704730023024 0ustar00nextPageToken = $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'); google/apiclient-services/src/PeopleService/SearchDirectoryPeopleResponse.php000064400000004075150544704730023653 0ustar00nextPageToken = $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'); google/apiclient-services/src/PeopleService/Membership.php000064400000005137150544704730017770 0ustar00contactGroupMembership = $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'); google/apiclient-services/src/PeopleService/Nickname.php000064400000003742150544704730017422 0ustar00metadata = $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'); google/apiclient-services/src/PeopleService/Gender.php000064400000004545150544704730017103 0ustar00addressMeAs = $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'); google/apiclient-services/src/PeopleService/Event.php000064400000004656150544704730016763 0ustar00date = $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'); google/apiclient-services/src/PeopleService/ContactToCreate.php000064400000002730150544704730020713 0ustar00contactPerson = $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'); google/apiclient-services/src/PeopleService/RelationshipInterest.php000064400000004114150544704730022046 0ustar00formattedValue = $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'); google/apiclient-services/src/PeopleService/Name.php000064400000014452150544704730016555 0ustar00displayName = $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'); google/apiclient-services/src/PeopleService/BatchCreateContactsRequest.php000064400000004076150544704730023113 0ustar00contacts = $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'); google/apiclient-services/src/PeopleService/Url.php000064400000004444150544704730016437 0ustar00formattedType = $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'); google/apiclient-services/src/PeopleService/GetPeopleResponse.php000064400000002717150544704730021301 0ustar00responses = $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'); google/apiclient-services/src/PeopleService/PersonResponse.php000064400000005052150544704730020656 0ustar00httpStatusCode = $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'); google/apiclient-services/src/PeopleService/CopyOtherContactToMyContactsGroupRequest.php000064400000003757150544704730026031 0ustar00copyMask = $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'); google/apiclient-services/src/PeopleService/Residence.php000064400000003764150544704730017602 0ustar00current = $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'); google/apiclient-services/src/PeopleService/Biography.php000064400000004026150544704730017615 0ustar00contentType = $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'); google/apiclient-services/src/PeopleService/Status.php000064400000003532150544704730017155 0ustar00code = $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'); google/apiclient-services/src/PagespeedInsights/LighthouseCategoryV5.php000064400000005674150544704730022570 0ustar00auditRefs = $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'); google/apiclient-services/src/PagespeedInsights/Timing.php000064400000002207150544704730017760 0ustar00total = $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'); google/apiclient-services/src/PagespeedInsights/PagespeedApiPagespeedResponseV5.php000064400000011134150544704730024627 0ustar00analysisUTCTimestamp = $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'); google/apiclient-services/src/PagespeedInsights/PagespeedVersion.php000064400000003054150544704730021775 0ustar00major = $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'); google/apiclient-services/src/PagespeedInsights/RendererFormattedStrings.php000064400000046432150544704730023527 0ustar00auditGroupExpandTooltip = $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'); google/apiclient-services/src/PagespeedInsights/RuntimeError.php000064400000003047150544704730021171 0ustar00code = $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'); google/apiclient-services/src/PagespeedInsights/LighthouseAuditResultV5.php000064400000011066150544704730023250 0ustar00description = $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'); google/apiclient-services/src/PagespeedInsights/LighthouseResultV5.php000064400000016145150544704730022264 0ustar00audits = $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 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 setFinalUrl($finalUrl) { $this->finalUrl = $finalUrl; } /** * @return string */ public function getFinalUrl() { return $this->finalUrl; } /** * @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 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'); google/apiclient-services/src/PagespeedInsights/Resource/Pagespeedapi.php000064400000005126150544704730022712 0ustar00 * $pagespeedonlineService = new Google\Service\PagespeedInsights(...); * $pagespeedapi = $pagespeedonlineService->pagespeedapi; * */ 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 */ 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'); google/apiclient-services/src/PagespeedInsights/Environment.php000064400000003614150544704730021040 0ustar00benchmarkIndex = $benchmarkIndex; } public function getBenchmarkIndex() { return $this->benchmarkIndex; } /** * @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'); google/apiclient-services/src/PagespeedInsights/Bucket.php000064400000003256150544704730017753 0ustar00max = $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'); google/apiclient-services/src/PagespeedInsights/I18n.php000064400000003153150544704730017251 0ustar00rendererFormattedStrings = $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'); google/apiclient-services/src/PagespeedInsights/ConfigSettings.php000064400000005100150544704730021452 0ustar00channel = $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'); google/apiclient-services/src/PagespeedInsights/CategoryGroupV5.php000064400000003123150544704730021534 0ustar00description = $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'); google/apiclient-services/src/PagespeedInsights/PagespeedApiLoadingExperienceV5.php000064400000005541150544704730024605 0ustar00 "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'); google/apiclient-services/src/PagespeedInsights/Categories.php000064400000007150150544704730020620 0ustar00 "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'); google/apiclient-services/src/PagespeedInsights/UserPageLoadMetricV5.php000064400000005726150544704730022434 0ustar00category = $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'); google/apiclient-services/src/PagespeedInsights/StackPack.php000064400000004225150544704730020377 0ustar00descriptions = $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'); google/apiclient-services/src/PagespeedInsights/AuditRefs.php000064400000004560150544704730020423 0ustar00acronym = $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'); google/apiclient-services/src/Ideahub.php000064400000010667150544704730014475 0ustar00 * This is an invitation-only API.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class Ideahub extends \Google\Site_Kit_Dependencies\Google\Service { public $platforms_properties_ideaActivities; public $platforms_properties_ideaStates; public $platforms_properties_ideas; public $platforms_properties_locales; public $platforms_properties_topicStates; /** * Constructs the internal representation of the Ideahub 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://ideahub.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1beta'; $this->serviceName = 'ideahub'; $this->platforms_properties_ideaActivities = new \Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesIdeaActivities($this, $this->serviceName, 'ideaActivities', ['methods' => ['create' => ['path' => 'v1beta/{+parent}/ideaActivities', 'httpMethod' => 'POST', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->platforms_properties_ideaStates = new \Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesIdeaStates($this, $this->serviceName, 'ideaStates', ['methods' => ['patch' => ['path' => 'v1beta/{+name}', 'httpMethod' => 'PATCH', 'parameters' => ['name' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'updateMask' => ['location' => 'query', 'type' => 'string']]]]]); $this->platforms_properties_ideas = new \Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesIdeas($this, $this->serviceName, 'ideas', ['methods' => ['list' => ['path' => 'v1beta/{+parent}/ideas', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'filter' => ['location' => 'query', 'type' => 'string'], 'orderBy' => ['location' => 'query', 'type' => 'string'], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->platforms_properties_locales = new \Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesLocales($this, $this->serviceName, 'locales', ['methods' => ['list' => ['path' => 'v1beta/{+parent}/locales', 'httpMethod' => 'GET', 'parameters' => ['parent' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'pageSize' => ['location' => 'query', 'type' => 'integer'], 'pageToken' => ['location' => 'query', 'type' => 'string']]]]]); $this->platforms_properties_topicStates = new \Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesTopicStates($this, $this->serviceName, 'topicStates', ['methods' => ['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\Ideahub::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub'); google/apiclient-services/src/SiteVerification.php000064400000006736150544704730016405 0ustar00 * Verifies ownership of websites or domains with Google.

* *

* For more information about this service, see the API * Documentation *

* * @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; /** * 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->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'); google/apiclient-services/src/TagManager/CreateContainerVersionRequestVersionOptions.php000064400000003141150544704730026036 0ustar00name = $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'); google/apiclient-services/src/TagManager/ListVariablesResponse.php000064400000003405150544704730021415 0ustar00nextPageToken = $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'); google/apiclient-services/src/TagManager/ListClientsResponse.php000064400000003347150544704730021113 0ustar00client = $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'); google/apiclient-services/src/TagManager/Tag.php000064400000024564150544704730015656 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/Condition.php000064400000003256150544704730017064 0ustar00parameter = $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'); google/apiclient-services/src/TagManager/BuiltInVariable.php000064400000005323150544704730020147 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/RevertTagResponse.php000064400000002563150544704730020560 0ustar00tag = $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'); google/apiclient-services/src/TagManager/ListContainerVersionsResponse.php000064400000003705150544704730023163 0ustar00containerVersionHeader = $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'); google/apiclient-services/src/TagManager/Destination.php000064400000006704150544704730017420 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/Trigger.php000064400000035522150544704730016542 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/ContainerVersionHeader.php000064400000013165150544704730021537 0ustar00accountId = $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 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'); google/apiclient-services/src/TagManager/MergeConflict.php000064400000003772150544704730017662 0ustar00entityInBaseVersion = $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'); google/apiclient-services/src/TagManager/Zone.php000064400000012203150544704730016041 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/ListEnvironmentsResponse.php000064400000003462150544704730022177 0ustar00environment = $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'); google/apiclient-services/src/TagManager/RevertFolderResponse.php000064400000002640150544704730021254 0ustar00folder = $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'); google/apiclient-services/src/TagManager/AccountAccess.php000064400000002430150544704730017645 0ustar00permission = $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'); google/apiclient-services/src/TagManager/GetWorkspaceStatusResponse.php000064400000003702150544704730022453 0ustar00mergeConflict = $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'); google/apiclient-services/src/TagManager/Workspace.php000064400000006606150544704730017076 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/ContainerVersion.php000064400000017377150544704730020437 0ustar00accountId = $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 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'); google/apiclient-services/src/TagManager/RevertTemplateResponse.php000064400000002726150544704730021621 0ustar00template = $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'); google/apiclient-services/src/TagManager/SyncWorkspaceResponse.php000064400000003717150544704730021452 0ustar00mergeConflict = $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'); google/apiclient-services/src/TagManager/CustomTemplate.php000064400000010377150544704730020106 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/RevertZoneResponse.php000064400000002602150544704730020752 0ustar00zone = $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'); google/apiclient-services/src/TagManager/ListContainersResponse.php000064400000003424150544704730021613 0ustar00container = $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'); google/apiclient-services/src/TagManager/ListTagsResponse.php000064400000003272150544704730020405 0ustar00nextPageToken = $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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspaces.php000064400000022155150544704730024573 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $workspaces = $tagmanagerService->workspaces; * */ 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 */ 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 */ 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. */ 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 */ 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 */ 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 */ 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 */ 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. */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesFolders.php000064400000016406150544704730026114 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $folders = $tagmanagerService->folders; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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. (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. */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTriggers.php000064400000013253150544704730026301 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $triggers = $tagmanagerService->triggers; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTags.php000064400000012676150544704730025421 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $tags = $tagmanagerService->tags; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTemplates.php000064400000013522150544704730026450 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $templates = $tagmanagerService->templates; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesBuiltInVariables.php000064400000011052150544704730027705 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $built_in_variables = $tagmanagerService->built_in_variables; * */ 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 */ 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. */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesGtagConfig.php000064400000011702150544704730026520 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $gtag_config = $tagmanagerService->gtag_config; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesZones.php000064400000013000150544704730025577 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $zones = $tagmanagerService->zones; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesVariables.php000064400000013336150544704730026425 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $variables = $tagmanagerService->variables; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesClients.php000064400000013146150544704730026115 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $clients = $tagmanagerService->clients; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsUserPermissions.php000064400000011420150544704730023567 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $user_permissions = $tagmanagerService->user_permissions; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersEnvironments.php000064400000013056150544704730025141 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $environments = $tagmanagerService->environments; * */ 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 */ 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. */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersDestinations.php000064400000007226150544704730025120 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $destinations = $tagmanagerService->destinations; * */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainers.php000064400000020220150544704730022520 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $containers = $tagmanagerService->containers; * */ 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 */ 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 */ 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. */ 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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersVersions.php000064400000014120150544704730024253 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $versions = $tagmanagerService->versions; * */ 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. */ 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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/AccountsContainersVersionHeaders.php000064400000005655150544704730025401 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $version_headers = $tagmanagerService->version_headers; * */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/Resource/Accounts.php000064400000006404150544704730020502 0ustar00 * $tagmanagerService = new Google\Service\TagManager(...); * $accounts = $tagmanagerService->accounts; * */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/TagManager/ListEnabledBuiltInVariablesResponse.php000064400000003603150544704730024157 0ustar00builtInVariable = $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'); google/apiclient-services/src/TagManager/Environment.php000064400000013250150544704730017435 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/SetupTag.php000064400000003142150544704730016664 0ustar00stopOnSetupFailure = $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'); google/apiclient-services/src/TagManager/TagConsentSetting.php000064400000003434150544704730020537 0ustar00consentStatus = $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'); google/apiclient-services/src/TagManager/VariableFormatValue.php000064400000006776150544704730021043 0ustar00caseConversionType = $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'); google/apiclient-services/src/TagManager/FolderEntities.php000064400000004714150544704730020056 0ustar00nextPageToken = $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'); google/apiclient-services/src/TagManager/SyncStatus.php000064400000003115150544704730017250 0ustar00mergeConflict = $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'); google/apiclient-services/src/TagManager/RevertVariableResponse.php000064400000002676150544704730021577 0ustar00variable = $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'); google/apiclient-services/src/TagManager/ListTemplatesResponse.php000064400000003427150544704730021447 0ustar00nextPageToken = $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'); google/apiclient-services/src/TagManager/ListFoldersResponse.php000064400000003347150544704730021110 0ustar00folder = $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'); google/apiclient-services/src/TagManager/Account.php000064400000006311150544704730016525 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/ContainerAccess.php000064400000003141150544704730020173 0ustar00containerId = $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'); google/apiclient-services/src/TagManager/GtagConfig.php000064400000007534150544704730017151 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/Variable.php000064400000015163150544704730016663 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/ListUserPermissionsResponse.php000064400000003537150544704730022665 0ustar00nextPageToken = $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'); google/apiclient-services/src/TagManager/QuickPreviewResponse.php000064400000004502150544704730021266 0ustar00compilerError = $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'); google/apiclient-services/src/TagManager/ListWorkspacesResponse.php000064400000003424150544704730021627 0ustar00nextPageToken = $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'); google/apiclient-services/src/TagManager/Container.php000064400000012222150544704730017051 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/RevertBuiltInVariableResponse.php000064400000002455150544704730023061 0ustar00enabled = $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'); google/apiclient-services/src/TagManager/ListDestinationsResponse.php000064400000003462150544704730022154 0ustar00destination = $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'); google/apiclient-services/src/TagManager/RevertClientResponse.php000064400000002640150544704730021257 0ustar00client = $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'); google/apiclient-services/src/TagManager/Parameter.php000064400000005016150544704730017052 0ustar00key = $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'); google/apiclient-services/src/TagManager/Entity.php000064400000006574150544704730016420 0ustar00changeStatus = $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 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 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 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; } } // 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'); google/apiclient-services/src/TagManager/ListAccountsResponse.php000064400000003366150544704730021272 0ustar00account = $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'); google/apiclient-services/src/TagManager/RevertTriggerResponse.php000064400000002657150544704730021454 0ustar00trigger = $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'); google/apiclient-services/src/TagManager/ListTriggersResponse.php000064400000003366150544704730021301 0ustar00nextPageToken = $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'); google/apiclient-services/src/TagManager/PublishContainerVersionResponse.php000064400000003604150544704730023471 0ustar00compilerError = $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'); google/apiclient-services/src/TagManager/GalleryReference.php000064400000005336150544704730020355 0ustar00host = $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'); google/apiclient-services/src/TagManager/CreateContainerVersionResponse.php000064400000005306150544704730023267 0ustar00compilerError = $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'); google/apiclient-services/src/TagManager/Folder.php000064400000007201150544704730016343 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/ZoneChildContainer.php000064400000003107150544704730020653 0ustar00nickname = $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'); google/apiclient-services/src/TagManager/ContainerFeatures.php000064400000012744150544704730020561 0ustar00supportBuiltInVariables = $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 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'); google/apiclient-services/src/TagManager/UserPermission.php000064400000005607150544704730020127 0ustar00accountAccess = $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'); google/apiclient-services/src/TagManager/CreateBuiltInVariableResponse.php000064400000003040150544704730023004 0ustar00builtInVariable = $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'); google/apiclient-services/src/TagManager/TeardownTag.php000064400000003200150544704730017342 0ustar00stopTeardownOnFailure = $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'); google/apiclient-services/src/TagManager/AccountFeatures.php000064400000003413150544704730020224 0ustar00supportMultipleContainers = $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'); google/apiclient-services/src/TagManager/ZoneTypeRestriction.php000064400000003265150544704730021141 0ustar00enable = $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'); google/apiclient-services/src/TagManager/ZoneBoundary.php000064400000003540150544704730017551 0ustar00condition = $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'); google/apiclient-services/src/TagManager/GetContainerSnippetResponse.php000064400000002455150544704730022602 0ustar00snippet = $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'); google/apiclient-services/src/TagManager/ListZonesResponse.php000064400000003311150544704730020577 0ustar00nextPageToken = $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'); google/apiclient-services/src/TagManager/Client.php000064400000011734150544704730016354 0ustar00accountId = $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'); google/apiclient-services/src/TagManager/ListGtagConfigResponse.php000064400000003440150544704730021514 0ustar00gtagConfig = $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'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaListIdeasResponse.php000064400000003364150544704730025053 0ustar00ideas = $ideas; } /** * @return GoogleSearchIdeahubV1alphaIdea[] */ public function getIdeas() { return $this->ideas; } public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } 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\Ideahub\GoogleSearchIdeahubV1alphaListIdeasResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1alphaListIdeasResponse'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaTopicState.php000064400000003551150544704730023356 0ustar00dismissed = $dismissed; } /** * @return bool */ public function getDismissed() { return $this->dismissed; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param bool */ public function setSaved($saved) { $this->saved = $saved; } /** * @return bool */ public function getSaved() { return $this->saved; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaTopicState::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1betaTopicState'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaTopicState.php000064400000003056150544704730023530 0ustar00dismissed = $dismissed; } public function getDismissed() { return $this->dismissed; } public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } public function setSaved($saved) { $this->saved = $saved; } public function getSaved() { return $this->saved; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1alphaTopicState::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1alphaTopicState'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaTopic.php000064400000003546150544704730022361 0ustar00displayName = $displayName; } /** * @return string */ public function getDisplayName() { return $this->displayName; } /** * @param string */ public function setMid($mid) { $this->mid = $mid; } /** * @return string */ public function getMid() { return $this->mid; } /** * @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\Ideahub\GoogleSearchIdeahubV1betaTopic::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1betaTopic'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaIdeaActivity.php000064400000004676150544704730023667 0ustar00ideas = $ideas; } /** * @return string[] */ public function getIdeas() { return $this->ideas; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string[] */ public function setTopics($topics) { $this->topics = $topics; } /** * @return string[] */ public function getTopics() { return $this->topics; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUri($uri) { $this->uri = $uri; } /** * @return string */ public function getUri() { return $this->uri; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaIdeaActivity::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1betaIdeaActivity'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaAvailableLocale.php000064400000002575150544704730024456 0ustar00locale = $locale; } public function getLocale() { return $this->locale; } public function setName($name) { $this->name = $name; } 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\Ideahub\GoogleSearchIdeahubV1alphaAvailableLocale::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1alphaAvailableLocale'); google/apiclient-services/src/Ideahub/Resource/Platforms.php000064400000002261150544704730020222 0ustar00 * $ideahubService = new Google\Service\Ideahub(...); * $platforms = $ideahubService->platforms; * */ class Platforms 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\Ideahub\Resource\Platforms::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_Resource_Platforms'); google/apiclient-services/src/Ideahub/Resource/PlatformsProperties.php000064400000002322150544704730022275 0ustar00 * $ideahubService = new Google\Service\Ideahub(...); * $properties = $ideahubService->properties; * */ class PlatformsProperties 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\Ideahub\Resource\PlatformsProperties::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_Resource_PlatformsProperties'); google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesIdeaStates.php000064400000004301150544704730024243 0ustar00 * $ideahubService = new Google\Service\Ideahub(...); * $ideaStates = $ideahubService->ideaStates; * */ class PlatformsPropertiesIdeaStates extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Update an idea state resource. (ideaStates.patch) * * @param string $name Unique identifier for the idea state. Format: * platforms/{platform}/properties/{property}/ideaStates/{idea_state} * @param GoogleSearchIdeahubV1betaIdeaState $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask The list of fields to be updated. * @return GoogleSearchIdeahubV1betaIdeaState */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaIdeaState $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaIdeaState::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesIdeaStates::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_Resource_PlatformsPropertiesIdeaStates'); google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesLocales.php000064400000005147150544704730023610 0ustar00 * $ideahubService = new Google\Service\Ideahub(...); * $locales = $ideahubService->locales; * */ class PlatformsPropertiesLocales extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Returns which locales ideas are available in for a given Creator. * (locales.listPlatformsPropertiesLocales) * * @param string $parent Required. The web property to check idea availability * for Format: platforms/{platform}/property/{property} * @param array $optParams Optional parameters. * * @opt_param int pageSize The maximum number of locales to return. The service * may return fewer than this value. If unspecified, at most 100 locales will be * returned. The maximum value is 100; values above 100 will be coerced to 100. * @opt_param string pageToken A page token, received from a previous * `ListAvailableLocales` call. Provide this to retrieve the subsequent page. * When paginating, all other parameters provided to `ListAvailableLocales` must * match the call that provided the page token. * @return GoogleSearchIdeahubV1betaListAvailableLocalesResponse */ public function listPlatformsPropertiesLocales($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaListAvailableLocalesResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesLocales::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_Resource_PlatformsPropertiesLocales'); google/apiclient-services/src/Ideahub/Resource/Ideas.php000064400000005764150544704730017313 0ustar00 * $ideahubService = new Google\Service\Ideahub(...); * $ideas = $ideahubService->ideas; * */ class Ideas extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * List ideas for a given Creator and filter and sort options. (ideas.listIdeas) * * @param array $optParams Optional parameters. * * @opt_param string filter Allows filtering. Supported syntax: * Filter * expressions are made up of one or more restrictions. * Restrictions are * implicitly combined, as if the `AND` operator was always used. The `OR` * operator is currently unsupported. * Supported functions: - `saved(bool)`: If * set to true, fetches only saved ideas. If set to false, fetches all except * saved ideas. Can't be simultaneously used with `dismissed(bool)`. - * `dismissed(bool)`: If set to true, fetches only dismissed ideas. Can't be * simultaneously used with `saved(bool)`. The `false` value is currently * unsupported. Examples: * `saved(true)` * `saved(false)` * `dismissed(true)` * The length of this field should be no more than 500 characters. * @opt_param string orderBy Order semantics described below. * @opt_param int pageSize The maximum number of ideas per page. If unspecified, * at most 10 ideas will be returned. The maximum value is 2000; values above * 2000 will be coerced to 2000. * @opt_param string pageToken Used to fetch next page. * @opt_param string parent If defined, specifies the creator for which to * filter by. Format: publishers/{publisher}/properties/{property} * @return GoogleSearchIdeahubV1alphaListIdeasResponse */ public function listIdeas($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1alphaListIdeasResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\Ideas::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_Resource_Ideas'); google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesIdeaActivities.php000064400000004263150544704730025113 0ustar00 * $ideahubService = new Google\Service\Ideahub(...); * $ideaActivities = $ideahubService->ideaActivities; * */ class PlatformsPropertiesIdeaActivities extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates an idea activity entry. (ideaActivities.create) * * @param string $parent Required. The parent resource where this idea activity * will be created. Format: platforms/{platform}/property/{property} * @param GoogleSearchIdeahubV1betaIdeaActivity $postBody * @param array $optParams Optional parameters. * @return GoogleSearchIdeahubV1betaIdeaActivity */ public function create($parent, \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaIdeaActivity $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('create', [$params], \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaIdeaActivity::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesIdeaActivities::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_Resource_PlatformsPropertiesIdeaActivities'); google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesTopicStates.php000064400000004320150544704730024460 0ustar00 * $ideahubService = new Google\Service\Ideahub(...); * $topicStates = $ideahubService->topicStates; * */ class PlatformsPropertiesTopicStates extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Update a topic state resource. (topicStates.patch) * * @param string $name Unique identifier for the topic state. Format: * platforms/{platform}/properties/{property}/topicStates/{topic_state} * @param GoogleSearchIdeahubV1betaTopicState $postBody * @param array $optParams Optional parameters. * * @opt_param string updateMask The list of fields to be updated. * @return GoogleSearchIdeahubV1betaTopicState */ public function patch($name, \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaTopicState $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaTopicState::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesTopicStates::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_Resource_PlatformsPropertiesTopicStates'); google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesIdeas.php000064400000006172150544704730023252 0ustar00 * $ideahubService = new Google\Service\Ideahub(...); * $ideas = $ideahubService->ideas; * */ class PlatformsPropertiesIdeas extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * List ideas for a given Creator and filter and sort options. * (ideas.listPlatformsPropertiesIdeas) * * @param string $parent Required. If defined, specifies the creator for which * to filter by. Format: publishers/{publisher}/properties/{property} * @param array $optParams Optional parameters. * * @opt_param string filter Allows filtering. Supported syntax: * Filter * expressions are made up of one or more restrictions. * Restrictions are * implicitly combined, as if the `AND` operator was always used. The `OR` * operator is currently unsupported. * Supported functions: - `saved(bool)`: If * set to true, fetches only saved ideas. If set to false, fetches all except * saved ideas. Can't be simultaneously used with `dismissed(bool)`. - * `dismissed(bool)`: If set to true, fetches only dismissed ideas. Can't be * simultaneously used with `saved(bool)`. The `false` value is currently * unsupported. Examples: * `saved(true)` * `saved(false)` * `dismissed(true)` * The length of this field should be no more than 500 characters. * @opt_param string orderBy Order semantics described below. * @opt_param int pageSize The maximum number of ideas per page. If unspecified, * at most 10 ideas will be returned. The maximum value is 2000; values above * 2000 will be coerced to 2000. * @opt_param string pageToken Used to fetch next page. * @return GoogleSearchIdeahubV1betaListIdeasResponse */ public function listPlatformsPropertiesIdeas($parent, $optParams = []) { $params = ['parent' => $parent]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaListIdeasResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\Resource\PlatformsPropertiesIdeas::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_Resource_PlatformsPropertiesIdeas'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaTopic.php000064400000003037150544704730022526 0ustar00displayName = $displayName; } public function getDisplayName() { return $this->displayName; } public function setMid($mid) { $this->mid = $mid; } public function getMid() { return $this->mid; } public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1alphaTopic::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1alphaTopic'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaAvailableLocale.php000064400000003126150544704730024275 0ustar00locale = $locale; } /** * @return string */ public function getLocale() { return $this->locale; } /** * @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\Ideahub\GoogleSearchIdeahubV1betaAvailableLocale::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1betaAvailableLocale'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaListAvailableLocalesResponse.php000064400000004001150544704730027024 0ustar00availableLocales = $availableLocales; } /** * @return GoogleSearchIdeahubV1betaAvailableLocale[] */ public function getAvailableLocales() { return $this->availableLocales; } /** * @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\Ideahub\GoogleSearchIdeahubV1betaListAvailableLocalesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1betaListAvailableLocalesResponse'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaIdeaState.php000064400000003053150544704730023311 0ustar00dismissed = $dismissed; } public function getDismissed() { return $this->dismissed; } public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } public function setSaved($saved) { $this->saved = $saved; } public function getSaved() { return $this->saved; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1alphaIdeaState::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1alphaIdeaState'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaIdeaActivity.php000064400000003617150544704730024033 0ustar00ideas = $ideas; } public function getIdeas() { return $this->ideas; } public function setName($name) { $this->name = $name; } public function getName() { return $this->name; } public function setTopics($topics) { $this->topics = $topics; } public function getTopics() { return $this->topics; } public function setType($type) { $this->type = $type; } public function getType() { return $this->type; } public function setUri($uri) { $this->uri = $uri; } public function getUri() { return $this->uri; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1alphaIdeaActivity::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1alphaIdeaActivity'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaIdeaState.php000064400000003546150544704730023146 0ustar00dismissed = $dismissed; } /** * @return bool */ public function getDismissed() { return $this->dismissed; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param bool */ public function setSaved($saved) { $this->saved = $saved; } /** * @return bool */ public function getSaved() { return $this->saved; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaIdeaState::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1betaIdeaState'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaIdea.php000064400000004024150544704730022135 0ustar00name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setText($text) { $this->text = $text; } /** * @return string */ public function getText() { return $this->text; } /** * @param GoogleSearchIdeahubV1betaTopic[] */ public function setTopics($topics) { $this->topics = $topics; } /** * @return GoogleSearchIdeahubV1betaTopic[] */ public function getTopics() { return $this->topics; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1betaIdea::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1betaIdea'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaIdea.php000064400000003476150544704730022321 0ustar00name = $name; } public function getName() { return $this->name; } public function setText($text) { $this->text = $text; } public function getText() { return $this->text; } /** * @param GoogleSearchIdeahubV1alphaTopic[] */ public function setTopics($topics) { $this->topics = $topics; } /** * @return GoogleSearchIdeahubV1alphaTopic[] */ public function getTopics() { return $this->topics; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Ideahub\GoogleSearchIdeahubV1alphaIdea::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1alphaIdea'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaListAvailableLocalesResponse.php000064400000003631150544704730027206 0ustar00availableLocales = $availableLocales; } /** * @return GoogleSearchIdeahubV1alphaAvailableLocale[] */ public function getAvailableLocales() { return $this->availableLocales; } public function setNextPageToken($nextPageToken) { $this->nextPageToken = $nextPageToken; } 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\Ideahub\GoogleSearchIdeahubV1alphaListAvailableLocalesResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1alphaListAvailableLocalesResponse'); google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaListIdeasResponse.php000064400000003534150544704730024700 0ustar00ideas = $ideas; } /** * @return GoogleSearchIdeahubV1betaIdea[] */ public function getIdeas() { return $this->ideas; } /** * @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\Ideahub\GoogleSearchIdeahubV1betaListIdeasResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Ideahub_GoogleSearchIdeahubV1betaListIdeasResponse'); google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceGettokenRequest.php000064400000004004150544704730027056 0ustar00site = $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'); google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceResource.php000064400000004270150544704730025521 0ustar00id = $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'); google/apiclient-services/src/SiteVerification/Resource/WebResource.php000064400000014276150544704730022417 0ustar00 * $siteVerificationService = new Google\Service\SiteVerification(...); * $webResource = $siteVerificationService->webResource; * */ 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. */ 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 */ 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 */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceGettokenResponse.php000064400000003201150544704730027222 0ustar00method = $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'); google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceListResponse.php000064400000003070150544704730026361 0ustar00items = $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'); google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceResourceSite.php000064400000003212150544704730026341 0ustar00identifier = $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'); google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceGettokenRequestSite.php000064400000003237150544704730027712 0ustar00identifier = $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'); google/apiclient-services/src/Adsense/CustomChannel.php000064400000004304150544704730017250 0ustar00active = $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'); google/apiclient-services/src/Adsense/AdUnit.php000064400000005347150544704730015701 0ustar00contentAdsSettings = $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'); google/apiclient-services/src/Adsense/Cell.php000064400000002321150544704730015361 0ustar00value = $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'); google/apiclient-services/src/Adsense/Payment.php000064400000003604150544704730016124 0ustar00amount = $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'); google/apiclient-services/src/Adsense/ListLinkedAdUnitsResponse.php000064400000003366150544704730021565 0ustar00adUnits = $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'); google/apiclient-services/src/Adsense/ListLinkedCustomChannelsResponse.php000064400000003537150544704730023144 0ustar00customChannels = $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'); google/apiclient-services/src/Adsense/AdClient.php000064400000004264150544704730016175 0ustar00name = $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'); google/apiclient-services/src/Adsense/ListCustomChannelsResponse.php000064400000003515150544704730022011 0ustar00customChannels = $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'); google/apiclient-services/src/Adsense/ListChildAccountsResponse.php000064400000003402150544704730021601 0ustar00accounts = $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'); google/apiclient-services/src/Adsense/AdsenseEmpty.php000064400000001720150544704730017105 0ustar00name = $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'); google/apiclient-services/src/Adsense/TimeZone.php000064400000002757150544704730016251 0ustar00id = $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'); google/apiclient-services/src/Adsense/ListAdClientsResponse.php000064400000003402150544704730020724 0ustar00adClients = $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'); google/apiclient-services/src/Adsense/ContentAdsSettings.php000064400000003006150544704730020266 0ustar00size = $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'); google/apiclient-services/src/Adsense/Resource/AccountsReports.php000064400000021753150544704730021441 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $reports = $adsenseService->reports; * */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/Adsense/Resource/AccountsSites.php000064400000005657150544704730021077 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $sites = $adsenseService->sites; * */ 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 */ 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 */ 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'); google/apiclient-services/src/Adsense/Resource/AccountsAdclientsUrlchannels.php000064400000006241150544704730024103 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $urlchannels = $adsenseService->urlchannels; * */ 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 */ 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 */ 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'); google/apiclient-services/src/Adsense/Resource/AccountsAdclients.php000064400000007737150544704730021717 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $adclients = $adsenseService->adclients; * */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/Adsense/Resource/AccountsAlerts.php000064400000004332150544704730021227 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $alerts = $adsenseService->alerts; * */ 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 */ 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'); google/apiclient-services/src/Adsense/Resource/AccountsAdclientsAdunits.php000064400000017072150544704730023240 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $adunits = $adsenseService->adunits; * */ class AccountsAdclientsAdunits extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates an ad unit. This method can only be used by projects enabled for the * [AdSense for Platforms](https://developers.google.com/adsense/platforms/) * product. 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 */ 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 */ 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 */ 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 */ 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 */ 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 only be used by projects enabled for the * [AdSense for Platforms](https://developers.google.com/adsense/platforms/) * product. 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 */ 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'); google/apiclient-services/src/Adsense/Resource/AccountsPayments.php000064400000003611150544704730021574 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $payments = $adsenseService->payments; * */ 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 */ 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'); google/apiclient-services/src/Adsense/Resource/Accounts.php000064400000011433150544704730020054 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $accounts = $adsenseService->accounts; * */ 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 */ 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 */ 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 */ 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 * `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 ListChildAccountsResponse */ 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'); google/apiclient-services/src/Adsense/Resource/AccountsAdclientsCustomchannels.php000064400000016401150544704730024612 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $customchannels = $adsenseService->customchannels; * */ class AccountsAdclientsCustomchannels extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates a custom channel. This method can only be used by projects enabled * for the [AdSense for * Platforms](https://developers.google.com/adsense/platforms/) product. * (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 */ 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 only be used by projects enabled * for the [AdSense for * Platforms](https://developers.google.com/adsense/platforms/) product. * (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 */ 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 */ 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 */ 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 */ 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 only be used by projects enabled * for the [AdSense for * Platforms](https://developers.google.com/adsense/platforms/) product. * (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 */ 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'); google/apiclient-services/src/Adsense/Resource/AccountsReportsSaved.php000064400000016474150544704730022430 0ustar00 * $adsenseService = new Google\Service\Adsense(...); * $saved = $adsenseService->saved; * */ 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 */ 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 */ 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 * `ListPayments` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListPayments` must match the * call that provided the page token. * @return ListSavedReportsResponse */ 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'); google/apiclient-services/src/Adsense/Alert.php000064400000004064150544704730015557 0ustar00message = $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'); google/apiclient-services/src/Adsense/AdUnitAdCode.php000064400000002360150544704730016731 0ustar00adCode = $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'); google/apiclient-services/src/Adsense/HttpBody.php000064400000003613150544704730016244 0ustar00contentType = $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'); google/apiclient-services/src/Adsense/ReportResult.php000064400000010042150544704730017153 0ustar00averages = $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'); google/apiclient-services/src/Adsense/Account.php000064400000006322150544704730016103 0ustar00createTime = $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'); google/apiclient-services/src/Adsense/Row.php000064400000002513150544704730015254 0ustar00cells = $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'); google/apiclient-services/src/Adsense/AdClientAdCode.php000064400000003504150544704730017231 0ustar00adCode = $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'); google/apiclient-services/src/Adsense/Date.php000064400000003323150544704730015362 0ustar00day = $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'); google/apiclient-services/src/Adsense/AdBlockingRecoveryTag.php000064400000003161150544704730020655 0ustar00errorProtectionCode = $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'); google/apiclient-services/src/Adsense/SavedReport.php000064400000002770150544704730016750 0ustar00name = $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'); google/apiclient-services/src/Adsense/ListPaymentsResponse.php000064400000002642150544704730020663 0ustar00payments = $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'); google/apiclient-services/src/Adsense/ListAccountsResponse.php000064400000003363150544704730020643 0ustar00accounts = $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'); google/apiclient-services/src/Adsense/ListSitesResponse.php000064400000003306150544704730020150 0ustar00nextPageToken = $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'); google/apiclient-services/src/Adsense/Site.php000064400000004727150544704730015422 0ustar00autoAdsEnabled = $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'); google/apiclient-services/src/Adsense/ListSavedReportsResponse.php000064400000003457150544704730021511 0ustar00nextPageToken = $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'); google/apiclient-services/src/Adsense/ListAdUnitsResponse.php000064400000003344150544704730020432 0ustar00adUnits = $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'); google/apiclient-services/src/Adsense/Header.php000064400000003454150544704730015702 0ustar00currencyCode = $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'); google/apiclient-services/src/Adsense/ListUrlChannelsResponse.php000064400000003440150544704730021276 0ustar00nextPageToken = $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'); google/apiclient-services/src/Adsense/ListAlertsResponse.php000064400000002604150544704730020313 0ustar00alerts = $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'); google/apiclient-services/src/AnalyticsReporting/DateRangeValues.php000064400000003506150544704730021761 0ustar00pivotValueRegions = $pivotValueRegions; } /** * @return PivotValueRegion[] */ public function getPivotValueRegions() { return $this->pivotValueRegions; } /** * @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\AnalyticsReporting\DateRangeValues::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_DateRangeValues'); google/apiclient-services/src/AnalyticsReporting/SegmentDefinition.php000064400000003015150544704730022355 0ustar00segmentFilters = $segmentFilters; } /** * @return SegmentFilter[] */ public function getSegmentFilters() { return $this->segmentFilters; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SegmentDefinition::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SegmentDefinition'); google/apiclient-services/src/AnalyticsReporting/GoalSetData.php000064400000002633150544704730021077 0ustar00goals = $goals; } /** * @return GoalData[] */ public function getGoals() { return $this->goals; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\GoalSetData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_GoalSetData'); google/apiclient-services/src/AnalyticsReporting/DimensionFilter.php000064400000005106150544704730022040 0ustar00caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } /** * @param string[] */ public function setExpressions($expressions) { $this->expressions = $expressions; } /** * @return string[] */ public function getExpressions() { return $this->expressions; } /** * @param bool */ public function setNot($not) { $this->not = $not; } /** * @return bool */ public function getNot() { return $this->not; } /** * @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\AnalyticsReporting\DimensionFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_DimensionFilter'); google/apiclient-services/src/AnalyticsReporting/EventData.php000064400000005060150544704730020617 0ustar00eventAction = $eventAction; } /** * @return string */ public function getEventAction() { return $this->eventAction; } /** * @param string */ public function setEventCategory($eventCategory) { $this->eventCategory = $eventCategory; } /** * @return string */ public function getEventCategory() { return $this->eventCategory; } /** * @param string */ public function setEventCount($eventCount) { $this->eventCount = $eventCount; } /** * @return string */ public function getEventCount() { return $this->eventCount; } /** * @param string */ public function setEventLabel($eventLabel) { $this->eventLabel = $eventLabel; } /** * @return string */ public function getEventLabel() { return $this->eventLabel; } /** * @param string */ public function setEventValue($eventValue) { $this->eventValue = $eventValue; } /** * @return string */ public function getEventValue() { return $this->eventValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\EventData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_EventData'); google/apiclient-services/src/AnalyticsReporting/MetricFilterClause.php000064400000003374150544704730022500 0ustar00filters = $filters; } /** * @return MetricFilter[] */ public function getFilters() { return $this->filters; } /** * @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\AnalyticsReporting\MetricFilterClause::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_MetricFilterClause'); google/apiclient-services/src/AnalyticsReporting/DimensionFilterClause.php000064400000003416150544704730023177 0ustar00filters = $filters; } /** * @return DimensionFilter[] */ public function getFilters() { return $this->filters; } /** * @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\AnalyticsReporting\DimensionFilterClause::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_DimensionFilterClause'); google/apiclient-services/src/AnalyticsReporting/GetReportsResponse.php000064400000004563150544704730022570 0ustar00queryCost = $queryCost; } /** * @return int */ public function getQueryCost() { return $this->queryCost; } /** * @param Report[] */ public function setReports($reports) { $this->reports = $reports; } /** * @return Report[] */ public function getReports() { return $this->reports; } /** * @param ResourceQuotasRemaining */ public function setResourceQuotasRemaining(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\ResourceQuotasRemaining $resourceQuotasRemaining) { $this->resourceQuotasRemaining = $resourceQuotasRemaining; } /** * @return ResourceQuotasRemaining */ public function getResourceQuotasRemaining() { return $this->resourceQuotasRemaining; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\GetReportsResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_GetReportsResponse'); google/apiclient-services/src/AnalyticsReporting/CustomDimension.php000064400000003043150544704730022063 0ustar00index = $index; } /** * @return int */ public function getIndex() { return $this->index; } /** * @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\AnalyticsReporting\CustomDimension::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_CustomDimension'); google/apiclient-services/src/AnalyticsReporting/UserActivitySession.php000064400000006032150544704730022743 0ustar00activities = $activities; } /** * @return Activity[] */ public function getActivities() { return $this->activities; } /** * @param string */ public function setDataSource($dataSource) { $this->dataSource = $dataSource; } /** * @return string */ public function getDataSource() { return $this->dataSource; } /** * @param string */ public function setDeviceCategory($deviceCategory) { $this->deviceCategory = $deviceCategory; } /** * @return string */ public function getDeviceCategory() { return $this->deviceCategory; } /** * @param string */ public function setPlatform($platform) { $this->platform = $platform; } /** * @return string */ public function getPlatform() { return $this->platform; } /** * @param string */ public function setSessionDate($sessionDate) { $this->sessionDate = $sessionDate; } /** * @return string */ public function getSessionDate() { return $this->sessionDate; } /** * @param string */ public function setSessionId($sessionId) { $this->sessionId = $sessionId; } /** * @return string */ public function getSessionId() { return $this->sessionId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\UserActivitySession::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_UserActivitySession'); google/apiclient-services/src/AnalyticsReporting/PivotValueRegion.php000064400000002522150544704730022206 0ustar00values = $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\AnalyticsReporting\PivotValueRegion::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_PivotValueRegion'); google/apiclient-services/src/AnalyticsReporting/SequenceSegment.php000064400000004003150544704730022033 0ustar00firstStepShouldMatchFirstHit = $firstStepShouldMatchFirstHit; } /** * @return bool */ public function getFirstStepShouldMatchFirstHit() { return $this->firstStepShouldMatchFirstHit; } /** * @param SegmentSequenceStep[] */ public function setSegmentSequenceSteps($segmentSequenceSteps) { $this->segmentSequenceSteps = $segmentSequenceSteps; } /** * @return SegmentSequenceStep[] */ public function getSegmentSequenceSteps() { return $this->segmentSequenceSteps; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SequenceSegment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SequenceSegment'); google/apiclient-services/src/AnalyticsReporting/PivotHeaderEntry.php000064400000004343150544704730022203 0ustar00dimensionNames = $dimensionNames; } /** * @return string[] */ public function getDimensionNames() { return $this->dimensionNames; } /** * @param string[] */ public function setDimensionValues($dimensionValues) { $this->dimensionValues = $dimensionValues; } /** * @return string[] */ public function getDimensionValues() { return $this->dimensionValues; } /** * @param MetricHeaderEntry */ public function setMetric(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\MetricHeaderEntry $metric) { $this->metric = $metric; } /** * @return MetricHeaderEntry */ 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\AnalyticsReporting\PivotHeaderEntry::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_PivotHeaderEntry'); google/apiclient-services/src/AnalyticsReporting/PageviewData.php000064400000003124150544704730021304 0ustar00pagePath = $pagePath; } /** * @return string */ public function getPagePath() { return $this->pagePath; } /** * @param string */ public function setPageTitle($pageTitle) { $this->pageTitle = $pageTitle; } /** * @return string */ public function getPageTitle() { return $this->pageTitle; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\PageviewData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_PageviewData'); google/apiclient-services/src/AnalyticsReporting/GoalData.php000064400000007074150544704730020427 0ustar00goalCompletionLocation = $goalCompletionLocation; } /** * @return string */ public function getGoalCompletionLocation() { return $this->goalCompletionLocation; } /** * @param string */ public function setGoalCompletions($goalCompletions) { $this->goalCompletions = $goalCompletions; } /** * @return string */ public function getGoalCompletions() { return $this->goalCompletions; } /** * @param int */ public function setGoalIndex($goalIndex) { $this->goalIndex = $goalIndex; } /** * @return int */ public function getGoalIndex() { return $this->goalIndex; } /** * @param string */ public function setGoalName($goalName) { $this->goalName = $goalName; } /** * @return string */ public function getGoalName() { return $this->goalName; } /** * @param string */ public function setGoalPreviousStep1($goalPreviousStep1) { $this->goalPreviousStep1 = $goalPreviousStep1; } /** * @return string */ public function getGoalPreviousStep1() { return $this->goalPreviousStep1; } /** * @param string */ public function setGoalPreviousStep2($goalPreviousStep2) { $this->goalPreviousStep2 = $goalPreviousStep2; } /** * @return string */ public function getGoalPreviousStep2() { return $this->goalPreviousStep2; } /** * @param string */ public function setGoalPreviousStep3($goalPreviousStep3) { $this->goalPreviousStep3 = $goalPreviousStep3; } /** * @return string */ public function getGoalPreviousStep3() { return $this->goalPreviousStep3; } public function setGoalValue($goalValue) { $this->goalValue = $goalValue; } public function getGoalValue() { return $this->goalValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\GoalData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_GoalData'); google/apiclient-services/src/AnalyticsReporting/Pivot.php000064400000005750150544704730020053 0ustar00dimensionFilterClauses = $dimensionFilterClauses; } /** * @return DimensionFilterClause[] */ public function getDimensionFilterClauses() { return $this->dimensionFilterClauses; } /** * @param Dimension[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return Dimension[] */ public function getDimensions() { return $this->dimensions; } /** * @param int */ public function setMaxGroupCount($maxGroupCount) { $this->maxGroupCount = $maxGroupCount; } /** * @return int */ public function getMaxGroupCount() { return $this->maxGroupCount; } /** * @param Metric[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return Metric[] */ public function getMetrics() { return $this->metrics; } /** * @param int */ public function setStartGroup($startGroup) { $this->startGroup = $startGroup; } /** * @return int */ public function getStartGroup() { return $this->startGroup; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\Pivot::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_Pivot'); google/apiclient-services/src/AnalyticsReporting/MetricHeader.php000064400000003760150544704730021305 0ustar00metricHeaderEntries = $metricHeaderEntries; } /** * @return MetricHeaderEntry[] */ public function getMetricHeaderEntries() { return $this->metricHeaderEntries; } /** * @param PivotHeader[] */ public function setPivotHeaders($pivotHeaders) { $this->pivotHeaders = $pivotHeaders; } /** * @return PivotHeader[] */ public function getPivotHeaders() { return $this->pivotHeaders; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\MetricHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_MetricHeader'); google/apiclient-services/src/AnalyticsReporting/Resource/UserActivity.php000064400000004065150544704730023172 0ustar00 * $analyticsreportingService = new Google\Service\AnalyticsReporting(...); * $userActivity = $analyticsreportingService->userActivity; * */ class UserActivity extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Returns User Activity data. (userActivity.search) * * @param SearchUserActivityRequest $postBody * @param array $optParams Optional parameters. * @return SearchUserActivityResponse */ public function search(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SearchUserActivityRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('search', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SearchUserActivityResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\Resource\UserActivity::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_Resource_UserActivity'); google/apiclient-services/src/AnalyticsReporting/Resource/Reports.php000064400000003750150544704730022175 0ustar00 * $analyticsreportingService = new Google\Service\AnalyticsReporting(...); * $reports = $analyticsreportingService->reports; * */ class Reports extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Returns the Analytics data. (reports.batchGet) * * @param GetReportsRequest $postBody * @param array $optParams Optional parameters. * @return GetReportsResponse */ public function batchGet(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\GetReportsRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('batchGet', [$params], \Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\GetReportsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\Resource\Reports::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_Resource_Reports'); google/apiclient-services/src/AnalyticsReporting/ProductData.php000064400000004241150544704730021156 0ustar00itemRevenue = $itemRevenue; } public function getItemRevenue() { return $this->itemRevenue; } /** * @param string */ public function setProductName($productName) { $this->productName = $productName; } /** * @return string */ public function getProductName() { return $this->productName; } /** * @param string */ public function setProductQuantity($productQuantity) { $this->productQuantity = $productQuantity; } /** * @return string */ public function getProductQuantity() { return $this->productQuantity; } /** * @param string */ public function setProductSku($productSku) { $this->productSku = $productSku; } /** * @return string */ public function getProductSku() { return $this->productSku; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\ProductData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_ProductData'); google/apiclient-services/src/AnalyticsReporting/TransactionData.php000064400000004110150544704730022016 0ustar00transactionId = $transactionId; } /** * @return string */ public function getTransactionId() { return $this->transactionId; } public function setTransactionRevenue($transactionRevenue) { $this->transactionRevenue = $transactionRevenue; } public function getTransactionRevenue() { return $this->transactionRevenue; } public function setTransactionShipping($transactionShipping) { $this->transactionShipping = $transactionShipping; } public function getTransactionShipping() { return $this->transactionShipping; } public function setTransactionTax($transactionTax) { $this->transactionTax = $transactionTax; } public function getTransactionTax() { return $this->transactionTax; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\TransactionData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_TransactionData'); google/apiclient-services/src/AnalyticsReporting/EcommerceData.php000064400000005135150544704730021440 0ustar00actionType = $actionType; } /** * @return string */ public function getActionType() { return $this->actionType; } /** * @param string */ public function setEcommerceType($ecommerceType) { $this->ecommerceType = $ecommerceType; } /** * @return string */ public function getEcommerceType() { return $this->ecommerceType; } /** * @param ProductData[] */ public function setProducts($products) { $this->products = $products; } /** * @return ProductData[] */ public function getProducts() { return $this->products; } /** * @param TransactionData */ public function setTransaction(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\TransactionData $transaction) { $this->transaction = $transaction; } /** * @return TransactionData */ public function getTransaction() { return $this->transaction; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\EcommerceData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_EcommerceData'); google/apiclient-services/src/AnalyticsReporting/SegmentSequenceStep.php000064400000003607150544704730022700 0ustar00matchType = $matchType; } /** * @return string */ public function getMatchType() { return $this->matchType; } /** * @param OrFiltersForSegment[] */ public function setOrFiltersForSegment($orFiltersForSegment) { $this->orFiltersForSegment = $orFiltersForSegment; } /** * @return OrFiltersForSegment[] */ public function getOrFiltersForSegment() { return $this->orFiltersForSegment; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SegmentSequenceStep::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SegmentSequenceStep'); google/apiclient-services/src/AnalyticsReporting/ScreenviewData.php000064400000004511150544704730021650 0ustar00appName = $appName; } /** * @return string */ public function getAppName() { return $this->appName; } /** * @param string */ public function setMobileDeviceBranding($mobileDeviceBranding) { $this->mobileDeviceBranding = $mobileDeviceBranding; } /** * @return string */ public function getMobileDeviceBranding() { return $this->mobileDeviceBranding; } /** * @param string */ public function setMobileDeviceModel($mobileDeviceModel) { $this->mobileDeviceModel = $mobileDeviceModel; } /** * @return string */ public function getMobileDeviceModel() { return $this->mobileDeviceModel; } /** * @param string */ public function setScreenName($screenName) { $this->screenName = $screenName; } /** * @return string */ public function getScreenName() { return $this->screenName; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\ScreenviewData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_ScreenviewData'); google/apiclient-services/src/AnalyticsReporting/SegmentFilterClause.php000064400000004565150544704730022662 0ustar00dimensionFilter = $dimensionFilter; } /** * @return SegmentDimensionFilter */ public function getDimensionFilter() { return $this->dimensionFilter; } /** * @param SegmentMetricFilter */ public function setMetricFilter(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SegmentMetricFilter $metricFilter) { $this->metricFilter = $metricFilter; } /** * @return SegmentMetricFilter */ public function getMetricFilter() { return $this->metricFilter; } /** * @param bool */ public function setNot($not) { $this->not = $not; } /** * @return bool */ public function getNot() { return $this->not; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SegmentFilterClause::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SegmentFilterClause'); google/apiclient-services/src/AnalyticsReporting/User.php000064400000003013150544704730017656 0ustar00type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @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\AnalyticsReporting\User::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_User'); google/apiclient-services/src/AnalyticsReporting/ReportRow.php000064400000003376150544704730020717 0ustar00dimensions = $dimensions; } /** * @return string[] */ public function getDimensions() { return $this->dimensions; } /** * @param DateRangeValues[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return DateRangeValues[] */ 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\AnalyticsReporting\ReportRow::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_ReportRow'); google/apiclient-services/src/AnalyticsReporting/PivotHeader.php000064400000003650150544704730021161 0ustar00pivotHeaderEntries = $pivotHeaderEntries; } /** * @return PivotHeaderEntry[] */ public function getPivotHeaderEntries() { return $this->pivotHeaderEntries; } /** * @param int */ public function setTotalPivotGroupsCount($totalPivotGroupsCount) { $this->totalPivotGroupsCount = $totalPivotGroupsCount; } /** * @return int */ public function getTotalPivotGroupsCount() { return $this->totalPivotGroupsCount; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\PivotHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_PivotHeader'); google/apiclient-services/src/AnalyticsReporting/CohortGroup.php000064400000003362150544704730021222 0ustar00cohorts = $cohorts; } /** * @return Cohort[] */ public function getCohorts() { return $this->cohorts; } /** * @param bool */ public function setLifetimeValue($lifetimeValue) { $this->lifetimeValue = $lifetimeValue; } /** * @return bool */ public function getLifetimeValue() { return $this->lifetimeValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\CohortGroup::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_CohortGroup'); google/apiclient-services/src/AnalyticsReporting/GetReportsRequest.php000064400000003564150544704730022422 0ustar00reportRequests = $reportRequests; } /** * @return ReportRequest[] */ public function getReportRequests() { return $this->reportRequests; } /** * @param bool */ public function setUseResourceQuotas($useResourceQuotas) { $this->useResourceQuotas = $useResourceQuotas; } /** * @return bool */ public function getUseResourceQuotas() { return $this->useResourceQuotas; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\GetReportsRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_GetReportsRequest'); google/apiclient-services/src/AnalyticsReporting/SearchUserActivityResponse.php000064400000004517150544704730024252 0ustar00nextPageToken = $nextPageToken; } /** * @return string */ public function getNextPageToken() { return $this->nextPageToken; } public function setSampleRate($sampleRate) { $this->sampleRate = $sampleRate; } public function getSampleRate() { return $this->sampleRate; } /** * @param UserActivitySession[] */ public function setSessions($sessions) { $this->sessions = $sessions; } /** * @return UserActivitySession[] */ public function getSessions() { return $this->sessions; } /** * @param int */ public function setTotalRows($totalRows) { $this->totalRows = $totalRows; } /** * @return int */ public function getTotalRows() { return $this->totalRows; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SearchUserActivityResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SearchUserActivityResponse'); google/apiclient-services/src/AnalyticsReporting/SegmentMetricFilter.php000064400000005134150544704730022662 0ustar00comparisonValue = $comparisonValue; } /** * @return string */ public function getComparisonValue() { return $this->comparisonValue; } /** * @param string */ public function setMaxComparisonValue($maxComparisonValue) { $this->maxComparisonValue = $maxComparisonValue; } /** * @return string */ public function getMaxComparisonValue() { return $this->maxComparisonValue; } /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } /** * @param string */ public function setOperator($operator) { $this->operator = $operator; } /** * @return string */ public function getOperator() { return $this->operator; } /** * @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\AnalyticsReporting\SegmentMetricFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SegmentMetricFilter'); google/apiclient-services/src/AnalyticsReporting/OrderBy.php000064400000003601150544704730020311 0ustar00fieldName = $fieldName; } /** * @return string */ public function getFieldName() { return $this->fieldName; } /** * @param string */ public function setOrderType($orderType) { $this->orderType = $orderType; } /** * @return string */ public function getOrderType() { return $this->orderType; } /** * @param string */ public function setSortOrder($sortOrder) { $this->sortOrder = $sortOrder; } /** * @return string */ public function getSortOrder() { return $this->sortOrder; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\OrderBy::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_OrderBy'); google/apiclient-services/src/AnalyticsReporting/MetricFilter.php000064400000004277150544704730021346 0ustar00comparisonValue = $comparisonValue; } /** * @return string */ public function getComparisonValue() { return $this->comparisonValue; } /** * @param string */ public function setMetricName($metricName) { $this->metricName = $metricName; } /** * @return string */ public function getMetricName() { return $this->metricName; } /** * @param bool */ public function setNot($not) { $this->not = $not; } /** * @return bool */ public function getNot() { return $this->not; } /** * @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\AnalyticsReporting\MetricFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_MetricFilter'); google/apiclient-services/src/AnalyticsReporting/SegmentFilter.php000064400000004467150544704730021526 0ustar00not = $not; } /** * @return bool */ public function getNot() { return $this->not; } /** * @param SequenceSegment */ public function setSequenceSegment(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SequenceSegment $sequenceSegment) { $this->sequenceSegment = $sequenceSegment; } /** * @return SequenceSegment */ public function getSequenceSegment() { return $this->sequenceSegment; } /** * @param SimpleSegment */ public function setSimpleSegment(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SimpleSegment $simpleSegment) { $this->simpleSegment = $simpleSegment; } /** * @return SimpleSegment */ public function getSimpleSegment() { return $this->simpleSegment; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SegmentFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SegmentFilter'); google/apiclient-services/src/AnalyticsReporting/OrFiltersForSegment.php000064400000003133150544704730022646 0ustar00segmentFilterClauses = $segmentFilterClauses; } /** * @return SegmentFilterClause[] */ public function getSegmentFilterClauses() { return $this->segmentFilterClauses; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\OrFiltersForSegment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_OrFiltersForSegment'); google/apiclient-services/src/AnalyticsReporting/SimpleSegment.php000064400000003100150544704730021511 0ustar00orFiltersForSegment = $orFiltersForSegment; } /** * @return OrFiltersForSegment[] */ public function getOrFiltersForSegment() { return $this->orFiltersForSegment; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SimpleSegment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SimpleSegment'); google/apiclient-services/src/AnalyticsReporting/Dimension.php000064400000003237150544704730020675 0ustar00histogramBuckets = $histogramBuckets; } /** * @return string[] */ public function getHistogramBuckets() { return $this->histogramBuckets; } /** * @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\AnalyticsReporting\Dimension::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_Dimension'); google/apiclient-services/src/AnalyticsReporting/Segment.php000064400000003466150544704730020356 0ustar00dynamicSegment = $dynamicSegment; } /** * @return DynamicSegment */ public function getDynamicSegment() { return $this->dynamicSegment; } /** * @param string */ public function setSegmentId($segmentId) { $this->segmentId = $segmentId; } /** * @return string */ public function getSegmentId() { return $this->segmentId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\Segment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_Segment'); google/apiclient-services/src/AnalyticsReporting/ResourceQuotasRemaining.php000064400000003521150544704730023562 0ustar00dailyQuotaTokensRemaining = $dailyQuotaTokensRemaining; } /** * @return int */ public function getDailyQuotaTokensRemaining() { return $this->dailyQuotaTokensRemaining; } /** * @param int */ public function setHourlyQuotaTokensRemaining($hourlyQuotaTokensRemaining) { $this->hourlyQuotaTokensRemaining = $hourlyQuotaTokensRemaining; } /** * @return int */ public function getHourlyQuotaTokensRemaining() { return $this->hourlyQuotaTokensRemaining; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\ResourceQuotasRemaining::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_ResourceQuotasRemaining'); google/apiclient-services/src/AnalyticsReporting/Activity.php000064400000015145150544704730020545 0ustar00activityTime = $activityTime; } /** * @return string */ public function getActivityTime() { return $this->activityTime; } /** * @param string */ public function setActivityType($activityType) { $this->activityType = $activityType; } /** * @return string */ public function getActivityType() { return $this->activityType; } /** * @param ScreenviewData */ public function setAppview(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\ScreenviewData $appview) { $this->appview = $appview; } /** * @return ScreenviewData */ public function getAppview() { return $this->appview; } /** * @param string */ public function setCampaign($campaign) { $this->campaign = $campaign; } /** * @return string */ public function getCampaign() { return $this->campaign; } /** * @param string */ public function setChannelGrouping($channelGrouping) { $this->channelGrouping = $channelGrouping; } /** * @return string */ public function getChannelGrouping() { return $this->channelGrouping; } /** * @param CustomDimension[] */ public function setCustomDimension($customDimension) { $this->customDimension = $customDimension; } /** * @return CustomDimension[] */ public function getCustomDimension() { return $this->customDimension; } /** * @param EcommerceData */ public function setEcommerce(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\EcommerceData $ecommerce) { $this->ecommerce = $ecommerce; } /** * @return EcommerceData */ public function getEcommerce() { return $this->ecommerce; } /** * @param EventData */ public function setEvent(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\EventData $event) { $this->event = $event; } /** * @return EventData */ public function getEvent() { return $this->event; } /** * @param GoalSetData */ public function setGoals(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\GoalSetData $goals) { $this->goals = $goals; } /** * @return GoalSetData */ public function getGoals() { return $this->goals; } /** * @param string */ public function setHostname($hostname) { $this->hostname = $hostname; } /** * @return string */ public function getHostname() { return $this->hostname; } /** * @param string */ public function setKeyword($keyword) { $this->keyword = $keyword; } /** * @return string */ public function getKeyword() { return $this->keyword; } /** * @param string */ public function setLandingPagePath($landingPagePath) { $this->landingPagePath = $landingPagePath; } /** * @return string */ public function getLandingPagePath() { return $this->landingPagePath; } /** * @param string */ public function setMedium($medium) { $this->medium = $medium; } /** * @return string */ public function getMedium() { return $this->medium; } /** * @param PageviewData */ public function setPageview(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\PageviewData $pageview) { $this->pageview = $pageview; } /** * @return PageviewData */ public function getPageview() { return $this->pageview; } /** * @param string */ public function setSource($source) { $this->source = $source; } /** * @return string */ public function getSource() { return $this->source; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\Activity::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_Activity'); google/apiclient-services/src/AnalyticsReporting/DateRange.php000064400000003104150544704730020573 0ustar00endDate = $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\AnalyticsReporting\DateRange::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_DateRange'); google/apiclient-services/src/AnalyticsReporting/SegmentDimensionFilter.php000064400000006076150544704730023372 0ustar00caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setDimensionName($dimensionName) { $this->dimensionName = $dimensionName; } /** * @return string */ public function getDimensionName() { return $this->dimensionName; } /** * @param string[] */ public function setExpressions($expressions) { $this->expressions = $expressions; } /** * @return string[] */ public function getExpressions() { return $this->expressions; } /** * @param string */ public function setMaxComparisonValue($maxComparisonValue) { $this->maxComparisonValue = $maxComparisonValue; } /** * @return string */ public function getMaxComparisonValue() { return $this->maxComparisonValue; } /** * @param string */ public function setMinComparisonValue($minComparisonValue) { $this->minComparisonValue = $minComparisonValue; } /** * @return string */ public function getMinComparisonValue() { return $this->minComparisonValue; } /** * @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\AnalyticsReporting\SegmentDimensionFilter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SegmentDimensionFilter'); google/apiclient-services/src/AnalyticsReporting/ReportData.php000064400000011216150544704730021011 0ustar00dataLastRefreshed = $dataLastRefreshed; } /** * @return string */ public function getDataLastRefreshed() { return $this->dataLastRefreshed; } /** * @param string */ public function setEmptyReason($emptyReason) { $this->emptyReason = $emptyReason; } /** * @return string */ public function getEmptyReason() { return $this->emptyReason; } /** * @param bool */ public function setIsDataGolden($isDataGolden) { $this->isDataGolden = $isDataGolden; } /** * @return bool */ public function getIsDataGolden() { return $this->isDataGolden; } /** * @param DateRangeValues[] */ public function setMaximums($maximums) { $this->maximums = $maximums; } /** * @return DateRangeValues[] */ public function getMaximums() { return $this->maximums; } /** * @param DateRangeValues[] */ public function setMinimums($minimums) { $this->minimums = $minimums; } /** * @return DateRangeValues[] */ public function getMinimums() { return $this->minimums; } /** * @param int */ public function setRowCount($rowCount) { $this->rowCount = $rowCount; } /** * @return int */ public function getRowCount() { return $this->rowCount; } /** * @param ReportRow[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return ReportRow[] */ public function getRows() { return $this->rows; } /** * @param string[] */ public function setSamplesReadCounts($samplesReadCounts) { $this->samplesReadCounts = $samplesReadCounts; } /** * @return string[] */ public function getSamplesReadCounts() { return $this->samplesReadCounts; } /** * @param string[] */ public function setSamplingSpaceSizes($samplingSpaceSizes) { $this->samplingSpaceSizes = $samplingSpaceSizes; } /** * @return string[] */ public function getSamplingSpaceSizes() { return $this->samplingSpaceSizes; } /** * @param DateRangeValues[] */ public function setTotals($totals) { $this->totals = $totals; } /** * @return DateRangeValues[] */ 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\AnalyticsReporting\ReportData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_ReportData'); google/apiclient-services/src/AnalyticsReporting/Metric.php000064400000003614150544704730020172 0ustar00alias = $alias; } /** * @return string */ public function getAlias() { return $this->alias; } /** * @param string */ public function setExpression($expression) { $this->expression = $expression; } /** * @return string */ public function getExpression() { return $this->expression; } /** * @param string */ public function setFormattingType($formattingType) { $this->formattingType = $formattingType; } /** * @return string */ public function getFormattingType() { return $this->formattingType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\Metric::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_Metric'); google/apiclient-services/src/AnalyticsReporting/ColumnHeader.php000064400000003555150544704730021321 0ustar00dimensions = $dimensions; } /** * @return string[] */ public function getDimensions() { return $this->dimensions; } /** * @param MetricHeader */ public function setMetricHeader(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\MetricHeader $metricHeader) { $this->metricHeader = $metricHeader; } /** * @return MetricHeader */ public function getMetricHeader() { return $this->metricHeader; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\ColumnHeader::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_ColumnHeader'); google/apiclient-services/src/AnalyticsReporting/Report.php000064400000004366150544704730020227 0ustar00columnHeader = $columnHeader; } /** * @return ColumnHeader */ public function getColumnHeader() { return $this->columnHeader; } /** * @param ReportData */ public function setData(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\ReportData $data) { $this->data = $data; } /** * @return ReportData */ public function getData() { return $this->data; } /** * @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\AnalyticsReporting\Report::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_Report'); google/apiclient-services/src/AnalyticsReporting/Cohort.php000064400000003746150544704730020213 0ustar00dateRange = $dateRange; } /** * @return DateRange */ public function getDateRange() { return $this->dateRange; } /** * @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\AnalyticsReporting\Cohort::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_Cohort'); google/apiclient-services/src/AnalyticsReporting/MetricHeaderEntry.php000064400000003044150544704730022322 0ustar00name = $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\AnalyticsReporting\MetricHeaderEntry::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_MetricHeaderEntry'); google/apiclient-services/src/AnalyticsReporting/SearchUserActivityRequest.php000064400000006251150544704730024101 0ustar00activityTypes = $activityTypes; } /** * @return string[] */ public function getActivityTypes() { return $this->activityTypes; } /** * @param DateRange */ public function setDateRange(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\DateRange $dateRange) { $this->dateRange = $dateRange; } /** * @return DateRange */ public function getDateRange() { return $this->dateRange; } /** * @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 User */ public function setUser(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\User $user) { $this->user = $user; } /** * @return User */ public function getUser() { return $this->user; } /** * @param string */ public function setViewId($viewId) { $this->viewId = $viewId; } /** * @return string */ public function getViewId() { return $this->viewId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SearchUserActivityRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_SearchUserActivityRequest'); google/apiclient-services/src/AnalyticsReporting/DynamicSegment.php000064400000004507150544704730021660 0ustar00name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param SegmentDefinition */ public function setSessionSegment(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SegmentDefinition $sessionSegment) { $this->sessionSegment = $sessionSegment; } /** * @return SegmentDefinition */ public function getSessionSegment() { return $this->sessionSegment; } /** * @param SegmentDefinition */ public function setUserSegment(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\SegmentDefinition $userSegment) { $this->userSegment = $userSegment; } /** * @return SegmentDefinition */ public function getUserSegment() { return $this->userSegment; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\DynamicSegment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_DynamicSegment'); google/apiclient-services/src/AnalyticsReporting/ReportRequest.php000064400000017005150544704730021572 0ustar00cohortGroup = $cohortGroup; } /** * @return CohortGroup */ public function getCohortGroup() { return $this->cohortGroup; } /** * @param DateRange[] */ public function setDateRanges($dateRanges) { $this->dateRanges = $dateRanges; } /** * @return DateRange[] */ public function getDateRanges() { return $this->dateRanges; } /** * @param DimensionFilterClause[] */ public function setDimensionFilterClauses($dimensionFilterClauses) { $this->dimensionFilterClauses = $dimensionFilterClauses; } /** * @return DimensionFilterClause[] */ public function getDimensionFilterClauses() { return $this->dimensionFilterClauses; } /** * @param Dimension[] */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return Dimension[] */ public function getDimensions() { return $this->dimensions; } /** * @param string */ public function setFiltersExpression($filtersExpression) { $this->filtersExpression = $filtersExpression; } /** * @return string */ public function getFiltersExpression() { return $this->filtersExpression; } /** * @param bool */ public function setHideTotals($hideTotals) { $this->hideTotals = $hideTotals; } /** * @return bool */ public function getHideTotals() { return $this->hideTotals; } /** * @param bool */ public function setHideValueRanges($hideValueRanges) { $this->hideValueRanges = $hideValueRanges; } /** * @return bool */ public function getHideValueRanges() { return $this->hideValueRanges; } /** * @param bool */ public function setIncludeEmptyRows($includeEmptyRows) { $this->includeEmptyRows = $includeEmptyRows; } /** * @return bool */ public function getIncludeEmptyRows() { return $this->includeEmptyRows; } /** * @param MetricFilterClause[] */ public function setMetricFilterClauses($metricFilterClauses) { $this->metricFilterClauses = $metricFilterClauses; } /** * @return MetricFilterClause[] */ public function getMetricFilterClauses() { return $this->metricFilterClauses; } /** * @param Metric[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return Metric[] */ public function getMetrics() { return $this->metrics; } /** * @param OrderBy[] */ public function setOrderBys($orderBys) { $this->orderBys = $orderBys; } /** * @return OrderBy[] */ public function getOrderBys() { return $this->orderBys; } /** * @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 Pivot[] */ public function setPivots($pivots) { $this->pivots = $pivots; } /** * @return Pivot[] */ public function getPivots() { return $this->pivots; } /** * @param string */ public function setSamplingLevel($samplingLevel) { $this->samplingLevel = $samplingLevel; } /** * @return string */ public function getSamplingLevel() { return $this->samplingLevel; } /** * @param Segment[] */ public function setSegments($segments) { $this->segments = $segments; } /** * @return Segment[] */ public function getSegments() { return $this->segments; } /** * @param string */ public function setViewId($viewId) { $this->viewId = $viewId; } /** * @return string */ public function getViewId() { return $this->viewId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\ReportRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting_ReportRequest'); google/apiclient-services/src/TagManager.php000064400000067101150544704730015135 0ustar00 * This API allows clients to access and modify container and tag configuration.

* *

* For more information about this service, see the API * Documentation *

* * @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_triggers; public $accounts_containers_workspaces_variables; public $accounts_containers_workspaces_zones; public $accounts_user_permissions; /** * 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->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_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'); google/apiclient-services/src/SearchConsole/MobileFriendlyIssue.php000064400000002411150544704730021565 0ustar00rule = $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'); google/apiclient-services/src/SearchConsole/InspectUrlIndexRequest.php000064400000003702150544704730022305 0ustar00inspectionUrl = $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'); google/apiclient-services/src/SearchConsole/RunMobileFriendlyTestResponse.php000064400000006532150544704730023630 0ustar00mobileFriendliness = $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'); google/apiclient-services/src/SearchConsole/RunMobileFriendlyTestRequest.php000064400000003204150544704730023453 0ustar00requestScreenshot = $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'); google/apiclient-services/src/SearchConsole/ApiDataRow.php000064400000004005150544704730017644 0ustar00clicks = $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'); google/apiclient-services/src/SearchConsole/UrlInspectionResult.php000064400000007315150544704730021655 0ustar00ampResult = $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'); google/apiclient-services/src/SearchConsole/ResourceIssue.php000064400000003006150544704730020451 0ustar00blockedResource = $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'); google/apiclient-services/src/SearchConsole/SearchAnalyticsQueryResponse.php000064400000003516150544704730023501 0ustar00responseAggregationType = $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'); google/apiclient-services/src/SearchConsole/Resource/UrlTestingToolsMobileFriendlyTest.php000064400000004162150544704730026252 0ustar00 * $searchconsoleService = new Google\Service\SearchConsole(...); * $mobileFriendlyTest = $searchconsoleService->mobileFriendlyTest; * */ 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 */ 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'); google/apiclient-services/src/SearchConsole/Resource/Searchanalytics.php000064400000005133150544704730022560 0ustar00 * $searchconsoleService = new Google\Service\SearchConsole(...); * $searchanalytics = $searchconsoleService->searchanalytics; * */ 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 */ 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'); google/apiclient-services/src/SearchConsole/Resource/UrlTestingTools.php000064400000002371150544704730022565 0ustar00 * $searchconsoleService = new Google\Service\SearchConsole(...); * $urlTestingTools = $searchconsoleService->urlTestingTools; * */ 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'); google/apiclient-services/src/SearchConsole/Resource/UrlInspection.php000064400000002355150544704730022244 0ustar00 * $searchconsoleService = new Google\Service\SearchConsole(...); * $urlInspection = $searchconsoleService->urlInspection; * */ 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'); google/apiclient-services/src/SearchConsole/Resource/Sitemaps.php000064400000010405150544704730021226 0ustar00 * $searchconsoleService = new Google\Service\SearchConsole(...); * $sitemaps = $searchconsoleService->sitemaps; * */ 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. */ 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 */ 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 */ 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. */ 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'); google/apiclient-services/src/SearchConsole/Resource/Sites.php000064400000006437150544704730020542 0ustar00 * $searchconsoleService = new Google\Service\SearchConsole(...); * $sites = $searchconsoleService->sites; * */ 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. */ 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. */ 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 */ 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 */ 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'); google/apiclient-services/src/SearchConsole/Resource/UrlInspectionIndex.php000064400000003740150544704730023233 0ustar00 * $searchconsoleService = new Google\Service\SearchConsole(...); * $index = $searchconsoleService->index; * */ class UrlInspectionIndex extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Index inspection. (index.inspect) * * @param InspectUrlIndexRequest $postBody * @param array $optParams Optional parameters. * @return InspectUrlIndexResponse */ 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'); google/apiclient-services/src/SearchConsole/BlockedResource.php000064400000002366150544704730020734 0ustar00url = $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'); google/apiclient-services/src/SearchConsole/SitesListResponse.php000064400000002672150544704730021323 0ustar00siteEntry = $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'); google/apiclient-services/src/SearchConsole/ApiDimensionFilter.php000064400000003623150544704730021403 0ustar00dimension = $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'); google/apiclient-services/src/SearchConsole/WmxSite.php000064400000003131150544704730017250 0ustar00permissionLevel = $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'); google/apiclient-services/src/SearchConsole/Image.php000064400000003015150544704730016673 0ustar00data = $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'); google/apiclient-services/src/SearchConsole/IndexStatusInspectionResult.php000064400000011162150544704730023361 0ustar00coverageState = $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'); google/apiclient-services/src/SearchConsole/SitemapsListResponse.php000064400000002672150544704730022021 0ustar00sitemap = $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'); google/apiclient-services/src/SearchConsole/AmpInspectionResult.php000064400000007312150544704730021625 0ustar00ampIndexStatusVerdict = $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'); google/apiclient-services/src/SearchConsole/ApiDimensionFilterGroup.php000064400000003420150544704730022413 0ustar00filters = $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'); google/apiclient-services/src/SearchConsole/WmxSitemap.php000064400000007535150544704730017762 0ustar00contents = $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'); google/apiclient-services/src/SearchConsole/DetectedItems.php000064400000003331150544704730020375 0ustar00items = $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'); google/apiclient-services/src/SearchConsole/RichResultsInspectionResult.php000064400000003465150544704730023364 0ustar00detectedItems = $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'); google/apiclient-services/src/SearchConsole/MobileUsabilityIssue.php000064400000003604150544704730021763 0ustar00issueType = $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'); google/apiclient-services/src/SearchConsole/MobileUsabilityInspectionResult.php000064400000003427150544704730024210 0ustar00issues = $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'); google/apiclient-services/src/SearchConsole/InspectUrlIndexResponse.php000064400000003074150544704730022455 0ustar00inspectionResult = $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'); google/apiclient-services/src/SearchConsole/AmpIssue.php000064400000003116150544704730017401 0ustar00issueMessage = $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'); google/apiclient-services/src/SearchConsole/SearchAnalyticsQueryRequest.php000064400000010463150544704730023332 0ustar00aggregationType = $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'); google/apiclient-services/src/SearchConsole/RichResultsIssue.php000064400000003146150544704730021136 0ustar00issueMessage = $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'); google/apiclient-services/src/SearchConsole/Item.php000064400000003245150544704730016554 0ustar00issues = $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'); google/apiclient-services/src/SearchConsole/WmxSitemapContent.php000064400000003537150544704730021313 0ustar00indexed = $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'); google/apiclient-services/src/SearchConsole/TestStatus.php000064400000003043150544704730017775 0ustar00details = $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'); google/apiclient-services/src/Adsense.php000064400000033622150544704730014512 0ustar00 * The AdSense Management API allows publishers to access their inventory and * run earnings and performance reports.

* *

* For more information about this service, see the API * Documentation *

* * @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_reports; public $accounts_reports_saved; public $accounts_sites; /** * 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->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_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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse.php000064400000004327150544704730034214 0ustar00google/apiclient-servicesmeasurementProtocolSecrets = $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/GoogleAnalyticsAdminV1betaListDataStreamsResponse.php000064400000003760150544704730030712 0ustar00googledataStreams = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListConversionEventsResponse.php000064400000004101150544704730032154 0ustar00google/apiclient-servicesconversionEvents = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.php000064400000004007150544704730031451 0ustar00googledisplayName = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceSequenceFilter.php000064400000004704150544704730030654 0ustar00googlescope = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaRunAccessReportResponse.php000064400000007104150544704730031076 0ustar00googledimensionHeaders = $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/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList.php000064400000003476150544704730033365 0ustar00google/apiclient-servicesfilterExpressions = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessStringFilter.php000064400000003763150544704730030121 0ustar00caseSensitive = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter.php000064400000005116150544704730035154 0ustar00google/apiclient-servicesfromValue = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaChangeHistoryChange.php000064400000006346150544704730030066 0ustar00action = $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/GoogleAnalyticsAdminV1alphaArchiveAudienceRequest.php000064400000002146150544704730030666 0ustar00googleadsPersonalizationEnabled = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSet.php000064400000007606150544704730027361 0ustar00dataCollectionStartTime = $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/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings.php000064400000010077150544704730031734 0ustar00google/apiclient-servicesfileDownloadsEnabled = $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/GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse.php000064400000004043150544704730031515 0ustar00google/apiclient-servicesnextPageToken = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter.php000064400000003505150544704730034765 0ustar00google/apiclient-servicescaseSensitive = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter.php000064400000012120150544704730032465 0ustar00google/apiclient-servicesatAnyPointInTime = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListDataStreamsResponse.php000064400000003766150544704730031072 0ustar00googledataStreams = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessOrderBy.php000064400000005171150544704730027046 0ustar00desc = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessFilter.php000064400000007721150544704730026730 0ustar00betweenFilter = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataSharingSettings.php000064400000007140150544704730030110 0ustar00name = $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/GoogleAnalyticsAdminV1alphaAuditUserLinksRequest.php000064400000003275150544704730030561 0ustar00googlepageSize = $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/GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse.php000064400000003223150544704730031333 0ustar00googleuserLinks = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse.php000064400000004120150544704730032167 0ustar00google/apiclient-servicesiosAppDataStreams = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataStream.php000064400000011232150544704730026376 0ustar00androidAppStreamData = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessMetricValue.php000064400000002560150544704730027717 0ustar00value = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaChangeHistoryEvent.php000064400000006255150544704730027761 0ustar00actorType = $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/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter.php000064400000004076150544704730035035 0ustar00google/apiclient-servicescaseSensitive = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource.php000064400000014345150544704730034205 0ustar00google/apiclient-servicesaccount = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaConversionEvent.php000064400000005032150544704730027327 0ustar00createTime = $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\GoogleAnalyticsAdminV1betaConversionEvent::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaConversionEvent'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink.php000064400000006457150544704730032003 0ustar00google/apiclient-servicesadsPersonalizationEnabled = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse.php000064400000004035150544704730031343 0ustar00googlegoogleAdsLinks = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse.php000064400000004321150544704730034034 0ustar00google/apiclient-servicesmeasurementProtocolSecrets = $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'); GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest.php000064400000002272150544704730036171 0ustar00google/apiclient-services/src/GoogleAnalyticsAdmindimensionName = $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/GoogleAnalyticsAdminV1betaListAccountsResponse.php000064400000003703150544704730030256 0ustar00googleaccounts = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList.php000064400000003424150544704730032075 0ustar00google/apiclient-servicesfilterExpressions = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData.php000064400000003417150544704730032063 0ustar00google/apiclient-servicesfirebaseAppId = $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/GoogleAnalyticsAdminV1alphaAccessNumericFilter.php000064400000003721150544704730030170 0ustar00googleoperation = $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/GoogleAnalyticsAdminV1alphaAudienceFilterExpression.php000064400000010747150544704730031247 0ustar00googleandGroup = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaGoogleAdsLink.php000064400000006610150544704730026665 0ustar00adsPersonalizationEnabled = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAuditUserLink.php000064400000004605150544704730027102 0ustar00directRoles = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDimensionValue.php000064400000002571150544704730030344 0ustar00googlevalue = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataRetentionSettings.php000064400000004214150544704730030404 0ustar00googleeventDataRetention = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest.php000064400000002173150544704730032271 0ustar00google/apiclient-servicesacknowledgement = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse.php000064400000004120150544704730031732 0ustar00google/apiclient-servicesnextPageToken = $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/GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails.php000064400000004365150544704730031432 0ustar00googlelinkProposalInitiatingProduct = $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'); GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse.php000064400000004003150544704730036560 0ustar00google/apiclient-services/src/GoogleAnalyticsAdmindisplayVideo360AdvertiserLink = $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/GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest.php000064400000002565150544704730030533 0ustar00googlename = $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/GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse.php000064400000004214150544704730033021 0ustar00google/apiclient-servicesandroidAppDataStreams = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProperty.php000064400000012067150544704730026032 0ustar00account = $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'); GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest.php000064400000002275150544704730036423 0ustar00google/apiclient-services/src/GoogleAnalyticsAdmincustomMetrics = $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/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue.php000064400000003266150544704730035020 0ustar00google/apiclient-servicesdoubleValue = $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/GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse.php000064400000004164150544704730033101 0ustar00google/apiclient-serviceschangeHistoryEvents = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter.php000064400000003447150544704730032740 0ustar00google/apiclient-servicescaseSensitive = $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/GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.php000064400000003665150544704730030563 0ustar00googleconsent = $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/GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse.php000064400000004024150544704730031367 0ustar00googlefirebaseLinks = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest.php000064400000002170150544704730032114 0ustar00google/apiclient-servicesaccountTicketId = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaWebDataStream.php000064400000006366150544704730027050 0ustar00createTime = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaCustomMetric.php000064400000006556150544704730027004 0ustar00description = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest.php000064400000003267150544704730031700 0ustar00google/apiclient-servicesrequests = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListFirebaseLinksResponse.php000064400000004016150544704730031216 0ustar00googlefirebaseLinks = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaCustomMetric.php000064400000006553150544704730026627 0ustar00description = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest.php000064400000007320150544704730032556 0ustar00google/apiclient-servicesaction = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataRetentionSettings.php000064400000004217150544704730030561 0ustar00googleeventDataRetention = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessMetric.php000064400000002604150544704730026721 0ustar00metricName = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesFirebaseLinks.php000064400000010576150544704730025555 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $firebaseLinks = $analyticsadminService->firebaseLinks; * */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesWebDataStreams.php000064400000014706150544704730025701 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $webDataStreams = $analyticsadminService->webDataStreams; * */ 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/PropertiesDisplayVideo360AdvertiserLinks.php000064400000015552150544704730030633 0ustar00google * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $displayVideo360AdvertiserLinks = $analyticsadminService->displayVideo360AdvertiserLinks; * */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesCustomMetrics.php000064400000014204150544704730025625 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $customMetrics = $analyticsadminService->customMetrics; * */ 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 */ 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 */ 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 */ 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 */ 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 */ 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'); src/GoogleAnalyticsAdmin/Resource/PropertiesDataStreamsMeasurementProtocolSecrets.php000064400000015214150544704730032440 0ustar00google/apiclient-services * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $measurementProtocolSecrets = $analyticsadminService->measurementProtocolSecrets; * */ 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 */ 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 */ 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 */ 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 */ 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 The list of fields to be updated. Omitted fields * will not be updated. * @return GoogleAnalyticsAdminV1betaMeasurementProtocolSecret */ 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/PropertiesAndroidAppDataStreamsMeasurementProtocolSecrets.php000064400000016212150544704730034401 0ustar00google/apiclient-services * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $measurementProtocolSecrets = $analyticsadminService->measurementProtocolSecrets; * */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesAudiences.php000064400000014355150544704730024733 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $audiences = $analyticsadminService->audiences; * */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesSearchAds360Links.php000064400000014005150544704730026112 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $searchAds360Links = $analyticsadminService->searchAds360Links; * */ 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'); src/GoogleAnalyticsAdmin/Resource/PropertiesWebDataStreamsMeasurementProtocolSecrets.php000064400000016147150544704730033104 0ustar00google/apiclient-services * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $measurementProtocolSecrets = $analyticsadminService->measurementProtocolSecrets; * */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/AccountSummaries.php000064400000005112150544704730024227 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $accountSummaries = $analyticsadminService->accountSummaries; * */ 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 */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesCustomDimensions.php000064400000014410150544704730026326 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $customDimensions = $analyticsadminService->customDimensions; * */ 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 */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesUserLinks.php000064400000030437150544704730024751 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $userLinks = $analyticsadminService->userLinks; * */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesIosAppDataStreams.php000064400000013277150544704730026361 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $iosAppDataStreams = $analyticsadminService->iosAppDataStreams; * */ 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'); src/GoogleAnalyticsAdmin/Resource/PropertiesIosAppDataStreamsMeasurementProtocolSecrets.php000064400000016166150544704730033563 0ustar00google/apiclient-services * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $measurementProtocolSecrets = $analyticsadminService->measurementProtocolSecrets; * */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/Properties.php000064400000025707150544704730023115 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $properties = $analyticsadminService->properties; * */ 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 * via 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 */ 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 */ 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, UserLinks) 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 */ 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 */ 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 */ 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 */ 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 */ 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); } /** * 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 */ 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'); src/GoogleAnalyticsAdmin/Resource/PropertiesDisplayVideo360AdvertiserLinkProposals.php000064400000021057150544704730032350 0ustar00google/apiclient-services * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $displayVideo360AdvertiserLinkProposals = $analyticsadminService->displayVideo360AdvertiserLinkProposals; * */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/AccountsUserLinks.php000064400000030425150544704730024371 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $userLinks = $analyticsadminService->userLinks; * */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesAndroidAppDataStreams.php000064400000013455150544704730027205 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $androidAppDataStreams = $analyticsadminService->androidAppDataStreams; * */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesDataStreams.php000064400000013357150544704730025244 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $dataStreams = $analyticsadminService->dataStreams; * */ 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 */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesGoogleAdsLinks.php000064400000012366150544704730025700 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $googleAdsLinks = $analyticsadminService->googleAdsLinks; * */ 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 */ 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 */ 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 */ 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 */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/Accounts.php000064400000021642150544704730022532 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $accounts = $analyticsadminService->accounts; * */ 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, UserLinks) 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 */ 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 */ 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 */ 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 */ 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 (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 GoogleAnalyticsAdminV1betaAccount */ 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 */ 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); } /** * 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. * @param GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest $postBody * @param array $optParams Optional parameters. * @return GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse */ 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'); google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesConversionEvents.php000064400000012340150544704730026335 0ustar00 * $analyticsadminService = new Google\Service\GoogleAnalyticsAdmin(...); * $conversionEvents = $analyticsadminService->conversionEvents; * */ 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 */ 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 */ 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 */ 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 */ 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); } } // 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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse.php000064400000004043150544704730031514 0ustar00google/apiclient-servicesgoogleAdsLinks = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaConversionEvent.php000064400000005035150544704730027504 0ustar00createTime = $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/GoogleAnalyticsAdminV1alphaListAccountSummariesResponse.php000064400000004076150544704730032137 0ustar00google/apiclient-servicesaccountSummaries = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse.php000064400000002220150544704730033524 0ustar00google/apiclient-servicesnextPageToken = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaPropertySummary.php000064400000004451150544704730027406 0ustar00displayName = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter.php000064400000004040150544704730032772 0ustar00google/apiclient-servicescaseSensitive = $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/GoogleAnalyticsAdminV1alphaListAudiencesResponse.php000064400000003730150544704730030551 0ustar00googleaudiences = $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/GoogleAnalyticsAdminV1betaListPropertiesResponse.php000064400000003736150544704730030641 0ustar00googlenextPageToken = $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/GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse.php000064400000004423150544704730034530 0ustar00google/apiclient-servicesdisplayVideo360AdvertiserLinks = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessMetricHeader.php000064400000002626150544704730030036 0ustar00metricName = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse.php000064400000003234150544704730032021 0ustar00google/apiclient-servicesuserLinks = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource.php000064400000027760150544704730034364 0ustar00google/apiclient-servicesaccount = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessFilterExpression.php000064400000007232150544704730030726 0ustar00googleaccessFilter = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListAccountSummariesResponse.php000064400000004070150544704730031757 0ustar00google/apiclient-servicesaccountSummaries = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccount.php000064400000005540150544704730025600 0ustar00createTime = $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\GoogleAnalyticsAdminV1betaAccount::class, 'Google\\Site_Kit_Dependencies\\Google_Service_GoogleAnalyticsAdmin_GoogleAnalyticsAdminV1betaAccount'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessQuota.php000064400000011024150544704730026563 0ustar00concurrentRequests = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest.php000064400000002157150544704730031417 0ustar00googleacknowledgement = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest.php000064400000003267150544704730031660 0ustar00google/apiclient-servicesrequests = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceEventTrigger.php000064400000003337150544704730030344 0ustar00googleeventName = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccountSummary.php000064400000005105150544704730027153 0ustar00account = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAuditUserLinksResponse.php000064400000003752150544704730030727 0ustar00googlenextPageToken = $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/GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep.php000064400000005544150544704730034642 0ustar00google/apiclient-servicesconstraintDuration = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleProtobufEmpty.php000064400000002014150544704730023130 0ustar00defaultUri = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest.php000064400000003252150544704730030545 0ustar00googleuserLink = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessQuotaStatus.php000064400000003250150544704730027771 0ustar00consumed = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaGoogleAdsLink.php000064400000006613150544704730027042 0ustar00adsPersonalizationEnabled = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest.php000064400000007323150544704730032733 0ustar00google/apiclient-servicesaction = $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/GoogleAnalyticsAdminV1betaDataStreamWebStreamData.php000064400000004104150544704730030551 0ustar00googledefaultUri = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListPropertiesResponse.php000064400000003744150544704730031012 0ustar00googlenextPageToken = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDimensionHeader.php000064400000002664150544704730030463 0ustar00googledimensionName = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaPropertySummary.php000064400000004454150544704730027563 0ustar00displayName = $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/GoogleAnalyticsAdminV1alphaAndroidAppDataStream.php000064400000005701150544704730030265 0ustar00googlecreateTime = $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/GoogleAnalyticsAdminV1alphaAudienceFilterClause.php000064400000005342150544704730030317 0ustar00googleclauseType = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaSearchAds360Link.php000064400000007231150544704730027261 0ustar00adsPersonalizationEnabled = $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/GoogleAnalyticsAdminV1alphaCreateUserLinkRequest.php000064400000004425150544704730030531 0ustar00googlenotifyNewUser = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaCustomDimension.php000064400000005771150544704730027504 0ustar00description = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudience.php000064400000010606150544704730026072 0ustar00adsPersonalizationEnabled = $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/GoogleAnalyticsAdminV1alphaExpandedDataSetFilter.php000064400000005456150544704730030451 0ustar00googlefieldName = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataSharingSettings.php000064400000007143150544704730030206 0ustar00googlename = $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/GoogleAnalyticsAdminV1betaListCustomDimensionsResponse.php000064400000004073150544704730032003 0ustar00google/apiclient-servicescustomDimensions = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStream.php000064400000011213150544704730026223 0ustar00androidAppStreamData = $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/GoogleAnalyticsAdminV1alphaAttributionSettings.php000064400000005406150544704730030325 0ustar00googleacquisitionConversionEventLookbackWindow = $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/GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData.php000064400000003361150544704730031405 0ustar00google/apiclient-servicesbundleId = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData.php000064400000003356150544704730031237 0ustar00googlebundleId = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaNumericValue.php000064400000003131150544704730026747 0ustar00doubleValue = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest.php000064400000004011150544704730031645 0ustar00google/apiclient-servicesnotifyNewUsers = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest.php000064400000003771150544704730032325 0ustar00google/apiclient-servicesaccount = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaFirebaseLink.php000064400000003672150544704730026546 0ustar00createTime = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse.php000064400000002223150544704730033701 0ustar00google/apiclient-servicesdisplayVideo360AdvertiserLinkProposals = $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/GoogleAnalyticsAdminV1alphaListCustomMetricsResponse.php000064400000004024150544704730031447 0ustar00googlecustomMetrics = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse.php000064400000004101150544704730032145 0ustar00google/apiclient-servicescustomDimensions = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaUserLink.php000064400000004025150544704730026107 0ustar00directRoles = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessInListFilter.php000064400000003372150544704730030051 0ustar00caseSensitive = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDimension.php000064400000002642150544704730027425 0ustar00dimensionName = $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/GoogleAnalyticsAdminV1alphaChangeHistoryChange.php000064400000006361150544704730030156 0ustar00googleaction = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessFilterExpressionList.php000064400000003322150544704730031556 0ustar00google/apiclient-servicesexpressions = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListConversionEventsResponse.php000064400000004073150544704730032012 0ustar00google/apiclient-servicesconversionEvents = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaChangeHistoryEvent.php000064400000006263150544704730030132 0ustar00actorType = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDateRange.php000064400000003255150544704730027333 0ustar00endDate = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccountSummary.php000064400000005113150544704730027324 0ustar00account = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessRow.php000064400000004337150544704730026252 0ustar00dimensionValues = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest.php000064400000003762150544704730032153 0ustar00google/apiclient-servicesaccount = $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/GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData.php000064400000003422150544704730032231 0ustar00google/apiclient-servicesfirebaseAppId = $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/GoogleAnalyticsAdminV1betaMeasurementProtocolSecret.php000064400000004004150544704730031274 0ustar00googledisplayName = $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/GoogleAnalyticsAdminV1alphaAudienceEventFilter.php000064400000004311150544704730030157 0ustar00googleeventName = $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'); apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaRunAccessReportRequest.php000064400000013300150544704730030723 0ustar00googledateRanges = $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/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression.php000064400000006152150544704730032523 0ustar00google/apiclient-servicesandGroup = $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/GoogleAnalyticsAdminV1alphaListAccountsResponse.php000064400000003711150544704730030427 0ustar00googleaccounts = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccount.php000064400000005543150544704730025755 0ustar00createTime = $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/GoogleAnalyticsAdminV1alphaAccessBetweenFilter.php000064400000004413150544704730030156 0ustar00googlefromValue = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaIosAppDataStream.php000064400000005640150544704730027520 0ustar00bundleId = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaProperty.php000064400000012072150544704730026200 0ustar00account = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse.php000064400000003234150544704730032040 0ustar00google/apiclient-servicesuserLinks = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter.php000064400000004230150544704730035161 0ustar00google/apiclient-servicesoperation = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaCustomDimension.php000064400000005766150544704730027336 0ustar00description = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaFirebaseLink.php000064400000003675150544704730026723 0ustar00createTime = $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'); google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaGlobalSiteTag.php000064400000003204150544704730027032 0ustar00name = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse.php000064400000002732150544704730032315 0ustar00google/apiclient-servicesaccountTicketId = $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/GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy.php000064400000002656150544704730031427 0ustar00google/apiclient-servicesmetricName = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest.php000064400000002162150544704730031565 0ustar00google/apiclient-servicesfilterExpression = $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'); src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse.php000064400000004156150544704730032730 0ustar00google/apiclient-serviceschangeHistoryEvents = $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'); google/apiclient-services/src/SearchConsole.php000064400000012717150544704730015662 0ustar00 * The Search Console API provides access to both Search Console data (verified * users only) and to public information on an URL basis (anyone)

* *

* For more information about this service, see the API * Documentation *

* * @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; /** * 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->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'); google/apiclient-services/src/AnalyticsReporting.php000064400000005534150544704730016752 0ustar00 * Accesses Analytics report data.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class AnalyticsReporting 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 $reports; public $userActivity; /** * Constructs the internal representation of the AnalyticsReporting 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://analyticsreporting.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v4'; $this->serviceName = 'analyticsreporting'; $this->reports = new \Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\Resource\Reports($this, $this->serviceName, 'reports', ['methods' => ['batchGet' => ['path' => 'v4/reports:batchGet', 'httpMethod' => 'POST', 'parameters' => []]]]); $this->userActivity = new \Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting\Resource\UserActivity($this, $this->serviceName, 'userActivity', ['methods' => ['search' => ['path' => 'v4/userActivity:search', 'httpMethod' => 'POST', 'parameters' => []]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\AnalyticsReporting::class, 'Google\\Site_Kit_Dependencies\\Google_Service_AnalyticsReporting'); google/apiclient-services/src/PeopleService.php000064400000027353150544704730015701 0ustar00 * Provides access to information about profiles and contacts.

* *

* For more information about this service, see the API * Documentation *

* * @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; /** * 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->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'); google/apiclient-services/src/Analytics.php000064400000126364150544704730015065 0ustar00 * Views and manages your Google Analytics data.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class Analytics extends \Google\Site_Kit_Dependencies\Google\Service { /** View and manage your Google Analytics data. */ const ANALYTICS = "https://www.googleapis.com/auth/analytics"; /** Edit Google Analytics management entities. */ const ANALYTICS_EDIT = "https://www.googleapis.com/auth/analytics.edit"; /** Manage Google Analytics Account users by email address. */ const ANALYTICS_MANAGE_USERS = "https://www.googleapis.com/auth/analytics.manage.users"; /** View Google Analytics user permissions. */ const ANALYTICS_MANAGE_USERS_READONLY = "https://www.googleapis.com/auth/analytics.manage.users.readonly"; /** Create a new Google Analytics account along with its default property and view. */ const ANALYTICS_PROVISION = "https://www.googleapis.com/auth/analytics.provision"; /** View your Google Analytics data. */ const ANALYTICS_READONLY = "https://www.googleapis.com/auth/analytics.readonly"; /** Manage Google Analytics user deletion requests. */ const ANALYTICS_USER_DELETION = "https://www.googleapis.com/auth/analytics.user.deletion"; public $data_ga; public $data_mcf; public $data_realtime; public $management_accountSummaries; public $management_accountUserLinks; public $management_accounts; public $management_clientId; public $management_customDataSources; public $management_customDimensions; public $management_customMetrics; public $management_experiments; public $management_filters; public $management_goals; public $management_profileFilterLinks; public $management_profileUserLinks; public $management_profiles; public $management_remarketingAudience; public $management_segments; public $management_unsampledReports; public $management_uploads; public $management_webPropertyAdWordsLinks; public $management_webproperties; public $management_webpropertyUserLinks; public $metadata_columns; public $provisioning; public $userDeletion_userDeletionRequest; /** * Constructs the internal representation of the Analytics 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://analytics.googleapis.com/'; $this->servicePath = 'analytics/v3/'; $this->batchPath = 'batch/analytics/v3'; $this->version = 'v3'; $this->serviceName = 'analytics'; $this->data_ga = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\DataGa($this, $this->serviceName, 'ga', ['methods' => ['get' => ['path' => 'data/ga', 'httpMethod' => 'GET', 'parameters' => ['ids' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'start-date' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'end-date' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'metrics' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'dimensions' => ['location' => 'query', 'type' => 'string'], 'filters' => ['location' => 'query', 'type' => 'string'], 'include-empty-rows' => ['location' => 'query', 'type' => 'boolean'], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'output' => ['location' => 'query', 'type' => 'string'], 'samplingLevel' => ['location' => 'query', 'type' => 'string'], 'segment' => ['location' => 'query', 'type' => 'string'], 'sort' => ['location' => 'query', 'type' => 'string'], 'start-index' => ['location' => 'query', 'type' => 'integer']]]]]); $this->data_mcf = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\DataMcf($this, $this->serviceName, 'mcf', ['methods' => ['get' => ['path' => 'data/mcf', 'httpMethod' => 'GET', 'parameters' => ['ids' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'start-date' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'end-date' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'metrics' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'dimensions' => ['location' => 'query', 'type' => 'string'], 'filters' => ['location' => 'query', 'type' => 'string'], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'samplingLevel' => ['location' => 'query', 'type' => 'string'], 'sort' => ['location' => 'query', 'type' => 'string'], 'start-index' => ['location' => 'query', 'type' => 'integer']]]]]); $this->data_realtime = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\DataRealtime($this, $this->serviceName, 'realtime', ['methods' => ['get' => ['path' => 'data/realtime', 'httpMethod' => 'GET', 'parameters' => ['ids' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'metrics' => ['location' => 'query', 'type' => 'string', 'required' => \true], 'dimensions' => ['location' => 'query', 'type' => 'string'], 'filters' => ['location' => 'query', 'type' => 'string'], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'sort' => ['location' => 'query', 'type' => 'string']]]]]); $this->management_accountSummaries = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementAccountSummaries($this, $this->serviceName, 'accountSummaries', ['methods' => ['list' => ['path' => 'management/accountSummaries', 'httpMethod' => 'GET', 'parameters' => ['max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]]]]); $this->management_accountUserLinks = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementAccountUserLinks($this, $this->serviceName, 'accountUserLinks', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/entityUserLinks', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/entityUserLinks', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'update' => ['path' => 'management/accounts/{accountId}/entityUserLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_accounts = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementAccounts($this, $this->serviceName, 'accounts', ['methods' => ['list' => ['path' => 'management/accounts', 'httpMethod' => 'GET', 'parameters' => ['max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]]]]); $this->management_clientId = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementClientId($this, $this->serviceName, 'clientId', ['methods' => ['hashClientId' => ['path' => 'management/clientId:hashClientId', 'httpMethod' => 'POST', 'parameters' => []]]]); $this->management_customDataSources = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementCustomDataSources($this, $this->serviceName, 'customDataSources', ['methods' => ['list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]]]]); $this->management_customDimensions = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementCustomDimensions($this, $this->serviceName, 'customDimensions', ['methods' => ['get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customDimensionId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'patch' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customDimensionId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'ignoreCustomDataSourceLinks' => ['location' => 'query', 'type' => 'boolean']]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customDimensionId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'ignoreCustomDataSourceLinks' => ['location' => 'query', 'type' => 'boolean']]]]]); $this->management_customMetrics = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementCustomMetrics($this, $this->serviceName, 'customMetrics', ['methods' => ['get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customMetricId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'patch' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customMetricId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'ignoreCustomDataSourceLinks' => ['location' => 'query', 'type' => 'boolean']]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customMetricId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'ignoreCustomDataSourceLinks' => ['location' => 'query', 'type' => 'boolean']]]]]); $this->management_experiments = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementExperiments($this, $this->serviceName, 'experiments', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'experimentId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'experimentId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'patch' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'experimentId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'experimentId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_filters = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementFilters($this, $this->serviceName, 'filters', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'filterId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'filterId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/filters', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/filters', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'patch' => ['path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'filterId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'management/accounts/{accountId}/filters/{filterId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'filterId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_goals = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementGoals($this, $this->serviceName, 'goals', ['methods' => ['get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'goalId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'patch' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'goalId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'goalId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_profileFilterLinks = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementProfileFilterLinks($this, $this->serviceName, 'profileFilterLinks', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'patch' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_profileUserLinks = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementProfileUserLinks($this, $this->serviceName, 'profileUserLinks', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_profiles = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementProfiles($this, $this->serviceName, 'profiles', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'patch' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_remarketingAudience = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementRemarketingAudience($this, $this->serviceName, 'remarketingAudience', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'remarketingAudienceId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'remarketingAudienceId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer'], 'type' => ['location' => 'query', 'type' => 'string']]], 'patch' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'remarketingAudienceId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'remarketingAudienceId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_segments = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementSegments($this, $this->serviceName, 'segments', ['methods' => ['list' => ['path' => 'management/segments', 'httpMethod' => 'GET', 'parameters' => ['max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]]]]); $this->management_unsampledReports = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementUnsampledReports($this, $this->serviceName, 'unsampledReports', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'unsampledReportId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'unsampledReportId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'profileId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]]]]); $this->management_uploads = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementUploads($this, $this->serviceName, 'uploads', ['methods' => ['deleteUploadData' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customDataSourceId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customDataSourceId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'uploadId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customDataSourceId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'uploadData' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'customDataSourceId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_webPropertyAdWordsLinks = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementWebPropertyAdWordsLinks($this, $this->serviceName, 'webPropertyAdWordsLinks', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyAdWordsLinkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyAdWordsLinkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'patch' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyAdWordsLinkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyAdWordsLinkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_webproperties = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementWebproperties($this, $this->serviceName, 'webproperties', ['methods' => ['get' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'patch' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 'httpMethod' => 'PATCH', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->management_webpropertyUserLinks = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementWebpropertyUserLinks($this, $this->serviceName, 'webpropertyUserLinks', ['methods' => ['delete' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', 'httpMethod' => 'DELETE', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'insert' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', 'httpMethod' => 'POST', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]], 'list' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks', 'httpMethod' => 'GET', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'max-results' => ['location' => 'query', 'type' => 'integer'], 'start-index' => ['location' => 'query', 'type' => 'integer']]], 'update' => ['path' => 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}', 'httpMethod' => 'PUT', 'parameters' => ['accountId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'webPropertyId' => ['location' => 'path', 'type' => 'string', 'required' => \true], 'linkId' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->metadata_columns = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\MetadataColumns($this, $this->serviceName, 'columns', ['methods' => ['list' => ['path' => 'metadata/{reportType}/columns', 'httpMethod' => 'GET', 'parameters' => ['reportType' => ['location' => 'path', 'type' => 'string', 'required' => \true]]]]]); $this->provisioning = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\Provisioning($this, $this->serviceName, 'provisioning', ['methods' => ['createAccountTicket' => ['path' => 'provisioning/createAccountTicket', 'httpMethod' => 'POST', 'parameters' => []], 'createAccountTree' => ['path' => 'provisioning/createAccountTree', 'httpMethod' => 'POST', 'parameters' => []]]]); $this->userDeletion_userDeletionRequest = new \Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\UserDeletionUserDeletionRequest($this, $this->serviceName, 'userDeletionRequest', ['methods' => ['upsert' => ['path' => 'userDeletion/userDeletionRequests:upsert', 'httpMethod' => 'POST', 'parameters' => []]]]); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics'); google/apiclient-services/src/AnalyticsData/InListFilter.php000064400000003202150544704730020210 0ustar00caseSensitive = $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'); google/apiclient-services/src/AnalyticsData/NumericFilter.php000064400000003337150544704730020421 0ustar00operation = $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'); google/apiclient-services/src/AnalyticsData/BetweenFilter.php000064400000003637150544704730020413 0ustar00fromValue = $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'); google/apiclient-services/src/AnalyticsData/BatchRunPivotReportsResponse.php000064400000003465150544704730023501 0ustar00kind = $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'); google/apiclient-services/src/AnalyticsData/PivotSelection.php000064400000003221150544704730020610 0ustar00dimensionName = $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'); google/apiclient-services/src/AnalyticsData/BatchRunReportsResponse.php000064400000003352150544704730022452 0ustar00kind = $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'); google/apiclient-services/src/AnalyticsData/MinuteRange.php000064400000003617150544704730020070 0ustar00endMinutesAgo = $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'); google/apiclient-services/src/AnalyticsData/CohortSpec.php000064400000004752150544704730017724 0ustar00cohortReportSettings = $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'); google/apiclient-services/src/AnalyticsData/Filter.php000064400000006421150544704730017073 0ustar00betweenFilter = $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'); google/apiclient-services/src/AnalyticsData/FilterExpression.php000064400000005652150544704730021160 0ustar00andGroup = $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'); google/apiclient-services/src/AnalyticsData/PropertyQuota.php000064400000010633150544704730020504 0ustar00concurrentRequests = $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'); google/apiclient-services/src/AnalyticsData/NumericValue.php000064400000002763150544704730020252 0ustar00doubleValue = $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'); google/apiclient-services/src/AnalyticsData/CheckCompatibilityRequest.php000064400000006417150544704730022773 0ustar00compatibilityFilter = $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'); google/apiclient-services/src/AnalyticsData/ConcatenateExpression.php000064400000003307150544704730022152 0ustar00delimiter = $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'); google/apiclient-services/src/AnalyticsData/RunPivotReportRequest.php000064400000012702150544704730022200 0ustar00cohortSpec = $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'); google/apiclient-services/src/AnalyticsData/DimensionExpression.php000064400000004752150544704730021660 0ustar00concatenate = $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'); google/apiclient-services/src/AnalyticsData/SchemaRestrictionResponse.php000064400000003211150544704730023005 0ustar00activeMetricRestrictions = $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'); google/apiclient-services/src/AnalyticsData/CheckCompatibilityResponse.php000064400000004241150544704730023132 0ustar00dimensionCompatibilities = $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'); google/apiclient-services/src/AnalyticsData/Pivot.php000064400000005202150544704730016743 0ustar00fieldNames = $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'); google/apiclient-services/src/AnalyticsData/MetricHeader.php000064400000003006150544704730020176 0ustar00name = $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'); google/apiclient-services/src/AnalyticsData/Resource/Properties.php000064400000031271150544704730021572 0ustar00 * $analyticsdataService = new Google\Service\AnalyticsData(...); * $properties = $analyticsdataService->properties; * */ 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/analytics/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 */ 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/analytics/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 */ 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 Set the Property ID to 0 for compatibility * checking on dimensions and metrics common to all properties. In this special * mode, this method will not return custom dimensions and metrics. * @param CheckCompatibilityRequest $postBody * @param array $optParams Optional parameters. * @return CheckCompatibilityResponse */ 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/devguides/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 */ 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/analytics/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 */ 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/analytics/devguides/reporting/data/v1 * /property-id). Example: properties/1234 * @param RunRealtimeReportRequest $postBody * @param array $optParams Optional parameters. * @return RunRealtimeReportResponse */ 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/analytics/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 */ 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'); google/apiclient-services/src/AnalyticsData/CohortsRange.php000064400000003613150544704730020244 0ustar00endOffset = $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'); google/apiclient-services/src/AnalyticsData/PivotDimensionHeader.php000064400000003016150544704730021723 0ustar00dimensionValues = $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'); google/apiclient-services/src/AnalyticsData/MetricCompatibility.php000064400000003535150544704730021626 0ustar00compatibility = $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'); google/apiclient-services/src/AnalyticsData/PivotOrderBy.php000064400000003462150544704730020240 0ustar00metricName = $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'); google/apiclient-services/src/AnalyticsData/DimensionOrderBy.php000064400000003164150544704730021063 0ustar00dimensionName = $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'); google/apiclient-services/src/AnalyticsData/CohortReportSettings.php000064400000002460150544704730022020 0ustar00accumulate = $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'); google/apiclient-services/src/AnalyticsData/Row.php000064400000003623150544704730016416 0ustar00dimensionValues = $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'); google/apiclient-services/src/AnalyticsData/PivotHeader.php000064400000003540150544704730020057 0ustar00pivotDimensionHeaders = $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'); google/apiclient-services/src/AnalyticsData/Metadata.php000064400000004161150544704730017365 0ustar00dimensions = $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'); google/apiclient-services/src/AnalyticsData/DimensionHeader.php000064400000002375150544704730020710 0ustar00name = $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'); google/apiclient-services/src/AnalyticsData/DimensionMetadata.php000064400000005676150544704730021247 0ustar00apiName = $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'); google/apiclient-services/src/AnalyticsData/OrderBy.php000064400000005152150544704730017214 0ustar00desc = $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'); google/apiclient-services/src/AnalyticsData/MetricMetadata.php000064400000007541150544704730020536 0ustar00apiName = $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'); google/apiclient-services/src/AnalyticsData/FilterExpressionList.php000064400000002760150544704730022011 0ustar00expressions = $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'); google/apiclient-services/src/AnalyticsData/MetricOrderBy.php000064400000002441150544704730020356 0ustar00metricName = $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'); google/apiclient-services/src/AnalyticsData/QuotaStatus.php000064400000003060150544704730020137 0ustar00consumed = $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'); google/apiclient-services/src/AnalyticsData/DimensionCompatibility.php000064400000003612150544704730022324 0ustar00compatibility = $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'); google/apiclient-services/src/AnalyticsData/Dimension.php000064400000003474150544704730017600 0ustar00dimensionExpression = $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'); google/apiclient-services/src/AnalyticsData/RunReportRequest.php000064400000014576150544704730021171 0ustar00cohortSpec = $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'); google/apiclient-services/src/AnalyticsData/DateRange.php000064400000003507150544704730017502 0ustar00endDate = $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'); google/apiclient-services/src/AnalyticsData/StringFilter.php000064400000003573150544704730020267 0ustar00caseSensitive = $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'); google/apiclient-services/src/AnalyticsData/MetricValue.php000064400000002370150544704730020065 0ustar00value = $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'); google/apiclient-services/src/AnalyticsData/ResponseMetaData.php000064400000006501150544704730021044 0ustar00currencyCode = $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 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'); google/apiclient-services/src/AnalyticsData/Metric.php000064400000003515150544704730017072 0ustar00expression = $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'); google/apiclient-services/src/AnalyticsData/ActiveMetricRestriction.php000064400000003414150544704730022452 0ustar00metricName = $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'); google/apiclient-services/src/AnalyticsData/RunReportResponse.php000064400000011726150544704730021331 0ustar00dimensionHeaders = $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'); google/apiclient-services/src/AnalyticsData/RunRealtimeReportResponse.php000064400000011001150544704730022776 0ustar00dimensionHeaders = $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'); google/apiclient-services/src/AnalyticsData/CaseExpression.php000064400000002471150544704730020602 0ustar00dimensionName = $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'); google/apiclient-services/src/AnalyticsData/RunRealtimeReportRequest.php000064400000011344150544704730022642 0ustar00dimensionFilter = $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'); google/apiclient-services/src/AnalyticsData/Cohort.php000064400000003760150544704730017107 0ustar00dateRange = $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'); google/apiclient-services/src/AnalyticsData/RunPivotReportResponse.php000064400000010623150544704730022346 0ustar00aggregates = $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'); google/apiclient-services/src/AnalyticsData/DimensionValue.php000064400000002401150544704730020562 0ustar00value = $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'); google/apiclient-services/src/AnalyticsData/BatchRunPivotReportsRequest.php000064400000002771150544704730023332 0ustar00requests = $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'); google/apiclient-services/src/AnalyticsData/BatchRunReportsRequest.php000064400000002733150544704730022306 0ustar00requests = $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'); google/apiclient-services/src/Analytics/AccountTreeResponse.php000064400000005130150544704730021003 0ustar00account = $account; } /** * @return Account */ public function getAccount() { return $this->account; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param Profile */ public function setProfile(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile $profile) { $this->profile = $profile; } /** * @return Profile */ public function getProfile() { return $this->profile; } /** * @param Webproperty */ public function setWebproperty(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty $webproperty) { $this->webproperty = $webproperty; } /** * @return Webproperty */ public function getWebproperty() { return $this->webproperty; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountTreeResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AccountTreeResponse'); google/apiclient-services/src/Analytics/Profile.php000064400000024166150544704730016462 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param bool */ public function setBotFilteringEnabled($botFilteringEnabled) { $this->botFilteringEnabled = $botFilteringEnabled; } /** * @return bool */ public function getBotFilteringEnabled() { return $this->botFilteringEnabled; } /** * @param ProfileChildLink */ public function setChildLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileChildLink $childLink) { $this->childLink = $childLink; } /** * @return ProfileChildLink */ public function getChildLink() { return $this->childLink; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @param string */ public function setCurrency($currency) { $this->currency = $currency; } /** * @return string */ public function getCurrency() { return $this->currency; } /** * @param string */ public function setDefaultPage($defaultPage) { $this->defaultPage = $defaultPage; } /** * @return string */ public function getDefaultPage() { return $this->defaultPage; } /** * @param bool */ public function setECommerceTracking($eCommerceTracking) { $this->eCommerceTracking = $eCommerceTracking; } /** * @return bool */ public function getECommerceTracking() { return $this->eCommerceTracking; } /** * @param bool */ public function setEnhancedECommerceTracking($enhancedECommerceTracking) { $this->enhancedECommerceTracking = $enhancedECommerceTracking; } /** * @return bool */ public function getEnhancedECommerceTracking() { return $this->enhancedECommerceTracking; } /** * @param string */ public function setExcludeQueryParameters($excludeQueryParameters) { $this->excludeQueryParameters = $excludeQueryParameters; } /** * @return string */ public function getExcludeQueryParameters() { return $this->excludeQueryParameters; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param ProfileParentLink */ public function setParentLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileParentLink $parentLink) { $this->parentLink = $parentLink; } /** * @return ProfileParentLink */ public function getParentLink() { return $this->parentLink; } /** * @param ProfilePermissions */ public function setPermissions(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfilePermissions $permissions) { $this->permissions = $permissions; } /** * @return ProfilePermissions */ public function getPermissions() { return $this->permissions; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param string */ public function setSiteSearchCategoryParameters($siteSearchCategoryParameters) { $this->siteSearchCategoryParameters = $siteSearchCategoryParameters; } /** * @return string */ public function getSiteSearchCategoryParameters() { return $this->siteSearchCategoryParameters; } /** * @param string */ public function setSiteSearchQueryParameters($siteSearchQueryParameters) { $this->siteSearchQueryParameters = $siteSearchQueryParameters; } /** * @return string */ public function getSiteSearchQueryParameters() { return $this->siteSearchQueryParameters; } /** * @param bool */ public function setStarred($starred) { $this->starred = $starred; } /** * @return bool */ public function getStarred() { return $this->starred; } /** * @param bool */ public function setStripSiteSearchCategoryParameters($stripSiteSearchCategoryParameters) { $this->stripSiteSearchCategoryParameters = $stripSiteSearchCategoryParameters; } /** * @return bool */ public function getStripSiteSearchCategoryParameters() { return $this->stripSiteSearchCategoryParameters; } /** * @param bool */ public function setStripSiteSearchQueryParameters($stripSiteSearchQueryParameters) { $this->stripSiteSearchQueryParameters = $stripSiteSearchQueryParameters; } /** * @return bool */ public function getStripSiteSearchQueryParameters() { return $this->stripSiteSearchQueryParameters; } /** * @param string */ public function setTimezone($timezone) { $this->timezone = $timezone; } /** * @return string */ public function getTimezone() { return $this->timezone; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } /** * @param string */ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } /** * @return string */ public function getWebsiteUrl() { return $this->websiteUrl; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Profile'); google/apiclient-services/src/Analytics/UnsampledReports.php000064400000007010150544704730020356 0ustar00items = $items; } /** * @return UnsampledReport[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\UnsampledReports::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_UnsampledReports'); google/apiclient-services/src/Analytics/GoalEventDetails.php000064400000003560150544704730020247 0ustar00eventConditions = $eventConditions; } /** * @return GoalEventDetailsEventConditions[] */ public function getEventConditions() { return $this->eventConditions; } /** * @param bool */ public function setUseEventValue($useEventValue) { $this->useEventValue = $useEventValue; } /** * @return bool */ public function getUseEventValue() { return $this->useEventValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GoalEventDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GoalEventDetails'); google/apiclient-services/src/Analytics/GaDataProfileInfo.php000064400000005623150544704730020335 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setProfileId($profileId) { $this->profileId = $profileId; } /** * @return string */ public function getProfileId() { return $this->profileId; } /** * @param string */ public function setProfileName($profileName) { $this->profileName = $profileName; } /** * @return string */ public function getProfileName() { return $this->profileName; } /** * @param string */ public function setTableId($tableId) { $this->tableId = $tableId; } /** * @return string */ public function getTableId() { return $this->tableId; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GaDataProfileInfo::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GaDataProfileInfo'); google/apiclient-services/src/Analytics/RemarketingAudience.php000064400000014366150544704730020771 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param RemarketingAudienceAudienceDefinition */ public function setAudienceDefinition(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudienceAudienceDefinition $audienceDefinition) { $this->audienceDefinition = $audienceDefinition; } /** * @return RemarketingAudienceAudienceDefinition */ public function getAudienceDefinition() { return $this->audienceDefinition; } /** * @param string */ public function setAudienceType($audienceType) { $this->audienceType = $audienceType; } /** * @return string */ public function getAudienceType() { return $this->audienceType; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @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 setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param LinkedForeignAccount[] */ public function setLinkedAdAccounts($linkedAdAccounts) { $this->linkedAdAccounts = $linkedAdAccounts; } /** * @return LinkedForeignAccount[] */ public function getLinkedAdAccounts() { return $this->linkedAdAccounts; } /** * @param string[] */ public function setLinkedViews($linkedViews) { $this->linkedViews = $linkedViews; } /** * @return string[] */ public function getLinkedViews() { return $this->linkedViews; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param RemarketingAudienceStateBasedAudienceDefinition */ public function setStateBasedAudienceDefinition(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudienceStateBasedAudienceDefinition $stateBasedAudienceDefinition) { $this->stateBasedAudienceDefinition = $stateBasedAudienceDefinition; } /** * @return RemarketingAudienceStateBasedAudienceDefinition */ public function getStateBasedAudienceDefinition() { return $this->stateBasedAudienceDefinition; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudience::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_RemarketingAudience'); google/apiclient-services/src/Analytics/Goal.php000064400000017055150544704730015743 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param bool */ public function setActive($active) { $this->active = $active; } /** * @return bool */ public function getActive() { return $this->active; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @param GoalEventDetails */ public function setEventDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GoalEventDetails $eventDetails) { $this->eventDetails = $eventDetails; } /** * @return GoalEventDetails */ public function getEventDetails() { return $this->eventDetails; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param GoalParentLink */ public function setParentLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GoalParentLink $parentLink) { $this->parentLink = $parentLink; } /** * @return GoalParentLink */ public function getParentLink() { return $this->parentLink; } /** * @param string */ public function setProfileId($profileId) { $this->profileId = $profileId; } /** * @return string */ public function getProfileId() { return $this->profileId; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param GoalUrlDestinationDetails */ public function setUrlDestinationDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GoalUrlDestinationDetails $urlDestinationDetails) { $this->urlDestinationDetails = $urlDestinationDetails; } /** * @return GoalUrlDestinationDetails */ public function getUrlDestinationDetails() { return $this->urlDestinationDetails; } /** * @param float */ public function setValue($value) { $this->value = $value; } /** * @return float */ public function getValue() { return $this->value; } /** * @param GoalVisitNumPagesDetails */ public function setVisitNumPagesDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GoalVisitNumPagesDetails $visitNumPagesDetails) { $this->visitNumPagesDetails = $visitNumPagesDetails; } /** * @return GoalVisitNumPagesDetails */ public function getVisitNumPagesDetails() { return $this->visitNumPagesDetails; } /** * @param GoalVisitTimeOnSiteDetails */ public function setVisitTimeOnSiteDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GoalVisitTimeOnSiteDetails $visitTimeOnSiteDetails) { $this->visitTimeOnSiteDetails = $visitTimeOnSiteDetails; } /** * @return GoalVisitTimeOnSiteDetails */ public function getVisitTimeOnSiteDetails() { return $this->visitTimeOnSiteDetails; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Goal::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Goal'); google/apiclient-services/src/Analytics/UnsampledReport.php000064400000016622150544704730020204 0ustar00 "end-date", "startDate" => "start-date"]; /** * @var string */ public $accountId; protected $cloudStorageDownloadDetailsType = \Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReportCloudStorageDownloadDetails::class; protected $cloudStorageDownloadDetailsDataType = ''; /** * @var string */ public $created; /** * @var string */ public $dimensions; /** * @var string */ public $downloadType; protected $driveDownloadDetailsType = \Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReportDriveDownloadDetails::class; protected $driveDownloadDetailsDataType = ''; /** * @var string */ public $endDate; /** * @var string */ public $filters; /** * @var string */ public $id; /** * @var string */ public $kind; /** * @var string */ public $metrics; /** * @var string */ public $profileId; /** * @var string */ public $segment; /** * @var string */ public $selfLink; /** * @var string */ public $startDate; /** * @var string */ public $status; /** * @var string */ public $title; /** * @var string */ public $updated; /** * @var string */ public $webPropertyId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param UnsampledReportCloudStorageDownloadDetails */ public function setCloudStorageDownloadDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReportCloudStorageDownloadDetails $cloudStorageDownloadDetails) { $this->cloudStorageDownloadDetails = $cloudStorageDownloadDetails; } /** * @return UnsampledReportCloudStorageDownloadDetails */ public function getCloudStorageDownloadDetails() { return $this->cloudStorageDownloadDetails; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @param string */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return string */ public function getDimensions() { return $this->dimensions; } /** * @param string */ public function setDownloadType($downloadType) { $this->downloadType = $downloadType; } /** * @return string */ public function getDownloadType() { return $this->downloadType; } /** * @param UnsampledReportDriveDownloadDetails */ public function setDriveDownloadDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReportDriveDownloadDetails $driveDownloadDetails) { $this->driveDownloadDetails = $driveDownloadDetails; } /** * @return UnsampledReportDriveDownloadDetails */ public function getDriveDownloadDetails() { return $this->driveDownloadDetails; } /** * @param string */ public function setEndDate($endDate) { $this->endDate = $endDate; } /** * @return string */ public function getEndDate() { return $this->endDate; } /** * @param string */ public function setFilters($filters) { $this->filters = $filters; } /** * @return string */ public function getFilters() { return $this->filters; } /** * @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 string */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return string */ public function getMetrics() { return $this->metrics; } /** * @param string */ public function setProfileId($profileId) { $this->profileId = $profileId; } /** * @return string */ public function getProfileId() { return $this->profileId; } /** * @param string */ public function setSegment($segment) { $this->segment = $segment; } /** * @return string */ public function getSegment() { return $this->segment; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param string */ public function setStartDate($startDate) { $this->startDate = $startDate; } /** * @return string */ public function getStartDate() { return $this->startDate; } /** * @param string */ public function setStatus($status) { $this->status = $status; } /** * @return string */ public function getStatus() { return $this->status; } /** * @param string */ public function setTitle($title) { $this->title = $title; } /** * @return string */ public function getTitle() { return $this->title; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReport::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_UnsampledReport'); google/apiclient-services/src/Analytics/McfData.php000064400000014272150544704730016356 0ustar00columnHeaders = $columnHeaders; } /** * @return McfDataColumnHeaders[] */ public function getColumnHeaders() { return $this->columnHeaders; } /** * @param bool */ public function setContainsSampledData($containsSampledData) { $this->containsSampledData = $containsSampledData; } /** * @return bool */ public function getContainsSampledData() { return $this->containsSampledData; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param McfDataProfileInfo */ public function setProfileInfo(\Google\Site_Kit_Dependencies\Google\Service\Analytics\McfDataProfileInfo $profileInfo) { $this->profileInfo = $profileInfo; } /** * @return McfDataProfileInfo */ public function getProfileInfo() { return $this->profileInfo; } /** * @param McfDataQuery */ public function setQuery(\Google\Site_Kit_Dependencies\Google\Service\Analytics\McfDataQuery $query) { $this->query = $query; } /** * @return McfDataQuery */ public function getQuery() { return $this->query; } /** * @param McfDataRows[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return McfDataRows[] */ public function getRows() { return $this->rows; } /** * @param string */ public function setSampleSize($sampleSize) { $this->sampleSize = $sampleSize; } /** * @return string */ public function getSampleSize() { return $this->sampleSize; } /** * @param string */ public function setSampleSpace($sampleSpace) { $this->sampleSpace = $sampleSpace; } /** * @return string */ public function getSampleSpace() { return $this->sampleSpace; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @param string[] */ public function setTotalsForAllResults($totalsForAllResults) { $this->totalsForAllResults = $totalsForAllResults; } /** * @return string[] */ public function getTotalsForAllResults() { return $this->totalsForAllResults; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\McfData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_McfData'); google/apiclient-services/src/Analytics/FilterUppercaseDetails.php000064400000003100150544704730021446 0ustar00field = $field; } /** * @return string */ public function getField() { return $this->field; } /** * @param int */ public function setFieldIndex($fieldIndex) { $this->fieldIndex = $fieldIndex; } /** * @return int */ public function getFieldIndex() { return $this->fieldIndex; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterUppercaseDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_FilterUppercaseDetails'); google/apiclient-services/src/Analytics/RealtimeDataColumnHeaders.php000064400000003571150544704730022065 0ustar00columnType = $columnType; } /** * @return string */ public function getColumnType() { return $this->columnType; } /** * @param string */ public function setDataType($dataType) { $this->dataType = $dataType; } /** * @return string */ public function getDataType() { return $this->dataType; } /** * @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\Analytics\RealtimeDataColumnHeaders::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_RealtimeDataColumnHeaders'); google/apiclient-services/src/Analytics/GaData.php000064400000015643150544704730016203 0ustar00columnHeaders = $columnHeaders; } /** * @return GaDataColumnHeaders[] */ public function getColumnHeaders() { return $this->columnHeaders; } /** * @param bool */ public function setContainsSampledData($containsSampledData) { $this->containsSampledData = $containsSampledData; } /** * @return bool */ public function getContainsSampledData() { return $this->containsSampledData; } /** * @param string */ public function setDataLastRefreshed($dataLastRefreshed) { $this->dataLastRefreshed = $dataLastRefreshed; } /** * @return string */ public function getDataLastRefreshed() { return $this->dataLastRefreshed; } /** * @param GaDataDataTable */ public function setDataTable(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GaDataDataTable $dataTable) { $this->dataTable = $dataTable; } /** * @return GaDataDataTable */ public function getDataTable() { return $this->dataTable; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param GaDataProfileInfo */ public function setProfileInfo(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GaDataProfileInfo $profileInfo) { $this->profileInfo = $profileInfo; } /** * @return GaDataProfileInfo */ public function getProfileInfo() { return $this->profileInfo; } /** * @param GaDataQuery */ public function setQuery(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GaDataQuery $query) { $this->query = $query; } /** * @return GaDataQuery */ public function getQuery() { return $this->query; } /** * @param string[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return string[] */ public function getRows() { return $this->rows; } /** * @param string */ public function setSampleSize($sampleSize) { $this->sampleSize = $sampleSize; } /** * @return string */ public function getSampleSize() { return $this->sampleSize; } /** * @param string */ public function setSampleSpace($sampleSpace) { $this->sampleSpace = $sampleSpace; } /** * @return string */ public function getSampleSpace() { return $this->sampleSpace; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @param string[] */ public function setTotalsForAllResults($totalsForAllResults) { $this->totalsForAllResults = $totalsForAllResults; } /** * @return string[] */ public function getTotalsForAllResults() { return $this->totalsForAllResults; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GaData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GaData'); google/apiclient-services/src/Analytics/GoalVisitNumPagesDetails.php000064400000003261150544704730021722 0ustar00comparisonType = $comparisonType; } /** * @return string */ public function getComparisonType() { return $this->comparisonType; } /** * @param string */ public function setComparisonValue($comparisonValue) { $this->comparisonValue = $comparisonValue; } /** * @return string */ public function getComparisonValue() { return $this->comparisonValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GoalVisitNumPagesDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GoalVisitNumPagesDetails'); google/apiclient-services/src/Analytics/Filter.php000064400000016012150544704730016276 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param FilterAdvancedDetails */ public function setAdvancedDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterAdvancedDetails $advancedDetails) { $this->advancedDetails = $advancedDetails; } /** * @return FilterAdvancedDetails */ public function getAdvancedDetails() { return $this->advancedDetails; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @param FilterExpression */ public function setExcludeDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterExpression $excludeDetails) { $this->excludeDetails = $excludeDetails; } /** * @return FilterExpression */ public function getExcludeDetails() { return $this->excludeDetails; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param FilterExpression */ public function setIncludeDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterExpression $includeDetails) { $this->includeDetails = $includeDetails; } /** * @return FilterExpression */ public function getIncludeDetails() { return $this->includeDetails; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param FilterLowercaseDetails */ public function setLowercaseDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterLowercaseDetails $lowercaseDetails) { $this->lowercaseDetails = $lowercaseDetails; } /** * @return FilterLowercaseDetails */ public function getLowercaseDetails() { return $this->lowercaseDetails; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param FilterParentLink */ public function setParentLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterParentLink $parentLink) { $this->parentLink = $parentLink; } /** * @return FilterParentLink */ public function getParentLink() { return $this->parentLink; } /** * @param FilterSearchAndReplaceDetails */ public function setSearchAndReplaceDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterSearchAndReplaceDetails $searchAndReplaceDetails) { $this->searchAndReplaceDetails = $searchAndReplaceDetails; } /** * @return FilterSearchAndReplaceDetails */ public function getSearchAndReplaceDetails() { return $this->searchAndReplaceDetails; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param FilterUppercaseDetails */ public function setUppercaseDetails(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterUppercaseDetails $uppercaseDetails) { $this->uppercaseDetails = $uppercaseDetails; } /** * @return FilterUppercaseDetails */ public function getUppercaseDetails() { return $this->uppercaseDetails; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Filter::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Filter'); google/apiclient-services/src/Analytics/FilterExpression.php000064400000005437150544704730020367 0ustar00caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setExpressionValue($expressionValue) { $this->expressionValue = $expressionValue; } /** * @return string */ public function getExpressionValue() { return $this->expressionValue; } /** * @param string */ public function setField($field) { $this->field = $field; } /** * @return string */ public function getField() { return $this->field; } /** * @param int */ public function setFieldIndex($fieldIndex) { $this->fieldIndex = $fieldIndex; } /** * @return int */ public function getFieldIndex() { return $this->fieldIndex; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setMatchType($matchType) { $this->matchType = $matchType; } /** * @return string */ public function getMatchType() { return $this->matchType; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterExpression::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_FilterExpression'); google/apiclient-services/src/Analytics/CustomDataSourceParentLink.php000064400000003044150544704730022267 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\CustomDataSourceParentLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomDataSourceParentLink'); google/apiclient-services/src/Analytics/GaDataDataTable.php000064400000003452150544704730017740 0ustar00cols = $cols; } /** * @return GaDataDataTableCols[] */ public function getCols() { return $this->cols; } /** * @param GaDataDataTableRows[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return GaDataDataTableRows[] */ 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\Analytics\GaDataDataTable::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GaDataDataTable'); google/apiclient-services/src/Analytics/EntityAdWordsLinkEntity.php000064400000003004150544704730021621 0ustar00webPropertyRef = $webPropertyRef; } /** * @return WebPropertyRef */ public function getWebPropertyRef() { return $this->webPropertyRef; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLinkEntity::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_EntityAdWordsLinkEntity'); google/apiclient-services/src/Analytics/Webproperties.php000064400000006763150544704730017717 0ustar00items = $items; } /** * @return Webproperty[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\Webproperties::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Webproperties'); google/apiclient-services/src/Analytics/FilterRef.php000064400000004474150544704730016744 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setHref($href) { $this->href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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 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\Analytics\FilterRef::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_FilterRef'); google/apiclient-services/src/Analytics/Experiment.php000064400000024263150544704730017200 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @param string */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param bool */ public function setEditableInGaUi($editableInGaUi) { $this->editableInGaUi = $editableInGaUi; } /** * @return bool */ public function getEditableInGaUi() { return $this->editableInGaUi; } /** * @param string */ public function setEndTime($endTime) { $this->endTime = $endTime; } /** * @return string */ public function getEndTime() { return $this->endTime; } /** * @param bool */ public function setEqualWeighting($equalWeighting) { $this->equalWeighting = $equalWeighting; } /** * @return bool */ public function getEqualWeighting() { return $this->equalWeighting; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param int */ public function setMinimumExperimentLengthInDays($minimumExperimentLengthInDays) { $this->minimumExperimentLengthInDays = $minimumExperimentLengthInDays; } /** * @return int */ public function getMinimumExperimentLengthInDays() { return $this->minimumExperimentLengthInDays; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setObjectiveMetric($objectiveMetric) { $this->objectiveMetric = $objectiveMetric; } /** * @return string */ public function getObjectiveMetric() { return $this->objectiveMetric; } /** * @param string */ public function setOptimizationType($optimizationType) { $this->optimizationType = $optimizationType; } /** * @return string */ public function getOptimizationType() { return $this->optimizationType; } /** * @param ExperimentParentLink */ public function setParentLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ExperimentParentLink $parentLink) { $this->parentLink = $parentLink; } /** * @return ExperimentParentLink */ public function getParentLink() { return $this->parentLink; } /** * @param string */ public function setProfileId($profileId) { $this->profileId = $profileId; } /** * @return string */ public function getProfileId() { return $this->profileId; } /** * @param string */ public function setReasonExperimentEnded($reasonExperimentEnded) { $this->reasonExperimentEnded = $reasonExperimentEnded; } /** * @return string */ public function getReasonExperimentEnded() { return $this->reasonExperimentEnded; } /** * @param bool */ public function setRewriteVariationUrlsAsOriginal($rewriteVariationUrlsAsOriginal) { $this->rewriteVariationUrlsAsOriginal = $rewriteVariationUrlsAsOriginal; } /** * @return bool */ public function getRewriteVariationUrlsAsOriginal() { return $this->rewriteVariationUrlsAsOriginal; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param string */ public function setServingFramework($servingFramework) { $this->servingFramework = $servingFramework; } /** * @return string */ public function getServingFramework() { return $this->servingFramework; } /** * @param string */ public function setSnippet($snippet) { $this->snippet = $snippet; } /** * @return string */ public function getSnippet() { return $this->snippet; } /** * @param string */ public function setStartTime($startTime) { $this->startTime = $startTime; } /** * @return string */ public function getStartTime() { return $this->startTime; } /** * @param string */ public function setStatus($status) { $this->status = $status; } /** * @return string */ public function getStatus() { return $this->status; } public function setTrafficCoverage($trafficCoverage) { $this->trafficCoverage = $trafficCoverage; } public function getTrafficCoverage() { return $this->trafficCoverage; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param ExperimentVariations[] */ public function setVariations($variations) { $this->variations = $variations; } /** * @return ExperimentVariations[] */ public function getVariations() { return $this->variations; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } public function setWinnerConfidenceLevel($winnerConfidenceLevel) { $this->winnerConfidenceLevel = $winnerConfidenceLevel; } public function getWinnerConfidenceLevel() { return $this->winnerConfidenceLevel; } /** * @param bool */ public function setWinnerFound($winnerFound) { $this->winnerFound = $winnerFound; } /** * @return bool */ public function getWinnerFound() { return $this->winnerFound; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Experiment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Experiment'); google/apiclient-services/src/Analytics/CustomMetric.php000064400000013036150544704730017472 0ustar00 "max_value", "minValue" => "min_value"]; /** * @var string */ public $accountId; /** * @var bool */ public $active; /** * @var string */ public $created; /** * @var string */ public $id; /** * @var int */ public $index; /** * @var string */ public $kind; /** * @var string */ public $maxValue; /** * @var string */ public $minValue; /** * @var string */ public $name; protected $parentLinkType = \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetricParentLink::class; protected $parentLinkDataType = ''; /** * @var string */ public $scope; /** * @var string */ public $selfLink; /** * @var string */ public $type; /** * @var string */ public $updated; /** * @var string */ public $webPropertyId; /** * @param string */ public function setAccountId($accountId) { $this->accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param bool */ public function setActive($active) { $this->active = $active; } /** * @return bool */ public function getActive() { return $this->active; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param int */ public function setIndex($index) { $this->index = $index; } /** * @return int */ public function getIndex() { return $this->index; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setMaxValue($maxValue) { $this->maxValue = $maxValue; } /** * @return string */ public function getMaxValue() { return $this->maxValue; } /** * @param string */ public function setMinValue($minValue) { $this->minValue = $minValue; } /** * @return string */ public function getMinValue() { return $this->minValue; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param CustomMetricParentLink */ public function setParentLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetricParentLink $parentLink) { $this->parentLink = $parentLink; } /** * @return CustomMetricParentLink */ public function getParentLink() { return $this->parentLink; } /** * @param string */ public function setScope($scope) { $this->scope = $scope; } /** * @return string */ public function getScope() { return $this->scope; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetric::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomMetric'); google/apiclient-services/src/Analytics/CustomMetricParentLink.php000064400000003030150544704730021453 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\CustomMetricParentLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomMetricParentLink'); google/apiclient-services/src/Analytics/GoalParentLink.php000064400000003000150544704730017714 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\GoalParentLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GoalParentLink'); google/apiclient-services/src/Analytics/ProfileParentLink.php000064400000003011150544704730020434 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\ProfileParentLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_ProfileParentLink'); google/apiclient-services/src/Analytics/UserDeletionRequestId.php000064400000003043150544704730021301 0ustar00type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @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\Analytics\UserDeletionRequestId::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_UserDeletionRequestId'); google/apiclient-services/src/Analytics/RealtimeData.php000064400000010364150544704730017411 0ustar00columnHeaders = $columnHeaders; } /** * @return RealtimeDataColumnHeaders[] */ public function getColumnHeaders() { return $this->columnHeaders; } /** * @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 RealtimeDataProfileInfo */ public function setProfileInfo(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RealtimeDataProfileInfo $profileInfo) { $this->profileInfo = $profileInfo; } /** * @return RealtimeDataProfileInfo */ public function getProfileInfo() { return $this->profileInfo; } /** * @param RealtimeDataQuery */ public function setQuery(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RealtimeDataQuery $query) { $this->query = $query; } /** * @return RealtimeDataQuery */ public function getQuery() { return $this->query; } /** * @param string[] */ public function setRows($rows) { $this->rows = $rows; } /** * @return string[] */ public function getRows() { return $this->rows; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @param string[] */ public function setTotalsForAllResults($totalsForAllResults) { $this->totalsForAllResults = $totalsForAllResults; } /** * @return string[] */ public function getTotalsForAllResults() { return $this->totalsForAllResults; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RealtimeData::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_RealtimeData'); google/apiclient-services/src/Analytics/GoalVisitTimeOnSiteDetails.php000064400000003267150544704730022231 0ustar00comparisonType = $comparisonType; } /** * @return string */ public function getComparisonType() { return $this->comparisonType; } /** * @param string */ public function setComparisonValue($comparisonValue) { $this->comparisonValue = $comparisonValue; } /** * @return string */ public function getComparisonValue() { return $this->comparisonValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GoalVisitTimeOnSiteDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GoalVisitTimeOnSiteDetails'); google/apiclient-services/src/Analytics/RemarketingAudiences.php000064400000007040150544704730021143 0ustar00items = $items; } /** * @return RemarketingAudience[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\RemarketingAudiences::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_RemarketingAudiences'); google/apiclient-services/src/Analytics/RealtimeDataQuery.php000064400000005501150544704730020434 0ustar00 "max-results"]; /** * @var string */ public $dimensions; /** * @var string */ public $filters; /** * @var string */ public $ids; /** * @var int */ public $maxResults; /** * @var string[] */ public $metrics; /** * @var string[] */ public $sort; /** * @param string */ public function setDimensions($dimensions) { $this->dimensions = $dimensions; } /** * @return string */ public function getDimensions() { return $this->dimensions; } /** * @param string */ public function setFilters($filters) { $this->filters = $filters; } /** * @return string */ public function getFilters() { return $this->filters; } /** * @param string */ public function setIds($ids) { $this->ids = $ids; } /** * @return string */ public function getIds() { return $this->ids; } /** * @param int */ public function setMaxResults($maxResults) { $this->maxResults = $maxResults; } /** * @return int */ public function getMaxResults() { return $this->maxResults; } /** * @param string[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return string[] */ public function getMetrics() { return $this->metrics; } /** * @param string[] */ public function setSort($sort) { $this->sort = $sort; } /** * @return string[] */ public function getSort() { return $this->sort; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RealtimeDataQuery::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_RealtimeDataQuery'); google/apiclient-services/src/Analytics/Experiments.php000064400000006752150544704730017366 0ustar00items = $items; } /** * @return Experiment[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\Experiments::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Experiments'); google/apiclient-services/src/Analytics/ExperimentParentLink.php000064400000003022150544704730021156 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\ExperimentParentLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_ExperimentParentLink'); google/apiclient-services/src/Analytics/CustomDimension.php000064400000011145150544704730020173 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param bool */ public function setActive($active) { $this->active = $active; } /** * @return bool */ public function getActive() { return $this->active; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param int */ public function setIndex($index) { $this->index = $index; } /** * @return int */ public function getIndex() { return $this->index; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param CustomDimensionParentLink */ public function setParentLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimensionParentLink $parentLink) { $this->parentLink = $parentLink; } /** * @return CustomDimensionParentLink */ public function getParentLink() { return $this->parentLink; } /** * @param string */ public function setScope($scope) { $this->scope = $scope; } /** * @return string */ public function getScope() { return $this->scope; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimension::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomDimension'); google/apiclient-services/src/Analytics/FilterAdvancedDetails.php000064400000012216150544704730021234 0ustar00caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setExtractA($extractA) { $this->extractA = $extractA; } /** * @return string */ public function getExtractA() { return $this->extractA; } /** * @param string */ public function setExtractB($extractB) { $this->extractB = $extractB; } /** * @return string */ public function getExtractB() { return $this->extractB; } /** * @param string */ public function setFieldA($fieldA) { $this->fieldA = $fieldA; } /** * @return string */ public function getFieldA() { return $this->fieldA; } /** * @param int */ public function setFieldAIndex($fieldAIndex) { $this->fieldAIndex = $fieldAIndex; } /** * @return int */ public function getFieldAIndex() { return $this->fieldAIndex; } /** * @param bool */ public function setFieldARequired($fieldARequired) { $this->fieldARequired = $fieldARequired; } /** * @return bool */ public function getFieldARequired() { return $this->fieldARequired; } /** * @param string */ public function setFieldB($fieldB) { $this->fieldB = $fieldB; } /** * @return string */ public function getFieldB() { return $this->fieldB; } /** * @param int */ public function setFieldBIndex($fieldBIndex) { $this->fieldBIndex = $fieldBIndex; } /** * @return int */ public function getFieldBIndex() { return $this->fieldBIndex; } /** * @param bool */ public function setFieldBRequired($fieldBRequired) { $this->fieldBRequired = $fieldBRequired; } /** * @return bool */ public function getFieldBRequired() { return $this->fieldBRequired; } /** * @param string */ public function setOutputConstructor($outputConstructor) { $this->outputConstructor = $outputConstructor; } /** * @return string */ public function getOutputConstructor() { return $this->outputConstructor; } /** * @param string */ public function setOutputToField($outputToField) { $this->outputToField = $outputToField; } /** * @return string */ public function getOutputToField() { return $this->outputToField; } /** * @param int */ public function setOutputToFieldIndex($outputToFieldIndex) { $this->outputToFieldIndex = $outputToFieldIndex; } /** * @return int */ public function getOutputToFieldIndex() { return $this->outputToFieldIndex; } /** * @param bool */ public function setOverrideOutputField($overrideOutputField) { $this->overrideOutputField = $overrideOutputField; } /** * @return bool */ public function getOverrideOutputField() { return $this->overrideOutputField; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterAdvancedDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_FilterAdvancedDetails'); google/apiclient-services/src/Analytics/RemarketingAudienceAudienceDefinition.php000064400000003122150544704730024424 0ustar00includeConditions = $includeConditions; } /** * @return IncludeConditions */ public function getIncludeConditions() { return $this->includeConditions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudienceAudienceDefinition::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_RemarketingAudienceAudienceDefinition'); google/apiclient-services/src/Analytics/CustomDimensions.php000064400000007010150544704730020352 0ustar00items = $items; } /** * @return CustomDimension[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\CustomDimensions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomDimensions'); google/apiclient-services/src/Analytics/UnsampledReportCloudStorageDownloadDetails.php000064400000003214150544704730025507 0ustar00bucketId = $bucketId; } /** * @return string */ public function getBucketId() { return $this->bucketId; } /** * @param string */ public function setObjectId($objectId) { $this->objectId = $objectId; } /** * @return string */ public function getObjectId() { return $this->objectId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReportCloudStorageDownloadDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_UnsampledReportCloudStorageDownloadDetails'); google/apiclient-services/src/Analytics/AccountSummaries.php000064400000007005150544704730020335 0ustar00items = $items; } /** * @return AccountSummary[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\AccountSummaries::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AccountSummaries'); google/apiclient-services/src/Analytics/CustomMetrics.php000064400000006766150544704730017671 0ustar00items = $items; } /** * @return CustomMetric[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\CustomMetrics::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomMetrics'); google/apiclient-services/src/Analytics/ProfileFilterLinks.php000064400000007024150544704730020623 0ustar00items = $items; } /** * @return ProfileFilterLink[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\ProfileFilterLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_ProfileFilterLinks'); google/apiclient-services/src/Analytics/CustomDataSources.php000064400000007016150544704730020465 0ustar00items = $items; } /** * @return CustomDataSource[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\CustomDataSources::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomDataSources'); google/apiclient-services/src/Analytics/ProfileRef.php000064400000006031150544704730017106 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setHref($href) { $this->href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileRef::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_ProfileRef'); google/apiclient-services/src/Analytics/GoalUrlDestinationDetails.php000064400000005325150544704730022133 0ustar00caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param bool */ public function setFirstStepRequired($firstStepRequired) { $this->firstStepRequired = $firstStepRequired; } /** * @return bool */ public function getFirstStepRequired() { return $this->firstStepRequired; } /** * @param string */ public function setMatchType($matchType) { $this->matchType = $matchType; } /** * @return string */ public function getMatchType() { return $this->matchType; } /** * @param GoalUrlDestinationDetailsSteps[] */ public function setSteps($steps) { $this->steps = $steps; } /** * @return GoalUrlDestinationDetailsSteps[] */ public function getSteps() { return $this->steps; } /** * @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\Analytics\GoalUrlDestinationDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GoalUrlDestinationDetails'); google/apiclient-services/src/Analytics/AccountChildLink.php000064400000003006150544704730020226 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\AccountChildLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AccountChildLink'); google/apiclient-services/src/Analytics/Uploads.php000064400000006244150544704730016466 0ustar00items = $items; } /** * @return Upload[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Uploads::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Uploads'); google/apiclient-services/src/Analytics/ProfileChildLink.php000064400000003006150544704730020232 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\ProfileChildLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_ProfileChildLink'); google/apiclient-services/src/Analytics/GoalEventDetailsEventConditions.php000064400000005111150544704730023275 0ustar00comparisonType = $comparisonType; } /** * @return string */ public function getComparisonType() { return $this->comparisonType; } /** * @param string */ public function setComparisonValue($comparisonValue) { $this->comparisonValue = $comparisonValue; } /** * @return string */ public function getComparisonValue() { return $this->comparisonValue; } /** * @param string */ public function setExpression($expression) { $this->expression = $expression; } /** * @return string */ public function getExpression() { return $this->expression; } /** * @param string */ public function setMatchType($matchType) { $this->matchType = $matchType; } /** * @return string */ public function getMatchType() { return $this->matchType; } /** * @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\Analytics\GoalEventDetailsEventConditions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GoalEventDetailsEventConditions'); google/apiclient-services/src/Analytics/HashClientIdRequest.php000064400000003574150544704730020732 0ustar00clientId = $clientId; } /** * @return string */ public function getClientId() { return $this->clientId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\HashClientIdRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_HashClientIdRequest'); google/apiclient-services/src/Analytics/Columns.php000064400000005050150544704730016471 0ustar00attributeNames = $attributeNames; } /** * @return string[] */ public function getAttributeNames() { return $this->attributeNames; } /** * @param string */ public function setEtag($etag) { $this->etag = $etag; } /** * @return string */ public function getEtag() { return $this->etag; } /** * @param Column[] */ public function setItems($items) { $this->items = $items; } /** * @return Column[] */ public function getItems() { return $this->items; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Columns::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Columns'); google/apiclient-services/src/Analytics/GoalUrlDestinationDetailsSteps.php000064400000003500150544704730023143 0ustar00name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param int */ public function setNumber($number) { $this->number = $number; } /** * @return int */ public function getNumber() { return $this->number; } /** * @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\Analytics\GoalUrlDestinationDetailsSteps::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GoalUrlDestinationDetailsSteps'); google/apiclient-services/src/Analytics/McfDataRowsConversionPathValue.php000064400000003240150544704730023102 0ustar00interactionType = $interactionType; } /** * @return string */ public function getInteractionType() { return $this->interactionType; } /** * @param string */ public function setNodeValue($nodeValue) { $this->nodeValue = $nodeValue; } /** * @return string */ public function getNodeValue() { return $this->nodeValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\McfDataRowsConversionPathValue::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_McfDataRowsConversionPathValue'); google/apiclient-services/src/Analytics/Resource/MetadataColumns.php000064400000003541150544704730021724 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $columns = $analyticsService->columns; * */ class MetadataColumns extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Lists all columns for a report type (columns.listMetadataColumns) * * @param string $reportType Report type. Allowed Values: 'ga'. Where 'ga' * corresponds to the Core Reporting API * @param array $optParams Optional parameters. * @return Columns */ public function listMetadataColumns($reportType, $optParams = []) { $params = ['reportType' => $reportType]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Columns::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\MetadataColumns::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_MetadataColumns'); google/apiclient-services/src/Analytics/Resource/UserDeletionUserDeletionRequest.php000064400000003711150544704730025140 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $userDeletionRequest = $analyticsService->userDeletionRequest; * */ class UserDeletionUserDeletionRequest extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Insert or update a user deletion requests. (userDeletionRequest.upsert) * * @param UserDeletionRequest $postBody * @param array $optParams Optional parameters. * @return UserDeletionRequest */ public function upsert(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UserDeletionRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('upsert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\UserDeletionRequest::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\UserDeletionUserDeletionRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_UserDeletionUserDeletionRequest'); google/apiclient-services/src/Analytics/Resource/ManagementAccounts.php000064400000004001150544704730022407 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $accounts = $analyticsService->accounts; * */ class ManagementAccounts extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Lists all accounts to which the user has access. * (accounts.listManagementAccounts) * * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of accounts to include in this * response. * @opt_param int start-index An index of the first account to retrieve. Use * this parameter as a pagination mechanism along with the max-results * parameter. * @return Accounts */ public function listManagementAccounts($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Accounts::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementAccounts::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementAccounts'); google/apiclient-services/src/Analytics/Resource/ManagementExperiments.php000064400000016122150544704730023142 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $experiments = $analyticsService->experiments; * */ class ManagementExperiments extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Delete an experiment. (experiments.delete) * * @param string $accountId Account ID to which the experiment belongs * @param string $webPropertyId Web property ID to which the experiment belongs * @param string $profileId View (Profile) ID to which the experiment belongs * @param string $experimentId ID of the experiment to delete * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $experimentId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Returns an experiment to which the user has access. (experiments.get) * * @param string $accountId Account ID to retrieve the experiment for. * @param string $webPropertyId Web property ID to retrieve the experiment for. * @param string $profileId View (Profile) ID to retrieve the experiment for. * @param string $experimentId Experiment ID to retrieve the experiment for. * @param array $optParams Optional parameters. * @return Experiment */ public function get($accountId, $webPropertyId, $profileId, $experimentId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Experiment::class); } /** * Create a new experiment. (experiments.insert) * * @param string $accountId Account ID to create the experiment for. * @param string $webPropertyId Web property ID to create the experiment for. * @param string $profileId View (Profile) ID to create the experiment for. * @param Experiment $postBody * @param array $optParams Optional parameters. * @return Experiment */ public function insert($accountId, $webPropertyId, $profileId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Experiment $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Experiment::class); } /** * Lists experiments to which the user has access. * (experiments.listManagementExperiments) * * @param string $accountId Account ID to retrieve experiments for. * @param string $webPropertyId Web property ID to retrieve experiments for. * @param string $profileId View (Profile) ID to retrieve experiments for. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of experiments to include in * this response. * @opt_param int start-index An index of the first experiment to retrieve. Use * this parameter as a pagination mechanism along with the max-results * parameter. * @return Experiments */ public function listManagementExperiments($accountId, $webPropertyId, $profileId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Experiments::class); } /** * Update an existing experiment. This method supports patch semantics. * (experiments.patch) * * @param string $accountId Account ID of the experiment to update. * @param string $webPropertyId Web property ID of the experiment to update. * @param string $profileId View (Profile) ID of the experiment to update. * @param string $experimentId Experiment ID of the experiment to update. * @param Experiment $postBody * @param array $optParams Optional parameters. * @return Experiment */ public function patch($accountId, $webPropertyId, $profileId, $experimentId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Experiment $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Experiment::class); } /** * Update an existing experiment. (experiments.update) * * @param string $accountId Account ID of the experiment to update. * @param string $webPropertyId Web property ID of the experiment to update. * @param string $profileId View (Profile) ID of the experiment to update. * @param string $experimentId Experiment ID of the experiment to update. * @param Experiment $postBody * @param array $optParams Optional parameters. * @return Experiment */ public function update($accountId, $webPropertyId, $profileId, $experimentId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Experiment $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'experimentId' => $experimentId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Experiment::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementExperiments::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementExperiments'); google/apiclient-services/src/Analytics/Resource/ManagementProfiles.php000064400000015201150544704730022417 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $profiles = $analyticsService->profiles; * */ class ManagementProfiles extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Deletes a view (profile). (profiles.delete) * * @param string $accountId Account ID to delete the view (profile) for. * @param string $webPropertyId Web property ID to delete the view (profile) * for. * @param string $profileId ID of the view (profile) to be deleted. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a view (profile) to which the user has access. (profiles.get) * * @param string $accountId Account ID to retrieve the view (profile) for. * @param string $webPropertyId Web property ID to retrieve the view (profile) * for. * @param string $profileId View (Profile) ID to retrieve the view (profile) * for. * @param array $optParams Optional parameters. * @return Profile */ public function get($accountId, $webPropertyId, $profileId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile::class); } /** * Create a new view (profile). (profiles.insert) * * @param string $accountId Account ID to create the view (profile) for. * @param string $webPropertyId Web property ID to create the view (profile) * for. * @param Profile $postBody * @param array $optParams Optional parameters. * @return Profile */ public function insert($accountId, $webPropertyId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile::class); } /** * Lists views (profiles) to which the user has access. * (profiles.listManagementProfiles) * * @param string $accountId Account ID for the view (profiles) to retrieve. Can * either be a specific account ID or '~all', which refers to all the accounts * to which the user has access. * @param string $webPropertyId Web property ID for the views (profiles) to * retrieve. Can either be a specific web property ID or '~all', which refers to * all the web properties to which the user has access. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of views (profiles) to include * in this response. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return Profiles */ public function listManagementProfiles($accountId, $webPropertyId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Profiles::class); } /** * Updates an existing view (profile). This method supports patch semantics. * (profiles.patch) * * @param string $accountId Account ID to which the view (profile) belongs * @param string $webPropertyId Web property ID to which the view (profile) * belongs * @param string $profileId ID of the view (profile) to be updated. * @param Profile $postBody * @param array $optParams Optional parameters. * @return Profile */ public function patch($accountId, $webPropertyId, $profileId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile::class); } /** * Updates an existing view (profile). (profiles.update) * * @param string $accountId Account ID to which the view (profile) belongs * @param string $webPropertyId Web property ID to which the view (profile) * belongs * @param string $profileId ID of the view (profile) to be updated. * @param Profile $postBody * @param array $optParams Optional parameters. * @return Profile */ public function update($accountId, $webPropertyId, $profileId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementProfiles::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementProfiles'); google/apiclient-services/src/Analytics/Resource/ManagementUnsampledReports.php000064400000012730150544704730024147 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $unsampledReports = $analyticsService->unsampledReports; * */ class ManagementUnsampledReports extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Deletes an unsampled report. (unsampledReports.delete) * * @param string $accountId Account ID to delete the unsampled report for. * @param string $webPropertyId Web property ID to delete the unsampled reports * for. * @param string $profileId View (Profile) ID to delete the unsampled report * for. * @param string $unsampledReportId ID of the unsampled report to be deleted. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Returns a single unsampled report. (unsampledReports.get) * * @param string $accountId Account ID to retrieve unsampled report for. * @param string $webPropertyId Web property ID to retrieve unsampled reports * for. * @param string $profileId View (Profile) ID to retrieve unsampled report for. * @param string $unsampledReportId ID of the unsampled report to retrieve. * @param array $optParams Optional parameters. * @return UnsampledReport */ public function get($accountId, $webPropertyId, $profileId, $unsampledReportId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'unsampledReportId' => $unsampledReportId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReport::class); } /** * Create a new unsampled report. (unsampledReports.insert) * * @param string $accountId Account ID to create the unsampled report for. * @param string $webPropertyId Web property ID to create the unsampled report * for. * @param string $profileId View (Profile) ID to create the unsampled report * for. * @param UnsampledReport $postBody * @param array $optParams Optional parameters. * @return UnsampledReport */ public function insert($accountId, $webPropertyId, $profileId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReport $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReport::class); } /** * Lists unsampled reports to which the user has access. * (unsampledReports.listManagementUnsampledReports) * * @param string $accountId Account ID to retrieve unsampled reports for. Must * be a specific account ID, ~all is not supported. * @param string $webPropertyId Web property ID to retrieve unsampled reports * for. Must be a specific web property ID, ~all is not supported. * @param string $profileId View (Profile) ID to retrieve unsampled reports for. * Must be a specific view (profile) ID, ~all is not supported. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of unsampled reports to include * in this response. * @opt_param int start-index An index of the first unsampled report to * retrieve. Use this parameter as a pagination mechanism along with the max- * results parameter. * @return UnsampledReports */ public function listManagementUnsampledReports($accountId, $webPropertyId, $profileId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReports::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementUnsampledReports::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementUnsampledReports'); google/apiclient-services/src/Analytics/Resource/DataGa.php000064400000007023150544704730017763 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $ga = $analyticsService->ga; * */ class DataGa extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Returns Analytics data for a view (profile). (ga.get) * * @param string $ids Unique table ID for retrieving Analytics data. Table ID is * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. * @param string $startDate Start date for fetching Analytics data. Requests can * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., * today, yesterday, or 7daysAgo). The default value is 7daysAgo. * @param string $endDate End date for fetching Analytics data. Request can * should specify an end date formatted as YYYY-MM-DD, or as a relative date * (e.g., today, yesterday, or 7daysAgo). The default value is yesterday. * @param string $metrics A comma-separated list of Analytics metrics. E.g., * 'ga:sessions,ga:pageviews'. At least one metric must be specified. * @param array $optParams Optional parameters. * * @opt_param string dimensions A comma-separated list of Analytics dimensions. * E.g., 'ga:browser,ga:city'. * @opt_param string filters A comma-separated list of dimension or metric * filters to be applied to Analytics data. * @opt_param bool include-empty-rows The response will include empty rows if * this parameter is set to true, the default is true * @opt_param int max-results The maximum number of entries to include in this * feed. * @opt_param string output The selected format for the response. Default format * is JSON. * @opt_param string samplingLevel The desired sampling level. * @opt_param string segment An Analytics segment to be applied to data. * @opt_param string sort A comma-separated list of dimensions or metrics that * determine the sort order for Analytics data. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return GaData */ public function get($ids, $startDate, $endDate, $metrics, $optParams = []) { $params = ['ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\GaData::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\DataGa::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_DataGa'); google/apiclient-services/src/Analytics/Resource/ManagementCustomDataSources.php000064400000004641150544704730024252 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $customDataSources = $analyticsService->customDataSources; * */ class ManagementCustomDataSources extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * List custom data sources to which the user has access. * (customDataSources.listManagementCustomDataSources) * * @param string $accountId Account Id for the custom data sources to retrieve. * @param string $webPropertyId Web property Id for the custom data sources to * retrieve. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of custom data sources to * include in this response. * @opt_param int start-index A 1-based index of the first custom data source to * retrieve. Use this parameter as a pagination mechanism along with the max- * results parameter. * @return CustomDataSources */ public function listManagementCustomDataSources($accountId, $webPropertyId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDataSources::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementCustomDataSources::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementCustomDataSources'); google/apiclient-services/src/Analytics/Resource/ManagementUploads.php000064400000012302150544704730022242 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $uploads = $analyticsService->uploads; * */ class ManagementUploads extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Delete data associated with a previous upload. (uploads.deleteUploadData) * * @param string $accountId Account Id for the uploads to be deleted. * @param string $webPropertyId Web property Id for the uploads to be deleted. * @param string $customDataSourceId Custom data source Id for the uploads to be * deleted. * @param AnalyticsDataimportDeleteUploadDataRequest $postBody * @param array $optParams Optional parameters. */ public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('deleteUploadData', [$params]); } /** * List uploads to which the user has access. (uploads.get) * * @param string $accountId Account Id for the upload to retrieve. * @param string $webPropertyId Web property Id for the upload to retrieve. * @param string $customDataSourceId Custom data source Id for upload to * retrieve. * @param string $uploadId Upload Id to retrieve. * @param array $optParams Optional parameters. * @return Upload */ public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Upload::class); } /** * List uploads to which the user has access. (uploads.listManagementUploads) * * @param string $accountId Account Id for the uploads to retrieve. * @param string $webPropertyId Web property Id for the uploads to retrieve. * @param string $customDataSourceId Custom data source Id for uploads to * retrieve. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of uploads to include in this * response. * @opt_param int start-index A 1-based index of the first upload to retrieve. * Use this parameter as a pagination mechanism along with the max-results * parameter. * @return Uploads */ public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Uploads::class); } /** * Upload data for a custom data source. (uploads.uploadData) * * @param string $accountId Account Id associated with the upload. * @param string $webPropertyId Web property UA-string associated with the * upload. * @param string $customDataSourceId Custom data source Id to which the data * being uploaded belongs. * @param array $optParams Optional parameters. * @return Upload */ public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId]; $params = \array_merge($params, $optParams); return $this->call('uploadData', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Upload::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementUploads::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementUploads'); google/apiclient-services/src/Analytics/Resource/Management.php000064400000002303150544704730020712 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $management = $analyticsService->management; * */ class Management 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\Analytics\Resource\Management::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_Management'); google/apiclient-services/src/Analytics/Resource/ManagementCustomMetrics.php000064400000014436150544704730023446 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $customMetrics = $analyticsService->customMetrics; * */ class ManagementCustomMetrics extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Get a custom metric to which the user has access. (customMetrics.get) * * @param string $accountId Account ID for the custom metric to retrieve. * @param string $webPropertyId Web property ID for the custom metric to * retrieve. * @param string $customMetricId The ID of the custom metric to retrieve. * @param array $optParams Optional parameters. * @return CustomMetric */ public function get($accountId, $webPropertyId, $customMetricId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetric::class); } /** * Create a new custom metric. (customMetrics.insert) * * @param string $accountId Account ID for the custom metric to create. * @param string $webPropertyId Web property ID for the custom dimension to * create. * @param CustomMetric $postBody * @param array $optParams Optional parameters. * @return CustomMetric */ public function insert($accountId, $webPropertyId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetric $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetric::class); } /** * Lists custom metrics to which the user has access. * (customMetrics.listManagementCustomMetrics) * * @param string $accountId Account ID for the custom metrics to retrieve. * @param string $webPropertyId Web property ID for the custom metrics to * retrieve. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of custom metrics to include in * this response. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return CustomMetrics */ public function listManagementCustomMetrics($accountId, $webPropertyId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetrics::class); } /** * Updates an existing custom metric. This method supports patch semantics. * (customMetrics.patch) * * @param string $accountId Account ID for the custom metric to update. * @param string $webPropertyId Web property ID for the custom metric to update. * @param string $customMetricId Custom metric ID for the custom metric to * update. * @param CustomMetric $postBody * @param array $optParams Optional parameters. * * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any * warnings related to the custom metric being linked to a custom data source / * data set. * @return CustomMetric */ public function patch($accountId, $webPropertyId, $customMetricId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetric $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetric::class); } /** * Updates an existing custom metric. (customMetrics.update) * * @param string $accountId Account ID for the custom metric to update. * @param string $webPropertyId Web property ID for the custom metric to update. * @param string $customMetricId Custom metric ID for the custom metric to * update. * @param CustomMetric $postBody * @param array $optParams Optional parameters. * * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any * warnings related to the custom metric being linked to a custom data source / * data set. * @return CustomMetric */ public function update($accountId, $webPropertyId, $customMetricId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetric $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customMetricId' => $customMetricId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomMetric::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementCustomMetrics::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementCustomMetrics'); google/apiclient-services/src/Analytics/Resource/ManagementRemarketingAudience.php000064400000016274150544704730024555 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $remarketingAudience = $analyticsService->remarketingAudience; * */ class ManagementRemarketingAudience extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Delete a remarketing audience. (remarketingAudience.delete) * * @param string $accountId Account ID to which the remarketing audience * belongs. * @param string $webPropertyId Web property ID to which the remarketing * audience belongs. * @param string $remarketingAudienceId The ID of the remarketing audience to * delete. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $remarketingAudienceId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Gets a remarketing audience to which the user has access. * (remarketingAudience.get) * * @param string $accountId The account ID of the remarketing audience to * retrieve. * @param string $webPropertyId The web property ID of the remarketing audience * to retrieve. * @param string $remarketingAudienceId The ID of the remarketing audience to * retrieve. * @param array $optParams Optional parameters. * @return RemarketingAudience */ public function get($accountId, $webPropertyId, $remarketingAudienceId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudience::class); } /** * Creates a new remarketing audience. (remarketingAudience.insert) * * @param string $accountId The account ID for which to create the remarketing * audience. * @param string $webPropertyId Web property ID for which to create the * remarketing audience. * @param RemarketingAudience $postBody * @param array $optParams Optional parameters. * @return RemarketingAudience */ public function insert($accountId, $webPropertyId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudience $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudience::class); } /** * Lists remarketing audiences to which the user has access. * (remarketingAudience.listManagementRemarketingAudience) * * @param string $accountId The account ID of the remarketing audiences to * retrieve. * @param string $webPropertyId The web property ID of the remarketing audiences * to retrieve. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of remarketing audiences to * include in this response. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @opt_param string type * @return RemarketingAudiences */ public function listManagementRemarketingAudience($accountId, $webPropertyId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudiences::class); } /** * Updates an existing remarketing audience. This method supports patch * semantics. (remarketingAudience.patch) * * @param string $accountId The account ID of the remarketing audience to * update. * @param string $webPropertyId The web property ID of the remarketing audience * to update. * @param string $remarketingAudienceId The ID of the remarketing audience to * update. * @param RemarketingAudience $postBody * @param array $optParams Optional parameters. * @return RemarketingAudience */ public function patch($accountId, $webPropertyId, $remarketingAudienceId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudience $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudience::class); } /** * Updates an existing remarketing audience. (remarketingAudience.update) * * @param string $accountId The account ID of the remarketing audience to * update. * @param string $webPropertyId The web property ID of the remarketing audience * to update. * @param string $remarketingAudienceId The ID of the remarketing audience to * update. * @param RemarketingAudience $postBody * @param array $optParams Optional parameters. * @return RemarketingAudience */ public function update($accountId, $webPropertyId, $remarketingAudienceId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudience $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'remarketingAudienceId' => $remarketingAudienceId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudience::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementRemarketingAudience::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementRemarketingAudience'); google/apiclient-services/src/Analytics/Resource/ManagementWebPropertyAdWordsLinks.php000064400000016264150544704730025415 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $webPropertyAdWordsLinks = $analyticsService->webPropertyAdWordsLinks; * */ class ManagementWebPropertyAdWordsLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Deletes a web property-Google Ads link. (webPropertyAdWordsLinks.delete) * * @param string $accountId ID of the account which the given web property * belongs to. * @param string $webPropertyId Web property ID to delete the Google Ads link * for. * @param string $webPropertyAdWordsLinkId Web property Google Ads link ID. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Returns a web property-Google Ads link to which the user has access. * (webPropertyAdWordsLinks.get) * * @param string $accountId ID of the account which the given web property * belongs to. * @param string $webPropertyId Web property ID to retrieve the Google Ads link * for. * @param string $webPropertyAdWordsLinkId Web property-Google Ads link ID. * @param array $optParams Optional parameters. * @return EntityAdWordsLink */ public function get($accountId, $webPropertyId, $webPropertyAdWordsLinkId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLink::class); } /** * Creates a webProperty-Google Ads link. (webPropertyAdWordsLinks.insert) * * @param string $accountId ID of the Google Analytics account to create the * link for. * @param string $webPropertyId Web property ID to create the link for. * @param EntityAdWordsLink $postBody * @param array $optParams Optional parameters. * @return EntityAdWordsLink */ public function insert($accountId, $webPropertyId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLink::class); } /** * Lists webProperty-Google Ads links for a given web property. * (webPropertyAdWordsLinks.listManagementWebPropertyAdWordsLinks) * * @param string $accountId ID of the account which the given web property * belongs to. * @param string $webPropertyId Web property ID to retrieve the Google Ads links * for. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of webProperty-Google Ads links * to include in this response. * @opt_param int start-index An index of the first webProperty-Google Ads link * to retrieve. Use this parameter as a pagination mechanism along with the max- * results parameter. * @return EntityAdWordsLinks */ public function listManagementWebPropertyAdWordsLinks($accountId, $webPropertyId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLinks::class); } /** * Updates an existing webProperty-Google Ads link. This method supports patch * semantics. (webPropertyAdWordsLinks.patch) * * @param string $accountId ID of the account which the given web property * belongs to. * @param string $webPropertyId Web property ID to retrieve the Google Ads link * for. * @param string $webPropertyAdWordsLinkId Web property-Google Ads link ID. * @param EntityAdWordsLink $postBody * @param array $optParams Optional parameters. * @return EntityAdWordsLink */ public function patch($accountId, $webPropertyId, $webPropertyAdWordsLinkId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLink::class); } /** * Updates an existing webProperty-Google Ads link. * (webPropertyAdWordsLinks.update) * * @param string $accountId ID of the account which the given web property * belongs to. * @param string $webPropertyId Web property ID to retrieve the Google Ads link * for. * @param string $webPropertyAdWordsLinkId Web property-Google Ads link ID. * @param EntityAdWordsLink $postBody * @param array $optParams Optional parameters. * @return EntityAdWordsLink */ public function update($accountId, $webPropertyId, $webPropertyAdWordsLinkId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'webPropertyAdWordsLinkId' => $webPropertyAdWordsLinkId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLink::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementWebPropertyAdWordsLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementWebPropertyAdWordsLinks'); google/apiclient-services/src/Analytics/Resource/ManagementProfileUserLinks.php000064400000013106150544704730024076 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $profileUserLinks = $analyticsService->profileUserLinks; * */ class ManagementProfileUserLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Removes a user from the given view (profile). (profileUserLinks.delete) * * @param string $accountId Account ID to delete the user link for. * @param string $webPropertyId Web Property ID to delete the user link for. * @param string $profileId View (Profile) ID to delete the user link for. * @param string $linkId Link ID to delete the user link for. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Adds a new user to the given view (profile). (profileUserLinks.insert) * * @param string $accountId Account ID to create the user link for. * @param string $webPropertyId Web Property ID to create the user link for. * @param string $profileId View (Profile) ID to create the user link for. * @param EntityUserLink $postBody * @param array $optParams Optional parameters. * @return EntityUserLink */ public function insert($accountId, $webPropertyId, $profileId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink::class); } /** * Lists profile-user links for a given view (profile). * (profileUserLinks.listManagementProfileUserLinks) * * @param string $accountId Account ID which the given view (profile) belongs * to. * @param string $webPropertyId Web Property ID which the given view (profile) * belongs to. Can either be a specific web property ID or '~all', which refers * to all the web properties that user has access to. * @param string $profileId View (Profile) ID to retrieve the profile-user links * for. Can either be a specific profile ID or '~all', which refers to all the * profiles that user has access to. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of profile-user links to * include in this response. * @opt_param int start-index An index of the first profile-user link to * retrieve. Use this parameter as a pagination mechanism along with the max- * results parameter. * @return EntityUserLinks */ public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLinks::class); } /** * Updates permissions for an existing user on the given view (profile). * (profileUserLinks.update) * * @param string $accountId Account ID to update the user link for. * @param string $webPropertyId Web Property ID to update the user link for. * @param string $profileId View (Profile ID) to update the user link for. * @param string $linkId Link ID to update the user link for. * @param EntityUserLink $postBody * @param array $optParams Optional parameters. * @return EntityUserLink */ public function update($accountId, $webPropertyId, $profileId, $linkId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementProfileUserLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementProfileUserLinks'); google/apiclient-services/src/Analytics/Resource/ManagementFilters.php000064400000012621150544704730022247 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $filters = $analyticsService->filters; * */ class ManagementFilters extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Delete a filter. (filters.delete) * * @param string $accountId Account ID to delete the filter for. * @param string $filterId ID of the filter to be deleted. * @param array $optParams Optional parameters. * @return Filter */ public function delete($accountId, $filterId, $optParams = []) { $params = ['accountId' => $accountId, 'filterId' => $filterId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Filter::class); } /** * Returns filters to which the user has access. (filters.get) * * @param string $accountId Account ID to retrieve filters for. * @param string $filterId Filter ID to retrieve filters for. * @param array $optParams Optional parameters. * @return Filter */ public function get($accountId, $filterId, $optParams = []) { $params = ['accountId' => $accountId, 'filterId' => $filterId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Filter::class); } /** * Create a new filter. (filters.insert) * * @param string $accountId Account ID to create filter for. * @param Filter $postBody * @param array $optParams Optional parameters. * @return Filter */ public function insert($accountId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Filter $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Filter::class); } /** * Lists all filters for an account (filters.listManagementFilters) * * @param string $accountId Account ID to retrieve filters for. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of filters to include in this * response. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return Filters */ public function listManagementFilters($accountId, $optParams = []) { $params = ['accountId' => $accountId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Filters::class); } /** * Updates an existing filter. This method supports patch semantics. * (filters.patch) * * @param string $accountId Account ID to which the filter belongs. * @param string $filterId ID of the filter to be updated. * @param Filter $postBody * @param array $optParams Optional parameters. * @return Filter */ public function patch($accountId, $filterId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Filter $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Filter::class); } /** * Updates an existing filter. (filters.update) * * @param string $accountId Account ID to which the filter belongs. * @param string $filterId ID of the filter to be updated. * @param Filter $postBody * @param array $optParams Optional parameters. * @return Filter */ public function update($accountId, $filterId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Filter $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'filterId' => $filterId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Filter::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementFilters::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementFilters'); google/apiclient-services/src/Analytics/Resource/ManagementAccountSummaries.php000064400000004327150544704730024125 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $accountSummaries = $analyticsService->accountSummaries; * */ class ManagementAccountSummaries extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Lists account summaries (lightweight tree comprised of * accounts/properties/profiles) to which the user has access. * (accountSummaries.listManagementAccountSummaries) * * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of account summaries to include * in this response, where the largest acceptable value is 1000. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return AccountSummaries */ public function listManagementAccountSummaries($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountSummaries::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementAccountSummaries::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementAccountSummaries'); google/apiclient-services/src/Analytics/Resource/DataRealtime.php000064400000004767150544704730021212 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $realtime = $analyticsService->realtime; * */ class DataRealtime extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Returns real time data for a view (profile). (realtime.get) * * @param string $ids Unique table ID for retrieving real time data. Table ID is * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. * @param string $metrics A comma-separated list of real time metrics. E.g., * 'rt:activeUsers'. At least one metric must be specified. * @param array $optParams Optional parameters. * * @opt_param string dimensions A comma-separated list of real time dimensions. * E.g., 'rt:medium,rt:city'. * @opt_param string filters A comma-separated list of dimension or metric * filters to be applied to real time data. * @opt_param int max-results The maximum number of entries to include in this * feed. * @opt_param string sort A comma-separated list of dimensions or metrics that * determine the sort order for real time data. * @return RealtimeData */ public function get($ids, $metrics, $optParams = []) { $params = ['ids' => $ids, 'metrics' => $metrics]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\RealtimeData::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\DataRealtime::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_DataRealtime'); google/apiclient-services/src/Analytics/Resource/ManagementWebpropertyUserLinks.php000064400000012067150544704730025025 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $webpropertyUserLinks = $analyticsService->webpropertyUserLinks; * */ class ManagementWebpropertyUserLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Removes a user from the given web property. (webpropertyUserLinks.delete) * * @param string $accountId Account ID to delete the user link for. * @param string $webPropertyId Web Property ID to delete the user link for. * @param string $linkId Link ID to delete the user link for. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $linkId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Adds a new user to the given web property. (webpropertyUserLinks.insert) * * @param string $accountId Account ID to create the user link for. * @param string $webPropertyId Web Property ID to create the user link for. * @param EntityUserLink $postBody * @param array $optParams Optional parameters. * @return EntityUserLink */ public function insert($accountId, $webPropertyId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink::class); } /** * Lists webProperty-user links for a given web property. * (webpropertyUserLinks.listManagementWebpropertyUserLinks) * * @param string $accountId Account ID which the given web property belongs to. * @param string $webPropertyId Web Property ID for the webProperty-user links * to retrieve. Can either be a specific web property ID or '~all', which refers * to all the web properties that user has access to. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of webProperty-user Links to * include in this response. * @opt_param int start-index An index of the first webProperty-user link to * retrieve. Use this parameter as a pagination mechanism along with the max- * results parameter. * @return EntityUserLinks */ public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLinks::class); } /** * Updates permissions for an existing user on the given web property. * (webpropertyUserLinks.update) * * @param string $accountId Account ID to update the account-user link for. * @param string $webPropertyId Web property ID to update the account-user link * for. * @param string $linkId Link ID to update the account-user link for. * @param EntityUserLink $postBody * @param array $optParams Optional parameters. * @return EntityUserLink */ public function update($accountId, $webPropertyId, $linkId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementWebpropertyUserLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementWebpropertyUserLinks'); google/apiclient-services/src/Analytics/Resource/Metadata.php000064400000002267150544704730020367 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $metadata = $analyticsService->metadata; * */ class Metadata 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\Analytics\Resource\Metadata::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_Metadata'); google/apiclient-services/src/Analytics/Resource/ManagementSegments.php000064400000003775150544704730022436 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $segments = $analyticsService->segments; * */ class ManagementSegments extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Lists segments to which the user has access. * (segments.listManagementSegments) * * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of segments to include in this * response. * @opt_param int start-index An index of the first segment to retrieve. Use * this parameter as a pagination mechanism along with the max-results * parameter. * @return Segments */ public function listManagementSegments($optParams = []) { $params = []; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Segments::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementSegments::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementSegments'); google/apiclient-services/src/Analytics/Resource/DataMcf.php000064400000006456150544704730020152 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $mcf = $analyticsService->mcf; * */ class DataMcf extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Returns Analytics Multi-Channel Funnels data for a view (profile). (mcf.get) * * @param string $ids Unique table ID for retrieving Analytics data. Table ID is * of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. * @param string $startDate Start date for fetching Analytics data. Requests can * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., * today, yesterday, or 7daysAgo). The default value is 7daysAgo. * @param string $endDate End date for fetching Analytics data. Requests can * specify a start date formatted as YYYY-MM-DD, or as a relative date (e.g., * today, yesterday, or 7daysAgo). The default value is 7daysAgo. * @param string $metrics A comma-separated list of Multi-Channel Funnels * metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one * metric must be specified. * @param array $optParams Optional parameters. * * @opt_param string dimensions A comma-separated list of Multi-Channel Funnels * dimensions. E.g., 'mcf:source,mcf:medium'. * @opt_param string filters A comma-separated list of dimension or metric * filters to be applied to the Analytics data. * @opt_param int max-results The maximum number of entries to include in this * feed. * @opt_param string samplingLevel The desired sampling level. * @opt_param string sort A comma-separated list of dimensions or metrics that * determine the sort order for the Analytics data. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return McfData */ public function get($ids, $startDate, $endDate, $metrics, $optParams = []) { $params = ['ids' => $ids, 'start-date' => $startDate, 'end-date' => $endDate, 'metrics' => $metrics]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\McfData::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\DataMcf::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_DataMcf'); google/apiclient-services/src/Analytics/Resource/ManagementGoals.php000064400000014357150544704730021714 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $goals = $analyticsService->goals; * */ class ManagementGoals extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets a goal to which the user has access. (goals.get) * * @param string $accountId Account ID to retrieve the goal for. * @param string $webPropertyId Web property ID to retrieve the goal for. * @param string $profileId View (Profile) ID to retrieve the goal for. * @param string $goalId Goal ID to retrieve the goal for. * @param array $optParams Optional parameters. * @return Goal */ public function get($accountId, $webPropertyId, $profileId, $goalId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Goal::class); } /** * Create a new goal. (goals.insert) * * @param string $accountId Account ID to create the goal for. * @param string $webPropertyId Web property ID to create the goal for. * @param string $profileId View (Profile) ID to create the goal for. * @param Goal $postBody * @param array $optParams Optional parameters. * @return Goal */ public function insert($accountId, $webPropertyId, $profileId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Goal $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Goal::class); } /** * Lists goals to which the user has access. (goals.listManagementGoals) * * @param string $accountId Account ID to retrieve goals for. Can either be a * specific account ID or '~all', which refers to all the accounts that user has * access to. * @param string $webPropertyId Web property ID to retrieve goals for. Can * either be a specific web property ID or '~all', which refers to all the web * properties that user has access to. * @param string $profileId View (Profile) ID to retrieve goals for. Can either * be a specific view (profile) ID or '~all', which refers to all the views * (profiles) that user has access to. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of goals to include in this * response. * @opt_param int start-index An index of the first goal to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return Goals */ public function listManagementGoals($accountId, $webPropertyId, $profileId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Goals::class); } /** * Updates an existing goal. This method supports patch semantics. (goals.patch) * * @param string $accountId Account ID to update the goal. * @param string $webPropertyId Web property ID to update the goal. * @param string $profileId View (Profile) ID to update the goal. * @param string $goalId Index of the goal to be updated. * @param Goal $postBody * @param array $optParams Optional parameters. * @return Goal */ public function patch($accountId, $webPropertyId, $profileId, $goalId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Goal $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Goal::class); } /** * Updates an existing goal. (goals.update) * * @param string $accountId Account ID to update the goal. * @param string $webPropertyId Web property ID to update the goal. * @param string $profileId View (Profile) ID to update the goal. * @param string $goalId Index of the goal to be updated. * @param Goal $postBody * @param array $optParams Optional parameters. * @return Goal */ public function update($accountId, $webPropertyId, $profileId, $goalId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Goal $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'goalId' => $goalId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Goal::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementGoals::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementGoals'); google/apiclient-services/src/Analytics/Resource/ManagementClientId.php000064400000003713150544704730022334 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $clientId = $analyticsService->clientId; * */ class ManagementClientId extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Hashes the given Client ID. (clientId.hashClientId) * * @param HashClientIdRequest $postBody * @param array $optParams Optional parameters. * @return HashClientIdResponse */ public function hashClientId(\Google\Site_Kit_Dependencies\Google\Service\Analytics\HashClientIdRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('hashClientId', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\HashClientIdResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementClientId::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementClientId'); google/apiclient-services/src/Analytics/Resource/ManagementProfileFilterLinks.php000064400000017045150544704730024413 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $profileFilterLinks = $analyticsService->profileFilterLinks; * */ class ManagementProfileFilterLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Delete a profile filter link. (profileFilterLinks.delete) * * @param string $accountId Account ID to which the profile filter link belongs. * @param string $webPropertyId Web property Id to which the profile filter link * belongs. * @param string $profileId Profile ID to which the filter link belongs. * @param string $linkId ID of the profile filter link to delete. * @param array $optParams Optional parameters. */ public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Returns a single profile filter link. (profileFilterLinks.get) * * @param string $accountId Account ID to retrieve profile filter link for. * @param string $webPropertyId Web property Id to retrieve profile filter link * for. * @param string $profileId Profile ID to retrieve filter link for. * @param string $linkId ID of the profile filter link. * @param array $optParams Optional parameters. * @return ProfileFilterLink */ public function get($accountId, $webPropertyId, $profileId, $linkId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileFilterLink::class); } /** * Create a new profile filter link. (profileFilterLinks.insert) * * @param string $accountId Account ID to create profile filter link for. * @param string $webPropertyId Web property Id to create profile filter link * for. * @param string $profileId Profile ID to create filter link for. * @param ProfileFilterLink $postBody * @param array $optParams Optional parameters. * @return ProfileFilterLink */ public function insert($accountId, $webPropertyId, $profileId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileFilterLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileFilterLink::class); } /** * Lists all profile filter links for a profile. * (profileFilterLinks.listManagementProfileFilterLinks) * * @param string $accountId Account ID to retrieve profile filter links for. * @param string $webPropertyId Web property Id for profile filter links for. * Can either be a specific web property ID or '~all', which refers to all the * web properties that user has access to. * @param string $profileId Profile ID to retrieve filter links for. Can either * be a specific profile ID or '~all', which refers to all the profiles that * user has access to. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of profile filter links to * include in this response. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return ProfileFilterLinks */ public function listManagementProfileFilterLinks($accountId, $webPropertyId, $profileId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileFilterLinks::class); } /** * Update an existing profile filter link. This method supports patch semantics. * (profileFilterLinks.patch) * * @param string $accountId Account ID to which profile filter link belongs. * @param string $webPropertyId Web property Id to which profile filter link * belongs * @param string $profileId Profile ID to which filter link belongs * @param string $linkId ID of the profile filter link to be updated. * @param ProfileFilterLink $postBody * @param array $optParams Optional parameters. * @return ProfileFilterLink */ public function patch($accountId, $webPropertyId, $profileId, $linkId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileFilterLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileFilterLink::class); } /** * Update an existing profile filter link. (profileFilterLinks.update) * * @param string $accountId Account ID to which profile filter link belongs. * @param string $webPropertyId Web property Id to which profile filter link * belongs * @param string $profileId Profile ID to which filter link belongs * @param string $linkId ID of the profile filter link to be updated. * @param ProfileFilterLink $postBody * @param array $optParams Optional parameters. * @return ProfileFilterLink */ public function update($accountId, $webPropertyId, $profileId, $linkId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileFilterLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileFilterLink::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementProfileFilterLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementProfileFilterLinks'); google/apiclient-services/src/Analytics/Resource/ManagementCustomDimensions.php000064400000014757150544704730024156 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $customDimensions = $analyticsService->customDimensions; * */ class ManagementCustomDimensions extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Get a custom dimension to which the user has access. (customDimensions.get) * * @param string $accountId Account ID for the custom dimension to retrieve. * @param string $webPropertyId Web property ID for the custom dimension to * retrieve. * @param string $customDimensionId The ID of the custom dimension to retrieve. * @param array $optParams Optional parameters. * @return CustomDimension */ public function get($accountId, $webPropertyId, $customDimensionId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimension::class); } /** * Create a new custom dimension. (customDimensions.insert) * * @param string $accountId Account ID for the custom dimension to create. * @param string $webPropertyId Web property ID for the custom dimension to * create. * @param CustomDimension $postBody * @param array $optParams Optional parameters. * @return CustomDimension */ public function insert($accountId, $webPropertyId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimension $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimension::class); } /** * Lists custom dimensions to which the user has access. * (customDimensions.listManagementCustomDimensions) * * @param string $accountId Account ID for the custom dimensions to retrieve. * @param string $webPropertyId Web property ID for the custom dimensions to * retrieve. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of custom dimensions to include * in this response. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return CustomDimensions */ public function listManagementCustomDimensions($accountId, $webPropertyId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimensions::class); } /** * Updates an existing custom dimension. This method supports patch semantics. * (customDimensions.patch) * * @param string $accountId Account ID for the custom dimension to update. * @param string $webPropertyId Web property ID for the custom dimension to * update. * @param string $customDimensionId Custom dimension ID for the custom dimension * to update. * @param CustomDimension $postBody * @param array $optParams Optional parameters. * * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any * warnings related to the custom dimension being linked to a custom data source * / data set. * @return CustomDimension */ public function patch($accountId, $webPropertyId, $customDimensionId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimension $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimension::class); } /** * Updates an existing custom dimension. (customDimensions.update) * * @param string $accountId Account ID for the custom dimension to update. * @param string $webPropertyId Web property ID for the custom dimension to * update. * @param string $customDimensionId Custom dimension ID for the custom dimension * to update. * @param CustomDimension $postBody * @param array $optParams Optional parameters. * * @opt_param bool ignoreCustomDataSourceLinks Force the update and ignore any * warnings related to the custom dimension being linked to a custom data source * / data set. * @return CustomDimension */ public function update($accountId, $webPropertyId, $customDimensionId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimension $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDimensionId' => $customDimensionId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDimension::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementCustomDimensions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementCustomDimensions'); google/apiclient-services/src/Analytics/Resource/ManagementAccountUserLinks.php000064400000010456150544704730024077 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $accountUserLinks = $analyticsService->accountUserLinks; * */ class ManagementAccountUserLinks extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Removes a user from the given account. (accountUserLinks.delete) * * @param string $accountId Account ID to delete the user link for. * @param string $linkId Link ID to delete the user link for. * @param array $optParams Optional parameters. */ public function delete($accountId, $linkId, $optParams = []) { $params = ['accountId' => $accountId, 'linkId' => $linkId]; $params = \array_merge($params, $optParams); return $this->call('delete', [$params]); } /** * Adds a new user to the given account. (accountUserLinks.insert) * * @param string $accountId Account ID to create the user link for. * @param EntityUserLink $postBody * @param array $optParams Optional parameters. * @return EntityUserLink */ public function insert($accountId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink::class); } /** * Lists account-user links for a given account. * (accountUserLinks.listManagementAccountUserLinks) * * @param string $accountId Account ID to retrieve the user links for. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of account-user links to * include in this response. * @opt_param int start-index An index of the first account-user link to * retrieve. Use this parameter as a pagination mechanism along with the max- * results parameter. * @return EntityUserLinks */ public function listManagementAccountUserLinks($accountId, $optParams = []) { $params = ['accountId' => $accountId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLinks::class); } /** * Updates permissions for an existing user on the given account. * (accountUserLinks.update) * * @param string $accountId Account ID to update the account-user link for. * @param string $linkId Link ID to update the account-user link for. * @param EntityUserLink $postBody * @param array $optParams Optional parameters. * @return EntityUserLink */ public function update($accountId, $linkId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementAccountUserLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementAccountUserLinks'); google/apiclient-services/src/Analytics/Resource/UserDeletion.php000064400000002317150544704730021245 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $userDeletion = $analyticsService->userDeletion; * */ class UserDeletion 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\Analytics\Resource\UserDeletion::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_UserDeletion'); google/apiclient-services/src/Analytics/Resource/Data.php000064400000002237150544704730017515 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $data = $analyticsService->data; * */ class Data 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\Analytics\Resource\Data::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_Data'); google/apiclient-services/src/Analytics/Resource/Provisioning.php000064400000005147150544704730021335 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $provisioning = $analyticsService->provisioning; * */ class Provisioning extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Creates an account ticket. (provisioning.createAccountTicket) * * @param AccountTicket $postBody * @param array $optParams Optional parameters. * @return AccountTicket */ public function createAccountTicket(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountTicket $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('createAccountTicket', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountTicket::class); } /** * Provision account. (provisioning.createAccountTree) * * @param AccountTreeRequest $postBody * @param array $optParams Optional parameters. * @return AccountTreeResponse */ public function createAccountTree(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountTreeRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('createAccountTree', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountTreeResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\Provisioning::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_Provisioning'); google/apiclient-services/src/Analytics/Resource/ManagementWebproperties.php000064400000012565150544704730023500 0ustar00 * $analyticsService = new Google\Service\Analytics(...); * $webproperties = $analyticsService->webproperties; * */ class ManagementWebproperties extends \Google\Site_Kit_Dependencies\Google\Service\Resource { /** * Gets a web property to which the user has access. (webproperties.get) * * @param string $accountId Account ID to retrieve the web property for. * @param string $webPropertyId ID to retrieve the web property for. * @param array $optParams Optional parameters. * @return Webproperty */ public function get($accountId, $webPropertyId, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId]; $params = \array_merge($params, $optParams); return $this->call('get', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty::class); } /** * Create a new property if the account has fewer than 20 properties. Web * properties are visible in the Google Analytics interface only if they have at * least one profile. (webproperties.insert) * * @param string $accountId Account ID to create the web property for. * @param Webproperty $postBody * @param array $optParams Optional parameters. * @return Webproperty */ public function insert($accountId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('insert', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty::class); } /** * Lists web properties to which the user has access. * (webproperties.listManagementWebproperties) * * @param string $accountId Account ID to retrieve web properties for. Can * either be a specific account ID or '~all', which refers to all the accounts * that user has access to. * @param array $optParams Optional parameters. * * @opt_param int max-results The maximum number of web properties to include in * this response. * @opt_param int start-index An index of the first entity to retrieve. Use this * parameter as a pagination mechanism along with the max-results parameter. * @return Webproperties */ public function listManagementWebproperties($accountId, $optParams = []) { $params = ['accountId' => $accountId]; $params = \array_merge($params, $optParams); return $this->call('list', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperties::class); } /** * Updates an existing web property. This method supports patch semantics. * (webproperties.patch) * * @param string $accountId Account ID to which the web property belongs * @param string $webPropertyId Web property ID * @param Webproperty $postBody * @param array $optParams Optional parameters. * @return Webproperty */ public function patch($accountId, $webPropertyId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('patch', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty::class); } /** * Updates an existing web property. (webproperties.update) * * @param string $accountId Account ID to which the web property belongs * @param string $webPropertyId Web property ID * @param Webproperty $postBody * @param array $optParams Optional parameters. * @return Webproperty */ public function update($accountId, $webPropertyId, \Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty $postBody, $optParams = []) { $params = ['accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody]; $params = \array_merge($params, $optParams); return $this->call('update', [$params], \Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty::class); } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Resource\ManagementWebproperties::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Resource_ManagementWebproperties'); google/apiclient-services/src/Analytics/AdWordsAccount.php000064400000003630150544704730017733 0ustar00autoTaggingEnabled = $autoTaggingEnabled; } /** * @return bool */ public function getAutoTaggingEnabled() { return $this->autoTaggingEnabled; } /** * @param string */ public function setCustomerId($customerId) { $this->customerId = $customerId; } /** * @return string */ public function getCustomerId() { return $this->customerId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AdWordsAccount::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AdWordsAccount'); google/apiclient-services/src/Analytics/AccountTreeRequest.php000064400000005511150544704730020640 0ustar00accountName = $accountName; } /** * @return string */ public function getAccountName() { return $this->accountName; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setProfileName($profileName) { $this->profileName = $profileName; } /** * @return string */ public function getProfileName() { return $this->profileName; } /** * @param string */ public function setTimezone($timezone) { $this->timezone = $timezone; } /** * @return string */ public function getTimezone() { return $this->timezone; } /** * @param string */ public function setWebpropertyName($webpropertyName) { $this->webpropertyName = $webpropertyName; } /** * @return string */ public function getWebpropertyName() { return $this->webpropertyName; } /** * @param string */ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } /** * @return string */ public function getWebsiteUrl() { return $this->websiteUrl; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountTreeRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AccountTreeRequest'); google/apiclient-services/src/Analytics/McfDataProfileInfo.php000064400000005626150544704730020516 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setProfileId($profileId) { $this->profileId = $profileId; } /** * @return string */ public function getProfileId() { return $this->profileId; } /** * @param string */ public function setProfileName($profileName) { $this->profileName = $profileName; } /** * @return string */ public function getProfileName() { return $this->profileName; } /** * @param string */ public function setTableId($tableId) { $this->tableId = $tableId; } /** * @return string */ public function getTableId() { return $this->tableId; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\McfDataProfileInfo::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_McfDataProfileInfo'); google/apiclient-services/src/Analytics/EntityUserLinks.php000064400000006324150544704730020172 0ustar00items = $items; } /** * @return EntityUserLink[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_EntityUserLinks'); google/apiclient-services/src/Analytics/AccountTicket.php000064400000006215150544704730017615 0ustar00account = $account; } /** * @return Account */ public function getAccount() { return $this->account; } /** * @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 Profile */ public function setProfile(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Profile $profile) { $this->profile = $profile; } /** * @return Profile */ public function getProfile() { return $this->profile; } /** * @param string */ public function setRedirectUri($redirectUri) { $this->redirectUri = $redirectUri; } /** * @return string */ public function getRedirectUri() { return $this->redirectUri; } /** * @param Webproperty */ public function setWebproperty(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty $webproperty) { $this->webproperty = $webproperty; } /** * @return Webproperty */ public function getWebproperty() { return $this->webproperty; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountTicket::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AccountTicket'); google/apiclient-services/src/Analytics/GaDataDataTableRows.php000064400000002617150544704730020615 0ustar00c = $c; } /** * @return GaDataDataTableRowsC[] */ public function getC() { return $this->c; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GaDataDataTableRows::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GaDataDataTableRows'); google/apiclient-services/src/Analytics/ProfilePermissions.php000064400000002525150544704730020711 0ustar00effective = $effective; } /** * @return string[] */ public function getEffective() { return $this->effective; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfilePermissions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_ProfilePermissions'); google/apiclient-services/src/Analytics/Webproperty.php000064400000017002150544704730017373 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param WebpropertyChildLink */ public function setChildLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\WebpropertyChildLink $childLink) { $this->childLink = $childLink; } /** * @return WebpropertyChildLink */ public function getChildLink() { return $this->childLink; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @param bool */ public function setDataRetentionResetOnNewActivity($dataRetentionResetOnNewActivity) { $this->dataRetentionResetOnNewActivity = $dataRetentionResetOnNewActivity; } /** * @return bool */ public function getDataRetentionResetOnNewActivity() { return $this->dataRetentionResetOnNewActivity; } /** * @param string */ public function setDataRetentionTtl($dataRetentionTtl) { $this->dataRetentionTtl = $dataRetentionTtl; } /** * @return string */ public function getDataRetentionTtl() { return $this->dataRetentionTtl; } /** * @param string */ public function setDefaultProfileId($defaultProfileId) { $this->defaultProfileId = $defaultProfileId; } /** * @return string */ public function getDefaultProfileId() { return $this->defaultProfileId; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setIndustryVertical($industryVertical) { $this->industryVertical = $industryVertical; } /** * @return string */ public function getIndustryVertical() { return $this->industryVertical; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setLevel($level) { $this->level = $level; } /** * @return string */ public function getLevel() { return $this->level; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param WebpropertyParentLink */ public function setParentLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\WebpropertyParentLink $parentLink) { $this->parentLink = $parentLink; } /** * @return WebpropertyParentLink */ public function getParentLink() { return $this->parentLink; } /** * @param WebpropertyPermissions */ public function setPermissions(\Google\Site_Kit_Dependencies\Google\Service\Analytics\WebpropertyPermissions $permissions) { $this->permissions = $permissions; } /** * @return WebpropertyPermissions */ public function getPermissions() { return $this->permissions; } /** * @param int */ public function setProfileCount($profileCount) { $this->profileCount = $profileCount; } /** * @return int */ public function getProfileCount() { return $this->profileCount; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param bool */ public function setStarred($starred) { $this->starred = $starred; } /** * @return bool */ public function getStarred() { return $this->starred; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param string */ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } /** * @return string */ public function getWebsiteUrl() { return $this->websiteUrl; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Webproperty::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Webproperty'); google/apiclient-services/src/Analytics/WebPropertySummary.php000064400000006740150544704730020720 0ustar00id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setLevel($level) { $this->level = $level; } /** * @return string */ public function getLevel() { return $this->level; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param ProfileSummary[] */ public function setProfiles($profiles) { $this->profiles = $profiles; } /** * @return ProfileSummary[] */ public function getProfiles() { return $this->profiles; } /** * @param bool */ public function setStarred($starred) { $this->starred = $starred; } /** * @return bool */ public function getStarred() { return $this->starred; } /** * @param string */ public function setWebsiteUrl($websiteUrl) { $this->websiteUrl = $websiteUrl; } /** * @return string */ public function getWebsiteUrl() { return $this->websiteUrl; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\WebPropertySummary::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_WebPropertySummary'); google/apiclient-services/src/Analytics/FilterLowercaseDetails.php000064400000003100150544704730021443 0ustar00field = $field; } /** * @return string */ public function getField() { return $this->field; } /** * @param int */ public function setFieldIndex($fieldIndex) { $this->fieldIndex = $fieldIndex; } /** * @return int */ public function getFieldIndex() { return $this->fieldIndex; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterLowercaseDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_FilterLowercaseDetails'); google/apiclient-services/src/Analytics/AccountSummary.php000064400000005057150544704730020032 0ustar00id = $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 string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param bool */ public function setStarred($starred) { $this->starred = $starred; } /** * @return bool */ public function getStarred() { return $this->starred; } /** * @param WebPropertySummary[] */ public function setWebProperties($webProperties) { $this->webProperties = $webProperties; } /** * @return WebPropertySummary[] */ public function getWebProperties() { return $this->webProperties; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountSummary::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AccountSummary'); google/apiclient-services/src/Analytics/WebpropertyChildLink.php000064400000003022150544704730021152 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\WebpropertyChildLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_WebpropertyChildLink'); google/apiclient-services/src/Analytics/EntityUserLink.php000064400000006337150544704730020013 0ustar00entity = $entity; } /** * @return EntityUserLinkEntity */ public function getEntity() { return $this->entity; } /** * @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 EntityUserLinkPermissions */ public function setPermissions(\Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLinkPermissions $permissions) { $this->permissions = $permissions; } /** * @return EntityUserLinkPermissions */ public function getPermissions() { return $this->permissions; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param UserRef */ public function setUserRef(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UserRef $userRef) { $this->userRef = $userRef; } /** * @return UserRef */ public function getUserRef() { return $this->userRef; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_EntityUserLink'); google/apiclient-services/src/Analytics/Account.php000064400000007576150544704730016464 0ustar00childLink = $childLink; } /** * @return AccountChildLink */ public function getChildLink() { return $this->childLink; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @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 string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param AccountPermissions */ public function setPermissions(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountPermissions $permissions) { $this->permissions = $permissions; } /** * @return AccountPermissions */ public function getPermissions() { return $this->permissions; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param bool */ public function setStarred($starred) { $this->starred = $starred; } /** * @return bool */ public function getStarred() { return $this->starred; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Account::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Account'); google/apiclient-services/src/Analytics/CustomDimensionParentLink.php000064400000003041150544704730022157 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\CustomDimensionParentLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomDimensionParentLink'); google/apiclient-services/src/Analytics/GaDataDataTableRowsC.php000064400000002353150544704730020715 0ustar00v = $v; } /** * @return string */ public function getV() { return $this->v; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GaDataDataTableRowsC::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GaDataDataTableRowsC'); google/apiclient-services/src/Analytics/McfDataQuery.php000064400000010616150544704730017402 0ustar00 "end-date", "maxResults" => "max-results", "startDate" => "start-date", "startIndex" => "start-index"]; /** * @var string */ public $dimensions; /** * @var string */ public $endDate; /** * @var string */ public $filters; /** * @var string */ public $ids; /** * @var int */ public $maxResults; /** * @var string[] */ public $metrics; /** * @var string */ public $samplingLevel; /** * @var string */ public $segment; /** * @var string[] */ public $sort; /** * @var string */ public $startDate; /** * @var int */ public $startIndex; /** * @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 string */ public function setFilters($filters) { $this->filters = $filters; } /** * @return string */ public function getFilters() { return $this->filters; } /** * @param string */ public function setIds($ids) { $this->ids = $ids; } /** * @return string */ public function getIds() { return $this->ids; } /** * @param int */ public function setMaxResults($maxResults) { $this->maxResults = $maxResults; } /** * @return int */ public function getMaxResults() { return $this->maxResults; } /** * @param string[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return string[] */ public function getMetrics() { return $this->metrics; } /** * @param string */ public function setSamplingLevel($samplingLevel) { $this->samplingLevel = $samplingLevel; } /** * @return string */ public function getSamplingLevel() { return $this->samplingLevel; } /** * @param string */ public function setSegment($segment) { $this->segment = $segment; } /** * @return string */ public function getSegment() { return $this->segment; } /** * @param string[] */ public function setSort($sort) { $this->sort = $sort; } /** * @return string[] */ public function getSort() { return $this->sort; } /** * @param string */ public function setStartDate($startDate) { $this->startDate = $startDate; } /** * @return string */ public function getStartDate() { return $this->startDate; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\McfDataQuery::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_McfDataQuery'); google/apiclient-services/src/Analytics/WebpropertyParentLink.php000064400000003025150544704730021363 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\WebpropertyParentLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_WebpropertyParentLink'); src/Analytics/RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.php000064400000003406150544704730031656 0ustar00google/apiclient-servicesexclusionDuration = $exclusionDuration; } /** * @return string */ public function getExclusionDuration() { return $this->exclusionDuration; } /** * @param string */ public function setSegment($segment) { $this->segment = $segment; } /** * @return string */ public function getSegment() { return $this->segment; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions'); google/apiclient-services/src/Analytics/CustomDataSource.php000064400000014326150544704730020304 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param CustomDataSourceChildLink */ public function setChildLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDataSourceChildLink $childLink) { $this->childLink = $childLink; } /** * @return CustomDataSourceChildLink */ public function getChildLink() { return $this->childLink; } /** * @param string */ public function setCreated($created) { $this->created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @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 setImportBehavior($importBehavior) { $this->importBehavior = $importBehavior; } /** * @return string */ public function getImportBehavior() { return $this->importBehavior; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param CustomDataSourceParentLink */ public function setParentLink(\Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDataSourceParentLink $parentLink) { $this->parentLink = $parentLink; } /** * @return CustomDataSourceParentLink */ public function getParentLink() { return $this->parentLink; } /** * @param string[] */ public function setProfilesLinked($profilesLinked) { $this->profilesLinked = $profilesLinked; } /** * @return string[] */ public function getProfilesLinked() { return $this->profilesLinked; } /** * @param string[] */ public function setSchema($schema) { $this->schema = $schema; } /** * @return string[] */ public function getSchema() { return $this->schema; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } /** * @param string */ public function setUploadType($uploadType) { $this->uploadType = $uploadType; } /** * @return string */ public function getUploadType() { return $this->uploadType; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\CustomDataSource::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomDataSource'); google/apiclient-services/src/Analytics/FilterSearchAndReplaceDetails.php000064400000005073150544704730022656 0ustar00caseSensitive = $caseSensitive; } /** * @return bool */ public function getCaseSensitive() { return $this->caseSensitive; } /** * @param string */ public function setField($field) { $this->field = $field; } /** * @return string */ public function getField() { return $this->field; } /** * @param int */ public function setFieldIndex($fieldIndex) { $this->fieldIndex = $fieldIndex; } /** * @return int */ public function getFieldIndex() { return $this->fieldIndex; } /** * @param string */ public function setReplaceString($replaceString) { $this->replaceString = $replaceString; } /** * @return string */ public function getReplaceString() { return $this->replaceString; } /** * @param string */ public function setSearchString($searchString) { $this->searchString = $searchString; } /** * @return string */ public function getSearchString() { return $this->searchString; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\FilterSearchAndReplaceDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_FilterSearchAndReplaceDetails'); google/apiclient-services/src/Analytics/ProfileSummary.php000064400000004467150544704730020042 0ustar00id = $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 string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param bool */ public function setStarred($starred) { $this->starred = $starred; } /** * @return bool */ public function getStarred() { return $this->starred; } /** * @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\Analytics\ProfileSummary::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_ProfileSummary'); google/apiclient-services/src/Analytics/UnsampledReportDriveDownloadDetails.php000064400000002527150544704730024173 0ustar00documentId = $documentId; } /** * @return string */ public function getDocumentId() { return $this->documentId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UnsampledReportDriveDownloadDetails::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_UnsampledReportDriveDownloadDetails'); google/apiclient-services/src/Analytics/AnalyticsDataimportDeleteUploadDataRequest.php000064400000002765150544704730025472 0ustar00customDataImportUids = $customDataImportUids; } /** * @return string[] */ public function getCustomDataImportUids() { return $this->customDataImportUids; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AnalyticsDataimportDeleteUploadDataRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AnalyticsDataimportDeleteUploadDataRequest'); google/apiclient-services/src/Analytics/EntityAdWordsLink.php000064400000006571150544704730020440 0ustar00adWordsAccounts = $adWordsAccounts; } /** * @return AdWordsAccount[] */ public function getAdWordsAccounts() { return $this->adWordsAccounts; } /** * @param EntityAdWordsLinkEntity */ public function setEntity(\Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLinkEntity $entity) { $this->entity = $entity; } /** * @return EntityAdWordsLinkEntity */ public function getEntity() { return $this->entity; } /** * @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 string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string[] */ public function setProfileIds($profileIds) { $this->profileIds = $profileIds; } /** * @return string[] */ public function getProfileIds() { return $this->profileIds; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_EntityAdWordsLink'); google/apiclient-services/src/Analytics/Profiles.php000064400000006730150544704730016642 0ustar00items = $items; } /** * @return Profile[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\Profiles::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Profiles'); google/apiclient-services/src/Analytics/McfDataRows.php000064400000003617150544704730017232 0ustar00conversionPathValue = $conversionPathValue; } /** * @return McfDataRowsConversionPathValue[] */ public function getConversionPathValue() { return $this->conversionPathValue; } /** * @param string */ public function setPrimitiveValue($primitiveValue) { $this->primitiveValue = $primitiveValue; } /** * @return string */ public function getPrimitiveValue() { return $this->primitiveValue; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\McfDataRows::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_McfDataRows'); google/apiclient-services/src/Analytics/WebPropertyRef.php000064400000005324150544704730017774 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setHref($href) { $this->href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @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\Analytics\WebPropertyRef::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_WebPropertyRef'); google/apiclient-services/src/Analytics/Upload.php000064400000006064150544704730016303 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setCustomDataSourceId($customDataSourceId) { $this->customDataSourceId = $customDataSourceId; } /** * @return string */ public function getCustomDataSourceId() { return $this->customDataSourceId; } /** * @param string[] */ public function setErrors($errors) { $this->errors = $errors; } /** * @return string[] */ public function getErrors() { return $this->errors; } /** * @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 string */ public function setStatus($status) { $this->status = $status; } /** * @return string */ public function getStatus() { return $this->status; } /** * @param string */ public function setUploadTime($uploadTime) { $this->uploadTime = $uploadTime; } /** * @return string */ public function getUploadTime() { return $this->uploadTime; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Upload::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Upload'); google/apiclient-services/src/Analytics/EntityUserLinkPermissions.php000064400000003205150544704730022236 0ustar00effective = $effective; } /** * @return string[] */ public function getEffective() { return $this->effective; } /** * @param string[] */ public function setLocal($local) { $this->local = $local; } /** * @return string[] */ public function getLocal() { return $this->local; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLinkPermissions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_EntityUserLinkPermissions'); google/apiclient-services/src/Analytics/IncludeConditions.php000064400000005061150544704730020470 0ustar00daysToLookBack = $daysToLookBack; } /** * @return int */ public function getDaysToLookBack() { return $this->daysToLookBack; } /** * @param bool */ public function setIsSmartList($isSmartList) { $this->isSmartList = $isSmartList; } /** * @return bool */ public function getIsSmartList() { return $this->isSmartList; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param int */ public function setMembershipDurationDays($membershipDurationDays) { $this->membershipDurationDays = $membershipDurationDays; } /** * @return int */ public function getMembershipDurationDays() { return $this->membershipDurationDays; } /** * @param string */ public function setSegment($segment) { $this->segment = $segment; } /** * @return string */ public function getSegment() { return $this->segment; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\IncludeConditions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_IncludeConditions'); google/apiclient-services/src/Analytics/Column.php000064400000003434150544704730016312 0ustar00attributes = $attributes; } /** * @return string[] */ public function getAttributes() { return $this->attributes; } /** * @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; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Column::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Column'); google/apiclient-services/src/Analytics/Segment.php000064400000006756150544704730016471 0ustar00created = $created; } /** * @return string */ public function getCreated() { return $this->created; } /** * @param string */ public function setDefinition($definition) { $this->definition = $definition; } /** * @return string */ public function getDefinition() { return $this->definition; } /** * @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 string */ public function setName($name) { $this->name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setSegmentId($segmentId) { $this->segmentId = $segmentId; } /** * @return string */ public function getSegmentId() { return $this->segmentId; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setUpdated($updated) { $this->updated = $updated; } /** * @return string */ public function getUpdated() { return $this->updated; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\Segment::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Segment'); google/apiclient-services/src/Analytics/GaDataColumnHeaders.php000064400000003547150544704730020655 0ustar00columnType = $columnType; } /** * @return string */ public function getColumnType() { return $this->columnType; } /** * @param string */ public function setDataType($dataType) { $this->dataType = $dataType; } /** * @return string */ public function getDataType() { return $this->dataType; } /** * @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\Analytics\GaDataColumnHeaders::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GaDataColumnHeaders'); google/apiclient-services/src/Analytics/Goals.php000064400000006706150544704730016127 0ustar00items = $items; } /** * @return Goal[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\Goals::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Goals'); google/apiclient-services/src/Analytics/AccountRef.php000064400000004012150544704730017077 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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 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\Analytics\AccountRef::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AccountRef'); google/apiclient-services/src/Analytics/GaDataDataTableCols.php000064400000003432150544704730020557 0ustar00id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setLabel($label) { $this->label = $label; } /** * @return string */ public function getLabel() { return $this->label; } /** * @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\Analytics\GaDataDataTableCols::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GaDataDataTableCols'); google/apiclient-services/src/Analytics/Filters.php000064400000006722150544704730016470 0ustar00items = $items; } /** * @return Filter[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\Filters::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Filters'); google/apiclient-services/src/Analytics/RealtimeDataProfileInfo.php000064400000005645150544704730021554 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setProfileId($profileId) { $this->profileId = $profileId; } /** * @return string */ public function getProfileId() { return $this->profileId; } /** * @param string */ public function setProfileName($profileName) { $this->profileName = $profileName; } /** * @return string */ public function getProfileName() { return $this->profileName; } /** * @param string */ public function setTableId($tableId) { $this->tableId = $tableId; } /** * @return string */ public function getTableId() { return $this->tableId; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RealtimeDataProfileInfo::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_RealtimeDataProfileInfo'); google/apiclient-services/src/Analytics/McfDataColumnHeaders.php000064400000003552150544704730021027 0ustar00columnType = $columnType; } /** * @return string */ public function getColumnType() { return $this->columnType; } /** * @param string */ public function setDataType($dataType) { $this->dataType = $dataType; } /** * @return string */ public function getDataType() { return $this->dataType; } /** * @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\Analytics\McfDataColumnHeaders::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_McfDataColumnHeaders'); google/apiclient-services/src/Analytics/UserRef.php000064400000003366150544704730016434 0ustar00email = $email; } /** * @return string */ public function getEmail() { return $this->email; } /** * @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; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UserRef::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_UserRef'); google/apiclient-services/src/Analytics/EntityAdWordsLinks.php000064400000006346150544704730020623 0ustar00items = $items; } /** * @return EntityAdWordsLink[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityAdWordsLinks::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_EntityAdWordsLinks'); google/apiclient-services/src/Analytics/CustomDataSourceChildLink.php000064400000003041150544704730022056 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\CustomDataSourceChildLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_CustomDataSourceChildLink'); google/apiclient-services/src/Analytics/ExperimentVariations.php000064400000004342150544704730021234 0ustar00name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * @param string */ public function setStatus($status) { $this->status = $status; } /** * @return string */ public function getStatus() { return $this->status; } /** * @param string */ public function setUrl($url) { $this->url = $url; } /** * @return string */ public function getUrl() { return $this->url; } public function setWeight($weight) { $this->weight = $weight; } public function getWeight() { return $this->weight; } /** * @param bool */ public function setWon($won) { $this->won = $won; } /** * @return bool */ public function getWon() { return $this->won; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ExperimentVariations::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_ExperimentVariations'); google/apiclient-services/src/Analytics/HashClientIdResponse.php000064400000004327150544704730021075 0ustar00clientId = $clientId; } /** * @return string */ public function getClientId() { return $this->clientId; } /** * @param string */ public function setHashedClientId($hashedClientId) { $this->hashedClientId = $hashedClientId; } /** * @return string */ public function getHashedClientId() { return $this->hashedClientId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\HashClientIdResponse::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_HashClientIdResponse'); google/apiclient-services/src/Analytics/RemarketingAudienceStateBasedAudienceDefinition.php000064400000004535150544704730026375 0ustar00excludeConditions = $excludeConditions; } /** * @return RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions */ public function getExcludeConditions() { return $this->excludeConditions; } /** * @param IncludeConditions */ public function setIncludeConditions(\Google\Site_Kit_Dependencies\Google\Service\Analytics\IncludeConditions $includeConditions) { $this->includeConditions = $includeConditions; } /** * @return IncludeConditions */ public function getIncludeConditions() { return $this->includeConditions; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\RemarketingAudienceStateBasedAudienceDefinition::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_RemarketingAudienceStateBasedAudienceDefinition'); google/apiclient-services/src/Analytics/WebpropertyPermissions.php000064400000002541150544704730021631 0ustar00effective = $effective; } /** * @return string[] */ public function getEffective() { return $this->effective; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\WebpropertyPermissions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_WebpropertyPermissions'); google/apiclient-services/src/Analytics/ProfileFilterLink.php000064400000005740150544704730020443 0ustar00filterRef = $filterRef; } /** * @return FilterRef */ public function getFilterRef() { return $this->filterRef; } /** * @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 ProfileRef */ public function setProfileRef(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileRef $profileRef) { $this->profileRef = $profileRef; } /** * @return ProfileRef */ public function getProfileRef() { return $this->profileRef; } /** * @param int */ public function setRank($rank) { $this->rank = $rank; } /** * @return int */ public function getRank() { return $this->rank; } /** * @param string */ public function setSelfLink($selfLink) { $this->selfLink = $selfLink; } /** * @return string */ public function getSelfLink() { return $this->selfLink; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileFilterLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_ProfileFilterLink'); google/apiclient-services/src/Analytics/LinkedForeignAccount.php000064400000010224150544704730021105 0ustar00accountId = $accountId; } /** * @return string */ public function getAccountId() { return $this->accountId; } /** * @param bool */ public function setEligibleForSearch($eligibleForSearch) { $this->eligibleForSearch = $eligibleForSearch; } /** * @return bool */ public function getEligibleForSearch() { return $this->eligibleForSearch; } /** * @param string */ public function setId($id) { $this->id = $id; } /** * @return string */ public function getId() { return $this->id; } /** * @param string */ public function setInternalWebPropertyId($internalWebPropertyId) { $this->internalWebPropertyId = $internalWebPropertyId; } /** * @return string */ public function getInternalWebPropertyId() { return $this->internalWebPropertyId; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setLinkedAccountId($linkedAccountId) { $this->linkedAccountId = $linkedAccountId; } /** * @return string */ public function getLinkedAccountId() { return $this->linkedAccountId; } /** * @param string */ public function setRemarketingAudienceId($remarketingAudienceId) { $this->remarketingAudienceId = $remarketingAudienceId; } /** * @return string */ public function getRemarketingAudienceId() { return $this->remarketingAudienceId; } /** * @param string */ public function setStatus($status) { $this->status = $status; } /** * @return string */ public function getStatus() { return $this->status; } /** * @param string */ public function setType($type) { $this->type = $type; } /** * @return string */ public function getType() { return $this->type; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\LinkedForeignAccount::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_LinkedForeignAccount'); google/apiclient-services/src/Analytics/AccountPermissions.php000064400000002525150544704730020705 0ustar00effective = $effective; } /** * @return string[] */ public function getEffective() { return $this->effective; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\AccountPermissions::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_AccountPermissions'); google/apiclient-services/src/Analytics/GaDataQuery.php000064400000010613150544704730017221 0ustar00 "end-date", "maxResults" => "max-results", "startDate" => "start-date", "startIndex" => "start-index"]; /** * @var string */ public $dimensions; /** * @var string */ public $endDate; /** * @var string */ public $filters; /** * @var string */ public $ids; /** * @var int */ public $maxResults; /** * @var string[] */ public $metrics; /** * @var string */ public $samplingLevel; /** * @var string */ public $segment; /** * @var string[] */ public $sort; /** * @var string */ public $startDate; /** * @var int */ public $startIndex; /** * @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 string */ public function setFilters($filters) { $this->filters = $filters; } /** * @return string */ public function getFilters() { return $this->filters; } /** * @param string */ public function setIds($ids) { $this->ids = $ids; } /** * @return string */ public function getIds() { return $this->ids; } /** * @param int */ public function setMaxResults($maxResults) { $this->maxResults = $maxResults; } /** * @return int */ public function getMaxResults() { return $this->maxResults; } /** * @param string[] */ public function setMetrics($metrics) { $this->metrics = $metrics; } /** * @return string[] */ public function getMetrics() { return $this->metrics; } /** * @param string */ public function setSamplingLevel($samplingLevel) { $this->samplingLevel = $samplingLevel; } /** * @return string */ public function getSamplingLevel() { return $this->samplingLevel; } /** * @param string */ public function setSegment($segment) { $this->segment = $segment; } /** * @return string */ public function getSegment() { return $this->segment; } /** * @param string[] */ public function setSort($sort) { $this->sort = $sort; } /** * @return string[] */ public function getSort() { return $this->sort; } /** * @param string */ public function setStartDate($startDate) { $this->startDate = $startDate; } /** * @return string */ public function getStartDate() { return $this->startDate; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\GaDataQuery::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_GaDataQuery'); google/apiclient-services/src/Analytics/Segments.php000064400000006730150544704730016644 0ustar00items = $items; } /** * @return Segment[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\Segments::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Segments'); google/apiclient-services/src/Analytics/Accounts.php000064400000006730150544704730016636 0ustar00items = $items; } /** * @return Account[] */ public function getItems() { return $this->items; } /** * @param int */ public function setItemsPerPage($itemsPerPage) { $this->itemsPerPage = $itemsPerPage; } /** * @return int */ public function getItemsPerPage() { return $this->itemsPerPage; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setNextLink($nextLink) { $this->nextLink = $nextLink; } /** * @return string */ public function getNextLink() { return $this->nextLink; } /** * @param string */ public function setPreviousLink($previousLink) { $this->previousLink = $previousLink; } /** * @return string */ public function getPreviousLink() { return $this->previousLink; } /** * @param int */ public function setStartIndex($startIndex) { $this->startIndex = $startIndex; } /** * @return int */ public function getStartIndex() { return $this->startIndex; } /** * @param int */ public function setTotalResults($totalResults) { $this->totalResults = $totalResults; } /** * @return int */ public function getTotalResults() { return $this->totalResults; } /** * @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\Analytics\Accounts::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_Accounts'); google/apiclient-services/src/Analytics/EntityUserLinkEntity.php000064400000004665150544704730021212 0ustar00accountRef = $accountRef; } /** * @return AccountRef */ public function getAccountRef() { return $this->accountRef; } /** * @param ProfileRef */ public function setProfileRef(\Google\Site_Kit_Dependencies\Google\Service\Analytics\ProfileRef $profileRef) { $this->profileRef = $profileRef; } /** * @return ProfileRef */ public function getProfileRef() { return $this->profileRef; } /** * @param WebPropertyRef */ public function setWebPropertyRef(\Google\Site_Kit_Dependencies\Google\Service\Analytics\WebPropertyRef $webPropertyRef) { $this->webPropertyRef = $webPropertyRef; } /** * @return WebPropertyRef */ public function getWebPropertyRef() { return $this->webPropertyRef; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\EntityUserLinkEntity::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_EntityUserLinkEntity'); google/apiclient-services/src/Analytics/UserDeletionRequest.php000064400000006073150544704730021032 0ustar00deletionRequestTime = $deletionRequestTime; } /** * @return string */ public function getDeletionRequestTime() { return $this->deletionRequestTime; } /** * @param string */ public function setFirebaseProjectId($firebaseProjectId) { $this->firebaseProjectId = $firebaseProjectId; } /** * @return string */ public function getFirebaseProjectId() { return $this->firebaseProjectId; } /** * @param UserDeletionRequestId */ public function setId(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UserDeletionRequestId $id) { $this->id = $id; } /** * @return UserDeletionRequestId */ public function getId() { return $this->id; } /** * @param string */ public function setKind($kind) { $this->kind = $kind; } /** * @return string */ public function getKind() { return $this->kind; } /** * @param string */ public function setPropertyId($propertyId) { $this->propertyId = $propertyId; } /** * @return string */ public function getPropertyId() { return $this->propertyId; } /** * @param string */ public function setWebPropertyId($webPropertyId) { $this->webPropertyId = $webPropertyId; } /** * @return string */ public function getWebPropertyId() { return $this->webPropertyId; } } // Adding a class alias for backwards compatibility with the previous class name. \class_alias(\Google\Site_Kit_Dependencies\Google\Service\Analytics\UserDeletionRequest::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_UserDeletionRequest'); google/apiclient-services/src/Analytics/FilterParentLink.php000064400000003006150544704730020265 0ustar00href = $href; } /** * @return string */ public function getHref() { return $this->href; } /** * @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\Analytics\FilterParentLink::class, 'Google\\Site_Kit_Dependencies\\Google_Service_Analytics_FilterParentLink'); google/apiclient-services/src/PagespeedInsights.php000064400000006105150544704730016532 0ustar00 * 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.

* *

* For more information about this service, see the API * Documentation *

* * @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; /** * 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->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'); google/apiclient-services/src/GoogleAnalyticsAdmin.php000064400000033554150544704730017171 0ustar00

* *

* For more information about this service, see the API * Documentation *

* * @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; /** * 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->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' => []], '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']]], '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']]]]]); $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']]]]]); } } // 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'); google/auth/renovate.json000064400000000106150544704730011505 0ustar00{ "extends": [ "config:base", ":preserveSemverRanges" ] } google/auth/autoload.php000064400000002212150544704730011310 0ustar00 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'); google/auth/src/HttpHandler/Guzzle7HttpHandler.php000064400000001412150544704730016212 0ustar00client = $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()); } } google/auth/src/HttpHandler/Guzzle6HttpHandler.php000064400000003734150544704730016222 0ustar00client = $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 = []) { 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 $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); } } google/auth/src/Iam.php000064400000006431150544704730011004 0ustar00httpHandler = $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 $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']; } } google/auth/src/GetQuotaProjectInterface.php000064400000001717150544704730015201 0ustar00quotaProject = (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 $metadata metadata hashmap * @param string $authUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * @return array 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 array|void A set of auth related metadata, containing the * following keys: * - access_token (string) */ 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 array('access_token' => $access_token); } /** * @return string */ public function getCacheKey() { return $this->auth->getCacheKey(); } /** * @return array */ 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; } } google/auth/src/Credentials/ServiceAccountCredentials.php000064400000024507150544704730017632 0ustar00push($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|null */ private $lastReceivedJwtAccessToken; /* * @var bool */ private $useJwtAccessWithScope = \false; /* * @var ServiceAccountJwtAccessCredentials|null */ private $jwtAccessCredentials; /** * Create a new ServiceAccountCredentials. * * @param string|array $scope the scope of the access request, expressed * either as an Array or as a space-delimited String. * @param string|array $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($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. */ public function useJwtAccessWithScope() { $this->useJwtAccessWithScope = \true; } /** * @param callable $httpHandler * * @return array A set of auth related metadata, containing the following * keys: * - access_token (string) * - expires_in (int) * - token_type (string) */ 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 */ 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 $metadata metadata hashmap * @param string $authUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * @return array 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; } private function createJwtAccessCredentials() { if (!$this->jwtAccessCredentials) { // Create credentials for self-signing a JWT (JwtAccess) $credJson = array('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. */ 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; } 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()); } } google/auth/src/Credentials/AppIdentityCredentials.php000064400000016147150544704730017150 0ustar00push($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 */ protected $lastReceivedToken; /** * Array of OAuth2 scopes to be requested. * * @var array */ private $scope; /** * @var string */ private $clientName; /** * @param array $scope One or more scopes. */ public function __construct($scope = array()) { $this->scope = $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 A set of auth related metadata, containing the following * keys: * - access_token (string) * - expiration_time (string) */ public function fetchAuthToken(callable $httpHandler = null) { try { $this->checkAppEngineContext(); } catch (\Exception $e) { return []; } // AppIdentityService expects an array when multiple scopes are supplied $scope = \is_array($this->scope) ? $this->scope : \explode(' ', $this->scope); $token = \Google\Site_Kit_Dependencies\google\appengine\api\app_identity\AppIdentityService::getAccessToken($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(); 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 $httpHander = null) { try { $this->checkAppEngineContext(); } catch (\Exception $e) { return null; } 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) { $this->clientName = \Google\Site_Kit_Dependencies\google\appengine\api\app_identity\AppIdentityService::getServiceAccountName(); } return $this->clientName; } /** * @return array|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 ''; } 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'); } } } google/auth/src/Credentials/GCECredentials.php000064400000041530150544704730015306 0ustar00push($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 { // 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. */ protected $lastReceivedToken; /** * @var string|null */ private $clientName; /** * @var string|null */ private $projectId; /** * @var Iam|null */ private $iam; /** * @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|array $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(\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 A set of auth related metadata, based on the token type. * * Access tokens have the following keys: * - access_token (string) * - expires_in (int) * - token_type (string) * ID tokens have the following keys: * - id_token (string) * * @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 array(); // 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|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; } /** * 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 */ 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); } /** * 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; } } google/auth/src/Credentials/IAMCredentials.php000064400000004575150544704730015326 0ustar00selector = $selector; $this->token = $token; } /** * export a callback function which updates runtime metadata. * * @return array updateMetadata function */ public function getUpdateMetadataFunc() { return array($this, 'updateMetadata'); } /** * Updates metadata with the appropriate header metadata. * * @param array $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 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; } } google/auth/src/Credentials/InsecureCredentials.php000064400000003612150544704730016464 0ustar00 '']; /** * Fetches the auth token. In this case it returns an empty string. * * @param callable $httpHandler * @return array A set of auth related metadata, containing the following * keys: * - access_token (string) */ 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 */ public function getLastReceivedToken() { return $this->token; } } google/auth/src/Credentials/UserRefreshCredentials.php000064400000010222150544704730017137 0ustar00auth = 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 A set of auth related metadata, containing the following * keys: * - access_token (string) * - expires_in (int) * - scope (string) * - token_type (string) * - id_token (string) */ 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 */ 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; } } google/auth/src/SignBlobInterface.php000064400000003102150544704730013606 0ustar00fetcher = $fetcher; $this->cache = $cache; $this->cacheConfig = \array_merge(['lifetime' => 1500, 'prefix' => ''], (array) $cacheConfig); } /** * 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 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|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(); } } /* * 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 $metadata metadata hashmap * @param string $authUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * @return array 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; } 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() < $cached['expires_at']) { // access token is not expired return $cached; } } return null; } 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); } } } google/auth/src/CredentialsLoader.php000064400000024756150544704730013674 0ustar00setDefaultOption('auth', 'google_auth'); $subscriber = new \Google\Site_Kit_Dependencies\Google\Auth\Subscriber\AuthTokenSubscriber($fetcher, $httpHandler, $tokenCallback); $client->getEmitter()->attach($subscriber); return $client; } $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 array updateMetadata function * @deprecated */ public function getUpdateMetadataFunc() { return array($this, 'updateMetadata'); } /** * Updates metadata with the authorization token. * * @param array $metadata metadata hashmap * @param string $authUri optional auth uri * @param callable $httpHandler callback which delivers psr7 request * @return array 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); if (!isset($result['access_token'])) { return $metadata; } $metadata_copy = $metadata; $metadata_copy[self::AUTH_METADATA_KEY] = array('Bearer ' . $result['access_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); } 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($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; } } google/auth/src/CacheTrait.php000064400000004222150544704730012301 0ustar00cache)) { return; } $key = $this->getFullCacheKey($k); if (\is_null($key)) { return; } $cacheItem = $this->cache->getItem($key); if ($cacheItem->isHit()) { return $cacheItem->get(); } } /** * Saves the value in the cache when that is available. */ private function setCachedValue($k, $v) { if (\is_null($this->cache)) { return; } $key = $this->getFullCacheKey($k); if (\is_null($key)) { return; } $cacheItem = $this->cache->getItem($key); $cacheItem->set($v); $cacheItem->expiresAfter($this->cacheConfig['lifetime']); return $this->cache->save($cacheItem); } private function getFullCacheKey($key) { if (\is_null($key)) { return; } $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; } } google/auth/src/OAuth2.php000064400000107760150544704730011407 0ustar00 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 lower than 3.0.0, if * `$publicKey` is null, the key is decoded without being verified. In * newer versions, if a public key is not given, this method will throw an * `\InvalidArgumentException`. * * @param string $publicKey The public key to use to authenticate the token * @param array $allowed_algs List of supported verification algorithms * @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 SignatureInvalidException If the signature is invalid. * @throws BeforeValidException If the token is not yet valid. * @throws ExpiredException If the token has expired. * @return null|object */ public function verifyIdToken($publicKey = null, $allowed_algs = array()) { $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 $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 $this->jwtEncode($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 = array('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 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); 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 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 = array(); \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 $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. */ public function updateToken(array $config) { $opts = \array_merge(['extensionParams' => [], 'access_token' => null, 'id_token' => null, 'expires_in' => null, 'expires_at' => null, 'issued_at' => 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 $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 */ 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 string */ public function getTokenCredentialUri() { return $this->tokenCredentialUri; } /** * Sets the authorization server's HTTP endpoint capable of issuing tokens * and refreshing expired tokens. * * @param string $uri */ 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 */ 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 $scope * @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 $grantType * @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 */ public function setState($state) { $this->state = $state; } /** * Gets the authorization code issued to this client. */ public function getCode() { return $this->code; } /** * Sets the authorization code issued to this client. * * @param string $code */ public function setCode($code) { $this->code = $code; } /** * Gets the resource owner's username. */ public function getUsername() { return $this->username; } /** * Sets the resource owner's username. * * @param string $username */ public function setUsername($username) { $this->username = $username; } /** * Gets the resource owner's password. */ public function getPassword() { return $this->password; } /** * Sets the resource owner's password. * * @param $password */ public function setPassword($password) { $this->password = $password; } /** * Sets a unique identifier issued to the client to identify itself to the * authorization server. */ public function getClientId() { return $this->clientId; } /** * Sets a unique identifier issued to the client to identify itself to the * authorization server. * * @param $clientId */ public function setClientId($clientId) { $this->clientId = $clientId; } /** * Gets a shared symmetric secret issued by the authorization server, which * is used to authenticate the client. */ public function getClientSecret() { return $this->clientSecret; } /** * Sets a shared symmetric secret issued by the authorization server, which * is used to authenticate the client. * * @param $clientSecret */ public function setClientSecret($clientSecret) { $this->clientSecret = $clientSecret; } /** * Gets the Issuer ID when using assertion profile. */ public function getIssuer() { return $this->issuer; } /** * Sets the Issuer ID when using assertion profile. * * @param string $issuer */ public function setIssuer($issuer) { $this->issuer = $issuer; } /** * Gets the target sub when issuing assertions. */ public function getSub() { return $this->sub; } /** * Sets the target sub when issuing assertions. * * @param string $sub */ public function setSub($sub) { $this->sub = $sub; } /** * Gets the target audience when issuing assertions. */ public function getAudience() { return $this->audience; } /** * Sets the target audience when issuing assertions. * * @param string $audience */ public function setAudience($audience) { $this->audience = $audience; } /** * Gets the signing key when using an assertion profile. */ public function getSigningKey() { return $this->signingKey; } /** * Sets the signing key when using an assertion profile. * * @param string $signingKey */ 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 */ 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 */ 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. */ public function getExtensionParams() { return $this->extensionParams; } /** * Sets the set of parameters used by extension when using an extension * grant type. * * @param $extensionParams */ public function setExtensionParams($extensionParams) { $this->extensionParams = $extensionParams; } /** * Gets the number of seconds assertions are valid for. */ public function getExpiry() { return $this->expiry; } /** * Sets the number of seconds assertions are valid for. * * @param int $expiry */ public function setExpiry($expiry) { $this->expiry = $expiry; } /** * Gets the lifetime of the access token in seconds. */ public function getExpiresIn() { return $this->expiresIn; } /** * Sets the lifetime of the access token in seconds. * * @param int $expiresIn */ 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 */ public function setExpiresAt($expiresAt) { $this->expiresAt = $expiresAt; } /** * Gets the time the current access token was issued at. */ public function getIssuedAt() { return $this->issuedAt; } /** * Sets the time the current access token was issued at. * * @param int $issuedAt */ public function setIssuedAt($issuedAt) { $this->issuedAt = $issuedAt; } /** * Gets the current access token. */ public function getAccessToken() { return $this->accessToken; } /** * Sets the current access token. * * @param string $accessToken */ public function setAccessToken($accessToken) { $this->accessToken = $accessToken; } /** * Gets the current ID token. */ public function getIdToken() { return $this->idToken; } /** * Sets the current ID token. * * @param $idToken */ public function setIdToken($idToken) { $this->idToken = $idToken; } /** * Gets the refresh token associated with the current access token. */ public function getRefreshToken() { return $this->refreshToken; } /** * Sets the refresh token associated with the current access token. * * @param $refreshToken */ public function setRefreshToken($refreshToken) { $this->refreshToken = $refreshToken; } /** * Sets additional claims to be included in the JWT token * * @param array $additionalClaims */ public function setAdditionalClaims(array $additionalClaims) { $this->additionalClaims = $additionalClaims; } /** * Gets the additional claims to be included in the JWT token. * * @return array */ public function getAdditionalClaims() { return $this->additionalClaims; } /** * The expiration of the last received token. * * @return array|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; } return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::uriFor($uri); } /** * @param string $idToken * @param string|array|null $publicKey * @param array $allowedAlgs * @return object */ private function jwtDecode($idToken, $publicKey, $allowedAlgs) { if (\class_exists('Google\\Site_Kit_Dependencies\\Firebase\\JWT\\JWT')) { return \Google\Site_Kit_Dependencies\Firebase\JWT\JWT::decode($idToken, $publicKey, $allowedAlgs); } return \Google\Site_Kit_Dependencies\JWT::decode($idToken, $publicKey, $allowedAlgs); } private function jwtEncode($assertion, $signingKey, $signingAlgorithm, $signingKeyId = null) { if (\class_exists('Google\\Site_Kit_Dependencies\\Firebase\\JWT\\JWT')) { return \Google\Site_Kit_Dependencies\Firebase\JWT\JWT::encode($assertion, $signingKey, $signingAlgorithm, $signingKeyId); } return \Google\Site_Kit_Dependencies\JWT::encode($assertion, $signingKey, $signingAlgorithm, $signingKeyId); } /** * 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 $params * @return array */ private function addClientCredentials(&$params) { $clientId = $this->getClientId(); $clientSecret = $this->getClientSecret(); if ($clientId && $clientSecret) { $params['client_id'] = $clientId; $params['client_secret'] = $clientSecret; } return $params; } } google/auth/src/FetchAuthTokenInterface.php000064400000003207150544704730014771 0ustar00getItems([$key])); } /** * {@inheritdoc} */ public function getItems(array $keys = []) { $items = []; foreach ($keys as $key) { $items[$key] = $this->hasItem($key) ? clone $this->items[$key] : new \Google\Site_Kit_Dependencies\Google\Auth\Cache\Item($key); } return $items; } /** * {@inheritdoc} */ public function hasItem($key) { $this->isValidKey($key); return isset($this->items[$key]) && $this->items[$key]->isHit(); } /** * {@inheritdoc} */ public function clear() { $this->items = []; $this->deferredItems = []; return \true; } /** * {@inheritdoc} */ public function deleteItem($key) { return $this->deleteItems([$key]); } /** * {@inheritdoc} */ public function deleteItems(array $keys) { \array_walk($keys, [$this, 'isValidKey']); foreach ($keys as $key) { unset($this->items[$key]); } return \true; } /** * {@inheritdoc} */ public function save(\Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface $item) { $this->items[$item->getKey()] = $item; return \true; } /** * {@inheritdoc} */ public function saveDeferred(\Google\Site_Kit_Dependencies\Psr\Cache\CacheItemInterface $item) { $this->deferredItems[$item->getKey()] = $item; return \true; } /** * {@inheritdoc} */ public function commit() { 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; } } google/auth/src/Cache/InvalidArgumentException.php000064400000001612150544704730016245 0ustar00options = $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']); } public function getItem($key) { $this->loadItems(); return \current($this->getItems([$key])); } /** * {@inheritdoc} */ public function getItems(array $keys = []) { $this->loadItems(); $items = []; foreach ($keys as $key) { $items[$key] = $this->hasItem($key) ? clone $this->items[$key] : new \Google\Site_Kit_Dependencies\Google\Auth\Cache\Item($key); } return $items; } /** * {@inheritdoc} */ public function hasItem($key) { $this->loadItems(); return isset($this->items[$key]) && $this->items[$key]->isHit(); } /** * {@inheritdoc} */ public function clear() { $this->items = []; $this->deferredItems = []; return $this->saveCurrentItems(); } /** * {@inheritdoc} */ public function deleteItem($key) { return $this->deleteItems([$key]); } /** * {@inheritdoc} */ public function deleteItems(array $keys) { 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) { 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) { $this->deferredItems[$item->getKey()] = $item; return \true; } /** * {@inheritdoc} */ public function commit() { 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; } } google/auth/src/Cache/Item.php000064400000010254150544704730012175 0ustar00key = $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; } $implementationMessage = \interface_exists('DateTimeInterface') ? 'implement interface DateTimeInterface' : 'be an instance of DateTime'; $error = \sprintf('Argument 1 passed to %s::expiresAt() must %s, %s given', \get_class($this), $implementationMessage, \gettype($expiration)); $this->handleError($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)); $this->handleError($error); } return $this; } /** * Handles an error. * * @param string $error * @throws \TypeError */ private function handleError($error) { if (\class_exists('TypeError')) { throw new \TypeError($error); } \trigger_error($error, \E_USER_ERROR); } /** * 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; } if ($expiration instanceof \DateTime) { return \true; } return \false; } protected function currentTime() { return new \DateTime('now', new \DateTimeZone('UTC')); } } google/auth/src/ApplicationDefaultCredentials.php000064400000034333150544704730016226 0ustar00push($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 { /** * 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|array 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 $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($scope = null, callable $httpHandler = null, array $cacheConfig = null, \Google\Site_Kit_Dependencies\Psr\Cache\CacheItemPoolInterface $cache = null) { $creds = self::getCredentials($scope, $httpHandler, $cacheConfig, $cache); 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|array 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 $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|array $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 $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|array $defaultScope The default scope to use if no * user-defined scopes exist, expressed either as an Array or as a * space-delimited string. * * @return CredentialsLoader * @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); } 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 $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 $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 $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 CredentialsLoader * @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); } 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; } private static function notFound() { $msg = 'Could not load the default credentials. Browse to '; $msg .= 'https://developers.google.com'; $msg .= '/accounts/docs/application-default-credentials'; $msg .= ' for more information'; return $msg; } 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); } } google/auth/src/GCECache.php000064400000005147150544704730011623 0ustar00cache = $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; } } google/auth/src/AccessToken.php000064400000044110150544704730012474 0ustar00httpHandler = $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 $options [optional] Configuration options. * @param string $options.audience The indended recipient of the token. * @param string $options.issuer The intended issuer of the token. * @param string $options.cacheKey The cache key of the cached certs. Defaults to * the sha1 of $certsLocation if provided, otherwise is set to * "federated_signon_certs_v3". * @param string $options.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. * @param bool $options.throwException Whether the function should throw an * exception if the verification fails. This is useful for * determining the reason verification failed. * @return array|bool 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 3+ } catch (\Google\Site_Kit_Dependencies\ExpiredException $e) { // firebase/php-jwt 2 } catch (\Google\Site_Kit_Dependencies\Firebase\JWT\SignatureInvalidException $e) { // firebase/php-jwt 3+ } catch (\Google\Site_Kit_Dependencies\SignatureInvalidException $e) { // firebase/php-jwt 2 } catch (\Google\Site_Kit_Dependencies\SimpleJWT\InvalidTokenException $e) { // simplejwt } catch (\Google\Site_Kit_Dependencies\Google\Auth\DomainException $e) { } 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 $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 $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|bool 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 (isset($payload['aud'])) { if ($audience && $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 $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|bool 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'); } $rsa = new \Google\Site_Kit_Dependencies\phpseclib\Crypt\RSA(); $rsa->loadKey(['n' => new \Google\Site_Kit_Dependencies\phpseclib\Math\BigInteger($this->callJwtStatic('urlsafeB64Decode', [$cert['n']]), 256), 'e' => new \Google\Site_Kit_Dependencies\phpseclib\Math\BigInteger($this->callJwtStatic('urlsafeB64Decode', [$cert['e']]), 256)]); // create an array of key IDs to certs for the JWT library $keys[$cert['kid']] = $rsa->getPublicKey(); } $payload = $this->callJwtStatic('decode', [$token, $keys, ['RS256']]); if (\property_exists($payload, 'aud')) { if ($audience && $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 $token The token (access token or a refresh token) that should be revoked. * @param array $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 $options [optional] Configuration options. * @return array * @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 $url string location * @param array $options [optional] Configuration options. * @return array 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(\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()); } private function checkAndInitializePhpsec() { // @codeCoverageIgnoreStart if (!\class_exists('Google\\Site_Kit_Dependencies\\phpseclib\\Crypt\\RSA')) { throw new \RuntimeException('Please require phpseclib/phpseclib v2 to use this utility.'); } // @codeCoverageIgnoreEnd $this->setPhpsecConstants(); } private function checkSimpleJwt() { // @codeCoverageIgnoreStart if (!\class_exists('Google\\Site_Kit_Dependencies\\SimpleJWT\\JWT')) { throw new \RuntimeException('Please require kelvinmo/simplejwt ^0.2 to use this utility.'); } // @codeCoverageIgnoreEnd } /** * 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 */ 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', \Google\Site_Kit_Dependencies\phpseclib\Crypt\RSA::MODE_OPENSSL); } } } /** * Provide a hook to mock calls to the JWT static methods. * * @param string $method * @param array $args * @return mixed */ protected function callJwtStatic($method, array $args = []) { $class = \class_exists('Google\\Site_Kit_Dependencies\\Firebase\\JWT\\JWT') ? 'Firebase\\JWT\\JWT' : 'JWT'; return \call_user_func_array([$class, $method], $args); } /** * Provide a hook to mock calls to the JWT static methods. * * @param array $args * @return mixed */ protected function callSimpleJwtDecode(array $args = []) { return \call_user_func_array(['SimpleJWT\\JWT', '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; } } google/auth/src/Middleware/AuthTokenMiddleware.php000064400000011142150544704730016246 0ustar00' */ class AuthTokenMiddleware { /** * @var callback */ 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 = [...]; * $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 */ 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']; } } private function getQuotaProject() { if ($this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface) { return $this->fetcher->getQuotaProject(); } } } google/auth/src/Middleware/SimpleMiddleware.php000064400000005764150544704730015612 0ustar00config = \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); }; } } google/auth/src/Middleware/ProxyAuthTokenMiddleware.php000064400000011237150544704730017315 0ustar00' */ class ProxyAuthTokenMiddleware { /** * @var callback */ 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 = [...]; * $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 */ 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']; } } private function getQuotaProject() { if ($this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface) { return $this->fetcher->getQuotaProject(); } } } google/auth/src/Middleware/ScopedAccessTokenMiddleware.php000064400000012060150544704730017704 0ustar00' */ class ScopedAccessTokenMiddleware { use CacheTrait; const DEFAULT_CACHE_LIFETIME = 1500; /** * @var CacheItemPoolInterface */ private $cache; /** * @var array configuration */ private $cacheConfig; /** * @var callable */ private $tokenFunc; /** * @var array|string */ private $scopes; /** * Creates a new ScopedAccessTokenMiddleware. * * @param callable $tokenFunc a token generator function * @param array|string $scopes the token authentication scopes * @param array $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; } } google/auth/src/ProjectIdProviderInterface.php000064400000001737150544704730015521 0ustar00' */ class AuthTokenSubscriber implements \Google\Site_Kit_Dependencies\GuzzleHttp\Event\SubscriberInterface { /** * @var callable */ private $httpHandler; /** * @var FetchAuthTokenInterface */ private $fetcher; /** * @var callable */ private $tokenCallback; /** * Creates a new AuthTokenSubscriber. * * @param FetchAuthTokenInterface $fetcher is used to fetch the auth token * @param callable $httpHandler (optional) http client to fetch the token. * @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; } /** * @return array */ public function getEvents() { return ['before' => ['onBefore', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::SIGN_REQUEST]]; } /** * Updates the request with an Authorization header when auth is 'fetched_auth_token'. * * Example: * ``` * use GuzzleHttp\Client; * use Google\Auth\OAuth2; * use Google\Auth\Subscriber\AuthTokenSubscriber; * * $config = [...]; * $oauth2 = new OAuth2($config) * $subscriber = new AuthTokenSubscriber($oauth2); * * $client = new Client([ * 'base_url' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/', * 'defaults' => ['auth' => 'google_auth'] * ]); * $client->getEmitter()->attach($subscriber); * * $res = $client->get('myproject/taskqueues/myqueue'); * ``` * * @param BeforeEvent $event */ public function onBefore(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\BeforeEvent $event) { // Requests using "auth"="google_auth" will be authorized. $request = $event->getRequest(); if ($request->getConfig()['auth'] != 'google_auth') { return; } // Fetch the auth token. $auth_tokens = $this->fetcher->fetchAuthToken($this->httpHandler); if (\array_key_exists('access_token', $auth_tokens)) { $request->setHeader('authorization', 'Bearer ' . $auth_tokens['access_token']); // notify the callback if applicable if ($this->tokenCallback) { \call_user_func($this->tokenCallback, $this->fetcher->getCacheKey(), $auth_tokens['access_token']); } } if ($quotaProject = $this->getQuotaProject()) { $request->setHeader(\Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface::X_GOOG_USER_PROJECT_HEADER, $quotaProject); } } private function getQuotaProject() { if ($this->fetcher instanceof \Google\Site_Kit_Dependencies\Google\Auth\GetQuotaProjectInterface) { return $this->fetcher->getQuotaProject(); } } } google/auth/src/Subscriber/SimpleSubscriber.php000064400000005474150544704730015664 0ustar00config = \array_merge([], $config); } /** * @return array */ public function getEvents() { return ['before' => ['onBefore', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::SIGN_REQUEST]]; } /** * Updates the request query with the developer key if auth is set to simple. * * Example: * ``` * use Google\Auth\Subscriber\SimpleSubscriber; * use GuzzleHttp\Client; * * $my_key = 'is not the same as yours'; * $subscriber = new SimpleSubscriber(['key' => $my_key]); * * $client = new Client([ * 'base_url' => 'https://www.googleapis.com/discovery/v1/', * 'defaults' => ['auth' => 'simple'] * ]); * $client->getEmitter()->attach($subscriber); * * $res = $client->get('drive/v2/rest'); * ``` * * @param BeforeEvent $event */ public function onBefore(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\BeforeEvent $event) { // Requests using "auth"="simple" with the developer key. $request = $event->getRequest(); if ($request->getConfig()['auth'] != 'simple') { return; } $request->getQuery()->overwriteWith($this->config); } } google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php000064400000012367150544704730017772 0ustar00' */ class ScopedAccessTokenSubscriber implements \Google\Site_Kit_Dependencies\GuzzleHttp\Event\SubscriberInterface { use CacheTrait; const DEFAULT_CACHE_LIFETIME = 1500; /** * @var CacheItemPoolInterface */ private $cache; /** * @var callable The access token generator function */ private $tokenFunc; /** * @var array|string The scopes used to generate the token */ private $scopes; /** * @var array */ private $cacheConfig; /** * Creates a new ScopedAccessTokenSubscriber. * * @param callable $tokenFunc a token generator function * @param array|string $scopes the token authentication scopes * @param array $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); } } /** * @return array */ public function getEvents() { return ['before' => ['onBefore', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::SIGN_REQUEST]]; } /** * Updates the request with an Authorization header when auth is 'scoped'. * * E.g this could be used to authenticate using the AppEngine AppIdentityService. * * Example: * ``` * use google\appengine\api\app_identity\AppIdentityService; * use Google\Auth\Subscriber\ScopedAccessTokenSubscriber; * use GuzzleHttp\Client; * * $scope = 'https://www.googleapis.com/auth/taskqueue' * $subscriber = new ScopedAccessToken( * 'AppIdentityService::getAccessToken', * $scope, * ['prefix' => 'Google\Auth\ScopedAccessToken::'], * $cache = new Memcache() * ); * * $client = new Client([ * 'base_url' => 'https://www.googleapis.com/taskqueue/v1beta2/projects/', * 'defaults' => ['auth' => 'scoped'] * ]); * $client->getEmitter()->attach($subscriber); * * $res = $client->get('myproject/taskqueues/myqueue'); * ``` * * @param BeforeEvent $event */ public function onBefore(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\BeforeEvent $event) { // Requests using "auth"="scoped" will be authorized. $request = $event->getRequest(); if ($request->getConfig()['auth'] != 'scoped') { return; } $auth_header = 'Bearer ' . $this->fetchToken(); $request->setHeader('authorization', $auth_header); } /** * @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; } } google/auth/src/ServiceAccountSignerTrait.php000064400000003752150544704730015372 0ustar00auth->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); } } google/auth/COPYING000064400000026116150544704730010033 0ustar00 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. guzzlehttp/ringphp/src/Client/ClientUtils.php000064400000005367150544704730015434 0ustar00result = $result; } public function __invoke(array $request) { \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::doSleep($request); $response = \is_callable($this->result) ? \call_user_func($this->result, $request) : $this->result; if (\is_array($response)) { $response = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\CompletedFutureArray($response + ['status' => null, 'body' => null, 'headers' => [], 'reason' => null, 'effective_url' => null]); } elseif (!$response instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\FutureArrayInterface) { throw new \InvalidArgumentException('Response must be an array or FutureArrayInterface. Found ' . \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::describeType($request)); } return $response; } } guzzlehttp/ringphp/src/Client/CurlFactory.php000064400000047246150544704730015434 0ustar00getDefaultOptions($request, $headers); $this->applyMethod($request, $options); if (isset($request['client'])) { $this->applyHandlerOptions($request, $options); } $this->applyHeaders($request, $options); unset($options['_headers']); // Add handler options from the request's configuration options if (isset($request['client']['curl'])) { $options = $this->applyCustomCurlOptions($request['client']['curl'], $options); } if (!$handle) { $handle = \curl_init(); } $body = $this->getOutputBody($request, $options); \curl_setopt_array($handle, $options); return [$handle, &$headers, $body]; } /** * Creates a response hash from a cURL result. * * @param callable $handler Handler that was used. * @param array $request Request that sent. * @param array $response Response hash to update. * @param array $headers Headers received during transfer. * @param resource $body Body fopen response. * * @return array */ public static function createResponse(callable $handler, array $request, array $response, array $headers, $body) { if (isset($response['transfer_stats']['url'])) { $response['effective_url'] = $response['transfer_stats']['url']; } if (!empty($headers)) { $startLine = \explode(' ', \array_shift($headers), 3); $headerList = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::headersFromLines($headers); $response['headers'] = $headerList; $response['version'] = isset($startLine[0]) ? \substr($startLine[0], 5) : null; $response['status'] = isset($startLine[1]) ? (int) $startLine[1] : null; $response['reason'] = isset($startLine[2]) ? $startLine[2] : null; $response['body'] = $body; \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::rewindBody($response); } return !empty($response['curl']['errno']) || !isset($response['status']) ? self::createErrorResponse($handler, $request, $response) : $response; } private static function createErrorResponse(callable $handler, array $request, array $response) { static $connectionErrors = [\CURLE_OPERATION_TIMEOUTED => \true, \CURLE_COULDNT_RESOLVE_HOST => \true, \CURLE_COULDNT_CONNECT => \true, \CURLE_SSL_CONNECT_ERROR => \true, \CURLE_GOT_NOTHING => \true]; // Retry when nothing is present or when curl failed to rewind. if (!isset($response['err_message']) && (empty($response['curl']['errno']) || $response['curl']['errno'] == 65)) { return self::retryFailedRewind($handler, $request, $response); } $message = isset($response['err_message']) ? $response['err_message'] : \sprintf('cURL error %s: %s', $response['curl']['errno'], isset($response['curl']['error']) ? $response['curl']['error'] : 'See http://curl.haxx.se/libcurl/c/libcurl-errors.html'); $error = isset($response['curl']['errno']) && isset($connectionErrors[$response['curl']['errno']]) ? new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\ConnectException($message) : new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\RingException($message); return $response + ['status' => null, 'reason' => null, 'body' => null, 'headers' => [], 'error' => $error]; } private function getOutputBody(array $request, array &$options) { // Determine where the body of the response (if any) will be streamed. if (isset($options[\CURLOPT_WRITEFUNCTION])) { return $request['client']['save_to']; } if (isset($options[\CURLOPT_FILE])) { return $options[\CURLOPT_FILE]; } if ($request['http_method'] != 'HEAD') { // Create a default body if one was not provided return $options[\CURLOPT_FILE] = \fopen('php://temp', 'w+'); } return null; } private function getDefaultOptions(array $request, array &$headers) { $url = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::url($request); $startingResponse = \false; $options = ['_headers' => $request['headers'], \CURLOPT_CUSTOMREQUEST => $request['http_method'], \CURLOPT_URL => $url, \CURLOPT_RETURNTRANSFER => \false, \CURLOPT_HEADER => \false, \CURLOPT_CONNECTTIMEOUT => 150, \CURLOPT_HEADERFUNCTION => function ($ch, $h) use(&$headers, &$startingResponse) { $value = \trim($h); if ($value === '') { $startingResponse = \true; } elseif ($startingResponse) { $startingResponse = \false; $headers = [$value]; } else { $headers[] = $value; } return \strlen($h); }]; if (isset($request['version'])) { if ($request['version'] == 2.0) { $options[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_2_0; } else { if ($request['version'] == 1.1) { $options[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_1; } else { $options[\CURLOPT_HTTP_VERSION] = \CURL_HTTP_VERSION_1_0; } } } if (\defined('CURLOPT_PROTOCOLS')) { $options[\CURLOPT_PROTOCOLS] = \CURLPROTO_HTTP | \CURLPROTO_HTTPS; } return $options; } private function applyMethod(array $request, array &$options) { if (isset($request['body'])) { $this->applyBody($request, $options); return; } switch ($request['http_method']) { case 'PUT': case 'POST': // See http://tools.ietf.org/html/rfc7230#section-3.3.2 if (!\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::hasHeader($request, 'Content-Length')) { $options[\CURLOPT_HTTPHEADER][] = 'Content-Length: 0'; } break; case 'HEAD': $options[\CURLOPT_NOBODY] = \true; unset($options[\CURLOPT_WRITEFUNCTION], $options[\CURLOPT_READFUNCTION], $options[\CURLOPT_FILE], $options[\CURLOPT_INFILE]); } } private function applyBody(array $request, array &$options) { $contentLength = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::firstHeader($request, 'Content-Length'); $size = $contentLength !== null ? (int) $contentLength : null; // Send the body as a string if the size is less than 1MB OR if the // [client][curl][body_as_string] request value is set. if ($size !== null && $size < 1000000 || isset($request['client']['curl']['body_as_string']) || \is_string($request['body'])) { $options[\CURLOPT_POSTFIELDS] = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::body($request); // Don't duplicate the Content-Length header $this->removeHeader('Content-Length', $options); $this->removeHeader('Transfer-Encoding', $options); } else { $options[\CURLOPT_UPLOAD] = \true; if ($size !== null) { // Let cURL handle setting the Content-Length header $options[\CURLOPT_INFILESIZE] = $size; $this->removeHeader('Content-Length', $options); } $this->addStreamingBody($request, $options); } // If the Expect header is not present, prevent curl from adding it if (!\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::hasHeader($request, 'Expect')) { $options[\CURLOPT_HTTPHEADER][] = 'Expect:'; } // cURL sometimes adds a content-type by default. Prevent this. if (!\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::hasHeader($request, 'Content-Type')) { $options[\CURLOPT_HTTPHEADER][] = 'Content-Type:'; } } private function addStreamingBody(array $request, array &$options) { $body = $request['body']; if ($body instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface) { $options[\CURLOPT_READFUNCTION] = function ($ch, $fd, $length) use($body) { return (string) $body->read($length); }; if (!isset($options[\CURLOPT_INFILESIZE])) { if ($size = $body->getSize()) { $options[\CURLOPT_INFILESIZE] = $size; } } } elseif (\is_resource($body)) { $options[\CURLOPT_INFILE] = $body; } elseif ($body instanceof \Iterator) { $buf = ''; $options[\CURLOPT_READFUNCTION] = function ($ch, $fd, $length) use($body, &$buf) { if ($body->valid()) { $buf .= $body->current(); $body->next(); } $result = (string) \substr($buf, 0, $length); $buf = \substr($buf, $length); return $result; }; } else { throw new \InvalidArgumentException('Invalid request body provided'); } } private function applyHeaders(array $request, array &$options) { foreach ($options['_headers'] as $name => $values) { foreach ($values as $value) { $options[\CURLOPT_HTTPHEADER][] = "{$name}: {$value}"; } } // Remove the Accept header if one was not set if (!\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::hasHeader($request, 'Accept')) { $options[\CURLOPT_HTTPHEADER][] = 'Accept:'; } } /** * Takes an array of curl options specified in the 'curl' option of a * request's configuration array and maps them to CURLOPT_* options. * * This method is only called when a request has a 'curl' config setting. * * @param array $config Configuration array of custom curl option * @param array $options Array of existing curl options * * @return array Returns a new array of curl options */ private function applyCustomCurlOptions(array $config, array $options) { $curlOptions = []; foreach ($config as $key => $value) { if (\is_int($key)) { $curlOptions[$key] = $value; } } return $curlOptions + $options; } /** * Remove a header from the options array. * * @param string $name Case-insensitive header to remove * @param array $options Array of options to modify */ private function removeHeader($name, array &$options) { foreach (\array_keys($options['_headers']) as $key) { if (!\strcasecmp($key, $name)) { unset($options['_headers'][$key]); return; } } } /** * Applies an array of request client options to a the options array. * * This method uses a large switch rather than double-dispatch to save on * high overhead of calling functions in PHP. */ private function applyHandlerOptions(array $request, array &$options) { foreach ($request['client'] as $key => $value) { switch ($key) { // Violating PSR-4 to provide more room. case 'verify': if ($value === \false) { unset($options[\CURLOPT_CAINFO]); $options[\CURLOPT_SSL_VERIFYHOST] = 0; $options[\CURLOPT_SSL_VERIFYPEER] = \false; continue 2; } $options[\CURLOPT_SSL_VERIFYHOST] = 2; $options[\CURLOPT_SSL_VERIFYPEER] = \true; if (\is_string($value)) { $options[\CURLOPT_CAINFO] = $value; if (!\file_exists($value)) { throw new \InvalidArgumentException("SSL CA bundle not found: {$value}"); } } break; case 'decode_content': if ($value === \false) { continue 2; } $accept = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::firstHeader($request, 'Accept-Encoding'); if ($accept) { $options[\CURLOPT_ENCODING] = $accept; } else { $options[\CURLOPT_ENCODING] = ''; // Don't let curl send the header over the wire $options[\CURLOPT_HTTPHEADER][] = 'Accept-Encoding:'; } break; case 'save_to': if (\is_string($value)) { if (!\is_dir(\dirname($value))) { throw new \RuntimeException(\sprintf('Directory %s does not exist for save_to value of %s', \dirname($value), $value)); } $value = new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\LazyOpenStream($value, 'w+'); } if ($value instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface) { $options[\CURLOPT_WRITEFUNCTION] = function ($ch, $write) use($value) { return $value->write($write); }; } elseif (\is_resource($value)) { $options[\CURLOPT_FILE] = $value; } else { throw new \InvalidArgumentException('save_to must be a ' . 'GuzzleHttp\\Stream\\StreamInterface or resource'); } break; case 'timeout': if (\defined('CURLOPT_TIMEOUT_MS')) { $options[\CURLOPT_TIMEOUT_MS] = $value * 1000; } else { $options[\CURLOPT_TIMEOUT] = $value; } break; case 'connect_timeout': if (\defined('CURLOPT_CONNECTTIMEOUT_MS')) { $options[\CURLOPT_CONNECTTIMEOUT_MS] = $value * 1000; } else { $options[\CURLOPT_CONNECTTIMEOUT] = $value; } break; case 'proxy': if (!\is_array($value)) { $options[\CURLOPT_PROXY] = $value; } elseif (isset($request['scheme'])) { $scheme = $request['scheme']; if (isset($value[$scheme])) { $options[\CURLOPT_PROXY] = $value[$scheme]; } } break; case 'cert': if (\is_array($value)) { $options[\CURLOPT_SSLCERTPASSWD] = $value[1]; $value = $value[0]; } if (!\file_exists($value)) { throw new \InvalidArgumentException("SSL certificate not found: {$value}"); } $options[\CURLOPT_SSLCERT] = $value; break; case 'ssl_key': if (\is_array($value)) { $options[\CURLOPT_SSLKEYPASSWD] = $value[1]; $value = $value[0]; } if (!\file_exists($value)) { throw new \InvalidArgumentException("SSL private key not found: {$value}"); } $options[\CURLOPT_SSLKEY] = $value; break; case 'progress': if (!\is_callable($value)) { throw new \InvalidArgumentException('progress client option must be callable'); } $options[\CURLOPT_NOPROGRESS] = \false; $options[\CURLOPT_PROGRESSFUNCTION] = function () use($value) { $args = \func_get_args(); // PHP 5.5 pushed the handle onto the start of the args if (\is_resource($args[0])) { \array_shift($args); } \call_user_func_array($value, $args); }; break; case 'debug': if ($value) { $options[\CURLOPT_STDERR] = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::getDebugResource($value); $options[\CURLOPT_VERBOSE] = \true; } break; } } } /** * This function ensures that a response was set on a transaction. If one * was not set, then the request is retried if possible. This error * typically means you are sending a payload, curl encountered a * "Connection died, retrying a fresh connect" error, tried to rewind the * stream, and then encountered a "necessary data rewind wasn't possible" * error, causing the request to be sent through curl_multi_info_read() * without an error status. */ private static function retryFailedRewind(callable $handler, array $request, array $response) { // If there is no body, then there is some other kind of issue. This // is weird and should probably never happen. if (!isset($request['body'])) { $response['err_message'] = 'No response was received for a request ' . 'with no body. This could mean that you are saturating your ' . 'network.'; return self::createErrorResponse($handler, $request, $response); } if (!\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::rewindBody($request)) { $response['err_message'] = 'The connection unexpectedly failed ' . 'without providing an error. The request would have been ' . 'retried, but attempting to rewind the request body failed.'; return self::createErrorResponse($handler, $request, $response); } // Retry no more than 3 times before giving up. if (!isset($request['curl']['retries'])) { $request['curl']['retries'] = 1; } elseif ($request['curl']['retries'] == 2) { $response['err_message'] = 'The cURL request was retried 3 times ' . 'and did no succeed. cURL was unable to rewind the body of ' . 'the request and subsequent retries resulted in the same ' . 'error. Turn on the debug option to see what went wrong. ' . 'See https://bugs.php.net/bug.php?id=47204 for more information.'; return self::createErrorResponse($handler, $request, $response); } else { $request['curl']['retries']++; } return $handler($request); } } guzzlehttp/ringphp/src/Client/CurlHandler.php000064400000010163150544704730015366 0ustar00handles = $this->ownedHandles = []; $this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\CurlFactory(); $this->maxHandles = isset($options['max_handles']) ? $options['max_handles'] : 5; } public function __destruct() { foreach ($this->handles as $handle) { if (\is_resource($handle)) { \curl_close($handle); } } } /** * @param array $request * * @return CompletedFutureArray */ public function __invoke(array $request) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\CompletedFutureArray($this->_invokeAsArray($request)); } /** * @internal * * @param array $request * * @return array */ public function _invokeAsArray(array $request) { $factory = $this->factory; // Ensure headers are by reference. They're updated elsewhere. $result = $factory($request, $this->checkoutEasyHandle()); $h = $result[0]; $hd =& $result[1]; $bd = $result[2]; \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::doSleep($request); \curl_exec($h); $response = ['transfer_stats' => \curl_getinfo($h)]; $response['curl']['error'] = \curl_error($h); $response['curl']['errno'] = \curl_errno($h); $response['transfer_stats'] = \array_merge($response['transfer_stats'], $response['curl']); $this->releaseEasyHandle($h); return \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\CurlFactory::createResponse([$this, '_invokeAsArray'], $request, $response, $hd, $bd); } private function checkoutEasyHandle() { // Find an unused handle in the cache if (\false !== ($key = \array_search(\false, $this->ownedHandles, \true))) { $this->ownedHandles[$key] = \true; return $this->handles[$key]; } // Add a new handle $handle = \curl_init(); $id = (int) $handle; $this->handles[$id] = $handle; $this->ownedHandles[$id] = \true; return $handle; } private function releaseEasyHandle($handle) { $id = (int) $handle; if (\count($this->ownedHandles) > $this->maxHandles) { \curl_close($this->handles[$id]); unset($this->handles[$id], $this->ownedHandles[$id]); } else { // curl_reset doesn't clear these out for some reason static $unsetValues = [\CURLOPT_HEADERFUNCTION => null, \CURLOPT_WRITEFUNCTION => null, \CURLOPT_READFUNCTION => null, \CURLOPT_PROGRESSFUNCTION => null]; \curl_setopt_array($handle, $unsetValues); \curl_reset($handle); $this->ownedHandles[$id] = \false; } } } guzzlehttp/ringphp/src/Client/Middleware.php000064400000003502150544704730015237 0ustar00_mh = $options['mh']; } $this->factory = isset($options['handle_factory']) ? $options['handle_factory'] : new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\CurlFactory(); $this->selectTimeout = isset($options['select_timeout']) ? $options['select_timeout'] : 1; $this->maxHandles = isset($options['max_handles']) ? $options['max_handles'] : 100; } public function __get($name) { if ($name === '_mh') { return $this->_mh = \curl_multi_init(); } throw new \BadMethodCallException(); } public function __destruct() { // Finish any open connections before terminating the script. if ($this->handles) { $this->execute(); } if (isset($this->_mh)) { \curl_multi_close($this->_mh); unset($this->_mh); } } public function __invoke(array $request) { $factory = $this->factory; $result = $factory($request); $entry = ['request' => $request, 'response' => [], 'handle' => $result[0], 'headers' => &$result[1], 'body' => $result[2], 'deferred' => new \Google\Site_Kit_Dependencies\React\Promise\Deferred()]; $id = (int) $result[0]; $future = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\FutureArray($entry['deferred']->promise(), [$this, 'execute'], function () use($id) { return $this->cancel($id); }); $this->addRequest($entry); // Transfer outstanding requests if there are too many open handles. if (\count($this->handles) >= $this->maxHandles) { $this->execute(); } return $future; } /** * Runs until all outstanding connections have completed. */ public function execute() { do { if ($this->active && \curl_multi_select($this->_mh, $this->selectTimeout) === -1) { // Perform a usleep if a select returns -1. // See: https://bugs.php.net/bug.php?id=61141 \usleep(250); } // Add any delayed futures if needed. if ($this->delays) { $this->addDelays(); } do { $mrc = \curl_multi_exec($this->_mh, $this->active); } while ($mrc === \CURLM_CALL_MULTI_PERFORM); $this->processMessages(); // If there are delays but no transfers, then sleep for a bit. if (!$this->active && $this->delays) { \usleep(500); } } while ($this->active || $this->handles); } private function addRequest(array &$entry) { $id = (int) $entry['handle']; $this->handles[$id] = $entry; // If the request is a delay, then add the reques to the curl multi // pool only after the specified delay. if (isset($entry['request']['client']['delay'])) { $this->delays[$id] = \microtime(\true) + $entry['request']['client']['delay'] / 1000; } elseif (empty($entry['request']['future'])) { \curl_multi_add_handle($this->_mh, $entry['handle']); } else { \curl_multi_add_handle($this->_mh, $entry['handle']); // "lazy" futures are only sent once the pool has many requests. if ($entry['request']['future'] !== 'lazy') { do { $mrc = \curl_multi_exec($this->_mh, $this->active); } while ($mrc === \CURLM_CALL_MULTI_PERFORM); $this->processMessages(); } } } private function removeProcessed($id) { if (isset($this->handles[$id])) { \curl_multi_remove_handle($this->_mh, $this->handles[$id]['handle']); \curl_close($this->handles[$id]['handle']); unset($this->handles[$id], $this->delays[$id]); } } /** * Cancels a handle from sending and removes references to it. * * @param int $id Handle ID to cancel and remove. * * @return bool True on success, false on failure. */ private function cancel($id) { // Cannot cancel if it has been processed. if (!isset($this->handles[$id])) { return \false; } $handle = $this->handles[$id]['handle']; unset($this->delays[$id], $this->handles[$id]); \curl_multi_remove_handle($this->_mh, $handle); \curl_close($handle); return \true; } private function addDelays() { $currentTime = \microtime(\true); foreach ($this->delays as $id => $delay) { if ($currentTime >= $delay) { unset($this->delays[$id]); \curl_multi_add_handle($this->_mh, $this->handles[$id]['handle']); } } } private function processMessages() { while ($done = \curl_multi_info_read($this->_mh)) { $id = (int) $done['handle']; if (!isset($this->handles[$id])) { // Probably was cancelled. continue; } $entry = $this->handles[$id]; $entry['response']['transfer_stats'] = \curl_getinfo($done['handle']); if ($done['result'] !== \CURLM_OK) { $entry['response']['curl']['errno'] = $done['result']; $entry['response']['curl']['error'] = \curl_error($done['handle']); } $result = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\CurlFactory::createResponse($this, $entry['request'], $entry['response'], $entry['headers'], $entry['body']); $this->removeProcessed($id); $entry['deferred']->resolve($result); } } } guzzlehttp/ringphp/src/Client/StreamHandler.php000064400000033055150544704730015721 0ustar00options = $options; } public function __invoke(array $request) { $url = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::url($request); \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::doSleep($request); try { // Does not support the expect header. $request = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::removeHeader($request, 'Expect'); $stream = $this->createStream($url, $request); return $this->createResponse($request, $url, $stream); } catch (\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\RingException $e) { return $this->createErrorResponse($url, $e); } } private function createResponse(array $request, $url, $stream) { $hdrs = $this->lastHeaders; $this->lastHeaders = null; $parts = \explode(' ', \array_shift($hdrs), 3); $response = ['version' => \substr($parts[0], 5), 'status' => $parts[1], 'reason' => isset($parts[2]) ? $parts[2] : null, 'headers' => \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::headersFromLines($hdrs), 'effective_url' => $url]; $stream = $this->checkDecode($request, $response, $stream); // If not streaming, then drain the response into a stream. if (empty($request['client']['stream'])) { $dest = isset($request['client']['save_to']) ? $request['client']['save_to'] : \fopen('php://temp', 'r+'); $stream = $this->drain($stream, $dest); } $response['body'] = $stream; return new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\CompletedFutureArray($response); } private function checkDecode(array $request, array $response, $stream) { // Automatically decode responses when instructed. if (!empty($request['client']['decode_content'])) { switch (\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::firstHeader($response, 'Content-Encoding', \true)) { case 'gzip': case 'deflate': $stream = new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\InflateStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($stream)); break; } } return $stream; } /** * Drains the stream into the "save_to" client option. * * @param resource $stream * @param string|resource|StreamInterface $dest * * @return Stream * @throws \RuntimeException when the save_to option is invalid. */ private function drain($stream, $dest) { if (\is_resource($stream)) { if (!\is_resource($dest)) { $stream = \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($stream); } else { \stream_copy_to_stream($stream, $dest); \fclose($stream); \rewind($dest); return $dest; } } // Stream the response into the destination stream $dest = \is_string($dest) ? new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Utils::open($dest, 'r+')) : \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($dest); \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Utils::copyToStream($stream, $dest); $dest->seek(0); $stream->close(); return $dest; } /** * Creates an error response for the given stream. * * @param string $url * @param RingException $e * * @return array */ private function createErrorResponse($url, \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\RingException $e) { // Determine if the error was a networking error. $message = $e->getMessage(); // This list can probably get more comprehensive. if (\strpos($message, 'getaddrinfo') || \strpos($message, 'Connection refused')) { $e = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\ConnectException($e->getMessage(), 0, $e); } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\CompletedFutureArray(['status' => null, 'body' => null, 'headers' => [], 'effective_url' => $url, 'error' => $e]); } /** * Create a resource and check to ensure it was created successfully * * @param callable $callback Callable that returns stream resource * * @return resource * @throws \RuntimeException on error */ private function createResource(callable $callback) { $errors = null; \set_error_handler(function ($_, $msg, $file, $line) use(&$errors) { $errors[] = ['message' => $msg, 'file' => $file, 'line' => $line]; return \true; }); $resource = $callback(); \restore_error_handler(); if (!$resource) { $message = 'Error creating resource: '; foreach ($errors as $err) { foreach ($err as $key => $value) { $message .= "[{$key}] {$value}" . \PHP_EOL; } } throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\RingException(\trim($message)); } return $resource; } private function createStream($url, array $request) { static $methods; if (!$methods) { $methods = \array_flip(\get_class_methods(__CLASS__)); } // HTTP/1.1 streams using the PHP stream wrapper require a // Connection: close header if ((!isset($request['version']) || $request['version'] == '1.1') && !\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::hasHeader($request, 'Connection')) { $request['headers']['Connection'] = ['close']; } // Ensure SSL is verified by default if (!isset($request['client']['verify'])) { $request['client']['verify'] = \true; } $params = []; $options = $this->getDefaultOptions($request); if (isset($request['client'])) { foreach ($request['client'] as $key => $value) { $method = "add_{$key}"; if (isset($methods[$method])) { $this->{$method}($request, $options, $value, $params); } } } return $this->createStreamResource($url, $request, $options, $this->createContext($request, $options, $params)); } private function getDefaultOptions(array $request) { $headers = ""; foreach ($request['headers'] as $name => $value) { foreach ((array) $value as $val) { $headers .= "{$name}: {$val}\r\n"; } } $context = ['http' => ['method' => $request['http_method'], 'header' => $headers, 'protocol_version' => isset($request['version']) ? $request['version'] : 1.1, 'ignore_errors' => \true, 'follow_location' => 0]]; $body = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::body($request); if (isset($body)) { $context['http']['content'] = $body; // Prevent the HTTP handler from adding a Content-Type header. if (!\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::hasHeader($request, 'Content-Type')) { $context['http']['header'] .= "Content-Type:\r\n"; } } $context['http']['header'] = \rtrim($context['http']['header']); return $context; } private function add_proxy(array $request, &$options, $value, &$params) { if (!\is_array($value)) { $options['http']['proxy'] = $value; } else { $scheme = isset($request['scheme']) ? $request['scheme'] : 'http'; if (isset($value[$scheme])) { $options['http']['proxy'] = $value[$scheme]; } } } private function add_timeout(array $request, &$options, $value, &$params) { $options['http']['timeout'] = $value; } private function add_verify(array $request, &$options, $value, &$params) { if ($value === \true) { // PHP 5.6 or greater will find the system cert by default. When // < 5.6, use the Guzzle bundled cacert. if (\PHP_VERSION_ID < 50600) { $options['ssl']['cafile'] = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\ClientUtils::getDefaultCaBundle(); } } elseif (\is_string($value)) { $options['ssl']['cafile'] = $value; if (!\file_exists($value)) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\RingException("SSL CA bundle not found: {$value}"); } } elseif ($value === \false) { $options['ssl']['verify_peer'] = \false; $options['ssl']['allow_self_signed'] = \true; return; } else { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\RingException('Invalid verify request option'); } $options['ssl']['verify_peer'] = \true; $options['ssl']['allow_self_signed'] = \false; } private function add_cert(array $request, &$options, $value, &$params) { if (\is_array($value)) { $options['ssl']['passphrase'] = $value[1]; $value = $value[0]; } if (!\file_exists($value)) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\RingException("SSL certificate not found: {$value}"); } $options['ssl']['local_cert'] = $value; } private function add_progress(array $request, &$options, $value, &$params) { $fn = function ($code, $_1, $_2, $_3, $transferred, $total) use($value) { if ($code == \STREAM_NOTIFY_PROGRESS) { $value($total, $transferred, null, null); } }; // Wrap the existing function if needed. $params['notification'] = isset($params['notification']) ? \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::callArray([$params['notification'], $fn]) : $fn; } private function add_debug(array $request, &$options, $value, &$params) { if ($value === \false) { return; } static $map = [\STREAM_NOTIFY_CONNECT => 'CONNECT', \STREAM_NOTIFY_AUTH_REQUIRED => 'AUTH_REQUIRED', \STREAM_NOTIFY_AUTH_RESULT => 'AUTH_RESULT', \STREAM_NOTIFY_MIME_TYPE_IS => 'MIME_TYPE_IS', \STREAM_NOTIFY_FILE_SIZE_IS => 'FILE_SIZE_IS', \STREAM_NOTIFY_REDIRECTED => 'REDIRECTED', \STREAM_NOTIFY_PROGRESS => 'PROGRESS', \STREAM_NOTIFY_FAILURE => 'FAILURE', \STREAM_NOTIFY_COMPLETED => 'COMPLETED', \STREAM_NOTIFY_RESOLVE => 'RESOLVE']; static $args = ['severity', 'message', 'message_code', 'bytes_transferred', 'bytes_max']; $value = \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::getDebugResource($value); $ident = $request['http_method'] . ' ' . \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::url($request); $fn = function () use($ident, $value, $map, $args) { $passed = \func_get_args(); $code = \array_shift($passed); \fprintf($value, '<%s> [%s] ', $ident, $map[$code]); foreach (\array_filter($passed) as $i => $v) { \fwrite($value, $args[$i] . ': "' . $v . '" '); } \fwrite($value, "\n"); }; // Wrap the existing function if needed. $params['notification'] = isset($params['notification']) ? \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::callArray([$params['notification'], $fn]) : $fn; } private function applyCustomOptions(array $request, array &$options) { if (!isset($request['client']['stream_context'])) { return; } if (!\is_array($request['client']['stream_context'])) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\RingException('stream_context must be an array'); } $options = \array_replace_recursive($options, $request['client']['stream_context']); } private function createContext(array $request, array $options, array $params) { $this->applyCustomOptions($request, $options); return $this->createResource(function () use($request, $options, $params) { return \stream_context_create($options, $params); }, $request, $options); } private function createStreamResource($url, array $request, array $options, $context) { return $this->createResource(function () use($url, $context) { if (\false === \strpos($url, 'http')) { \trigger_error("URL is invalid: {$url}", \E_USER_WARNING); return null; } $resource = \fopen($url, 'r', null, $context); $this->lastHeaders = $http_response_header; return $resource; }, $request, $options); } } guzzlehttp/ringphp/src/Future/BaseFutureTrait.php000064400000007155150544704730016277 0ustar00wrappedPromise = $promise; $this->waitfn = $wait; $this->cancelfn = $cancel; } public function wait() { if (!$this->isRealized) { $this->addShadow(); if (!$this->isRealized && $this->waitfn) { $this->invokeWait(); } if (!$this->isRealized) { $this->error = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\RingException('Waiting did not resolve future'); } } if ($this->error) { throw $this->error; } return $this->result; } public function promise() { return $this->wrappedPromise; } public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { return $this->wrappedPromise->then($onFulfilled, $onRejected, $onProgress); } public function cancel() { if (!$this->isRealized) { $cancelfn = $this->cancelfn; $this->waitfn = $this->cancelfn = null; $this->isRealized = \true; $this->error = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\CancelledFutureAccessException(); if ($cancelfn) { $cancelfn($this); } } } private function addShadow() { // Get the result and error when the promise is resolved. Note that // calling this function might trigger the resolution immediately. $this->wrappedPromise->then(function ($value) { $this->isRealized = \true; $this->result = $value; $this->waitfn = $this->cancelfn = null; }, function ($error) { $this->isRealized = \true; $this->error = $error; $this->waitfn = $this->cancelfn = null; }); } private function invokeWait() { try { $wait = $this->waitfn; $this->waitfn = null; $wait(); } catch (\Exception $e) { // Defer can throw to reject. $this->error = $e; $this->isRealized = \true; } } } guzzlehttp/ringphp/src/Future/MagicFutureTrait.php000064400000001647150544704730016445 0ustar00_value = $this->wait(); } } guzzlehttp/ringphp/src/Future/FutureArrayInterface.php000064400000000430150544704730017305 0ustar00result = $result; $this->error = $e; } public function wait() { if ($this->error) { throw $this->error; } return $this->result; } public function cancel() { } public function promise() { if (!$this->cachedPromise) { $this->cachedPromise = $this->error ? new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($this->error) : new \Google\Site_Kit_Dependencies\React\Promise\FulfilledPromise($this->result); } return $this->cachedPromise; } public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { return $this->promise()->then($onFulfilled, $onRejected, $onProgress); } } guzzlehttp/ringphp/src/Future/CompletedFutureArray.php000064400000001745150544704730017333 0ustar00result[$offset]); } public function offsetGet($offset) { return $this->result[$offset]; } public function offsetSet($offset, $value) { $this->result[$offset] = $value; } public function offsetUnset($offset) { unset($this->result[$offset]); } public function count() { return \count($this->result); } public function getIterator() { return new \ArrayIterator($this->result); } } guzzlehttp/ringphp/src/Future/FutureValue.php000064400000000571150544704730015470 0ustar00_value[$offset]); } public function offsetGet($offset) { return $this->_value[$offset]; } public function offsetSet($offset, $value) { $this->_value[$offset] = $value; } public function offsetUnset($offset) { unset($this->_value[$offset]); } public function count() { return \count($this->_value); } public function getIterator() { return new \ArrayIterator($this->_value); } } guzzlehttp/ringphp/src/Future/FutureInterface.php000064400000003127150544704730016314 0ustar00 $value) { if (!\strcasecmp($name, $header)) { $result = \array_merge($result, $value); } } } return $result; } /** * Gets a header value from a message as a string or null * * This method searches through the "headers" key of a message for a header * using a case-insensitive search. The lines of the header are imploded * using commas into a single string return value. * * @param array $message Request or response hash. * @param string $header Header to retrieve * * @return string|null Returns the header string if found, or null if not. */ public static function header($message, $header) { $match = self::headerLines($message, $header); return $match ? \implode(', ', $match) : null; } /** * Returns the first header value from a message as a string or null. If * a header line contains multiple values separated by a comma, then this * function will return the first value in the list. * * @param array $message Request or response hash. * @param string $header Header to retrieve * * @return string|null Returns the value as a string if found. */ public static function firstHeader($message, $header) { if (!empty($message['headers'])) { foreach ($message['headers'] as $name => $value) { if (!\strcasecmp($name, $header)) { // Return the match itself if it is a single value. $pos = \strpos($value[0], ','); return $pos ? \substr($value[0], 0, $pos) : $value[0]; } } } return null; } /** * Returns true if a message has the provided case-insensitive header. * * @param array $message Request or response hash. * @param string $header Header to check * * @return bool */ public static function hasHeader($message, $header) { if (!empty($message['headers'])) { foreach ($message['headers'] as $name => $value) { if (!\strcasecmp($name, $header)) { return \true; } } } return \false; } /** * Parses an array of header lines into an associative array of headers. * * @param array $lines Header lines array of strings in the following * format: "Name: Value" * @return array */ public static function headersFromLines($lines) { $headers = []; foreach ($lines as $line) { $parts = \explode(':', $line, 2); $headers[\trim($parts[0])][] = isset($parts[1]) ? \trim($parts[1]) : null; } return $headers; } /** * Removes a header from a message using a case-insensitive comparison. * * @param array $message Message that contains 'headers' * @param string $header Header to remove * * @return array */ public static function removeHeader(array $message, $header) { if (isset($message['headers'])) { foreach (\array_keys($message['headers']) as $key) { if (!\strcasecmp($header, $key)) { unset($message['headers'][$key]); } } } return $message; } /** * Replaces any existing case insensitive headers with the given value. * * @param array $message Message that contains 'headers' * @param string $header Header to set. * @param array $value Value to set. * * @return array */ public static function setHeader(array $message, $header, array $value) { $message = self::removeHeader($message, $header); $message['headers'][$header] = $value; return $message; } /** * Creates a URL string from a request. * * If the "url" key is present on the request, it is returned, otherwise * the url is built up based on the scheme, host, uri, and query_string * request values. * * @param array $request Request to get the URL from * * @return string Returns the request URL as a string. * @throws \InvalidArgumentException if no Host header is present. */ public static function url(array $request) { if (isset($request['url'])) { return $request['url']; } $uri = (isset($request['scheme']) ? $request['scheme'] : 'http') . '://'; if ($host = self::header($request, 'host')) { $uri .= $host; } else { throw new \InvalidArgumentException('No Host header was provided'); } if (isset($request['uri'])) { $uri .= $request['uri']; } if (isset($request['query_string'])) { $uri .= '?' . $request['query_string']; } return $uri; } /** * Reads the body of a message into a string. * * @param array|FutureArrayInterface $message Array containing a "body" key * * @return null|string Returns the body as a string or null if not set. * @throws \InvalidArgumentException if a request body is invalid. */ public static function body($message) { if (!isset($message['body'])) { return null; } if ($message['body'] instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface) { return (string) $message['body']; } switch (\gettype($message['body'])) { case 'string': return $message['body']; case 'resource': return \stream_get_contents($message['body']); case 'object': if ($message['body'] instanceof \Iterator) { return \implode('', \iterator_to_array($message['body'])); } elseif (\method_exists($message['body'], '__toString')) { return (string) $message['body']; } default: throw new \InvalidArgumentException('Invalid request body: ' . self::describeType($message['body'])); } } /** * Rewind the body of the provided message if possible. * * @param array $message Message that contains a 'body' field. * * @return bool Returns true on success, false on failure */ public static function rewindBody($message) { if ($message['body'] instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface) { return $message['body']->seek(0); } if ($message['body'] instanceof \Generator) { return \false; } if ($message['body'] instanceof \Iterator) { $message['body']->rewind(); return \true; } if (\is_resource($message['body'])) { return \rewind($message['body']); } return \is_string($message['body']) || \is_object($message['body']) && \method_exists($message['body'], '__toString'); } /** * Debug function used to describe the provided value type and class. * * @param mixed $input * * @return string Returns a string containing the type of the variable and * if a class is provided, the class name. */ public static function describeType($input) { switch (\gettype($input)) { case 'object': return 'object(' . \get_class($input) . ')'; case 'array': return 'array(' . \count($input) . ')'; default: \ob_start(); \var_dump($input); // normalize float vs double return \str_replace('double(', 'float(', \rtrim(\ob_get_clean())); } } /** * Sleep for the specified amount of time specified in the request's * ['client']['delay'] option if present. * * This function should only be used when a non-blocking sleep is not * possible. * * @param array $request Request to sleep */ public static function doSleep(array $request) { if (isset($request['client']['delay'])) { \usleep($request['client']['delay'] * 1000); } } /** * Returns a proxied future that modifies the dereferenced value of another * future using a promise. * * @param FutureArrayInterface $future Future to wrap with a new future * @param callable $onFulfilled Invoked when the future fulfilled * @param callable $onRejected Invoked when the future rejected * @param callable $onProgress Invoked when the future progresses * * @return FutureArray */ public static function proxy(\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\FutureArrayInterface $future, callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\FutureArray($future->then($onFulfilled, $onRejected, $onProgress), [$future, 'wait'], [$future, 'cancel']); } /** * Returns a debug stream based on the provided variable. * * @param mixed $value Optional value * * @return resource */ public static function getDebugResource($value = null) { if (\is_resource($value)) { return $value; } elseif (\defined('STDOUT')) { return \STDOUT; } else { return \fopen('php://output', 'w'); } } } guzzlehttp/ringphp/src/Exception/CancelledException.php000064400000000241150544704730017430 0ustar00`_, allowing RingPHP to support both synchronous and asynchronous workflows. By abstracting the implementation details of different HTTP clients and servers, RingPHP allows you to utilize pluggable HTTP clients and servers without tying your application to a specific implementation. .. code-block:: php 'GET', 'uri' => '/', 'headers' => [ 'host' => ['www.google.com'], 'x-foo' => ['baz'] ] ]); $response->then(function (array $response) { echo $response['status']; }); $response->wait(); RingPHP is inspired by Clojure's `Ring `_, which, in turn, was inspired by Python's WSGI and Ruby's Rack. RingPHP is utilized as the handler layer in `Guzzle `_ 5.0+ to send HTTP requests. Documentation ------------- See http://ringphp.readthedocs.org/ for the full online documentation. guzzlehttp/ringphp/docs/client_handlers.rst000064400000012571150544704730015272 0ustar00=============== Client Handlers =============== Client handlers accept a request array and return a future response array that can be used synchronously as an array or asynchronously using a promise. Built-In Handlers ----------------- RingPHP comes with three built-in client handlers. Stream Handler ~~~~~~~~~~~~~~ The ``GuzzleHttp\Ring\Client\StreamHandler`` uses PHP's `http stream wrapper `_ to send requests. .. note:: This handler cannot send requests concurrently. You can provide an associative array of custom stream context options to the StreamHandler using the ``stream_context`` key of the ``client`` request option. .. code-block:: php use GuzzleHttp\Ring\Client\StreamHandler; $response = $handler([ 'http_method' => 'GET', 'uri' => '/', 'headers' => ['host' => ['httpbin.org']], 'client' => [ 'stream_context' => [ 'http' => [ 'request_fulluri' => true, 'method' => 'HEAD' ], 'socket' => [ 'bindto' => '127.0.0.1:0' ], 'ssl' => [ 'verify_peer' => false ] ] ] ]); // Even though it's already completed, you can still use a promise $response->then(function ($response) { echo $response['status']; // 200 }); // Or access the response using the future interface echo $response['status']; // 200 cURL Handler ~~~~~~~~~~~~ The ``GuzzleHttp\Ring\Client\CurlHandler`` can be used with PHP 5.5+ to send requests using cURL easy handles. This handler is great for sending requests one at a time because the execute and select loop is implemented in C code which executes faster and consumes less memory than using PHP's ``curl_multi_*`` interface. .. note:: This handler cannot send requests concurrently. When using the CurlHandler, custom curl options can be specified as an associative array of `cURL option constants `_ mapping to values in the ``client`` option of a requst using the **curl** key. .. code-block:: php use GuzzleHttp\Ring\Client\CurlHandler; $handler = new CurlHandler(); $request = [ 'http_method' => 'GET', 'headers' => ['host' => [Server::$host]], 'client' => ['curl' => [CURLOPT_LOW_SPEED_LIMIT => 10]] ]; $response = $handler($request); // The response can be used directly as an array. echo $response['status']; // 200 // Or, it can be used as a promise (that has already fulfilled). $response->then(function ($response) { echo $response['status']; // 200 }); cURL Multi Handler ~~~~~~~~~~~~~~~~~~ The ``GuzzleHttp\Ring\Client\CurlMultiHandler`` transfers requests using cURL's `multi API `_. The ``CurlMultiHandler`` is great for sending requests concurrently. .. code-block:: php use GuzzleHttp\Ring\Client\CurlMultiHandler; $handler = new CurlMultiHandler(); $request = [ 'http_method' => 'GET', 'headers' => ['host' => [Server::$host]] ]; // this call returns a future array immediately. $response = $handler($request); // Ideally, you should use the promise API to not block. $response ->then(function ($response) { // Got the response at some point in the future echo $response['status']; // 200 // Don't break the chain return $response; })->then(function ($response) { // ... }); // If you really need to block, then you can use the response as an // associative array. This will block until it has completed. echo $response['status']; // 200 Just like the ``CurlHandler``, the ``CurlMultiHandler`` accepts custom curl option in the ``curl`` key of the ``client`` request option. Mock Handler ~~~~~~~~~~~~ The ``GuzzleHttp\Ring\Client\MockHandler`` is used to return mock responses. When constructed, the handler can be configured to return the same response array over and over, a future response, or a the evaluation of a callback function. .. code-block:: php use GuzzleHttp\Ring\Client\MockHandler; // Return a canned response. $mock = new MockHandler(['status' => 200]); $response = $mock([]); assert(200 == $response['status']); assert([] == $response['headers']); Implementing Handlers --------------------- Client handlers are just PHP callables (functions or classes that have the ``__invoke`` magic method). The callable accepts a request array and MUST return an instance of ``GuzzleHttp\Ring\Future\FutureArrayInterface`` so that the response can be used by both blocking and non-blocking consumers. Handlers need to follow a few simple rules: 1. Do not throw exceptions. If an error is encountered, return an array that contains the ``error`` key that maps to an ``\Exception`` value. 2. If the request has a ``delay`` client option, then the handler should only send the request after the specified delay time in seconds. Blocking handlers may find it convenient to just let the ``GuzzleHttp\Ring\Core::doSleep($request)`` function handle this for them. 3. Always return an instance of ``GuzzleHttp\Ring\Future\FutureArrayInterface``. 4. Complete any outstanding requests when the handler is destructed. guzzlehttp/ringphp/docs/conf.py000064400000001145150544704730012674 0ustar00import sys, os import sphinx_rtd_theme from sphinx.highlighting import lexers from pygments.lexers.web import PhpLexer lexers['php'] = PhpLexer(startinline=True, linenos=1) lexers['php-annotations'] = PhpLexer(startinline=True, linenos=1) primary_domain = 'php' extensions = [] templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' project = u'RingPHP' copyright = u'2014, Michael Dowling' version = '1.0.0-alpha' exclude_patterns = ['_build'] html_title = "RingPHP" html_short_title = "RingPHP" html_theme = "sphinx_rtd_theme" html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] guzzlehttp/ringphp/docs/index.rst000064400000002641150544704730013240 0ustar00======= RingPHP ======= Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function. RingPHP be used to power HTTP clients and servers through a PHP function that accepts a request hash and returns a response hash that is fulfilled using a `promise `_, allowing RingPHP to support both synchronous and asynchronous workflows. By abstracting the implementation details of different HTTP clients and servers, RingPHP allows you to utilize pluggable HTTP clients and servers without tying your application to a specific implementation. .. toctree:: :maxdepth: 2 spec futures client_middleware client_handlers testing .. code-block:: php 'GET', 'uri' => '/', 'headers' => [ 'host' => ['www.google.com'], 'x-foo' => ['baz'] ] ]); $response->then(function (array $response) { echo $response['status']; }); $response->wait(); RingPHP is inspired by Clojure's `Ring `_, which, in turn, was inspired by Python's WSGI and Ruby's Rack. RingPHP is utilized as the handler layer in `Guzzle `_ 5.0+ to send HTTP requests. guzzlehttp/ringphp/docs/futures.rst000064400000013037150544704730013627 0ustar00======= Futures ======= Futures represent a computation that may have not yet completed. RingPHP uses hybrid of futures and promises to provide a consistent API that can be used for both blocking and non-blocking consumers. Promises -------- You can get the result of a future when it is ready using the promise interface of a future. Futures expose a promise API via a ``then()`` method that utilizes `React's promise library `_. You should use this API when you do not wish to block. .. code-block:: php use GuzzleHttp\Ring\Client\CurlMultiHandler; $request = [ 'http_method' => 'GET', 'uri' => '/', 'headers' => ['host' => ['httpbin.org']] ]; $response = $handler($request); // Use the then() method to use the promise API of the future. $response->then(function ($response) { echo $response['status']; }); You can get the promise used by a future, an instance of ``React\Promise\PromiseInterface``, by calling the ``promise()`` method. .. code-block:: php $response = $handler($request); $promise = $response->promise(); $promise->then(function ($response) { echo $response['status']; }); This promise value can be used with React's `aggregate promise functions `_. Waiting ------- You can wait on a future to complete and retrieve the value, or *dereference* the future, using the ``wait()`` method. Calling the ``wait()`` method of a future will block until the result is available. The result is then returned or an exception is thrown if and exception was encountered while waiting on the the result. Subsequent calls to dereference a future will return the previously completed result or throw the previously encountered exception. Futures can be cancelled, which stops the computation if possible. .. code-block:: php use GuzzleHttp\Ring\Client\CurlMultiHandler; $response = $handler([ 'http_method' => 'GET', 'uri' => '/', 'headers' => ['host' => ['httpbin.org']] ]); // You can explicitly call block to wait on a result. $realizedResponse = $response->wait(); // Future responses can be used like a regular PHP array. echo $response['status']; In addition to explicitly calling the ``wait()`` function, using a future like a normal value will implicitly trigger the ``wait()`` function. Future Responses ---------------- RingPHP uses futures to return asynchronous responses immediately. Client handlers always return future responses that implement ``GuzzleHttp\Ring\Future\ArrayFutureInterface``. These future responses act just like normal PHP associative arrays for blocking access and provide a promise interface for non-blocking access. .. code-block:: php use GuzzleHttp\Ring\Client\CurlMultiHandler; $handler = new CurlMultiHandler(); $request = [ 'http_method' => 'GET', 'uri' => '/', 'headers' => ['Host' => ['www.google.com']] ]; $response = $handler($request); // Use the promise API for non-blocking access to the response. The actual // response value will be delivered to the promise. $response->then(function ($response) { echo $response['status']; }); // You can wait (block) until the future is completed. $response->wait(); // This will implicitly call wait(), and will block too! $response['status']; .. important:: Futures that are not completed by the time the underlying handler is destructed will be completed when the handler is shutting down. Cancelling ---------- Futures can be cancelled if they have not already been dereferenced. RingPHP futures are typically implemented with the ``GuzzleHttp\Ring\Future\BaseFutureTrait``. This trait provides the cancellation functionality that should be common to most implementations. Cancelling a future response will try to prevent the request from sending over the wire. When a future is cancelled, the cancellation function is invoked and performs the actual work needed to cancel the request from sending if possible (e.g., telling an event loop to stop sending a request or to close a socket). If no cancellation function is provided, then a request cannot be cancelled. If a cancel function is provided, then it should accept the future as an argument and return true if the future was successfully cancelled or false if it could not be cancelled. Wrapping an existing Promise ---------------------------- You can easily create a future from any existing promise using the ``GuzzleHttp\Ring\Future\FutureValue`` class. This class's constructor accepts a promise as the first argument, a wait function as the second argument, and a cancellation function as the third argument. The dereference function is used to force the promise to resolve (for example, manually ticking an event loop). The cancel function is optional and is used to tell the thing that created the promise that it can stop computing the result (for example, telling an event loop to stop transferring a request). .. code-block:: php use GuzzleHttp\Ring\Future\FutureValue; use React\Promise\Deferred; $deferred = new Deferred(); $promise = $deferred->promise(); $f = new FutureValue( $promise, function () use ($deferred) { // This function is responsible for blocking and resolving the // promise. Here we pass in a reference to the deferred so that // it can be resolved or rejected. $deferred->resolve('foo'); } ); guzzlehttp/ringphp/docs/client_middleware.rst000064400000012501150544704730015600 0ustar00================= Client Middleware ================= Middleware intercepts requests before they are sent over the wire and can be used to add functionality to handlers. Modifying Requests ------------------ Let's say you wanted to modify requests before they are sent over the wire so that they always add specific headers. This can be accomplished by creating a function that accepts a handler and returns a new function that adds the composed behavior. .. code-block:: php use GuzzleHttp\Ring\Client\CurlHandler; $handler = new CurlHandler(); $addHeaderHandler = function (callable $handler, array $headers = []) { return function (array $request) use ($handler, $headers) { // Add our custom headers foreach ($headers as $key => $value) { $request['headers'][$key] = $value; } // Send the request using the handler and return the response. return $handler($request); } }; // Create a new handler that adds headers to each request. $handler = $addHeaderHandler($handler, [ 'X-AddMe' => 'hello', 'Authorization' => 'Basic xyz' ]); $response = $handler([ 'http_method' => 'GET', 'headers' => ['Host' => ['httpbin.org']] ]); Modifying Responses ------------------- You can change a response as it's returned from a middleware. Remember that responses returned from an handler (including middleware) must implement ``GuzzleHttp\Ring\Future\FutureArrayInterface``. In order to be a good citizen, you should not expect that the responses returned through your middleware will be completed synchronously. Instead, you should use the ``GuzzleHttp\Ring\Core::proxy()`` function to modify the response when the underlying promise is resolved. This function is a helper function that makes it easy to create a new instance of ``FutureArrayInterface`` that wraps an existing ``FutureArrayInterface`` object. Let's say you wanted to add headers to a response as they are returned from your middleware, but you want to make sure you aren't causing future responses to be dereferenced right away. You can achieve this by modifying the incoming request and using the ``Core::proxy`` function. .. code-block:: php use GuzzleHttp\Ring\Core; use GuzzleHttp\Ring\Client\CurlHandler; $handler = new CurlHandler(); $responseHeaderHandler = function (callable $handler, array $headers) { return function (array $request) use ($handler, $headers) { // Send the request using the wrapped handler. return Core::proxy($handler($request), function ($response) use ($headers) { // Add the headers to the response when it is available. foreach ($headers as $key => $value) { $response['headers'][$key] = (array) $value; } // Note that you can return a regular response array when using // the proxy method. return $response; }); } }; // Create a new handler that adds headers to each response. $handler = $responseHeaderHandler($handler, ['X-Header' => 'hello!']); $response = $handler([ 'http_method' => 'GET', 'headers' => ['Host' => ['httpbin.org']] ]); assert($response['headers']['X-Header'] == 'hello!'); Built-In Middleware ------------------- RingPHP comes with a few basic client middlewares that modify requests and responses. Streaming Middleware ~~~~~~~~~~~~~~~~~~~~ If you want to send all requests with the ``streaming`` option to a specific handler but other requests to a different handler, then use the streaming middleware. .. code-block:: php use GuzzleHttp\Ring\Client\CurlHandler; use GuzzleHttp\Ring\Client\StreamHandler; use GuzzleHttp\Ring\Client\Middleware; $defaultHandler = new CurlHandler(); $streamingHandler = new StreamHandler(); $streamingHandler = Middleware::wrapStreaming( $defaultHandler, $streamingHandler ); // Send the request using the streaming handler. $response = $streamingHandler([ 'http_method' => 'GET', 'headers' => ['Host' => ['www.google.com']], 'stream' => true ]); // Send the request using the default handler. $response = $streamingHandler([ 'http_method' => 'GET', 'headers' => ['Host' => ['www.google.com']] ]); Future Middleware ~~~~~~~~~~~~~~~~~ If you want to send all requests with the ``future`` option to a specific handler but other requests to a different handler, then use the future middleware. .. code-block:: php use GuzzleHttp\Ring\Client\CurlHandler; use GuzzleHttp\Ring\Client\CurlMultiHandler; use GuzzleHttp\Ring\Client\Middleware; $defaultHandler = new CurlHandler(); $futureHandler = new CurlMultiHandler(); $futureHandler = Middleware::wrapFuture( $defaultHandler, $futureHandler ); // Send the request using the blocking CurlHandler. $response = $futureHandler([ 'http_method' => 'GET', 'headers' => ['Host' => ['www.google.com']] ]); // Send the request using the non-blocking CurlMultiHandler. $response = $futureHandler([ 'http_method' => 'GET', 'headers' => ['Host' => ['www.google.com']], 'future' => true ]); guzzlehttp/ringphp/docs/requirements.txt000064400000000021150544704730014651 0ustar00sphinx_rtd_theme guzzlehttp/ringphp/docs/spec.rst000064400000027412150544704730013066 0ustar00============= Specification ============= RingPHP applications consist of handlers, requests, responses, and middleware. Handlers -------- Handlers are implemented as a PHP ``callable`` that accept a request array and return a response array (``GuzzleHttp\Ring\Future\FutureArrayInterface``). For example: .. code-block:: php use GuzzleHttp\Ring\Future\CompletedFutureArray; $mockHandler = function (array $request) { return new CompletedFutureArray([ 'status' => 200, 'headers' => ['X-Foo' => ['Bar']], 'body' => 'Hello!' ]); }; This handler returns the same response each time it is invoked. All RingPHP handlers must return a ``GuzzleHttp\Ring\Future\FutureArrayInterface``. Use ``GuzzleHttp\Ring\Future\CompletedFutureArray`` when returning a response that has already completed. Requests -------- A request array is a PHP associative array that contains the configuration settings need to send a request. .. code-block:: php $request = [ 'http_method' => 'GET', 'scheme' => 'http', 'uri' => '/', 'body' => 'hello!', 'client' => ['timeout' => 1.0], 'headers' => [ 'host' => ['httpbin.org'], 'X-Foo' => ['baz', 'bar'] ] ]; The request array contains the following key value pairs: request_method (string, required) The HTTP request method, must be all caps corresponding to a HTTP request method, such as ``GET`` or ``POST``. scheme (string) The transport protocol, must be one of ``http`` or ``https``. Defaults to ``http``. uri (string, required) The request URI excluding the query string. Must start with "/". query_string (string) The query string, if present (e.g., ``foo=bar``). version (string) HTTP protocol version. Defaults to ``1.1``. headers (required, array) Associative array of headers. Each key represents the header name. Each value contains an array of strings where each entry of the array SHOULD be sent over the wire on a separate header line. body (string, fopen resource, ``Iterator``, ``GuzzleHttp\Stream\StreamInterface``) The body of the request, if present. Can be a string, resource returned from fopen, an ``Iterator`` that yields chunks of data, an object that implemented ``__toString``, or a ``GuzzleHttp\Stream\StreamInterface``. future (bool, string) Controls the asynchronous behavior of a response. Set to ``true`` or omit the ``future`` option to *request* that a request will be completed asynchronously. Keep in mind that your request might not necessarily be completed asynchronously based on the handler you are using. Set the ``future`` option to ``false`` to request that a synchronous response be provided. You can provide a string value to specify fine-tuned future behaviors that may be specific to the underlying handlers you are using. There are, however, some common future options that handlers should implement if possible. lazy Requests that the handler does not open and send the request immediately, but rather only opens and sends the request once the future is dereferenced. This option is often useful for sending a large number of requests concurrently to allow handlers to take better advantage of non-blocking transfers by first building up a pool of requests. If an handler does not implement or understand a provided string value, then the request MUST be treated as if the user provided ``true`` rather than the string value. Future responses created by asynchronous handlers MUST attempt to complete any outstanding future responses when they are destructed. Asynchronous handlers MAY choose to automatically complete responses when the number of outstanding requests reaches an handler-specific threshold. Client Specific Options ~~~~~~~~~~~~~~~~~~~~~~~ The following options are only used in ring client handlers. .. _client-options: client (array) Associative array of client specific transfer options. The ``client`` request key value pair can contain the following keys: cert (string, array) Set to a string to specify the path to a file containing a PEM formatted SSL client side certificate. If a password is required, then set ``cert`` to an array containing the path to the PEM file in the first array element followed by the certificate password in the second array element. connect_timeout (float) Float describing the number of seconds to wait while trying to connect to a server. Use ``0`` to wait indefinitely (the default behavior). debug (bool, fopen() resource) Set to true or set to a PHP stream returned by fopen() to enable debug output with the handler used to send a request. If set to ``true``, the output is written to PHP's STDOUT. If a PHP ``fopen`` resource handle is provided, the output is written to the stream. "Debug output" is handler specific: different handlers will yield different output and various various level of detail. For example, when using cURL to transfer requests, cURL's `CURLOPT_VERBOSE `_ will be used. When using the PHP stream wrapper, `stream notifications `_ will be emitted. decode_content (bool) Specify whether or not ``Content-Encoding`` responses (gzip, deflate, etc.) are automatically decoded. Set to ``true`` to automatically decode encoded responses. Set to ``false`` to not decode responses. By default, content is *not* decoded automatically. delay (int) The number of milliseconds to delay before sending the request. This is often used for delaying before retrying a request. Handlers SHOULD implement this if possible, but it is not a strict requirement. progress (function) Defines a function to invoke when transfer progress is made. The function accepts the following arguments: 1. The total number of bytes expected to be downloaded 2. The number of bytes downloaded so far 3. The number of bytes expected to be uploaded 4. The number of bytes uploaded so far proxy (string, array) Pass a string to specify an HTTP proxy, or an associative array to specify different proxies for different protocols where the scheme is the key and the value is the proxy address. .. code-block:: php $request = [ 'http_method' => 'GET', 'headers' => ['host' => ['httpbin.org']], 'client' => [ // Use different proxies for different URI schemes. 'proxy' => [ 'http' => 'http://proxy.example.com:5100', 'https' => 'https://proxy.example.com:6100' ] ] ]; ssl_key (string, array) Specify the path to a file containing a private SSL key in PEM format. If a password is required, then set to an array containing the path to the SSL key in the first array element followed by the password required for the certificate in the second element. save_to (string, fopen resource, ``GuzzleHttp\Stream\StreamInterface``) Specifies where the body of the response is downloaded. Pass a string to open a local file on disk and save the output to the file. Pass an fopen resource to save the output to a PHP stream resource. Pass a ``GuzzleHttp\Stream\StreamInterface`` to save the output to a Guzzle StreamInterface. Omitting this option will typically save the body of a response to a PHP temp stream. stream (bool) Set to true to stream a response rather than download it all up-front. This option will only be utilized when the corresponding handler supports it. timeout (float) Float describing the timeout of the request in seconds. Use 0 to wait indefinitely (the default behavior). verify (bool, string) Describes the SSL certificate verification behavior of a request. Set to true to enable SSL certificate verification using the system CA bundle when available (the default). Set to false to disable certificate verification (this is insecure!). Set to a string to provide the path to a CA bundle on disk to enable verification using a custom certificate. version (string) HTTP protocol version to use with the request. Server Specific Options ~~~~~~~~~~~~~~~~~~~~~~~ The following options are only used in ring server handlers. server_port (integer) The port on which the request is being handled. This is only used with ring servers, and is required. server_name (string) The resolved server name, or the server IP address. Required when using a Ring server. remote_addr (string) The IP address of the client or the last proxy that sent the request. Required when using a Ring server. Responses --------- A response is an array-like object that implements ``GuzzleHttp\Ring\Future\FutureArrayInterface``. Responses contain the following key value pairs: body (string, fopen resource, ``Iterator``, ``GuzzleHttp\Stream\StreamInterface``) The body of the response, if present. Can be a string, resource returned from fopen, an ``Iterator`` that yields chunks of data, an object that implemented ``__toString``, or a ``GuzzleHttp\Stream\StreamInterface``. effective_url (string) The URL that returned the resulting response. error (``\Exception``) Contains an exception describing any errors that were encountered during the transfer. headers (Required, array) Associative array of headers. Each key represents the header name. Each value contains an array of strings where each entry of the array is a header line. The headers array MAY be an empty array in the event an error occurred before a response was received. reason (string) Optional reason phrase. This option should be provided when the reason phrase does not match the typical reason phrase associated with the ``status`` code. See `RFC 7231 `_ for a list of HTTP reason phrases mapped to status codes. status (Required, integer) The HTTP status code. The status code MAY be set to ``null`` in the event an error occurred before a response was received (e.g., a networking error). transfer_stats (array) Provides an associative array of arbitrary transfer statistics if provided by the underlying handler. version (string) HTTP protocol version. Defaults to ``1.1``. Middleware ---------- Ring middleware augments the functionality of handlers by invoking them in the process of generating responses. Middleware is typically implemented as a higher-order function that takes one or more handlers as arguments followed by an optional associative array of options as the last argument, returning a new handler with the desired compound behavior. Here's an example of a middleware that adds a Content-Type header to each request. .. code-block:: php use GuzzleHttp\Ring\Client\CurlHandler; use GuzzleHttp\Ring\Core; $contentTypeHandler = function(callable $handler, $contentType) { return function (array $request) use ($handler, $contentType) { return $handler(Core::setHeader('Content-Type', $contentType)); }; }; $baseHandler = new CurlHandler(); $wrappedHandler = $contentTypeHandler($baseHandler, 'text/html'); $response = $wrappedHandler([/** request hash **/]); guzzlehttp/ringphp/docs/testing.rst000064400000004057150544704730013611 0ustar00======= Testing ======= RingPHP tests client handlers using `PHPUnit `_ and a built-in node.js web server. Running Tests ------------- First, install the dependencies using `Composer `_. composer.phar install Next, run the unit tests using ``Make``. make test The tests are also run on Travis-CI on each commit: https://travis-ci.org/guzzle/guzzle-ring Test Server ----------- Testing client handlers usually involves actually sending HTTP requests. RingPHP provides a node.js web server that returns canned responses and keep a list of the requests that have been received. The server can then be queried to get a list of the requests that were sent by the client so that you can ensure that the client serialized and transferred requests as intended. The server keeps a list of queued responses and returns responses that are popped off of the queue as HTTP requests are received. When there are not more responses to serve, the server returns a 500 error response. The test server uses the ``GuzzleHttp\Tests\Ring\Client\Server`` class to control the server. .. code-block:: php use GuzzleHttp\Ring\Client\StreamHandler; use GuzzleHttp\Tests\Ring\Client\Server; // First return a 200 followed by a 404 response. Server::enqueue([ ['status' => 200], ['status' => 404] ]); $handler = new StreamHandler(); $response = $handler([ 'http_method' => 'GET', 'headers' => ['host' => [Server::$host]], 'uri' => '/' ]); assert(200 == $response['status']); $response = $handler([ 'http_method' => 'HEAD', 'headers' => ['host' => [Server::$host]], 'uri' => '/' ]); assert(404 == $response['status']); After requests have been sent, you can get a list of the requests as they were sent over the wire to ensure they were sent correctly. .. code-block:: php $received = Server::received(); assert('GET' == $received[0]['http_method']); assert('HEAD' == $received[1]['http_method']); guzzlehttp/psr7/src/UriResolver.php000064400000021732150544704730013456 0ustar00getScheme() != '') { return $rel->withPath(self::removeDotSegments($rel->getPath())); } if ($rel->getAuthority() != '') { $targetAuthority = $rel->getAuthority(); $targetPath = self::removeDotSegments($rel->getPath()); $targetQuery = $rel->getQuery(); } else { $targetAuthority = $base->getAuthority(); if ($rel->getPath() === '') { $targetPath = $base->getPath(); $targetQuery = $rel->getQuery() != '' ? $rel->getQuery() : $base->getQuery(); } else { if ($rel->getPath()[0] === '/') { $targetPath = $rel->getPath(); } else { if ($targetAuthority != '' && $base->getPath() === '') { $targetPath = '/' . $rel->getPath(); } else { $lastSlashPos = \strrpos($base->getPath(), '/'); if ($lastSlashPos === \false) { $targetPath = $rel->getPath(); } else { $targetPath = \substr($base->getPath(), 0, $lastSlashPos + 1) . $rel->getPath(); } } } $targetPath = self::removeDotSegments($targetPath); $targetQuery = $rel->getQuery(); } } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri::composeComponents($base->getScheme(), $targetAuthority, $targetPath, $targetQuery, $rel->getFragment())); } /** * Returns the target URI as a relative reference from the base URI. * * This method is the counterpart to resolve(): * * (string) $target === (string) UriResolver::resolve($base, UriResolver::relativize($base, $target)) * * One use-case is to use the current request URI as base URI and then generate relative links in your documents * to reduce the document size or offer self-contained downloadable document archives. * * $base = new Uri('http://example.com/a/b/'); * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/c')); // prints 'c'. * echo UriResolver::relativize($base, new Uri('http://example.com/a/x/y')); // prints '../x/y'. * echo UriResolver::relativize($base, new Uri('http://example.com/a/b/?q')); // prints '?q'. * echo UriResolver::relativize($base, new Uri('http://example.org/a/b/')); // prints '//example.org/a/b/'. * * This method also accepts a target that is already relative and will try to relativize it further. Only a * relative-path reference will be returned as-is. * * echo UriResolver::relativize($base, new Uri('/a/b/c')); // prints 'c' as well * * @param UriInterface $base Base URI * @param UriInterface $target Target URI * * @return UriInterface The relative URI reference */ public static function relativize(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $base, \Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $target) { if ($target->getScheme() !== '' && ($base->getScheme() !== $target->getScheme() || $target->getAuthority() === '' && $base->getAuthority() !== '')) { return $target; } if (\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri::isRelativePathReference($target)) { // As the target is already highly relative we return it as-is. It would be possible to resolve // the target with `$target = self::resolve($base, $target);` and then try make it more relative // by removing a duplicate query. But let's not do that automatically. return $target; } if ($target->getAuthority() !== '' && $base->getAuthority() !== $target->getAuthority()) { return $target->withScheme(''); } // We must remove the path before removing the authority because if the path starts with two slashes, the URI // would turn invalid. And we also cannot set a relative path before removing the authority, as that is also // invalid. $emptyPathUri = $target->withScheme('')->withPath('')->withUserInfo('')->withPort(null)->withHost(''); if ($base->getPath() !== $target->getPath()) { return $emptyPathUri->withPath(self::getRelativePath($base, $target)); } if ($base->getQuery() === $target->getQuery()) { // Only the target fragment is left. And it must be returned even if base and target fragment are the same. return $emptyPathUri->withQuery(''); } // If the base URI has a query but the target has none, we cannot return an empty path reference as it would // inherit the base query component when resolving. if ($target->getQuery() === '') { $segments = \explode('/', $target->getPath()); $lastSegment = \end($segments); return $emptyPathUri->withPath($lastSegment === '' ? './' : $lastSegment); } return $emptyPathUri; } private static function getRelativePath(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $base, \Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $target) { $sourceSegments = \explode('/', $base->getPath()); $targetSegments = \explode('/', $target->getPath()); \array_pop($sourceSegments); $targetLastSegment = \array_pop($targetSegments); foreach ($sourceSegments as $i => $segment) { if (isset($targetSegments[$i]) && $segment === $targetSegments[$i]) { unset($sourceSegments[$i], $targetSegments[$i]); } else { break; } } $targetSegments[] = $targetLastSegment; $relativePath = \str_repeat('../', \count($sourceSegments)) . \implode('/', $targetSegments); // A reference to am empty last segment or an empty first sub-segment must be prefixed with "./". // This also applies to a segment with a colon character (e.g., "file:colon") that cannot be used // as the first segment of a relative-path reference, as it would be mistaken for a scheme name. if ('' === $relativePath || \false !== \strpos(\explode('/', $relativePath, 2)[0], ':')) { $relativePath = "./{$relativePath}"; } elseif ('/' === $relativePath[0]) { if ($base->getAuthority() != '' && $base->getPath() === '') { // In this case an extra slash is added by resolve() automatically. So we must not add one here. $relativePath = ".{$relativePath}"; } else { $relativePath = "./{$relativePath}"; } } return $relativePath; } private function __construct() { // cannot be instantiated } } guzzlehttp/psr7/src/MessageTrait.php000064400000017227150544704730013571 0ustar00 array of values */ private $headers = []; /** @var array Map of lowercase header name => original name at registration */ private $headerNames = []; /** @var string */ private $protocol = '1.1'; /** @var StreamInterface|null */ private $stream; public function getProtocolVersion() { return $this->protocol; } public function withProtocolVersion($version) { if ($this->protocol === $version) { return $this; } $new = clone $this; $new->protocol = $version; return $new; } public function getHeaders() { return $this->headers; } public function hasHeader($header) { return isset($this->headerNames[\strtolower($header)]); } public function getHeader($header) { $header = \strtolower($header); if (!isset($this->headerNames[$header])) { return []; } $header = $this->headerNames[$header]; return $this->headers[$header]; } public function getHeaderLine($header) { return \implode(', ', $this->getHeader($header)); } public function withHeader($header, $value) { $this->assertHeader($header); $value = $this->normalizeHeaderValue($value); $normalized = \strtolower($header); $new = clone $this; if (isset($new->headerNames[$normalized])) { unset($new->headers[$new->headerNames[$normalized]]); } $new->headerNames[$normalized] = $header; $new->headers[$header] = $value; return $new; } public function withAddedHeader($header, $value) { $this->assertHeader($header); $value = $this->normalizeHeaderValue($value); $normalized = \strtolower($header); $new = clone $this; if (isset($new->headerNames[$normalized])) { $header = $this->headerNames[$normalized]; $new->headers[$header] = \array_merge($this->headers[$header], $value); } else { $new->headerNames[$normalized] = $header; $new->headers[$header] = $value; } return $new; } public function withoutHeader($header) { $normalized = \strtolower($header); if (!isset($this->headerNames[$normalized])) { return $this; } $header = $this->headerNames[$normalized]; $new = clone $this; unset($new->headers[$header], $new->headerNames[$normalized]); return $new; } public function getBody() { if (!$this->stream) { $this->stream = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor(''); } return $this->stream; } public function withBody(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $body) { if ($body === $this->stream) { return $this; } $new = clone $this; $new->stream = $body; return $new; } private function setHeaders(array $headers) { $this->headerNames = $this->headers = []; foreach ($headers as $header => $value) { if (\is_int($header)) { // Numeric array keys are converted to int by PHP but having a header name '123' is not forbidden by the spec // and also allowed in withHeader(). So we need to cast it to string again for the following assertion to pass. $header = (string) $header; } $this->assertHeader($header); $value = $this->normalizeHeaderValue($value); $normalized = \strtolower($header); if (isset($this->headerNames[$normalized])) { $header = $this->headerNames[$normalized]; $this->headers[$header] = \array_merge($this->headers[$header], $value); } else { $this->headerNames[$normalized] = $header; $this->headers[$header] = $value; } } } /** * @param mixed $value * * @return string[] */ private function normalizeHeaderValue($value) { if (!\is_array($value)) { return $this->trimAndValidateHeaderValues([$value]); } if (\count($value) === 0) { throw new \InvalidArgumentException('Header value can not be an empty array.'); } return $this->trimAndValidateHeaderValues($value); } /** * Trims whitespace from the header values. * * Spaces and tabs ought to be excluded by parsers when extracting the field value from a header field. * * header-field = field-name ":" OWS field-value OWS * OWS = *( SP / HTAB ) * * @param mixed[] $values Header values * * @return string[] Trimmed header values * * @see https://tools.ietf.org/html/rfc7230#section-3.2.4 */ private function trimAndValidateHeaderValues(array $values) { return \array_map(function ($value) { if (!\is_scalar($value) && null !== $value) { throw new \InvalidArgumentException(\sprintf('Header value must be scalar or null but %s provided.', \is_object($value) ? \get_class($value) : \gettype($value))); } $trimmed = \trim((string) $value, " \t"); $this->assertValue($trimmed); return $trimmed; }, \array_values($values)); } /** * @see https://tools.ietf.org/html/rfc7230#section-3.2 * * @param mixed $header * * @return void */ private function assertHeader($header) { if (!\is_string($header)) { throw new \InvalidArgumentException(\sprintf('Header name must be a string but %s provided.', \is_object($header) ? \get_class($header) : \gettype($header))); } if ($header === '') { throw new \InvalidArgumentException('Header name can not be empty.'); } if (!\preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/', $header)) { throw new \InvalidArgumentException(\sprintf('"%s" is not valid header name', $header)); } } /** * @param string $value * * @return void * * @see https://tools.ietf.org/html/rfc7230#section-3.2 * * field-value = *( field-content / obs-fold ) * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ] * field-vchar = VCHAR / obs-text * VCHAR = %x21-7E * obs-text = %x80-FF * obs-fold = CRLF 1*( SP / HTAB ) */ private function assertValue($value) { // The regular expression intentionally does not support the obs-fold production, because as // per RFC 7230#3.2.4: // // A sender MUST NOT generate a message that includes // line folding (i.e., that has any field-value that contains a match to // the obs-fold rule) unless the message is intended for packaging // within the message/http media type. // // Clients must not send a request with line folding and a server sending folded headers is // likely very rare. Line folding is a fairly obscure feature of HTTP/1.1 and thus not accepting // folding is not likely to break any legitimate use case. if (!\preg_match('/^[\\x20\\x09\\x21-\\x7E\\x80-\\xFF]*$/', $value)) { throw new \InvalidArgumentException(\sprintf('"%s" is not valid header value', $value)); } } } guzzlehttp/psr7/src/MultipartStream.php000064400000011706150544704730014332 0ustar00boundary = $boundary ?: \sha1(\uniqid('', \true)); $this->stream = $this->createStream($elements); } /** * Get the boundary * * @return string */ public function getBoundary() { return $this->boundary; } public function isWritable() { return \false; } /** * Get the headers needed before transferring the content of a POST file */ private function getHeaders(array $headers) { $str = ''; foreach ($headers as $key => $value) { $str .= "{$key}: {$value}\r\n"; } return "--{$this->boundary}\r\n" . \trim($str) . "\r\n\r\n"; } /** * Create the aggregate stream that will be used to upload the POST data */ protected function createStream(array $elements) { $stream = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\AppendStream(); foreach ($elements as $element) { $this->addElement($stream, $element); } // Add the trailing boundary with CRLF $stream->addStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor("--{$this->boundary}--\r\n")); return $stream; } private function addElement(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\AppendStream $stream, array $element) { foreach (['contents', 'name'] as $key) { if (!\array_key_exists($key, $element)) { throw new \InvalidArgumentException("A '{$key}' key is required"); } } $element['contents'] = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor($element['contents']); if (empty($element['filename'])) { $uri = $element['contents']->getMetadata('uri'); if (\substr($uri, 0, 6) !== 'php://') { $element['filename'] = $uri; } } list($body, $headers) = $this->createElement($element['name'], $element['contents'], isset($element['filename']) ? $element['filename'] : null, isset($element['headers']) ? $element['headers'] : []); $stream->addStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor($this->getHeaders($headers))); $stream->addStream($body); $stream->addStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor("\r\n")); } /** * @return array */ private function createElement($name, \Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $stream, $filename, array $headers) { // Set a default content-disposition header if one was no provided $disposition = $this->getHeader($headers, 'content-disposition'); if (!$disposition) { $headers['Content-Disposition'] = $filename === '0' || $filename ? \sprintf('form-data; name="%s"; filename="%s"', $name, \basename($filename)) : "form-data; name=\"{$name}\""; } // Set a default content-length header if one was no provided $length = $this->getHeader($headers, 'content-length'); if (!$length) { if ($length = $stream->getSize()) { $headers['Content-Length'] = (string) $length; } } // Set a default Content-Type if one was not supplied $type = $this->getHeader($headers, 'content-type'); if (!$type && ($filename === '0' || $filename)) { if ($type = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\MimeType::fromFilename($filename)) { $headers['Content-Type'] = $type; } } return [$stream, $headers]; } private function getHeader(array $headers, $key) { $lowercaseHeader = \strtolower($key); foreach ($headers as $k => $v) { if (\strtolower($k) === $lowercaseHeader) { return $v; } } return null; } } guzzlehttp/psr7/src/Response.php000064400000010560150544704730012770 0ustar00 'Continue', 101 => 'Switching Protocols', 102 => 'Processing', 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-status', 208 => 'Already Reported', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 306 => 'Switch Proxy', 307 => 'Temporary Redirect', 400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Time-out', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request-URI Too Large', 415 => 'Unsupported Media Type', 416 => 'Requested range not satisfiable', 417 => 'Expectation Failed', 418 => 'I\'m a teapot', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', 425 => 'Unordered Collection', 426 => 'Upgrade Required', 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'Request Header Fields Too Large', 451 => 'Unavailable For Legal Reasons', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Time-out', 505 => 'HTTP Version not supported', 506 => 'Variant Also Negotiates', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 511 => 'Network Authentication Required']; /** @var string */ private $reasonPhrase = ''; /** @var int */ private $statusCode = 200; /** * @param int $status Status code * @param array $headers Response headers * @param string|resource|StreamInterface|null $body Response body * @param string $version Protocol version * @param string|null $reason Reason phrase (when empty a default will be used based on the status code) */ public function __construct($status = 200, array $headers = [], $body = null, $version = '1.1', $reason = null) { $this->assertStatusCodeIsInteger($status); $status = (int) $status; $this->assertStatusCodeRange($status); $this->statusCode = $status; if ($body !== '' && $body !== null) { $this->stream = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor($body); } $this->setHeaders($headers); if ($reason == '' && isset(self::$phrases[$this->statusCode])) { $this->reasonPhrase = self::$phrases[$this->statusCode]; } else { $this->reasonPhrase = (string) $reason; } $this->protocol = $version; } public function getStatusCode() { return $this->statusCode; } public function getReasonPhrase() { return $this->reasonPhrase; } public function withStatus($code, $reasonPhrase = '') { $this->assertStatusCodeIsInteger($code); $code = (int) $code; $this->assertStatusCodeRange($code); $new = clone $this; $new->statusCode = $code; if ($reasonPhrase == '' && isset(self::$phrases[$new->statusCode])) { $reasonPhrase = self::$phrases[$new->statusCode]; } $new->reasonPhrase = (string) $reasonPhrase; return $new; } private function assertStatusCodeIsInteger($statusCode) { if (\filter_var($statusCode, \FILTER_VALIDATE_INT) === \false) { throw new \InvalidArgumentException('Status code must be an integer value.'); } } private function assertStatusCodeRange($statusCode) { if ($statusCode < 100 || $statusCode >= 600) { throw new \InvalidArgumentException('Status code must be an integer value between 1xx and 5xx.'); } } } guzzlehttp/psr7/src/Message.php000064400000020660150544704730012560 0ustar00getMethod() . ' ' . $message->getRequestTarget()) . ' HTTP/' . $message->getProtocolVersion(); if (!$message->hasHeader('host')) { $msg .= "\r\nHost: " . $message->getUri()->getHost(); } } elseif ($message instanceof \Google\Site_Kit_Dependencies\Psr\Http\Message\ResponseInterface) { $msg = 'HTTP/' . $message->getProtocolVersion() . ' ' . $message->getStatusCode() . ' ' . $message->getReasonPhrase(); } else { throw new \InvalidArgumentException('Unknown message type'); } foreach ($message->getHeaders() as $name => $values) { if (\strtolower($name) === 'set-cookie') { foreach ($values as $value) { $msg .= "\r\n{$name}: " . $value; } } else { $msg .= "\r\n{$name}: " . \implode(', ', $values); } } return "{$msg}\r\n\r\n" . $message->getBody(); } /** * Get a short summary of the message body. * * Will return `null` if the response is not printable. * * @param MessageInterface $message The message to get the body summary * @param int $truncateAt The maximum allowed size of the summary * * @return string|null */ public static function bodySummary(\Google\Site_Kit_Dependencies\Psr\Http\Message\MessageInterface $message, $truncateAt = 120) { $body = $message->getBody(); if (!$body->isSeekable() || !$body->isReadable()) { return null; } $size = $body->getSize(); if ($size === 0) { return null; } $summary = $body->read($truncateAt); $body->rewind(); if ($size > $truncateAt) { $summary .= ' (truncated...)'; } // Matches any printable character, including unicode characters: // letters, marks, numbers, punctuation, spacing, and separators. if (\preg_match('/[^\\pL\\pM\\pN\\pP\\pS\\pZ\\n\\r\\t]/u', $summary)) { return null; } return $summary; } /** * Attempts to rewind a message body and throws an exception on failure. * * The body of the message will only be rewound if a call to `tell()` * returns a value other than `0`. * * @param MessageInterface $message Message to rewind * * @throws \RuntimeException */ public static function rewindBody(\Google\Site_Kit_Dependencies\Psr\Http\Message\MessageInterface $message) { $body = $message->getBody(); if ($body->tell()) { $body->rewind(); } } /** * Parses an HTTP message into an associative array. * * The array contains the "start-line" key containing the start line of * the message, "headers" key containing an associative array of header * array values, and a "body" key containing the body of the message. * * @param string $message HTTP request or response to parse. * * @return array */ public static function parseMessage($message) { if (!$message) { throw new \InvalidArgumentException('Invalid message'); } $message = \ltrim($message, "\r\n"); $messageParts = \preg_split("/\r?\n\r?\n/", $message, 2); if ($messageParts === \false || \count($messageParts) !== 2) { throw new \InvalidArgumentException('Invalid message: Missing header delimiter'); } list($rawHeaders, $body) = $messageParts; $rawHeaders .= "\r\n"; // Put back the delimiter we split previously $headerParts = \preg_split("/\r?\n/", $rawHeaders, 2); if ($headerParts === \false || \count($headerParts) !== 2) { throw new \InvalidArgumentException('Invalid message: Missing status line'); } list($startLine, $rawHeaders) = $headerParts; if (\preg_match("/(?:^HTTP\\/|^[A-Z]+ \\S+ HTTP\\/)(\\d+(?:\\.\\d+)?)/i", $startLine, $matches) && $matches[1] === '1.0') { // Header folding is deprecated for HTTP/1.1, but allowed in HTTP/1.0 $rawHeaders = \preg_replace(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Rfc7230::HEADER_FOLD_REGEX, ' ', $rawHeaders); } /** @var array[] $headerLines */ $count = \preg_match_all(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Rfc7230::HEADER_REGEX, $rawHeaders, $headerLines, \PREG_SET_ORDER); // If these aren't the same, then one line didn't match and there's an invalid header. if ($count !== \substr_count($rawHeaders, "\n")) { // Folding is deprecated, see https://tools.ietf.org/html/rfc7230#section-3.2.4 if (\preg_match(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Rfc7230::HEADER_FOLD_REGEX, $rawHeaders)) { throw new \InvalidArgumentException('Invalid header syntax: Obsolete line folding'); } throw new \InvalidArgumentException('Invalid header syntax'); } $headers = []; foreach ($headerLines as $headerLine) { $headers[$headerLine[1]][] = $headerLine[2]; } return ['start-line' => $startLine, 'headers' => $headers, 'body' => $body]; } /** * Constructs a URI for an HTTP request message. * * @param string $path Path from the start-line * @param array $headers Array of headers (each value an array). * * @return string */ public static function parseRequestUri($path, array $headers) { $hostKey = \array_filter(\array_keys($headers), function ($k) { return \strtolower($k) === 'host'; }); // If no host is found, then a full URI cannot be constructed. if (!$hostKey) { return $path; } $host = $headers[\reset($hostKey)][0]; $scheme = \substr($host, -4) === ':443' ? 'https' : 'http'; return $scheme . '://' . $host . '/' . \ltrim($path, '/'); } /** * Parses a request message string into a request object. * * @param string $message Request message string. * * @return Request */ public static function parseRequest($message) { $data = self::parseMessage($message); $matches = []; if (!\preg_match('/^[\\S]+\\s+([a-zA-Z]+:\\/\\/|\\/).*/', $data['start-line'], $matches)) { throw new \InvalidArgumentException('Invalid request string'); } $parts = \explode(' ', $data['start-line'], 3); $version = isset($parts[2]) ? \explode('/', $parts[2])[1] : '1.1'; $request = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request($parts[0], $matches[1] === '/' ? self::parseRequestUri($parts[1], $data['headers']) : $parts[1], $data['headers'], $data['body'], $version); return $matches[1] === '/' ? $request : $request->withRequestTarget($parts[1]); } /** * Parses a response message string into a response object. * * @param string $message Response message string. * * @return Response */ public static function parseResponse($message) { $data = self::parseMessage($message); // According to https://tools.ietf.org/html/rfc7230#section-3.1.2 the space // between status-code and reason-phrase is required. But browsers accept // responses without space and reason as well. if (!\preg_match('/^HTTP\\/.* [0-9]{3}( .*|$)/', $data['start-line'])) { throw new \InvalidArgumentException('Invalid response string: ' . $data['start-line']); } $parts = \explode(' ', $data['start-line'], 3); return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Response((int) $parts[1], $data['headers'], $data['body'], \explode('/', $parts[0])[1], isset($parts[2]) ? $parts[2] : null); } } guzzlehttp/psr7/src/CachingStream.php000064400000011243150544704730013701 0ustar00remoteStream = $stream; $this->stream = $target ?: new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Stream(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::tryFopen('php://temp', 'r+')); } public function getSize() { $remoteSize = $this->remoteStream->getSize(); if (null === $remoteSize) { return null; } return \max($this->stream->getSize(), $remoteSize); } public function rewind() { $this->seek(0); } public function seek($offset, $whence = \SEEK_SET) { if ($whence == \SEEK_SET) { $byte = $offset; } elseif ($whence == \SEEK_CUR) { $byte = $offset + $this->tell(); } elseif ($whence == \SEEK_END) { $size = $this->remoteStream->getSize(); if ($size === null) { $size = $this->cacheEntireStream(); } $byte = $size + $offset; } else { throw new \InvalidArgumentException('Invalid whence'); } $diff = $byte - $this->stream->getSize(); if ($diff > 0) { // Read the remoteStream until we have read in at least the amount // of bytes requested, or we reach the end of the file. while ($diff > 0 && !$this->remoteStream->eof()) { $this->read($diff); $diff = $byte - $this->stream->getSize(); } } else { // We can just do a normal seek since we've already seen this byte. $this->stream->seek($byte); } } public function read($length) { // Perform a regular read on any previously read data from the buffer $data = $this->stream->read($length); $remaining = $length - \strlen($data); // More data was requested so read from the remote stream if ($remaining) { // If data was written to the buffer in a position that would have // been filled from the remote stream, then we must skip bytes on // the remote stream to emulate overwriting bytes from that // position. This mimics the behavior of other PHP stream wrappers. $remoteData = $this->remoteStream->read($remaining + $this->skipReadBytes); if ($this->skipReadBytes) { $len = \strlen($remoteData); $remoteData = \substr($remoteData, $this->skipReadBytes); $this->skipReadBytes = \max(0, $this->skipReadBytes - $len); } $data .= $remoteData; $this->stream->write($remoteData); } return $data; } public function write($string) { // When appending to the end of the currently read stream, you'll want // to skip bytes from being read from the remote stream to emulate // other stream wrappers. Basically replacing bytes of data of a fixed // length. $overflow = \strlen($string) + $this->tell() - $this->remoteStream->tell(); if ($overflow > 0) { $this->skipReadBytes += $overflow; } return $this->stream->write($string); } public function eof() { return $this->stream->eof() && $this->remoteStream->eof(); } /** * Close both the remote stream and buffer stream */ public function close() { $this->remoteStream->close() && $this->stream->close(); } private function cacheEntireStream() { $target = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\FnStream(['write' => 'strlen']); \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::copyToStream($this, $target); return $this->tell(); } } guzzlehttp/psr7/src/Stream.php000064400000015324150544704730012430 0ustar00size = $options['size']; } $this->customMetadata = isset($options['metadata']) ? $options['metadata'] : []; $this->stream = $stream; $meta = \stream_get_meta_data($this->stream); $this->seekable = $meta['seekable']; $this->readable = (bool) \preg_match(self::READABLE_MODES, $meta['mode']); $this->writable = (bool) \preg_match(self::WRITABLE_MODES, $meta['mode']); $this->uri = $this->getMetadata('uri'); } /** * Closes the stream when the destructed */ public function __destruct() { $this->close(); } public function __toString() { try { if ($this->isSeekable()) { $this->seek(0); } return $this->getContents(); } catch (\Exception $e) { return ''; } } public function getContents() { if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } $contents = \stream_get_contents($this->stream); if ($contents === \false) { throw new \RuntimeException('Unable to read stream contents'); } return $contents; } public function close() { if (isset($this->stream)) { if (\is_resource($this->stream)) { \fclose($this->stream); } $this->detach(); } } public function detach() { if (!isset($this->stream)) { return null; } $result = $this->stream; unset($this->stream); $this->size = $this->uri = null; $this->readable = $this->writable = $this->seekable = \false; return $result; } public function getSize() { if ($this->size !== null) { return $this->size; } if (!isset($this->stream)) { return null; } // Clear the stat cache if the stream has a URI if ($this->uri) { \clearstatcache(\true, $this->uri); } $stats = \fstat($this->stream); if (isset($stats['size'])) { $this->size = $stats['size']; return $this->size; } return null; } public function isReadable() { return $this->readable; } public function isWritable() { return $this->writable; } public function isSeekable() { return $this->seekable; } public function eof() { if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } return \feof($this->stream); } public function tell() { if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } $result = \ftell($this->stream); if ($result === \false) { throw new \RuntimeException('Unable to determine stream position'); } return $result; } public function rewind() { $this->seek(0); } public function seek($offset, $whence = \SEEK_SET) { $whence = (int) $whence; if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } if (!$this->seekable) { throw new \RuntimeException('Stream is not seekable'); } if (\fseek($this->stream, $offset, $whence) === -1) { throw new \RuntimeException('Unable to seek to stream position ' . $offset . ' with whence ' . \var_export($whence, \true)); } } public function read($length) { if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } if (!$this->readable) { throw new \RuntimeException('Cannot read from non-readable stream'); } if ($length < 0) { throw new \RuntimeException('Length parameter cannot be negative'); } if (0 === $length) { return ''; } $string = \fread($this->stream, $length); if (\false === $string) { throw new \RuntimeException('Unable to read from stream'); } return $string; } public function write($string) { if (!isset($this->stream)) { throw new \RuntimeException('Stream is detached'); } if (!$this->writable) { throw new \RuntimeException('Cannot write to a non-writable stream'); } // We can't know the size after writing anything $this->size = null; $result = \fwrite($this->stream, $string); if ($result === \false) { throw new \RuntimeException('Unable to write to stream'); } return $result; } public function getMetadata($key = null) { if (!isset($this->stream)) { return $key ? null : []; } elseif (!$key) { return $this->customMetadata + \stream_get_meta_data($this->stream); } elseif (isset($this->customMetadata[$key])) { return $this->customMetadata[$key]; } $meta = \stream_get_meta_data($this->stream); return isset($meta[$key]) ? $meta[$key] : null; } } guzzlehttp/psr7/src/BufferStream.php000064400000006144150544704730013562 0ustar00hwm = $hwm; } public function __toString() { return $this->getContents(); } public function getContents() { $buffer = $this->buffer; $this->buffer = ''; return $buffer; } public function close() { $this->buffer = ''; } public function detach() { $this->close(); return null; } public function getSize() { return \strlen($this->buffer); } public function isReadable() { return \true; } public function isWritable() { return \true; } public function isSeekable() { return \false; } public function rewind() { $this->seek(0); } public function seek($offset, $whence = \SEEK_SET) { throw new \RuntimeException('Cannot seek a BufferStream'); } public function eof() { return \strlen($this->buffer) === 0; } public function tell() { throw new \RuntimeException('Cannot determine the position of a BufferStream'); } /** * Reads data from the buffer. */ public function read($length) { $currentLength = \strlen($this->buffer); if ($length >= $currentLength) { // No need to slice the buffer because we don't have enough data. $result = $this->buffer; $this->buffer = ''; } else { // Slice up the result to provide a subset of the buffer. $result = \substr($this->buffer, 0, $length); $this->buffer = \substr($this->buffer, $length); } return $result; } /** * Writes data to the buffer. */ public function write($string) { $this->buffer .= $string; // TODO: What should happen here? if (\strlen($this->buffer) >= $this->hwm) { return \false; } return \strlen($string); } public function getMetadata($key = null) { if ($key == 'hwm') { return $this->hwm; } return $key ? null : []; } } guzzlehttp/psr7/src/LazyOpenStream.php000064400000002104150544704730014102 0ustar00filename = $filename; $this->mode = $mode; } /** * Creates the underlying stream lazily when required. * * @return StreamInterface */ protected function createStream() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::tryFopen($this->filename, $this->mode)); } } guzzlehttp/psr7/src/ServerRequest.php000064400000023504150544704730014013 0ustar00serverParams = $serverParams; parent::__construct($method, $uri, $headers, $body, $version); } /** * Return an UploadedFile instance array. * * @param array $files A array which respect $_FILES structure * * @return array * * @throws InvalidArgumentException for unrecognized values */ public static function normalizeFiles(array $files) { $normalized = []; foreach ($files as $key => $value) { if ($value instanceof \Google\Site_Kit_Dependencies\Psr\Http\Message\UploadedFileInterface) { $normalized[$key] = $value; } elseif (\is_array($value) && isset($value['tmp_name'])) { $normalized[$key] = self::createUploadedFileFromSpec($value); } elseif (\is_array($value)) { $normalized[$key] = self::normalizeFiles($value); continue; } else { throw new \InvalidArgumentException('Invalid value in files specification'); } } return $normalized; } /** * Create and return an UploadedFile instance from a $_FILES specification. * * If the specification represents an array of values, this method will * delegate to normalizeNestedFileSpec() and return that return value. * * @param array $value $_FILES struct * * @return array|UploadedFileInterface */ private static function createUploadedFileFromSpec(array $value) { if (\is_array($value['tmp_name'])) { return self::normalizeNestedFileSpec($value); } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\UploadedFile($value['tmp_name'], (int) $value['size'], (int) $value['error'], $value['name'], $value['type']); } /** * Normalize an array of file specifications. * * Loops through all nested files and returns a normalized array of * UploadedFileInterface instances. * * @param array $files * * @return UploadedFileInterface[] */ private static function normalizeNestedFileSpec(array $files = []) { $normalizedFiles = []; foreach (\array_keys($files['tmp_name']) as $key) { $spec = ['tmp_name' => $files['tmp_name'][$key], 'size' => $files['size'][$key], 'error' => $files['error'][$key], 'name' => $files['name'][$key], 'type' => $files['type'][$key]]; $normalizedFiles[$key] = self::createUploadedFileFromSpec($spec); } return $normalizedFiles; } /** * Return a ServerRequest populated with superglobals: * $_GET * $_POST * $_COOKIE * $_FILES * $_SERVER * * @return ServerRequestInterface */ public static function fromGlobals() { $method = isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : 'GET'; $headers = \getallheaders(); $uri = self::getUriFromGlobals(); $body = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\CachingStream(new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\LazyOpenStream('php://input', 'r+')); $protocol = isset($_SERVER['SERVER_PROTOCOL']) ? \str_replace('HTTP/', '', $_SERVER['SERVER_PROTOCOL']) : '1.1'; $serverRequest = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\ServerRequest($method, $uri, $headers, $body, $protocol, $_SERVER); return $serverRequest->withCookieParams($_COOKIE)->withQueryParams($_GET)->withParsedBody($_POST)->withUploadedFiles(self::normalizeFiles($_FILES)); } private static function extractHostAndPortFromAuthority($authority) { $uri = 'http://' . $authority; $parts = \parse_url($uri); if (\false === $parts) { return [null, null]; } $host = isset($parts['host']) ? $parts['host'] : null; $port = isset($parts['port']) ? $parts['port'] : null; return [$host, $port]; } /** * Get a Uri populated with values from $_SERVER. * * @return UriInterface */ public static function getUriFromGlobals() { $uri = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri(''); $uri = $uri->withScheme(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' ? 'https' : 'http'); $hasPort = \false; if (isset($_SERVER['HTTP_HOST'])) { list($host, $port) = self::extractHostAndPortFromAuthority($_SERVER['HTTP_HOST']); if ($host !== null) { $uri = $uri->withHost($host); } if ($port !== null) { $hasPort = \true; $uri = $uri->withPort($port); } } elseif (isset($_SERVER['SERVER_NAME'])) { $uri = $uri->withHost($_SERVER['SERVER_NAME']); } elseif (isset($_SERVER['SERVER_ADDR'])) { $uri = $uri->withHost($_SERVER['SERVER_ADDR']); } if (!$hasPort && isset($_SERVER['SERVER_PORT'])) { $uri = $uri->withPort($_SERVER['SERVER_PORT']); } $hasQuery = \false; if (isset($_SERVER['REQUEST_URI'])) { $requestUriParts = \explode('?', $_SERVER['REQUEST_URI'], 2); $uri = $uri->withPath($requestUriParts[0]); if (isset($requestUriParts[1])) { $hasQuery = \true; $uri = $uri->withQuery($requestUriParts[1]); } } if (!$hasQuery && isset($_SERVER['QUERY_STRING'])) { $uri = $uri->withQuery($_SERVER['QUERY_STRING']); } return $uri; } /** * {@inheritdoc} */ public function getServerParams() { return $this->serverParams; } /** * {@inheritdoc} */ public function getUploadedFiles() { return $this->uploadedFiles; } /** * {@inheritdoc} */ public function withUploadedFiles(array $uploadedFiles) { $new = clone $this; $new->uploadedFiles = $uploadedFiles; return $new; } /** * {@inheritdoc} */ public function getCookieParams() { return $this->cookieParams; } /** * {@inheritdoc} */ public function withCookieParams(array $cookies) { $new = clone $this; $new->cookieParams = $cookies; return $new; } /** * {@inheritdoc} */ public function getQueryParams() { return $this->queryParams; } /** * {@inheritdoc} */ public function withQueryParams(array $query) { $new = clone $this; $new->queryParams = $query; return $new; } /** * {@inheritdoc} */ public function getParsedBody() { return $this->parsedBody; } /** * {@inheritdoc} */ public function withParsedBody($data) { $new = clone $this; $new->parsedBody = $data; return $new; } /** * {@inheritdoc} */ public function getAttributes() { return $this->attributes; } /** * {@inheritdoc} */ public function getAttribute($attribute, $default = null) { if (\false === \array_key_exists($attribute, $this->attributes)) { return $default; } return $this->attributes[$attribute]; } /** * {@inheritdoc} */ public function withAttribute($attribute, $value) { $new = clone $this; $new->attributes[$attribute] = $value; return $new; } /** * {@inheritdoc} */ public function withoutAttribute($attribute) { if (\false === \array_key_exists($attribute, $this->attributes)) { return $this; } $new = clone $this; unset($new->attributes[$attribute]); return $new; } } guzzlehttp/psr7/src/Utils.php000064400000035515150544704730012301 0ustar00 $keys * * @return array */ public static function caselessRemove($keys, array $data) { $result = []; foreach ($keys as &$key) { $key = \strtolower($key); } foreach ($data as $k => $v) { if (!\in_array(\strtolower($k), $keys)) { $result[$k] = $v; } } return $result; } /** * Copy the contents of a stream into another stream until the given number * of bytes have been read. * * @param StreamInterface $source Stream to read from * @param StreamInterface $dest Stream to write to * @param int $maxLen Maximum number of bytes to read. Pass -1 * to read the entire stream. * * @throws \RuntimeException on error. */ public static function copyToStream(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $source, \Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $dest, $maxLen = -1) { $bufferSize = 8192; if ($maxLen === -1) { while (!$source->eof()) { if (!$dest->write($source->read($bufferSize))) { break; } } } else { $remaining = $maxLen; while ($remaining > 0 && !$source->eof()) { $buf = $source->read(\min($bufferSize, $remaining)); $len = \strlen($buf); if (!$len) { break; } $remaining -= $len; $dest->write($buf); } } } /** * Copy the contents of a stream into a string until the given number of * bytes have been read. * * @param StreamInterface $stream Stream to read * @param int $maxLen Maximum number of bytes to read. Pass -1 * to read the entire stream. * * @return string * * @throws \RuntimeException on error. */ public static function copyToString(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $stream, $maxLen = -1) { $buffer = ''; if ($maxLen === -1) { while (!$stream->eof()) { $buf = $stream->read(1048576); // Using a loose equality here to match on '' and false. if ($buf == null) { break; } $buffer .= $buf; } return $buffer; } $len = 0; while (!$stream->eof() && $len < $maxLen) { $buf = $stream->read($maxLen - $len); // Using a loose equality here to match on '' and false. if ($buf == null) { break; } $buffer .= $buf; $len = \strlen($buffer); } return $buffer; } /** * Calculate a hash of a stream. * * This method reads the entire stream to calculate a rolling hash, based * on PHP's `hash_init` functions. * * @param StreamInterface $stream Stream to calculate the hash for * @param string $algo Hash algorithm (e.g. md5, crc32, etc) * @param bool $rawOutput Whether or not to use raw output * * @return string Returns the hash of the stream * * @throws \RuntimeException on error. */ public static function hash(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $stream, $algo, $rawOutput = \false) { $pos = $stream->tell(); if ($pos > 0) { $stream->rewind(); } $ctx = \hash_init($algo); while (!$stream->eof()) { \hash_update($ctx, $stream->read(1048576)); } $out = \hash_final($ctx, (bool) $rawOutput); $stream->seek($pos); return $out; } /** * Clone and modify a request with the given changes. * * This method is useful for reducing the number of clones needed to mutate * a message. * * The changes can be one of: * - method: (string) Changes the HTTP method. * - set_headers: (array) Sets the given headers. * - remove_headers: (array) Remove the given headers. * - body: (mixed) Sets the given body. * - uri: (UriInterface) Set the URI. * - query: (string) Set the query string value of the URI. * - version: (string) Set the protocol version. * * @param RequestInterface $request Request to clone and modify. * @param array $changes Changes to apply. * * @return RequestInterface */ public static function modifyRequest(\Google\Site_Kit_Dependencies\Psr\Http\Message\RequestInterface $request, array $changes) { if (!$changes) { return $request; } $headers = $request->getHeaders(); if (!isset($changes['uri'])) { $uri = $request->getUri(); } else { // Remove the host header if one is on the URI if ($host = $changes['uri']->getHost()) { $changes['set_headers']['Host'] = $host; if ($port = $changes['uri']->getPort()) { $standardPorts = ['http' => 80, 'https' => 443]; $scheme = $changes['uri']->getScheme(); if (isset($standardPorts[$scheme]) && $port != $standardPorts[$scheme]) { $changes['set_headers']['Host'] .= ':' . $port; } } } $uri = $changes['uri']; } if (!empty($changes['remove_headers'])) { $headers = self::caselessRemove($changes['remove_headers'], $headers); } if (!empty($changes['set_headers'])) { $headers = self::caselessRemove(\array_keys($changes['set_headers']), $headers); $headers = $changes['set_headers'] + $headers; } if (isset($changes['query'])) { $uri = $uri->withQuery($changes['query']); } if ($request instanceof \Google\Site_Kit_Dependencies\Psr\Http\Message\ServerRequestInterface) { $new = (new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\ServerRequest(isset($changes['method']) ? $changes['method'] : $request->getMethod(), $uri, $headers, isset($changes['body']) ? $changes['body'] : $request->getBody(), isset($changes['version']) ? $changes['version'] : $request->getProtocolVersion(), $request->getServerParams()))->withParsedBody($request->getParsedBody())->withQueryParams($request->getQueryParams())->withCookieParams($request->getCookieParams())->withUploadedFiles($request->getUploadedFiles()); foreach ($request->getAttributes() as $key => $value) { $new = $new->withAttribute($key, $value); } return $new; } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Request(isset($changes['method']) ? $changes['method'] : $request->getMethod(), $uri, $headers, isset($changes['body']) ? $changes['body'] : $request->getBody(), isset($changes['version']) ? $changes['version'] : $request->getProtocolVersion()); } /** * Read a line from the stream up to the maximum allowed buffer length. * * @param StreamInterface $stream Stream to read from * @param int|null $maxLength Maximum buffer length * * @return string */ public static function readLine(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $stream, $maxLength = null) { $buffer = ''; $size = 0; while (!$stream->eof()) { // Using a loose equality here to match on '' and false. if (null == ($byte = $stream->read(1))) { return $buffer; } $buffer .= $byte; // Break when a new line is found or the max length - 1 is reached if ($byte === "\n" || ++$size === $maxLength - 1) { break; } } return $buffer; } /** * Create a new stream based on the input type. * * Options is an associative array that can contain the following keys: * - metadata: Array of custom metadata. * - size: Size of the stream. * * This method accepts the following `$resource` types: * - `Psr\Http\Message\StreamInterface`: Returns the value as-is. * - `string`: Creates a stream object that uses the given string as the contents. * - `resource`: Creates a stream object that wraps the given PHP stream resource. * - `Iterator`: If the provided value implements `Iterator`, then a read-only * stream object will be created that wraps the given iterable. Each time the * stream is read from, data from the iterator will fill a buffer and will be * continuously called until the buffer is equal to the requested read size. * Subsequent read calls will first read from the buffer and then call `next` * on the underlying iterator until it is exhausted. * - `object` with `__toString()`: If the object has the `__toString()` method, * the object will be cast to a string and then a stream will be returned that * uses the string value. * - `NULL`: When `null` is passed, an empty stream object is returned. * - `callable` When a callable is passed, a read-only stream object will be * created that invokes the given callable. The callable is invoked with the * number of suggested bytes to read. The callable can return any number of * bytes, but MUST return `false` when there is no more data to return. The * stream object that wraps the callable will invoke the callable until the * number of requested bytes are available. Any additional bytes will be * buffered and used in subsequent reads. * * @param resource|string|int|float|bool|StreamInterface|callable|\Iterator|null $resource Entity body data * @param array $options Additional options * * @return StreamInterface * * @throws \InvalidArgumentException if the $resource arg is not valid. */ public static function streamFor($resource = '', array $options = []) { if (\is_scalar($resource)) { $stream = self::tryFopen('php://temp', 'r+'); if ($resource !== '') { \fwrite($stream, $resource); \fseek($stream, 0); } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Stream($stream, $options); } switch (\gettype($resource)) { case 'resource': /* * The 'php://input' is a special stream with quirks and inconsistencies. * We avoid using that stream by reading it into php://temp */ $metaData = \stream_get_meta_data($resource); if (isset($metaData['uri']) && $metaData['uri'] === 'php://input') { $stream = self::tryFopen('php://temp', 'w+'); \fwrite($stream, \stream_get_contents($resource)); \fseek($stream, 0); $resource = $stream; } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Stream($resource, $options); case 'object': if ($resource instanceof \Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface) { return $resource; } elseif ($resource instanceof \Iterator) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\PumpStream(function () use($resource) { if (!$resource->valid()) { return \false; } $result = $resource->current(); $resource->next(); return $result; }, $options); } elseif (\method_exists($resource, '__toString')) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor((string) $resource, $options); } break; case 'NULL': return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Stream(self::tryFopen('php://temp', 'r+'), $options); } if (\is_callable($resource)) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\PumpStream($resource, $options); } throw new \InvalidArgumentException('Invalid resource type: ' . \gettype($resource)); } /** * Safely opens a PHP stream resource using a filename. * * When fopen fails, PHP normally raises a warning. This function adds an * error handler that checks for errors and throws an exception instead. * * @param string $filename File to open * @param string $mode Mode used to open the file * * @return resource * * @throws \RuntimeException if the file cannot be opened */ public static function tryFopen($filename, $mode) { $ex = null; \set_error_handler(function () use($filename, $mode, &$ex) { $ex = new \RuntimeException(\sprintf('Unable to open "%s" using mode "%s": %s', $filename, $mode, \func_get_args()[1])); return \true; }); try { $handle = \fopen($filename, $mode); } catch (\Throwable $e) { $ex = new \RuntimeException(\sprintf('Unable to open "%s" using mode "%s": %s', $filename, $mode, $e->getMessage()), 0, $e); } \restore_error_handler(); if ($ex) { /** @var $ex \RuntimeException */ throw $ex; } return $handle; } /** * Returns a UriInterface for the given value. * * This function accepts a string or UriInterface and returns a * UriInterface for the given value. If the value is already a * UriInterface, it is returned as-is. * * @param string|UriInterface $uri * * @return UriInterface * * @throws \InvalidArgumentException */ public static function uriFor($uri) { if ($uri instanceof \Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface) { return $uri; } if (\is_string($uri)) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri($uri); } throw new \InvalidArgumentException('URI must be a string or UriInterface'); } } guzzlehttp/psr7/src/UploadedFile.php000064400000017172150544704730013535 0ustar00setError($errorStatus); $this->setSize($size); $this->setClientFilename($clientFilename); $this->setClientMediaType($clientMediaType); if ($this->isOk()) { $this->setStreamOrFile($streamOrFile); } } /** * Depending on the value set file or stream variable * * @param mixed $streamOrFile * * @throws InvalidArgumentException */ private function setStreamOrFile($streamOrFile) { if (\is_string($streamOrFile)) { $this->file = $streamOrFile; } elseif (\is_resource($streamOrFile)) { $this->stream = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Stream($streamOrFile); } elseif ($streamOrFile instanceof \Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface) { $this->stream = $streamOrFile; } else { throw new \InvalidArgumentException('Invalid stream or file provided for UploadedFile'); } } /** * @param int $error * * @throws InvalidArgumentException */ private function setError($error) { if (\false === \is_int($error)) { throw new \InvalidArgumentException('Upload file error status must be an integer'); } if (\false === \in_array($error, \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\UploadedFile::$errors)) { throw new \InvalidArgumentException('Invalid error status for UploadedFile'); } $this->error = $error; } /** * @param int $size * * @throws InvalidArgumentException */ private function setSize($size) { if (\false === \is_int($size)) { throw new \InvalidArgumentException('Upload file size must be an integer'); } $this->size = $size; } /** * @param mixed $param * * @return bool */ private function isStringOrNull($param) { return \in_array(\gettype($param), ['string', 'NULL']); } /** * @param mixed $param * * @return bool */ private function isStringNotEmpty($param) { return \is_string($param) && \false === empty($param); } /** * @param string|null $clientFilename * * @throws InvalidArgumentException */ private function setClientFilename($clientFilename) { if (\false === $this->isStringOrNull($clientFilename)) { throw new \InvalidArgumentException('Upload file client filename must be a string or null'); } $this->clientFilename = $clientFilename; } /** * @param string|null $clientMediaType * * @throws InvalidArgumentException */ private function setClientMediaType($clientMediaType) { if (\false === $this->isStringOrNull($clientMediaType)) { throw new \InvalidArgumentException('Upload file client media type must be a string or null'); } $this->clientMediaType = $clientMediaType; } /** * Return true if there is no upload error * * @return bool */ private function isOk() { return $this->error === \UPLOAD_ERR_OK; } /** * @return bool */ public function isMoved() { return $this->moved; } /** * @throws RuntimeException if is moved or not ok */ private function validateActive() { if (\false === $this->isOk()) { throw new \RuntimeException('Cannot retrieve stream due to upload error'); } if ($this->isMoved()) { throw new \RuntimeException('Cannot retrieve stream after it has already been moved'); } } /** * {@inheritdoc} * * @throws RuntimeException if the upload was not successful. */ public function getStream() { $this->validateActive(); if ($this->stream instanceof \Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface) { return $this->stream; } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\LazyOpenStream($this->file, 'r+'); } /** * {@inheritdoc} * * @see http://php.net/is_uploaded_file * @see http://php.net/move_uploaded_file * * @param string $targetPath Path to which to move the uploaded file. * * @throws RuntimeException if the upload was not successful. * @throws InvalidArgumentException if the $path specified is invalid. * @throws RuntimeException on any error during the move operation, or on * the second or subsequent call to the method. */ public function moveTo($targetPath) { $this->validateActive(); if (\false === $this->isStringNotEmpty($targetPath)) { throw new \InvalidArgumentException('Invalid path provided for move operation; must be a non-empty string'); } if ($this->file) { $this->moved = \php_sapi_name() == 'cli' ? \rename($this->file, $targetPath) : \move_uploaded_file($this->file, $targetPath); } else { \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::copyToStream($this->getStream(), new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\LazyOpenStream($targetPath, 'w')); $this->moved = \true; } if (\false === $this->moved) { throw new \RuntimeException(\sprintf('Uploaded file could not be moved to %s', $targetPath)); } } /** * {@inheritdoc} * * @return int|null The file size in bytes or null if unknown. */ public function getSize() { return $this->size; } /** * {@inheritdoc} * * @see http://php.net/manual/en/features.file-upload.errors.php * * @return int One of PHP's UPLOAD_ERR_XXX constants. */ public function getError() { return $this->error; } /** * {@inheritdoc} * * @return string|null The filename sent by the client or null if none * was provided. */ public function getClientFilename() { return $this->clientFilename; } /** * {@inheritdoc} */ public function getClientMediaType() { return $this->clientMediaType; } } guzzlehttp/psr7/src/AppendStream.php000064400000013411150544704730013553 0ustar00addStream($stream); } } public function __toString() { try { $this->rewind(); return $this->getContents(); } catch (\Exception $e) { return ''; } } /** * Add a stream to the AppendStream * * @param StreamInterface $stream Stream to append. Must be readable. * * @throws \InvalidArgumentException if the stream is not readable */ public function addStream(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $stream) { if (!$stream->isReadable()) { throw new \InvalidArgumentException('Each stream must be readable'); } // The stream is only seekable if all streams are seekable if (!$stream->isSeekable()) { $this->seekable = \false; } $this->streams[] = $stream; } public function getContents() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::copyToString($this); } /** * Closes each attached stream. * * {@inheritdoc} */ public function close() { $this->pos = $this->current = 0; $this->seekable = \true; foreach ($this->streams as $stream) { $stream->close(); } $this->streams = []; } /** * Detaches each attached stream. * * Returns null as it's not clear which underlying stream resource to return. * * {@inheritdoc} */ public function detach() { $this->pos = $this->current = 0; $this->seekable = \true; foreach ($this->streams as $stream) { $stream->detach(); } $this->streams = []; return null; } public function tell() { return $this->pos; } /** * Tries to calculate the size by adding the size of each stream. * * If any of the streams do not return a valid number, then the size of the * append stream cannot be determined and null is returned. * * {@inheritdoc} */ public function getSize() { $size = 0; foreach ($this->streams as $stream) { $s = $stream->getSize(); if ($s === null) { return null; } $size += $s; } return $size; } public function eof() { return !$this->streams || $this->current >= \count($this->streams) - 1 && $this->streams[$this->current]->eof(); } public function rewind() { $this->seek(0); } /** * Attempts to seek to the given position. Only supports SEEK_SET. * * {@inheritdoc} */ public function seek($offset, $whence = \SEEK_SET) { if (!$this->seekable) { throw new \RuntimeException('This AppendStream is not seekable'); } elseif ($whence !== \SEEK_SET) { throw new \RuntimeException('The AppendStream can only seek with SEEK_SET'); } $this->pos = $this->current = 0; // Rewind each stream foreach ($this->streams as $i => $stream) { try { $stream->rewind(); } catch (\Exception $e) { throw new \RuntimeException('Unable to seek stream ' . $i . ' of the AppendStream', 0, $e); } } // Seek to the actual position by reading from each stream while ($this->pos < $offset && !$this->eof()) { $result = $this->read(\min(8096, $offset - $this->pos)); if ($result === '') { break; } } } /** * Reads from all of the appended streams until the length is met or EOF. * * {@inheritdoc} */ public function read($length) { $buffer = ''; $total = \count($this->streams) - 1; $remaining = $length; $progressToNext = \false; while ($remaining > 0) { // Progress to the next stream if needed. if ($progressToNext || $this->streams[$this->current]->eof()) { $progressToNext = \false; if ($this->current === $total) { break; } $this->current++; } $result = $this->streams[$this->current]->read($remaining); // Using a loose comparison here to match on '', false, and null if ($result == null) { $progressToNext = \true; continue; } $buffer .= $result; $remaining = $length - \strlen($buffer); } $this->pos += \strlen($buffer); return $buffer; } public function isReadable() { return \true; } public function isWritable() { return \false; } public function isSeekable() { return $this->seekable; } public function write($string) { throw new \RuntimeException('Cannot write to an AppendStream'); } public function getMetadata($key = null) { return $key ? null : []; } } guzzlehttp/psr7/src/StreamDecoratorTrait.php000064400000006523150544704730015300 0ustar00stream = $stream; } /** * Magic method used to create a new stream if streams are not added in * the constructor of a decorator (e.g., LazyOpenStream). * * @param string $name Name of the property (allows "stream" only). * * @return StreamInterface */ public function __get($name) { if ($name == 'stream') { $this->stream = $this->createStream(); return $this->stream; } throw new \UnexpectedValueException("{$name} not found on class"); } public function __toString() { try { if ($this->isSeekable()) { $this->seek(0); } return $this->getContents(); } catch (\Exception $e) { // Really, PHP? https://bugs.php.net/bug.php?id=53648 \trigger_error('StreamDecorator::__toString exception: ' . (string) $e, \E_USER_ERROR); return ''; } } public function getContents() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::copyToString($this); } /** * Allow decorators to implement custom methods * * @param string $method Missing method name * @param array $args Method arguments * * @return mixed */ public function __call($method, array $args) { $result = \call_user_func_array([$this->stream, $method], $args); // Always return the wrapped object if the result is a return $this return $result === $this->stream ? $this : $result; } public function close() { $this->stream->close(); } public function getMetadata($key = null) { return $this->stream->getMetadata($key); } public function detach() { return $this->stream->detach(); } public function getSize() { return $this->stream->getSize(); } public function eof() { return $this->stream->eof(); } public function tell() { return $this->stream->tell(); } public function isReadable() { return $this->stream->isReadable(); } public function isWritable() { return $this->stream->isWritable(); } public function isSeekable() { return $this->stream->isSeekable(); } public function rewind() { $this->seek(0); } public function seek($offset, $whence = \SEEK_SET) { $this->stream->seek($offset, $whence); } public function read($length) { return $this->stream->read($length); } public function write($string) { return $this->stream->write($string); } /** * Implement in subclasses to dynamically create streams when requested. * * @return StreamInterface * * @throws \BadMethodCallException */ protected function createStream() { throw new \BadMethodCallException('Not implemented'); } } guzzlehttp/psr7/src/InflateStream.php000064400000004342150544704730013731 0ustar00read(10); $filenameHeaderLength = $this->getLengthOfPossibleFilenameHeader($stream, $header); // Skip the header, that is 10 + length of filename + 1 (nil) bytes $stream = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\LimitStream($stream, -1, 10 + $filenameHeaderLength); $resource = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\StreamWrapper::getResource($stream); \stream_filter_append($resource, 'zlib.inflate', \STREAM_FILTER_READ); $this->stream = $stream->isSeekable() ? new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Stream($resource) : new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\NoSeekStream(new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Stream($resource)); } /** * @param StreamInterface $stream * @param $header * * @return int */ private function getLengthOfPossibleFilenameHeader(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $stream, $header) { $filename_header_length = 0; if (\substr(\bin2hex($header), 6, 2) === '08') { // we have a filename, read until nil $filename_header_length = 1; while ($stream->read(1) !== \chr(0)) { $filename_header_length++; } } return $filename_header_length; } } guzzlehttp/psr7/src/Rfc7230.php000064400000001275150544704730012223 0ustar00@,;:\\\"/[\\]?={}\1- ]++):[ \t]*+((?:[ \t]*+[!-~€-ÿ]++)*+)[ \t]*+\r?\n)m"; const HEADER_FOLD_REGEX = "(\r?\n[ \t]++)"; } guzzlehttp/psr7/src/UriNormalizer.php000064400000020605150544704730013775 0ustar00getPath() === '' && ($uri->getScheme() === 'http' || $uri->getScheme() === 'https')) { $uri = $uri->withPath('/'); } if ($flags & self::REMOVE_DEFAULT_HOST && $uri->getScheme() === 'file' && $uri->getHost() === 'localhost') { $uri = $uri->withHost(''); } if ($flags & self::REMOVE_DEFAULT_PORT && $uri->getPort() !== null && \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri::isDefaultPort($uri)) { $uri = $uri->withPort(null); } if ($flags & self::REMOVE_DOT_SEGMENTS && !\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri::isRelativePathReference($uri)) { $uri = $uri->withPath(\Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\UriResolver::removeDotSegments($uri->getPath())); } if ($flags & self::REMOVE_DUPLICATE_SLASHES) { $uri = $uri->withPath(\preg_replace('#//++#', '/', $uri->getPath())); } if ($flags & self::SORT_QUERY_PARAMETERS && $uri->getQuery() !== '') { $queryKeyValues = \explode('&', $uri->getQuery()); \sort($queryKeyValues); $uri = $uri->withQuery(\implode('&', $queryKeyValues)); } return $uri; } /** * Whether two URIs can be considered equivalent. * * Both URIs are normalized automatically before comparison with the given $normalizations bitmask. The method also * accepts relative URI references and returns true when they are equivalent. This of course assumes they will be * resolved against the same base URI. If this is not the case, determination of equivalence or difference of * relative references does not mean anything. * * @param UriInterface $uri1 An URI to compare * @param UriInterface $uri2 An URI to compare * @param int $normalizations A bitmask of normalizations to apply, see constants * * @return bool * * @link https://tools.ietf.org/html/rfc3986#section-6.1 */ public static function isEquivalent(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri1, \Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri2, $normalizations = self::PRESERVING_NORMALIZATIONS) { return (string) self::normalize($uri1, $normalizations) === (string) self::normalize($uri2, $normalizations); } private static function capitalizePercentEncoding(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri) { $regex = '/(?:%[A-Fa-f0-9]{2})++/'; $callback = function (array $match) { return \strtoupper($match[0]); }; return $uri->withPath(\preg_replace_callback($regex, $callback, $uri->getPath()))->withQuery(\preg_replace_callback($regex, $callback, $uri->getQuery())); } private static function decodeUnreservedCharacters(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri) { $regex = '/%(?:2D|2E|5F|7E|3[0-9]|[46][1-9A-F]|[57][0-9A])/i'; $callback = function (array $match) { return \rawurldecode($match[0]); }; return $uri->withPath(\preg_replace_callback($regex, $callback, $uri->getPath()))->withQuery(\preg_replace_callback($regex, $callback, $uri->getQuery())); } private function __construct() { // cannot be instantiated } } guzzlehttp/psr7/src/StreamWrapper.php000064400000006516150544704730013774 0ustar00isReadable()) { $mode = $stream->isWritable() ? 'r+' : 'r'; } elseif ($stream->isWritable()) { $mode = 'w'; } else { throw new \InvalidArgumentException('The stream must be readable, ' . 'writable, or both.'); } return \fopen('guzzle://stream', $mode, null, self::createStreamContext($stream)); } /** * Creates a stream context that can be used to open a stream as a php stream resource. * * @param StreamInterface $stream * * @return resource */ public static function createStreamContext(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $stream) { return \stream_context_create(['guzzle' => ['stream' => $stream]]); } /** * Registers the stream wrapper if needed */ public static function register() { if (!\in_array('guzzle', \stream_get_wrappers())) { \stream_wrapper_register('guzzle', __CLASS__); } } public function stream_open($path, $mode, $options, &$opened_path) { $options = \stream_context_get_options($this->context); if (!isset($options['guzzle']['stream'])) { return \false; } $this->mode = $mode; $this->stream = $options['guzzle']['stream']; return \true; } public function stream_read($count) { return $this->stream->read($count); } public function stream_write($data) { return (int) $this->stream->write($data); } public function stream_tell() { return $this->stream->tell(); } public function stream_eof() { return $this->stream->eof(); } public function stream_seek($offset, $whence) { $this->stream->seek($offset, $whence); return \true; } public function stream_cast($cast_as) { $stream = clone $this->stream; return $stream->detach(); } public function stream_stat() { static $modeMap = ['r' => 33060, 'rb' => 33060, 'r+' => 33206, 'w' => 33188, 'wb' => 33188]; return ['dev' => 0, 'ino' => 0, 'mode' => $modeMap[$this->mode], 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $this->stream->getSize() ?: 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0]; } public function url_stat($path, $flags) { return ['dev' => 0, 'ino' => 0, 'mode' => 0, 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0]; } } guzzlehttp/psr7/src/NoSeekStream.php000064400000001037150544704730013531 0ustar00stream = $stream; $this->maxLength = $maxLength; } public function write($string) { $diff = $this->maxLength - $this->stream->getSize(); // Begin returning 0 when the underlying stream is too large. if ($diff <= 0) { return 0; } // Write the stream or a subset of the stream if needed. if (\strlen($string) < $diff) { return $this->stream->write($string); } return $this->stream->write(\substr($string, 0, $diff)); } } guzzlehttp/psr7/src/LimitStream.php000064400000010264150544704730013425 0ustar00stream = $stream; $this->setLimit($limit); $this->setOffset($offset); } public function eof() { // Always return true if the underlying stream is EOF if ($this->stream->eof()) { return \true; } // No limit and the underlying stream is not at EOF if ($this->limit == -1) { return \false; } return $this->stream->tell() >= $this->offset + $this->limit; } /** * Returns the size of the limited subset of data * {@inheritdoc} */ public function getSize() { if (null === ($length = $this->stream->getSize())) { return null; } elseif ($this->limit == -1) { return $length - $this->offset; } else { return \min($this->limit, $length - $this->offset); } } /** * Allow for a bounded seek on the read limited stream * {@inheritdoc} */ public function seek($offset, $whence = \SEEK_SET) { if ($whence !== \SEEK_SET || $offset < 0) { throw new \RuntimeException(\sprintf('Cannot seek to offset %s with whence %s', $offset, $whence)); } $offset += $this->offset; if ($this->limit !== -1) { if ($offset > $this->offset + $this->limit) { $offset = $this->offset + $this->limit; } } $this->stream->seek($offset); } /** * Give a relative tell() * {@inheritdoc} */ public function tell() { return $this->stream->tell() - $this->offset; } /** * Set the offset to start limiting from * * @param int $offset Offset to seek to and begin byte limiting from * * @throws \RuntimeException if the stream cannot be seeked. */ public function setOffset($offset) { $current = $this->stream->tell(); if ($current !== $offset) { // If the stream cannot seek to the offset position, then read to it if ($this->stream->isSeekable()) { $this->stream->seek($offset); } elseif ($current > $offset) { throw new \RuntimeException("Could not seek to stream offset {$offset}"); } else { $this->stream->read($offset - $current); } } $this->offset = $offset; } /** * Set the limit of bytes that the decorator allows to be read from the * stream. * * @param int $limit Number of bytes to allow to be read from the stream. * Use -1 for no limit. */ public function setLimit($limit) { $this->limit = $limit; } public function read($length) { if ($this->limit == -1) { return $this->stream->read($length); } // Check if the current position is less than the total allowed // bytes + original offset $remaining = $this->offset + $this->limit - $this->stream->tell(); if ($remaining > 0) { // Only return the amount of requested data, ensuring that the byte // limit is not exceeded return $this->stream->read(\min($remaining, $length)); } return ''; } } guzzlehttp/psr7/src/PumpStream.php000064400000010250150544704730013263 0ustar00source = $source; $this->size = isset($options['size']) ? $options['size'] : null; $this->metadata = isset($options['metadata']) ? $options['metadata'] : []; $this->buffer = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\BufferStream(); } public function __toString() { try { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::copyToString($this); } catch (\Exception $e) { return ''; } } public function close() { $this->detach(); } public function detach() { $this->tellPos = \false; $this->source = null; return null; } public function getSize() { return $this->size; } public function tell() { return $this->tellPos; } public function eof() { return !$this->source; } public function isSeekable() { return \false; } public function rewind() { $this->seek(0); } public function seek($offset, $whence = \SEEK_SET) { throw new \RuntimeException('Cannot seek a PumpStream'); } public function isWritable() { return \false; } public function write($string) { throw new \RuntimeException('Cannot write to a PumpStream'); } public function isReadable() { return \true; } public function read($length) { $data = $this->buffer->read($length); $readLen = \strlen($data); $this->tellPos += $readLen; $remaining = $length - $readLen; if ($remaining) { $this->pump($remaining); $data .= $this->buffer->read($remaining); $this->tellPos += \strlen($data) - $readLen; } return $data; } public function getContents() { $result = ''; while (!$this->eof()) { $result .= $this->read(1000000); } return $result; } public function getMetadata($key = null) { if (!$key) { return $this->metadata; } return isset($this->metadata[$key]) ? $this->metadata[$key] : null; } private function pump($length) { if ($this->source) { do { $data = \call_user_func($this->source, $length); if ($data === \false || $data === null) { $this->source = null; return; } $this->buffer->write($data); $length -= \strlen($data); } while ($length > 0); } } } guzzlehttp/psr7/src/functions_include.php000064400000000347150544704730014707 0ustar00 80, 'https' => 443, 'ftp' => 21, 'gopher' => 70, 'nntp' => 119, 'news' => 119, 'telnet' => 23, 'tn3270' => 23, 'imap' => 143, 'pop' => 110, 'ldap' => 389]; private static $charUnreserved = 'a-zA-Z0-9_\\-\\.~'; private static $charSubDelims = '!\\$&\'\\(\\)\\*\\+,;='; private static $replaceQuery = ['=' => '%3D', '&' => '%26']; /** @var string Uri scheme. */ private $scheme = ''; /** @var string Uri user info. */ private $userInfo = ''; /** @var string Uri host. */ private $host = ''; /** @var int|null Uri port. */ private $port; /** @var string Uri path. */ private $path = ''; /** @var string Uri query string. */ private $query = ''; /** @var string Uri fragment. */ private $fragment = ''; /** * @param string $uri URI to parse */ public function __construct($uri = '') { // weak type check to also accept null until we can add scalar type hints if ($uri != '') { $parts = self::parse($uri); if ($parts === \false) { throw new \InvalidArgumentException("Unable to parse URI: {$uri}"); } $this->applyParts($parts); } } /** * UTF-8 aware \parse_url() replacement. * * The internal function produces broken output for non ASCII domain names * (IDN) when used with locales other than "C". * * On the other hand, cURL understands IDN correctly only when UTF-8 locale * is configured ("C.UTF-8", "en_US.UTF-8", etc.). * * @see https://bugs.php.net/bug.php?id=52923 * @see https://www.php.net/manual/en/function.parse-url.php#114817 * @see https://curl.haxx.se/libcurl/c/CURLOPT_URL.html#ENCODING * * @param string $url * * @return array|false */ private static function parse($url) { // If IPv6 $prefix = ''; if (\preg_match('%^(.*://\\[[0-9:a-f]+\\])(.*?)$%', $url, $matches)) { $prefix = $matches[1]; $url = $matches[2]; } $encodedUrl = \preg_replace_callback('%[^:/@?&=#]+%usD', static function ($matches) { return \urlencode($matches[0]); }, $url); $result = \parse_url($prefix . $encodedUrl); if ($result === \false) { return \false; } return \array_map('urldecode', $result); } public function __toString() { return self::composeComponents($this->scheme, $this->getAuthority(), $this->path, $this->query, $this->fragment); } /** * Composes a URI reference string from its various components. * * Usually this method does not need to be called manually but instead is used indirectly via * `Psr\Http\Message\UriInterface::__toString`. * * PSR-7 UriInterface treats an empty component the same as a missing component as * getQuery(), getFragment() etc. always return a string. This explains the slight * difference to RFC 3986 Section 5.3. * * Another adjustment is that the authority separator is added even when the authority is missing/empty * for the "file" scheme. This is because PHP stream functions like `file_get_contents` only work with * `file:///myfile` but not with `file:/myfile` although they are equivalent according to RFC 3986. But * `file:///` is the more common syntax for the file scheme anyway (Chrome for example redirects to * that format). * * @param string $scheme * @param string $authority * @param string $path * @param string $query * @param string $fragment * * @return string * * @link https://tools.ietf.org/html/rfc3986#section-5.3 */ public static function composeComponents($scheme, $authority, $path, $query, $fragment) { $uri = ''; // weak type checks to also accept null until we can add scalar type hints if ($scheme != '') { $uri .= $scheme . ':'; } if ($authority != '' || $scheme === 'file') { $uri .= '//' . $authority; } $uri .= $path; if ($query != '') { $uri .= '?' . $query; } if ($fragment != '') { $uri .= '#' . $fragment; } return $uri; } /** * Whether the URI has the default port of the current scheme. * * `Psr\Http\Message\UriInterface::getPort` may return null or the standard port. This method can be used * independently of the implementation. * * @param UriInterface $uri * * @return bool */ public static function isDefaultPort(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri) { return $uri->getPort() === null || isset(self::$defaultPorts[$uri->getScheme()]) && $uri->getPort() === self::$defaultPorts[$uri->getScheme()]; } /** * Whether the URI is absolute, i.e. it has a scheme. * * An instance of UriInterface can either be an absolute URI or a relative reference. This method returns true * if it is the former. An absolute URI has a scheme. A relative reference is used to express a URI relative * to another URI, the base URI. Relative references can be divided into several forms: * - network-path references, e.g. '//example.com/path' * - absolute-path references, e.g. '/path' * - relative-path references, e.g. 'subpath' * * @param UriInterface $uri * * @return bool * * @see Uri::isNetworkPathReference * @see Uri::isAbsolutePathReference * @see Uri::isRelativePathReference * @link https://tools.ietf.org/html/rfc3986#section-4 */ public static function isAbsolute(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() !== ''; } /** * Whether the URI is a network-path reference. * * A relative reference that begins with two slash characters is termed an network-path reference. * * @param UriInterface $uri * * @return bool * * @link https://tools.ietf.org/html/rfc3986#section-4.2 */ public static function isNetworkPathReference(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() === '' && $uri->getAuthority() !== ''; } /** * Whether the URI is a absolute-path reference. * * A relative reference that begins with a single slash character is termed an absolute-path reference. * * @param UriInterface $uri * * @return bool * * @link https://tools.ietf.org/html/rfc3986#section-4.2 */ public static function isAbsolutePathReference(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() === '' && $uri->getAuthority() === '' && isset($uri->getPath()[0]) && $uri->getPath()[0] === '/'; } /** * Whether the URI is a relative-path reference. * * A relative reference that does not begin with a slash character is termed a relative-path reference. * * @param UriInterface $uri * * @return bool * * @link https://tools.ietf.org/html/rfc3986#section-4.2 */ public static function isRelativePathReference(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri) { return $uri->getScheme() === '' && $uri->getAuthority() === '' && (!isset($uri->getPath()[0]) || $uri->getPath()[0] !== '/'); } /** * Whether the URI is a same-document reference. * * A same-document reference refers to a URI that is, aside from its fragment * component, identical to the base URI. When no base URI is given, only an empty * URI reference (apart from its fragment) is considered a same-document reference. * * @param UriInterface $uri The URI to check * @param UriInterface|null $base An optional base URI to compare against * * @return bool * * @link https://tools.ietf.org/html/rfc3986#section-4.4 */ public static function isSameDocumentReference(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri, \Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $base = null) { if ($base !== null) { $uri = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\UriResolver::resolve($base, $uri); return $uri->getScheme() === $base->getScheme() && $uri->getAuthority() === $base->getAuthority() && $uri->getPath() === $base->getPath() && $uri->getQuery() === $base->getQuery(); } return $uri->getScheme() === '' && $uri->getAuthority() === '' && $uri->getPath() === '' && $uri->getQuery() === ''; } /** * Removes dot segments from a path and returns the new path. * * @param string $path * * @return string * * @deprecated since version 1.4. Use UriResolver::removeDotSegments instead. * @see UriResolver::removeDotSegments */ public static function removeDotSegments($path) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\UriResolver::removeDotSegments($path); } /** * Converts the relative URI into a new URI that is resolved against the base URI. * * @param UriInterface $base Base URI * @param string|UriInterface $rel Relative URI * * @return UriInterface * * @deprecated since version 1.4. Use UriResolver::resolve instead. * @see UriResolver::resolve */ public static function resolve(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $base, $rel) { if (!$rel instanceof \Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface) { $rel = new self($rel); } return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\UriResolver::resolve($base, $rel); } /** * Creates a new URI with a specific query string value removed. * * Any existing query string values that exactly match the provided key are * removed. * * @param UriInterface $uri URI to use as a base. * @param string $key Query string key to remove. * * @return UriInterface */ public static function withoutQueryValue(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri, $key) { $result = self::getFilteredQueryString($uri, [$key]); return $uri->withQuery(\implode('&', $result)); } /** * Creates a new URI with a specific query string value. * * Any existing query string values that exactly match the provided key are * removed and replaced with the given key value pair. * * A value of null will set the query string key without a value, e.g. "key" * instead of "key=value". * * @param UriInterface $uri URI to use as a base. * @param string $key Key to set. * @param string|null $value Value to set * * @return UriInterface */ public static function withQueryValue(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri, $key, $value) { $result = self::getFilteredQueryString($uri, [$key]); $result[] = self::generateQueryString($key, $value); return $uri->withQuery(\implode('&', $result)); } /** * Creates a new URI with multiple specific query string values. * * It has the same behavior as withQueryValue() but for an associative array of key => value. * * @param UriInterface $uri URI to use as a base. * @param array $keyValueArray Associative array of key and values * * @return UriInterface */ public static function withQueryValues(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri, array $keyValueArray) { $result = self::getFilteredQueryString($uri, \array_keys($keyValueArray)); foreach ($keyValueArray as $key => $value) { $result[] = self::generateQueryString($key, $value); } return $uri->withQuery(\implode('&', $result)); } /** * Creates a URI from a hash of `parse_url` components. * * @param array $parts * * @return UriInterface * * @link http://php.net/manual/en/function.parse-url.php * * @throws \InvalidArgumentException If the components do not form a valid URI. */ public static function fromParts(array $parts) { $uri = new self(); $uri->applyParts($parts); $uri->validateState(); return $uri; } public function getScheme() { return $this->scheme; } public function getAuthority() { $authority = $this->host; if ($this->userInfo !== '') { $authority = $this->userInfo . '@' . $authority; } if ($this->port !== null) { $authority .= ':' . $this->port; } return $authority; } public function getUserInfo() { return $this->userInfo; } public function getHost() { return $this->host; } public function getPort() { return $this->port; } public function getPath() { return $this->path; } public function getQuery() { return $this->query; } public function getFragment() { return $this->fragment; } public function withScheme($scheme) { $scheme = $this->filterScheme($scheme); if ($this->scheme === $scheme) { return $this; } $new = clone $this; $new->scheme = $scheme; $new->removeDefaultPort(); $new->validateState(); return $new; } public function withUserInfo($user, $password = null) { $info = $this->filterUserInfoComponent($user); if ($password !== null) { $info .= ':' . $this->filterUserInfoComponent($password); } if ($this->userInfo === $info) { return $this; } $new = clone $this; $new->userInfo = $info; $new->validateState(); return $new; } public function withHost($host) { $host = $this->filterHost($host); if ($this->host === $host) { return $this; } $new = clone $this; $new->host = $host; $new->validateState(); return $new; } public function withPort($port) { $port = $this->filterPort($port); if ($this->port === $port) { return $this; } $new = clone $this; $new->port = $port; $new->removeDefaultPort(); $new->validateState(); return $new; } public function withPath($path) { $path = $this->filterPath($path); if ($this->path === $path) { return $this; } $new = clone $this; $new->path = $path; $new->validateState(); return $new; } public function withQuery($query) { $query = $this->filterQueryAndFragment($query); if ($this->query === $query) { return $this; } $new = clone $this; $new->query = $query; return $new; } public function withFragment($fragment) { $fragment = $this->filterQueryAndFragment($fragment); if ($this->fragment === $fragment) { return $this; } $new = clone $this; $new->fragment = $fragment; return $new; } /** * Apply parse_url parts to a URI. * * @param array $parts Array of parse_url parts to apply. */ private function applyParts(array $parts) { $this->scheme = isset($parts['scheme']) ? $this->filterScheme($parts['scheme']) : ''; $this->userInfo = isset($parts['user']) ? $this->filterUserInfoComponent($parts['user']) : ''; $this->host = isset($parts['host']) ? $this->filterHost($parts['host']) : ''; $this->port = isset($parts['port']) ? $this->filterPort($parts['port']) : null; $this->path = isset($parts['path']) ? $this->filterPath($parts['path']) : ''; $this->query = isset($parts['query']) ? $this->filterQueryAndFragment($parts['query']) : ''; $this->fragment = isset($parts['fragment']) ? $this->filterQueryAndFragment($parts['fragment']) : ''; if (isset($parts['pass'])) { $this->userInfo .= ':' . $this->filterUserInfoComponent($parts['pass']); } $this->removeDefaultPort(); } /** * @param string $scheme * * @return string * * @throws \InvalidArgumentException If the scheme is invalid. */ private function filterScheme($scheme) { if (!\is_string($scheme)) { throw new \InvalidArgumentException('Scheme must be a string'); } return \strtr($scheme, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); } /** * @param string $component * * @return string * * @throws \InvalidArgumentException If the user info is invalid. */ private function filterUserInfoComponent($component) { if (!\is_string($component)) { throw new \InvalidArgumentException('User info must be a string'); } return \preg_replace_callback('/(?:[^%' . self::$charUnreserved . self::$charSubDelims . ']+|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $component); } /** * @param string $host * * @return string * * @throws \InvalidArgumentException If the host is invalid. */ private function filterHost($host) { if (!\is_string($host)) { throw new \InvalidArgumentException('Host must be a string'); } return \strtr($host, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz'); } /** * @param int|null $port * * @return int|null * * @throws \InvalidArgumentException If the port is invalid. */ private function filterPort($port) { if ($port === null) { return null; } $port = (int) $port; if (0 > $port || 0xffff < $port) { throw new \InvalidArgumentException(\sprintf('Invalid port: %d. Must be between 0 and 65535', $port)); } return $port; } /** * @param UriInterface $uri * @param array $keys * * @return array */ private static function getFilteredQueryString(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri, array $keys) { $current = $uri->getQuery(); if ($current === '') { return []; } $decodedKeys = \array_map('rawurldecode', $keys); return \array_filter(\explode('&', $current), function ($part) use($decodedKeys) { return !\in_array(\rawurldecode(\explode('=', $part)[0]), $decodedKeys, \true); }); } /** * @param string $key * @param string|null $value * * @return string */ private static function generateQueryString($key, $value) { // Query string separators ("=", "&") within the key or value need to be encoded // (while preventing double-encoding) before setting the query string. All other // chars that need percent-encoding will be encoded by withQuery(). $queryString = \strtr($key, self::$replaceQuery); if ($value !== null) { $queryString .= '=' . \strtr($value, self::$replaceQuery); } return $queryString; } private function removeDefaultPort() { if ($this->port !== null && self::isDefaultPort($this)) { $this->port = null; } } /** * Filters the path of a URI * * @param string $path * * @return string * * @throws \InvalidArgumentException If the path is invalid. */ private function filterPath($path) { if (!\is_string($path)) { throw new \InvalidArgumentException('Path must be a string'); } return \preg_replace_callback('/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\\/]++|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $path); } /** * Filters the query string or fragment of a URI. * * @param string $str * * @return string * * @throws \InvalidArgumentException If the query or fragment is invalid. */ private function filterQueryAndFragment($str) { if (!\is_string($str)) { throw new \InvalidArgumentException('Query and fragment must be a string'); } return \preg_replace_callback('/(?:[^' . self::$charUnreserved . self::$charSubDelims . '%:@\\/\\?]++|%(?![A-Fa-f0-9]{2}))/', [$this, 'rawurlencodeMatchZero'], $str); } private function rawurlencodeMatchZero(array $match) { return \rawurlencode($match[0]); } private function validateState() { if ($this->host === '' && ($this->scheme === 'http' || $this->scheme === 'https')) { $this->host = self::HTTP_DEFAULT_HOST; } if ($this->getAuthority() === '') { if (0 === \strpos($this->path, '//')) { throw new \InvalidArgumentException('The path of a URI without an authority must not start with two slashes "//"'); } if ($this->scheme === '' && \false !== \strpos(\explode('/', $this->path, 2)[0], ':')) { throw new \InvalidArgumentException('A relative URI must not have a path beginning with a segment containing a colon'); } } elseif (isset($this->path[0]) && $this->path[0] !== '/') { @\trigger_error('The path of a URI with an authority must start with a slash "/" or be empty. Automagically fixing the URI ' . 'by adding a leading slash to the path is deprecated since version 1.4 and will throw an exception instead.', \E_USER_DEPRECATED); $this->path = '/' . $this->path; //throw new \InvalidArgumentException('The path of a URI with an authority must start with a slash "/" or be empty'); } } } guzzlehttp/psr7/src/functions.php000064400000035172150544704730013210 0ustar00 '1', 'foo[b]' => '2'])`. * * @param string $str Query string to parse * @param int|bool $urlEncoding How the query string is encoded * * @return array * * @deprecated parse_query will be removed in guzzlehttp/psr7:2.0. Use Query::parse instead. */ function parse_query($str, $urlEncoding = \true) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query::parse($str, $urlEncoding); } /** * Build a query string from an array of key value pairs. * * This function can use the return value of `parse_query()` to build a query * string. This function does not modify the provided keys when an array is * encountered (like `http_build_query()` would). * * @param array $params Query string parameters. * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986 * to encode using RFC3986, or PHP_QUERY_RFC1738 * to encode using RFC1738. * * @return string * * @deprecated build_query will be removed in guzzlehttp/psr7:2.0. Use Query::build instead. */ function build_query(array $params, $encoding = \PHP_QUERY_RFC3986) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Query::build($params, $encoding); } /** * Determines the mimetype of a file by looking at its extension. * * @param string $filename * * @return string|null * * @deprecated mimetype_from_filename will be removed in guzzlehttp/psr7:2.0. Use MimeType::fromFilename instead. */ function mimetype_from_filename($filename) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\MimeType::fromFilename($filename); } /** * Maps a file extensions to a mimetype. * * @param $extension string The file extension. * * @return string|null * * @link http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types * @deprecated mimetype_from_extension will be removed in guzzlehttp/psr7:2.0. Use MimeType::fromExtension instead. */ function mimetype_from_extension($extension) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\MimeType::fromExtension($extension); } /** * Parses an HTTP message into an associative array. * * The array contains the "start-line" key containing the start line of * the message, "headers" key containing an associative array of header * array values, and a "body" key containing the body of the message. * * @param string $message HTTP request or response to parse. * * @return array * * @internal * * @deprecated _parse_message will be removed in guzzlehttp/psr7:2.0. Use Message::parseMessage instead. */ function _parse_message($message) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Message::parseMessage($message); } /** * Constructs a URI for an HTTP request message. * * @param string $path Path from the start-line * @param array $headers Array of headers (each value an array). * * @return string * * @internal * * @deprecated _parse_request_uri will be removed in guzzlehttp/psr7:2.0. Use Message::parseRequestUri instead. */ function _parse_request_uri($path, array $headers) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Message::parseRequestUri($path, $headers); } /** * Get a short summary of the message body. * * Will return `null` if the response is not printable. * * @param MessageInterface $message The message to get the body summary * @param int $truncateAt The maximum allowed size of the summary * * @return string|null * * @deprecated get_message_body_summary will be removed in guzzlehttp/psr7:2.0. Use Message::bodySummary instead. */ function get_message_body_summary(\Google\Site_Kit_Dependencies\Psr\Http\Message\MessageInterface $message, $truncateAt = 120) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Message::bodySummary($message, $truncateAt); } /** * Remove the items given by the keys, case insensitively from the data. * * @param iterable $keys * * @return array * * @internal * * @deprecated _caseless_remove will be removed in guzzlehttp/psr7:2.0. Use Utils::caselessRemove instead. */ function _caseless_remove($keys, array $data) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::caselessRemove($keys, $data); } guzzlehttp/psr7/src/Header.php000064400000004246150544704730012366 0ustar00]+>|[^=]+/', $kvp, $matches)) { $m = $matches[0]; if (isset($m[1])) { $part[\trim($m[0], $trimmed)] = \trim($m[1], $trimmed); } else { $part[] = \trim($m[0], $trimmed); } } } if ($part) { $params[] = $part; } } return $params; } /** * Converts an array of header values that may contain comma separated * headers into an array of headers with no comma separated values. * * @param string|array $header Header to normalize. * * @return array Returns the normalized header field values. */ public static function normalize($header) { if (!\is_array($header)) { return \array_map('trim', \explode(',', $header)); } $result = []; foreach ($header as $value) { foreach ((array) $value as $v) { if (\strpos($v, ',') === \false) { $result[] = $v; continue; } foreach (\preg_split('/,(?=([^"]*"[^"]*")*[^"]*$)/', $v) as $vv) { $result[] = \trim($vv); } } } return $result; } } guzzlehttp/psr7/src/MimeType.php000064400000007463150544704730012733 0ustar00 'video/3gpp', '7z' => 'application/x-7z-compressed', 'aac' => 'audio/x-aac', 'ai' => 'application/postscript', 'aif' => 'audio/x-aiff', 'asc' => 'text/plain', 'asf' => 'video/x-ms-asf', 'atom' => 'application/atom+xml', 'avi' => 'video/x-msvideo', 'bmp' => 'image/bmp', 'bz2' => 'application/x-bzip2', 'cer' => 'application/pkix-cert', 'crl' => 'application/pkix-crl', 'crt' => 'application/x-x509-ca-cert', 'css' => 'text/css', 'csv' => 'text/csv', 'cu' => 'application/cu-seeme', 'deb' => 'application/x-debian-package', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'dvi' => 'application/x-dvi', 'eot' => 'application/vnd.ms-fontobject', 'eps' => 'application/postscript', 'epub' => 'application/epub+zip', 'etx' => 'text/x-setext', 'flac' => 'audio/flac', 'flv' => 'video/x-flv', 'gif' => 'image/gif', 'gz' => 'application/gzip', 'htm' => 'text/html', 'html' => 'text/html', 'ico' => 'image/x-icon', 'ics' => 'text/calendar', 'ini' => 'text/plain', 'iso' => 'application/x-iso9660-image', 'jar' => 'application/java-archive', 'jpe' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg', 'js' => 'text/javascript', 'json' => 'application/json', 'latex' => 'application/x-latex', 'log' => 'text/plain', 'm4a' => 'audio/mp4', 'm4v' => 'video/mp4', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mov' => 'video/quicktime', 'mkv' => 'video/x-matroska', 'mp3' => 'audio/mpeg', 'mp4' => 'video/mp4', 'mp4a' => 'audio/mp4', 'mp4v' => 'video/mp4', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpg4' => 'video/mp4', 'oga' => 'audio/ogg', 'ogg' => 'audio/ogg', 'ogv' => 'video/ogg', 'ogx' => 'application/ogg', 'pbm' => 'image/x-portable-bitmap', 'pdf' => 'application/pdf', 'pgm' => 'image/x-portable-graymap', 'png' => 'image/png', 'pnm' => 'image/x-portable-anymap', 'ppm' => 'image/x-portable-pixmap', 'ppt' => 'application/vnd.ms-powerpoint', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'ps' => 'application/postscript', 'qt' => 'video/quicktime', 'rar' => 'application/x-rar-compressed', 'ras' => 'image/x-cmu-raster', 'rss' => 'application/rss+xml', 'rtf' => 'application/rtf', 'sgm' => 'text/sgml', 'sgml' => 'text/sgml', 'svg' => 'image/svg+xml', 'swf' => 'application/x-shockwave-flash', 'tar' => 'application/x-tar', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'torrent' => 'application/x-bittorrent', 'ttf' => 'application/x-font-ttf', 'txt' => 'text/plain', 'wav' => 'audio/x-wav', 'webm' => 'video/webm', 'webp' => 'image/webp', 'wma' => 'audio/x-ms-wma', 'wmv' => 'video/x-ms-wmv', 'woff' => 'application/x-font-woff', 'wsdl' => 'application/wsdl+xml', 'xbm' => 'image/x-xbitmap', 'xls' => 'application/vnd.ms-excel', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xml' => 'application/xml', 'xpm' => 'image/x-xpixmap', 'xwd' => 'image/x-xwindowdump', 'yaml' => 'text/yaml', 'yml' => 'text/yaml', 'zip' => 'application/zip']; $extension = \strtolower($extension); return isset($mimetypes[$extension]) ? $mimetypes[$extension] : null; } } guzzlehttp/psr7/src/Query.php000064400000006706150544704730012306 0ustar00 '1', 'foo[b]' => '2'])`. * * @param string $str Query string to parse * @param int|bool $urlEncoding How the query string is encoded * * @return array */ public static function parse($str, $urlEncoding = \true) { $result = []; if ($str === '') { return $result; } if ($urlEncoding === \true) { $decoder = function ($value) { return \rawurldecode(\str_replace('+', ' ', $value)); }; } elseif ($urlEncoding === \PHP_QUERY_RFC3986) { $decoder = 'rawurldecode'; } elseif ($urlEncoding === \PHP_QUERY_RFC1738) { $decoder = 'urldecode'; } else { $decoder = function ($str) { return $str; }; } foreach (\explode('&', $str) as $kvp) { $parts = \explode('=', $kvp, 2); $key = $decoder($parts[0]); $value = isset($parts[1]) ? $decoder($parts[1]) : null; if (!isset($result[$key])) { $result[$key] = $value; } else { if (!\is_array($result[$key])) { $result[$key] = [$result[$key]]; } $result[$key][] = $value; } } return $result; } /** * Build a query string from an array of key value pairs. * * This function can use the return value of `parse()` to build a query * string. This function does not modify the provided keys when an array is * encountered (like `http_build_query()` would). * * @param array $params Query string parameters. * @param int|false $encoding Set to false to not encode, PHP_QUERY_RFC3986 * to encode using RFC3986, or PHP_QUERY_RFC1738 * to encode using RFC1738. * * @return string */ public static function build(array $params, $encoding = \PHP_QUERY_RFC3986) { if (!$params) { return ''; } if ($encoding === \false) { $encoder = function ($str) { return $str; }; } elseif ($encoding === \PHP_QUERY_RFC3986) { $encoder = 'rawurlencode'; } elseif ($encoding === \PHP_QUERY_RFC1738) { $encoder = 'urlencode'; } else { throw new \InvalidArgumentException('Invalid type'); } $qs = ''; foreach ($params as $k => $v) { $k = $encoder($k); if (!\is_array($v)) { $qs .= $k; if ($v !== null) { $qs .= '=' . $encoder($v); } $qs .= '&'; } else { foreach ($v as $vv) { $qs .= $k; if ($vv !== null) { $qs .= '=' . $encoder($vv); } $qs .= '&'; } } } return $qs ? (string) \substr($qs, 0, -1) : ''; } } guzzlehttp/psr7/src/Request.php000064400000007610150544704730012624 0ustar00assertMethod($method); if (!$uri instanceof \Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface) { $uri = new \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Uri($uri); } $this->method = \strtoupper($method); $this->uri = $uri; $this->setHeaders($headers); $this->protocol = $version; if (!isset($this->headerNames['host'])) { $this->updateHostFromUri(); } if ($body !== '' && $body !== null) { $this->stream = \Google\Site_Kit_Dependencies\GuzzleHttp\Psr7\Utils::streamFor($body); } } public function getRequestTarget() { if ($this->requestTarget !== null) { return $this->requestTarget; } $target = $this->uri->getPath(); if ($target == '') { $target = '/'; } if ($this->uri->getQuery() != '') { $target .= '?' . $this->uri->getQuery(); } return $target; } public function withRequestTarget($requestTarget) { if (\preg_match('#\\s#', $requestTarget)) { throw new \InvalidArgumentException('Invalid request target provided; cannot contain whitespace'); } $new = clone $this; $new->requestTarget = $requestTarget; return $new; } public function getMethod() { return $this->method; } public function withMethod($method) { $this->assertMethod($method); $new = clone $this; $new->method = \strtoupper($method); return $new; } public function getUri() { return $this->uri; } public function withUri(\Google\Site_Kit_Dependencies\Psr\Http\Message\UriInterface $uri, $preserveHost = \false) { if ($uri === $this->uri) { return $this; } $new = clone $this; $new->uri = $uri; if (!$preserveHost || !isset($this->headerNames['host'])) { $new->updateHostFromUri(); } return $new; } private function updateHostFromUri() { $host = $this->uri->getHost(); if ($host == '') { return; } if (($port = $this->uri->getPort()) !== null) { $host .= ':' . $port; } if (isset($this->headerNames['host'])) { $header = $this->headerNames['host']; } else { $header = 'Host'; $this->headerNames['host'] = 'Host'; } // Ensure Host is the first header. // See: http://tools.ietf.org/html/rfc7230#section-5.4 $this->headers = [$header => [$host]] + $this->headers; } private function assertMethod($method) { if (!\is_string($method) || $method === '') { throw new \InvalidArgumentException('Method must be a non-empty string.'); } } } guzzlehttp/psr7/src/FnStream.php000064400000007756150544704730012726 0ustar00methods = $methods; // Create the functions on the class foreach ($methods as $name => $fn) { $this->{'_fn_' . $name} = $fn; } } /** * Lazily determine which methods are not implemented. * * @throws \BadMethodCallException */ public function __get($name) { throw new \BadMethodCallException(\str_replace('_fn_', '', $name) . '() is not implemented in the FnStream'); } /** * The close method is called on the underlying stream only if possible. */ public function __destruct() { if (isset($this->_fn_close)) { \call_user_func($this->_fn_close); } } /** * An unserialize would allow the __destruct to run when the unserialized value goes out of scope. * * @throws \LogicException */ public function __wakeup() { throw new \LogicException('FnStream should never be unserialized'); } /** * Adds custom functionality to an underlying stream by intercepting * specific method calls. * * @param StreamInterface $stream Stream to decorate * @param array $methods Hash of method name to a closure * * @return FnStream */ public static function decorate(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $stream, array $methods) { // If any of the required methods were not provided, then simply // proxy to the decorated stream. foreach (\array_diff(self::$slots, \array_keys($methods)) as $diff) { $methods[$diff] = [$stream, $diff]; } return new self($methods); } public function __toString() { return \call_user_func($this->_fn___toString); } public function close() { return \call_user_func($this->_fn_close); } public function detach() { return \call_user_func($this->_fn_detach); } public function getSize() { return \call_user_func($this->_fn_getSize); } public function tell() { return \call_user_func($this->_fn_tell); } public function eof() { return \call_user_func($this->_fn_eof); } public function isSeekable() { return \call_user_func($this->_fn_isSeekable); } public function rewind() { \call_user_func($this->_fn_rewind); } public function seek($offset, $whence = \SEEK_SET) { \call_user_func($this->_fn_seek, $offset, $whence); } public function isWritable() { return \call_user_func($this->_fn_isWritable); } public function write($string) { return \call_user_func($this->_fn_write, $string); } public function isReadable() { return \call_user_func($this->_fn_isReadable); } public function read($length) { return \call_user_func($this->_fn_read, $length); } public function getContents() { return \call_user_func($this->_fn_getContents); } public function getMetadata($key = null) { return \call_user_func($this->_fn_getMetadata, $key); } } guzzlehttp/guzzle/src/Event/AbstractTransferEvent.php000064400000003472150544704730017156 0ustar00transaction->transferInfo; } return isset($this->transaction->transferInfo[$name]) ? $this->transaction->transferInfo[$name] : null; } /** * Returns true/false if a response is available. * * @return bool */ public function hasResponse() { return !$this->transaction->response instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\FutureInterface; } /** * Get the response. * * @return ResponseInterface|null */ public function getResponse() { return $this->hasResponse() ? $this->transaction->response : null; } /** * Intercept the request and associate a response * * @param ResponseInterface $response Response to set */ public function intercept(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface $response) { $this->transaction->response = $response; $this->transaction->exception = null; $this->stopPropagation(); } } guzzlehttp/guzzle/src/Event/BeforeEvent.php000064400000001536150544704730015107 0ustar00transaction->response = $response; $this->transaction->exception = null; $this->stopPropagation(); } } guzzlehttp/guzzle/src/Event/RequestEvents.php000064400000003144150544704730015515 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * * @link https://github.com/symfony/symfony/tree/master/src/Symfony/Component/EventDispatcher */ class Emitter implements \Google\Site_Kit_Dependencies\GuzzleHttp\Event\EmitterInterface { /** @var array */ private $listeners = []; /** @var array */ private $sorted = []; public function on($eventName, callable $listener, $priority = 0) { if ($priority === 'first') { $priority = isset($this->listeners[$eventName]) ? \max(\array_keys($this->listeners[$eventName])) + 1 : 1; } elseif ($priority === 'last') { $priority = isset($this->listeners[$eventName]) ? \min(\array_keys($this->listeners[$eventName])) - 1 : -1; } $this->listeners[$eventName][$priority][] = $listener; unset($this->sorted[$eventName]); } public function once($eventName, callable $listener, $priority = 0) { $onceListener = function (\Google\Site_Kit_Dependencies\GuzzleHttp\Event\EventInterface $event) use(&$onceListener, $eventName, $listener, $priority) { $this->removeListener($eventName, $onceListener); $listener($event, $eventName); }; $this->on($eventName, $onceListener, $priority); } public function removeListener($eventName, callable $listener) { if (empty($this->listeners[$eventName])) { return; } foreach ($this->listeners[$eventName] as $priority => $listeners) { if (\false !== ($key = \array_search($listener, $listeners, \true))) { unset($this->listeners[$eventName][$priority][$key], $this->sorted[$eventName]); } } } public function listeners($eventName = null) { // Return all events in a sorted priority order if ($eventName === null) { foreach (\array_keys($this->listeners) as $eventName) { if (empty($this->sorted[$eventName])) { $this->listeners($eventName); } } return $this->sorted; } // Return the listeners for a specific event, sorted in priority order if (empty($this->sorted[$eventName])) { $this->sorted[$eventName] = []; if (isset($this->listeners[$eventName])) { \krsort($this->listeners[$eventName], \SORT_NUMERIC); foreach ($this->listeners[$eventName] as $listeners) { foreach ($listeners as $listener) { $this->sorted[$eventName][] = $listener; } } } } return $this->sorted[$eventName]; } public function hasListeners($eventName) { return !empty($this->listeners[$eventName]); } public function emit($eventName, \Google\Site_Kit_Dependencies\GuzzleHttp\Event\EventInterface $event) { if (isset($this->listeners[$eventName])) { foreach ($this->listeners($eventName) as $listener) { $listener($event, $eventName); if ($event->isPropagationStopped()) { break; } } } return $event; } public function attach(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\SubscriberInterface $subscriber) { foreach ($subscriber->getEvents() as $eventName => $listeners) { if (\is_array($listeners[0])) { foreach ($listeners as $listener) { $this->on($eventName, [$subscriber, $listener[0]], isset($listener[1]) ? $listener[1] : 0); } } else { $this->on($eventName, [$subscriber, $listeners[0]], isset($listeners[1]) ? $listeners[1] : 0); } } } public function detach(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\SubscriberInterface $subscriber) { foreach ($subscriber->getEvents() as $eventName => $listener) { $this->removeListener($eventName, [$subscriber, $listener[0]]); } } } guzzlehttp/guzzle/src/Event/HasEmitterInterface.php000064400000000411150544704730016560 0ustar00emitter) { $this->emitter = new \Google\Site_Kit_Dependencies\GuzzleHttp\Event\Emitter(); } return $this->emitter; } } guzzlehttp/guzzle/src/Event/EventInterface.php000064400000001076150544704730015604 0ustar00transaction->exception; } } guzzlehttp/guzzle/src/Event/ErrorEvent.php000064400000001415150544704730014772 0ustar00transaction->exception; } } guzzlehttp/guzzle/src/Event/CompleteEvent.php000064400000001002150544704730015441 0ustar00transaction = $transaction; } /** * Get the HTTP client associated with the event. * * @return ClientInterface */ public function getClient() { return $this->transaction->client; } /** * Get the request object * * @return RequestInterface */ public function getRequest() { return $this->transaction->request; } /** * Get the number of transaction retries. * * @return int */ public function getRetryCount() { return $this->transaction->retries; } /** * @return Transaction */ public function getTransaction() { return $this->transaction; } } guzzlehttp/guzzle/src/Event/SubscriberInterface.php000064400000002455150544704730016630 0ustar00 ['methodName']] * - ['eventName' => ['methodName', $priority]] * - ['eventName' => [['methodName'], ['otherMethod']] * - ['eventName' => [['methodName'], ['otherMethod', $priority]] * - ['eventName' => [['methodName', $priority], ['otherMethod', $priority]] * * @return array */ public function getEvents(); } guzzlehttp/guzzle/src/Event/ProgressEvent.php000064400000003303150544704730015503 0ustar00downloadSize = $downloadSize; $this->downloaded = $downloaded; $this->uploadSize = $uploadSize; $this->uploaded = $uploaded; } } guzzlehttp/guzzle/src/Event/AbstractEvent.php000064400000000706150544704730015446 0ustar00propagationStopped; } public function stopPropagation() { $this->propagationStopped = \true; } } guzzlehttp/guzzle/src/Event/AbstractRetryableEvent.php000064400000003014150544704730017313 0ustar00transaction->state = 'retry'; if ($afterDelay) { $this->transaction->request->getConfig()->set('delay', $afterDelay); } $this->stopPropagation(); } } guzzlehttp/guzzle/src/Event/ListenerAttacherTrait.php000064400000006517150544704730017154 0ustar00getEmitter(); foreach ($listeners as $el) { if ($el['once']) { $emitter->once($el['name'], $el['fn'], $el['priority']); } else { $emitter->on($el['name'], $el['fn'], $el['priority']); } } } /** * Extracts the allowed events from the provided array, and ignores anything * else in the array. The event listener must be specified as a callable or * as an array of event listener data ("name", "fn", "priority", "once"). * * @param array $source Array containing callables or hashes of data to be * prepared as event listeners. * @param array $events Names of events to look for in the provided $source * array. Other keys are ignored. * @return array */ private function prepareListeners(array $source, array $events) { $listeners = []; foreach ($events as $name) { if (isset($source[$name])) { $this->buildListener($name, $source[$name], $listeners); } } return $listeners; } /** * Creates a complete event listener definition from the provided array of * listener data. Also works recursively if more than one listeners are * contained in the provided array. * * @param string $name Name of the event the listener is for. * @param array|callable $data Event listener data to prepare. * @param array $listeners Array of listeners, passed by reference. * * @throws \InvalidArgumentException if the event data is malformed. */ private function buildListener($name, $data, &$listeners) { static $defaults = ['priority' => 0, 'once' => \false]; // If a callable is provided, normalize it to the array format. if (\is_callable($data)) { $data = ['fn' => $data]; } // Prepare the listener and add it to the array, recursively. if (isset($data['fn'])) { $data['name'] = $name; $listeners[] = $data + $defaults; } elseif (\is_array($data)) { foreach ($data as $listenerData) { $this->buildListener($name, $listenerData, $listeners); } } else { throw new \InvalidArgumentException('Each event listener must be a ' . 'callable or an associative array containing a "fn" key.'); } } } guzzlehttp/guzzle/src/RingBridge.php000064400000014137150544704730013637 0ustar00getConfig()->toArray(); $url = $request->getUrl(); // No need to calculate the query string twice (in URL and query). $qs = ($pos = \strpos($url, '?')) ? \substr($url, $pos + 1) : null; return ['scheme' => $request->getScheme(), 'http_method' => $request->getMethod(), 'url' => $url, 'uri' => $request->getPath(), 'headers' => $request->getHeaders(), 'body' => $request->getBody(), 'version' => $request->getProtocolVersion(), 'client' => $options, 'query_string' => $qs, 'future' => isset($options['future']) ? $options['future'] : \false]; } /** * Creates a Ring request from a request object AND prepares the callbacks. * * @param Transaction $trans Transaction to update. * * @return array Converted Guzzle Ring request. */ public static function prepareRingRequest(\Google\Site_Kit_Dependencies\GuzzleHttp\Transaction $trans) { // Clear out the transaction state when initiating. $trans->exception = null; $request = self::createRingRequest($trans->request); // Emit progress events if any progress listeners are registered. if ($trans->request->getEmitter()->hasListeners('progress')) { $emitter = $trans->request->getEmitter(); $request['client']['progress'] = function ($a, $b, $c, $d) use($trans, $emitter) { $emitter->emit('progress', new \Google\Site_Kit_Dependencies\GuzzleHttp\Event\ProgressEvent($trans, $a, $b, $c, $d)); }; } return $request; } /** * Handles the process of processing a response received from a ring * handler. The created response is added to the transaction, and the * transaction stat is set appropriately. * * @param Transaction $trans Owns request and response. * @param array $response Ring response array * @param MessageFactoryInterface $messageFactory Creates response objects. */ public static function completeRingResponse(\Google\Site_Kit_Dependencies\GuzzleHttp\Transaction $trans, array $response, \Google\Site_Kit_Dependencies\GuzzleHttp\Message\MessageFactoryInterface $messageFactory) { $trans->state = 'complete'; $trans->transferInfo = isset($response['transfer_stats']) ? $response['transfer_stats'] : []; if (!empty($response['status'])) { $options = []; if (isset($response['version'])) { $options['protocol_version'] = $response['version']; } if (isset($response['reason'])) { $options['reason_phrase'] = $response['reason']; } $trans->response = $messageFactory->createResponse($response['status'], isset($response['headers']) ? $response['headers'] : [], isset($response['body']) ? $response['body'] : null, $options); if (isset($response['effective_url'])) { $trans->response->setEffectiveUrl($response['effective_url']); } } elseif (empty($response['error'])) { // When nothing was returned, then we need to add an error. $response['error'] = self::getNoRingResponseException($trans->request); } if (isset($response['error'])) { $trans->state = 'error'; $trans->exception = $response['error']; } } /** * Creates a Guzzle request object using a ring request array. * * @param array $request Ring request * * @return Request * @throws \InvalidArgumentException for incomplete requests. */ public static function fromRingRequest(array $request) { $options = []; if (isset($request['version'])) { $options['protocol_version'] = $request['version']; } if (!isset($request['http_method'])) { throw new \InvalidArgumentException('No http_method'); } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Message\Request($request['http_method'], \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::url($request), isset($request['headers']) ? $request['headers'] : [], isset($request['body']) ? \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($request['body']) : null, $options); } /** * Get an exception that can be used when a RingPHP handler does not * populate a response. * * @param RequestInterface $request * * @return RequestException */ public static function getNoRingResponseException(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request) { $message = <<then($onFulfilled, $onRejected, $onProgress), [$future, 'wait'], [$future, 'cancel']); } public function getStatusCode() { return $this->_value->getStatusCode(); } public function setStatusCode($code) { $this->_value->setStatusCode($code); } public function getReasonPhrase() { return $this->_value->getReasonPhrase(); } public function setReasonPhrase($phrase) { $this->_value->setReasonPhrase($phrase); } public function getEffectiveUrl() { return $this->_value->getEffectiveUrl(); } public function setEffectiveUrl($url) { $this->_value->setEffectiveUrl($url); } public function json(array $config = []) { return $this->_value->json($config); } public function xml(array $config = []) { return $this->_value->xml($config); } public function __toString() { try { return $this->_value->__toString(); } catch (\Exception $e) { \trigger_error($e->getMessage(), \E_USER_WARNING); return ''; } } public function getProtocolVersion() { return $this->_value->getProtocolVersion(); } public function setBody(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $body = null) { $this->_value->setBody($body); } public function getBody() { return $this->_value->getBody(); } public function getHeaders() { return $this->_value->getHeaders(); } public function getHeader($header) { return $this->_value->getHeader($header); } public function getHeaderAsArray($header) { return $this->_value->getHeaderAsArray($header); } public function hasHeader($header) { return $this->_value->hasHeader($header); } public function removeHeader($header) { $this->_value->removeHeader($header); } public function addHeader($header, $value) { $this->_value->addHeader($header, $value); } public function addHeaders(array $headers) { $this->_value->addHeaders($headers); } public function setHeader($header, $value) { $this->_value->setHeader($header, $value); } public function setHeaders(array $headers) { $this->_value->setHeaders($headers); } } guzzlehttp/guzzle/src/Message/Response.php000064400000013645150544704730015010 0ustar00 'Continue', 101 => 'Switching Protocols', 102 => 'Processing', 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 207 => 'Multi-Status', 208 => 'Already Reported', 226 => 'IM Used', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Found', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 307 => 'Temporary Redirect', 308 => 'Permanent Redirect', 400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Timeout', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request-URI Too Long', 415 => 'Unsupported Media Type', 416 => 'Requested Range Not Satisfiable', 417 => 'Expectation Failed', 422 => 'Unprocessable Entity', 423 => 'Locked', 424 => 'Failed Dependency', 425 => 'Reserved for WebDAV advanced collections expired proposal', 426 => 'Upgrade required', 428 => 'Precondition Required', 429 => 'Too Many Requests', 431 => 'Request Header Fields Too Large', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Timeout', 505 => 'HTTP Version Not Supported', 506 => 'Variant Also Negotiates (Experimental)', 507 => 'Insufficient Storage', 508 => 'Loop Detected', 510 => 'Not Extended', 511 => 'Network Authentication Required']; /** @var string The reason phrase of the response (human readable code) */ private $reasonPhrase; /** @var string The status code of the response */ private $statusCode; /** @var string The effective URL that returned this response */ private $effectiveUrl; /** * @param int|string $statusCode The response status code (e.g. 200) * @param array $headers The response headers * @param StreamInterface $body The body of the response * @param array $options Response message options * - reason_phrase: Set a custom reason phrase * - protocol_version: Set a custom protocol version */ public function __construct($statusCode, array $headers = [], \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $body = null, array $options = []) { $this->statusCode = (int) $statusCode; $this->handleOptions($options); // Assume a reason phrase if one was not applied as an option if (!$this->reasonPhrase && isset(self::$statusTexts[$this->statusCode])) { $this->reasonPhrase = self::$statusTexts[$this->statusCode]; } if ($headers) { $this->setHeaders($headers); } if ($body) { $this->setBody($body); } } public function getStatusCode() { return $this->statusCode; } public function setStatusCode($code) { return $this->statusCode = (int) $code; } public function getReasonPhrase() { return $this->reasonPhrase; } public function setReasonPhrase($phrase) { return $this->reasonPhrase = $phrase; } public function json(array $config = []) { try { return \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::jsonDecode((string) $this->getBody(), isset($config['object']) ? !$config['object'] : \true, 512, isset($config['big_int_strings']) ? \JSON_BIGINT_AS_STRING : 0); } catch (\InvalidArgumentException $e) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\ParseException($e->getMessage(), $this); } } public function xml(array $config = []) { $disableEntities = \libxml_disable_entity_loader(\true); $internalErrors = \libxml_use_internal_errors(\true); try { // Allow XML to be retrieved even if there is no response body $xml = new \SimpleXMLElement((string) $this->getBody() ?: '', isset($config['libxml_options']) ? $config['libxml_options'] : \LIBXML_NONET, \false, isset($config['ns']) ? $config['ns'] : '', isset($config['ns_is_prefix']) ? $config['ns_is_prefix'] : \false); \libxml_disable_entity_loader($disableEntities); \libxml_use_internal_errors($internalErrors); } catch (\Exception $e) { \libxml_disable_entity_loader($disableEntities); \libxml_use_internal_errors($internalErrors); throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\XmlParseException('Unable to parse response body into XML: ' . $e->getMessage(), $this, $e, \libxml_get_last_error() ?: null); } return $xml; } public function getEffectiveUrl() { return $this->effectiveUrl; } public function setEffectiveUrl($url) { $this->effectiveUrl = $url; } /** * Accepts and modifies the options provided to the response in the * constructor. * * @param array $options Options array passed by reference. */ protected function handleOptions(array &$options = []) { parent::handleOptions($options); if (isset($options['reason_phrase'])) { $this->reasonPhrase = $options['reason_phrase']; } } } guzzlehttp/guzzle/src/Message/MessageFactory.php000064400000031166150544704730016124 0ustar00 1, 'timeout' => 1, 'verify' => 1, 'ssl_key' => 1, 'cert' => 1, 'proxy' => 1, 'debug' => 1, 'save_to' => 1, 'stream' => 1, 'expect' => 1, 'future' => 1]; /** @var array Default allow_redirects request option settings */ private static $defaultRedirect = ['max' => 5, 'strict' => \false, 'referer' => \false, 'protocols' => ['http', 'https']]; /** * @param array $customOptions Associative array of custom request option * names mapping to functions used to apply * the option. The function accepts the request * and the option value to apply. */ public function __construct(array $customOptions = []) { $this->errorPlugin = new \Google\Site_Kit_Dependencies\GuzzleHttp\Subscriber\HttpError(); $this->redirectPlugin = new \Google\Site_Kit_Dependencies\GuzzleHttp\Subscriber\Redirect(); $this->customOptions = $customOptions; } public function createResponse($statusCode, array $headers = [], $body = null, array $options = []) { if (null !== $body) { $body = \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($body); } return new \Google\Site_Kit_Dependencies\GuzzleHttp\Message\Response($statusCode, $headers, $body, $options); } public function createRequest($method, $url, array $options = []) { // Handle the request protocol version option that needs to be // specified in the request constructor. if (isset($options['version'])) { $options['config']['protocol_version'] = $options['version']; unset($options['version']); } $request = new \Google\Site_Kit_Dependencies\GuzzleHttp\Message\Request($method, $url, [], null, isset($options['config']) ? $options['config'] : []); unset($options['config']); // Use a POST body by default if (\strtoupper($method) == 'POST' && !isset($options['body']) && !isset($options['json'])) { $options['body'] = []; } if ($options) { $this->applyOptions($request, $options); } return $request; } /** * Create a request or response object from an HTTP message string * * @param string $message Message to parse * * @return RequestInterface|ResponseInterface * @throws \InvalidArgumentException if unable to parse a message */ public function fromMessage($message) { static $parser; if (!$parser) { $parser = new \Google\Site_Kit_Dependencies\GuzzleHttp\Message\MessageParser(); } // Parse a response if (\strtoupper(\substr($message, 0, 4)) == 'HTTP') { $data = $parser->parseResponse($message); return $this->createResponse($data['code'], $data['headers'], $data['body'] === '' ? null : $data['body'], $data); } // Parse a request if (!($data = $parser->parseRequest($message))) { throw new \InvalidArgumentException('Unable to parse request'); } return $this->createRequest($data['method'], \Google\Site_Kit_Dependencies\GuzzleHttp\Url::buildUrl($data['request_url']), ['headers' => $data['headers'], 'body' => $data['body'] === '' ? null : $data['body'], 'config' => ['protocol_version' => $data['protocol_version']]]); } /** * Apply POST fields and files to a request to attempt to give an accurate * representation. * * @param RequestInterface $request Request to update * @param array $body Body to apply */ protected function addPostData(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, array $body) { static $fields = ['string' => \true, 'array' => \true, 'NULL' => \true, 'boolean' => \true, 'double' => \true, 'integer' => \true]; $post = new \Google\Site_Kit_Dependencies\GuzzleHttp\Post\PostBody(); foreach ($body as $key => $value) { if (isset($fields[\gettype($value)])) { $post->setField($key, $value); } elseif ($value instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Post\PostFileInterface) { $post->addFile($value); } else { $post->addFile(new \Google\Site_Kit_Dependencies\GuzzleHttp\Post\PostFile($key, $value)); } } if ($request->getHeader('Content-Type') == 'multipart/form-data') { $post->forceMultipartUpload(\true); } $request->setBody($post); } protected function applyOptions(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, array $options = []) { $config = $request->getConfig(); $emitter = $request->getEmitter(); foreach ($options as $key => $value) { if (isset(self::$configMap[$key])) { $config[$key] = $value; continue; } switch ($key) { case 'allow_redirects': if ($value === \false) { continue 2; } if ($value === \true) { $value = self::$defaultRedirect; } elseif (!\is_array($value)) { throw new \InvalidArgumentException('allow_redirects must be true, false, or array'); } else { // Merge the default settings with the provided settings $value += self::$defaultRedirect; } $config['redirect'] = $value; $emitter->attach($this->redirectPlugin); break; case 'decode_content': if ($value === \false) { continue 2; } $config['decode_content'] = \true; if ($value !== \true) { $request->setHeader('Accept-Encoding', $value); } break; case 'headers': if (!\is_array($value)) { throw new \InvalidArgumentException('header value must be an array'); } foreach ($value as $k => $v) { $request->setHeader($k, $v); } break; case 'exceptions': if ($value === \true) { $emitter->attach($this->errorPlugin); } break; case 'body': if (\is_array($value)) { $this->addPostData($request, $value); } elseif ($value !== null) { $request->setBody(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($value)); } break; case 'auth': if (!$value) { continue 2; } if (\is_array($value)) { $type = isset($value[2]) ? \strtolower($value[2]) : 'basic'; } else { $type = \strtolower($value); } $config['auth'] = $value; if ($type == 'basic') { $request->setHeader('Authorization', 'Basic ' . \base64_encode("{$value[0]}:{$value[1]}")); } elseif ($type == 'digest') { // @todo: Do not rely on curl $config->setPath('curl/' . \CURLOPT_HTTPAUTH, \CURLAUTH_DIGEST); $config->setPath('curl/' . \CURLOPT_USERPWD, "{$value[0]}:{$value[1]}"); } break; case 'query': if ($value instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Query) { $original = $request->getQuery(); // Do not overwrite existing query string variables by // overwriting the object with the query string data passed // in the URL $value->overwriteWith($original->toArray()); $request->setQuery($value); } elseif (\is_array($value)) { // Do not overwrite existing query string variables $query = $request->getQuery(); foreach ($value as $k => $v) { if (!isset($query[$k])) { $query[$k] = $v; } } } else { throw new \InvalidArgumentException('query must be an array or Query object'); } break; case 'cookies': if ($value === \true) { static $cookie = null; if (!$cookie) { $cookie = new \Google\Site_Kit_Dependencies\GuzzleHttp\Subscriber\Cookie(); } $emitter->attach($cookie); } elseif (\is_array($value)) { $emitter->attach(new \Google\Site_Kit_Dependencies\GuzzleHttp\Subscriber\Cookie(\Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\CookieJar::fromArray($value, $request->getHost()))); } elseif ($value instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\CookieJarInterface) { $emitter->attach(new \Google\Site_Kit_Dependencies\GuzzleHttp\Subscriber\Cookie($value)); } elseif ($value !== \false) { throw new \InvalidArgumentException('cookies must be an array, true, or CookieJarInterface'); } break; case 'events': if (!\is_array($value)) { throw new \InvalidArgumentException('events must be an array'); } $this->attachListeners($request, $this->prepareListeners($value, ['before', 'complete', 'error', 'progress', 'end'])); break; case 'subscribers': if (!\is_array($value)) { throw new \InvalidArgumentException('subscribers must be an array'); } foreach ($value as $subscribers) { $emitter->attach($subscribers); } break; case 'json': $request->setBody(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory(\json_encode($value))); if (!$request->hasHeader('Content-Type')) { $request->setHeader('Content-Type', 'application/json'); } break; default: // Check for custom handler functions. if (isset($this->customOptions[$key])) { $fn = $this->customOptions[$key]; $fn($request, $value); continue 2; } throw new \InvalidArgumentException("No method can handle the {$key} config key"); } } } } guzzlehttp/guzzle/src/Message/MessageFactoryInterface.php000064400000006334150544704730017744 0ustar00getBody(); } public function getProtocolVersion() { return $this->protocolVersion; } public function getBody() { return $this->body; } public function setBody(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $body = null) { if ($body === null) { // Setting a null body will remove the body of the request $this->removeHeader('Content-Length'); $this->removeHeader('Transfer-Encoding'); } $this->body = $body; } public function addHeader($header, $value) { if (\is_array($value)) { $current = \array_merge($this->getHeaderAsArray($header), $value); } else { $current = $this->getHeaderAsArray($header); $current[] = (string) $value; } $this->setHeader($header, $current); } public function addHeaders(array $headers) { foreach ($headers as $name => $header) { $this->addHeader($name, $header); } } public function getHeader($header) { $name = \strtolower($header); return isset($this->headers[$name]) ? \implode(', ', $this->headers[$name]) : ''; } public function getHeaderAsArray($header) { $name = \strtolower($header); return isset($this->headers[$name]) ? $this->headers[$name] : []; } public function getHeaders() { $headers = []; foreach ($this->headers as $name => $values) { $headers[$this->headerNames[$name]] = $values; } return $headers; } public function setHeader($header, $value) { $header = \trim($header); $name = \strtolower($header); $this->headerNames[$name] = $header; if (\is_array($value)) { foreach ($value as &$v) { $v = \trim($v); } $this->headers[$name] = $value; } else { $this->headers[$name] = [\trim($value)]; } } public function setHeaders(array $headers) { $this->headers = $this->headerNames = []; foreach ($headers as $key => $value) { $this->addHeader($key, $value); } } public function hasHeader($header) { return isset($this->headers[\strtolower($header)]); } public function removeHeader($header) { $name = \strtolower($header); unset($this->headers[$name], $this->headerNames[$name]); } /** * Parse an array of header values containing ";" separated data into an * array of associative arrays representing the header key value pair * data of the header. When a parameter does not contain a value, but just * contains a key, this function will inject a key with a '' string value. * * @param MessageInterface $message That contains the header * @param string $header Header to retrieve from the message * * @return array Returns the parsed header values. */ public static function parseHeader(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\MessageInterface $message, $header) { static $trimmed = "\"' \n\t\r"; $params = $matches = []; foreach (self::normalizeHeader($message, $header) as $val) { $part = []; foreach (\preg_split('/;(?=([^"]*"[^"]*")*[^"]*$)/', $val) as $kvp) { if (\preg_match_all('/<[^>]+>|[^=]+/', $kvp, $matches)) { $m = $matches[0]; if (isset($m[1])) { $part[\trim($m[0], $trimmed)] = \trim($m[1], $trimmed); } else { $part[] = \trim($m[0], $trimmed); } } } if ($part) { $params[] = $part; } } return $params; } /** * Converts an array of header values that may contain comma separated * headers into an array of headers with no comma separated values. * * @param MessageInterface $message That contains the header * @param string $header Header to retrieve from the message * * @return array Returns the normalized header field values. */ public static function normalizeHeader(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\MessageInterface $message, $header) { $h = $message->getHeaderAsArray($header); for ($i = 0, $total = \count($h); $i < $total; $i++) { if (\strpos($h[$i], ',') === \false) { continue; } foreach (\preg_split('/,(?=([^"]*"[^"]*")*[^"]*$)/', $h[$i]) as $v) { $h[] = \trim($v); } unset($h[$i]); } return $h; } /** * Gets the start-line and headers of a message as a string * * @param MessageInterface $message * * @return string */ public static function getStartLineAndHeaders(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\MessageInterface $message) { return static::getStartLine($message) . self::getHeadersAsString($message); } /** * Gets the headers of a message as a string * * @param MessageInterface $message * * @return string */ public static function getHeadersAsString(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\MessageInterface $message) { $result = ''; foreach ($message->getHeaders() as $name => $values) { $result .= "\r\n{$name}: " . \implode(', ', $values); } return $result; } /** * Gets the start line of a message * * @param MessageInterface $message * * @return string * @throws \InvalidArgumentException */ public static function getStartLine(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\MessageInterface $message) { if ($message instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface) { return \trim($message->getMethod() . ' ' . $message->getResource()) . ' HTTP/' . $message->getProtocolVersion(); } elseif ($message instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface) { return 'HTTP/' . $message->getProtocolVersion() . ' ' . $message->getStatusCode() . ' ' . $message->getReasonPhrase(); } else { throw new \InvalidArgumentException('Unknown message type'); } } /** * Accepts and modifies the options provided to the message in the * constructor. * * Can be overridden in subclasses as necessary. * * @param array $options Options array passed by reference. */ protected function handleOptions(array &$options) { if (isset($options['protocol_version'])) { $this->protocolVersion = $options['protocol_version']; } } } guzzlehttp/guzzle/src/Message/RequestInterface.php000064400000006325150544704730016460 0ustar00parseMessage($message))) { return \false; } // Parse the protocol and protocol version if (isset($parts['start_line'][2])) { $startParts = \explode('/', $parts['start_line'][2]); $protocol = \strtoupper($startParts[0]); $version = isset($startParts[1]) ? $startParts[1] : '1.1'; } else { $protocol = 'HTTP'; $version = '1.1'; } $parsed = ['method' => \strtoupper($parts['start_line'][0]), 'protocol' => $protocol, 'protocol_version' => $version, 'headers' => $parts['headers'], 'body' => $parts['body']]; $parsed['request_url'] = $this->getUrlPartsFromMessage(isset($parts['start_line'][1]) ? $parts['start_line'][1] : '', $parsed); return $parsed; } /** * Parse an HTTP response message into an associative array of parts. * * @param string $message HTTP response to parse * * @return array|bool Returns false if the message is invalid */ public function parseResponse($message) { if (!($parts = $this->parseMessage($message))) { return \false; } list($protocol, $version) = \explode('/', \trim($parts['start_line'][0])); return ['protocol' => $protocol, 'protocol_version' => $version, 'code' => $parts['start_line'][1], 'reason_phrase' => isset($parts['start_line'][2]) ? $parts['start_line'][2] : '', 'headers' => $parts['headers'], 'body' => $parts['body']]; } /** * Parse a message into parts * * @param string $message Message to parse * * @return array|bool */ private function parseMessage($message) { if (!$message) { return \false; } $startLine = null; $headers = []; $body = ''; // Iterate over each line in the message, accounting for line endings $lines = \preg_split('/(\\r?\\n)/', $message, -1, \PREG_SPLIT_DELIM_CAPTURE); for ($i = 0, $totalLines = \count($lines); $i < $totalLines; $i += 2) { $line = $lines[$i]; // If two line breaks were encountered, then this is the end of body if (empty($line)) { if ($i < $totalLines - 1) { $body = \implode('', \array_slice($lines, $i + 2)); } break; } // Parse message headers if (!$startLine) { $startLine = \explode(' ', $line, 3); } elseif (\strpos($line, ':')) { $parts = \explode(':', $line, 2); $key = \trim($parts[0]); $value = isset($parts[1]) ? \trim($parts[1]) : ''; if (!isset($headers[$key])) { $headers[$key] = $value; } elseif (!\is_array($headers[$key])) { $headers[$key] = [$headers[$key], $value]; } else { $headers[$key][] = $value; } } } return ['start_line' => $startLine, 'headers' => $headers, 'body' => $body]; } /** * Create URL parts from HTTP message parts * * @param string $requestUrl Associated URL * @param array $parts HTTP message parts * * @return array */ private function getUrlPartsFromMessage($requestUrl, array $parts) { // Parse the URL information from the message $urlParts = ['path' => $requestUrl, 'scheme' => 'http']; // Check for the Host header if (isset($parts['headers']['Host'])) { $urlParts['host'] = $parts['headers']['Host']; } elseif (isset($parts['headers']['host'])) { $urlParts['host'] = $parts['headers']['host']; } else { $urlParts['host'] = null; } if (\false === \strpos($urlParts['host'], ':')) { $urlParts['port'] = ''; } else { $hostParts = \explode(':', $urlParts['host']); $urlParts['host'] = \trim($hostParts[0]); $urlParts['port'] = (int) \trim($hostParts[1]); if ($urlParts['port'] == 443) { $urlParts['scheme'] = 'https'; } } // Check if a query is present $path = $urlParts['path']; $qpos = \strpos($path, '?'); if ($qpos) { $urlParts['query'] = \substr($path, $qpos + 1); $urlParts['path'] = \substr($path, 0, $qpos); } else { $urlParts['query'] = ''; } return $urlParts; } } guzzlehttp/guzzle/src/Message/Request.php000064400000011566150544704730014642 0ustar00setUrl($url); $this->method = \strtoupper($method); $this->handleOptions($options); $this->transferOptions = new \Google\Site_Kit_Dependencies\GuzzleHttp\Collection($options); $this->addPrepareEvent(); if ($body !== null) { $this->setBody($body); } if ($headers) { foreach ($headers as $key => $value) { $this->addHeader($key, $value); } } } public function __clone() { if ($this->emitter) { $this->emitter = clone $this->emitter; } $this->transferOptions = clone $this->transferOptions; $this->url = clone $this->url; } public function setUrl($url) { $this->url = $url instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Url ? $url : \Google\Site_Kit_Dependencies\GuzzleHttp\Url::fromString($url); $this->updateHostHeaderFromUrl(); } public function getUrl() { return (string) $this->url; } public function setQuery($query) { $this->url->setQuery($query); } public function getQuery() { return $this->url->getQuery(); } public function setMethod($method) { $this->method = \strtoupper($method); } public function getMethod() { return $this->method; } public function getScheme() { return $this->url->getScheme(); } public function setScheme($scheme) { $this->url->setScheme($scheme); } public function getPort() { return $this->url->getPort(); } public function setPort($port) { $this->url->setPort($port); $this->updateHostHeaderFromUrl(); } public function getHost() { return $this->url->getHost(); } public function setHost($host) { $this->url->setHost($host); $this->updateHostHeaderFromUrl(); } public function getPath() { return '/' . \ltrim($this->url->getPath(), '/'); } public function setPath($path) { $this->url->setPath($path); } public function getResource() { $resource = $this->getPath(); if ($query = (string) $this->url->getQuery()) { $resource .= '?' . $query; } return $resource; } public function getConfig() { return $this->transferOptions; } protected function handleOptions(array &$options) { parent::handleOptions($options); // Use a custom emitter if one is specified, and remove it from // options that are exposed through getConfig() if (isset($options['emitter'])) { $this->emitter = $options['emitter']; unset($options['emitter']); } } /** * Adds a subscriber that ensures a request's body is prepared before * sending. */ private function addPrepareEvent() { static $subscriber; if (!$subscriber) { $subscriber = new \Google\Site_Kit_Dependencies\GuzzleHttp\Subscriber\Prepare(); } $this->getEmitter()->attach($subscriber); } private function updateHostHeaderFromUrl() { $port = $this->url->getPort(); $scheme = $this->url->getScheme(); if ($host = $this->url->getHost()) { if ($port == 80 && $scheme == 'http' || $port == 443 && $scheme == 'https') { $this->setHeader('Host', $host); } else { $this->setHeader('Host', "{$host}:{$port}"); } } } } guzzlehttp/guzzle/src/Message/AppliesHeadersInterface.php000064400000001533150544704730017715 0ustar00getHeaders() as $name => $values) { * echo $name . ": " . implode(", ", $values); * } * * @return array Returns an associative array of the message's headers. */ public function getHeaders(); /** * Retrieve a header by the given case-insensitive name. * * @param string $header Case-insensitive header name. * * @return string */ public function getHeader($header); /** * Retrieves a header by the given case-insensitive name as an array of strings. * * @param string $header Case-insensitive header name. * * @return string[] */ public function getHeaderAsArray($header); /** * Checks if a header exists by the given case-insensitive name. * * @param string $header Case-insensitive header name. * * @return bool Returns true if any header names match the given header * name using a case-insensitive string comparison. Returns false if * no matching header name is found in the message. */ public function hasHeader($header); /** * Remove a specific header by case-insensitive name. * * @param string $header Case-insensitive header name. */ public function removeHeader($header); /** * Appends a header value to any existing values associated with the * given header name. * * @param string $header Header name to add * @param string $value Value of the header */ public function addHeader($header, $value); /** * Merges in an associative array of headers. * * Each array key MUST be a string representing the case-insensitive name * of a header. Each value MUST be either a string or an array of strings. * For each value, the value is appended to any existing header of the same * name, or, if a header does not already exist by the given name, then the * header is added. * * @param array $headers Associative array of headers to add to the message */ public function addHeaders(array $headers); /** * Sets a header, replacing any existing values of any headers with the * same case-insensitive name. * * The header values MUST be a string or an array of strings. * * @param string $header Header name * @param string|array $value Header value(s) */ public function setHeader($header, $value); /** * Sets headers, replacing any headers that have already been set on the * message. * * The array keys MUST be a string. The array values must be either a * string or an array of strings. * * @param array $headers Headers to set. */ public function setHeaders(array $headers); } guzzlehttp/guzzle/src/Collection.php000064400000013603150544704730013713 0ustar00data = $data; } /** * Create a new collection from an array, validate the keys, and add default * values where missing * * @param array $config Configuration values to apply. * @param array $defaults Default parameters * @param array $required Required parameter names * * @return self * @throws \InvalidArgumentException if a parameter is missing */ public static function fromConfig(array $config = [], array $defaults = [], array $required = []) { $data = $config + $defaults; if ($missing = \array_diff($required, \array_keys($data))) { throw new \InvalidArgumentException('Config is missing the following keys: ' . \implode(', ', $missing)); } return new self($data); } /** * Removes all key value pairs */ public function clear() { $this->data = []; } /** * Get a specific key value. * * @param string $key Key to retrieve. * * @return mixed|null Value of the key or NULL */ public function get($key) { return isset($this->data[$key]) ? $this->data[$key] : null; } /** * Set a key value pair * * @param string $key Key to set * @param mixed $value Value to set */ public function set($key, $value) { $this->data[$key] = $value; } /** * Add a value to a key. If a key of the same name has already been added, * the key value will be converted into an array and the new value will be * pushed to the end of the array. * * @param string $key Key to add * @param mixed $value Value to add to the key */ public function add($key, $value) { if (!\array_key_exists($key, $this->data)) { $this->data[$key] = $value; } elseif (\is_array($this->data[$key])) { $this->data[$key][] = $value; } else { $this->data[$key] = array($this->data[$key], $value); } } /** * Remove a specific key value pair * * @param string $key A key to remove */ public function remove($key) { unset($this->data[$key]); } /** * Get all keys in the collection * * @return array */ public function getKeys() { return \array_keys($this->data); } /** * Returns whether or not the specified key is present. * * @param string $key The key for which to check the existence. * * @return bool */ public function hasKey($key) { return \array_key_exists($key, $this->data); } /** * Checks if any keys contains a certain value * * @param string $value Value to search for * * @return mixed Returns the key if the value was found FALSE if the value * was not found. */ public function hasValue($value) { return \array_search($value, $this->data, \true); } /** * Replace the data of the object with the value of an array * * @param array $data Associative array of data */ public function replace(array $data) { $this->data = $data; } /** * Add and merge in a Collection or array of key value pair data. * * @param Collection|array $data Associative array of key value pair data */ public function merge($data) { foreach ($data as $key => $value) { $this->add($key, $value); } } /** * Overwrite key value pairs in this collection with all of the data from * an array or collection. * * @param array|\Traversable $data Values to override over this config */ public function overwriteWith($data) { if (\is_array($data)) { $this->data = $data + $this->data; } elseif ($data instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Collection) { $this->data = $data->toArray() + $this->data; } else { foreach ($data as $key => $value) { $this->data[$key] = $value; } } } /** * Returns a Collection containing all the elements of the collection after * applying the callback function to each one. * * The callable should accept three arguments: * - (string) $key * - (string) $value * - (array) $context * * The callable must return a the altered or unaltered value. * * @param callable $closure Map function to apply * @param array $context Context to pass to the callable * * @return Collection */ public function map(callable $closure, array $context = []) { $collection = new static(); foreach ($this as $key => $value) { $collection[$key] = $closure($key, $value, $context); } return $collection; } /** * Iterates over each key value pair in the collection passing them to the * callable. If the callable returns true, the current value from input is * returned into the result Collection. * * The callable must accept two arguments: * - (string) $key * - (string) $value * * @param callable $closure Evaluation function * * @return Collection */ public function filter(callable $closure) { $collection = new static(); foreach ($this->data as $key => $value) { if ($closure($key, $value)) { $collection[$key] = $value; } } return $collection; } } guzzlehttp/guzzle/src/HasDataTrait.php000064400000003334150544704730014131 0ustar00data); } public function offsetGet($offset) { return isset($this->data[$offset]) ? $this->data[$offset] : null; } public function offsetSet($offset, $value) { $this->data[$offset] = $value; } public function offsetExists($offset) { return isset($this->data[$offset]); } public function offsetUnset($offset) { unset($this->data[$offset]); } public function toArray() { return $this->data; } public function count() { return \count($this->data); } /** * Get a value from the collection using a path syntax to retrieve nested * data. * * @param string $path Path to traverse and retrieve a value from * * @return mixed|null */ public function getPath($path) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::getPath($this->data, $path); } /** * Set a value into a nested array key. Keys will be created as needed to * set the value. * * @param string $path Path to set * @param mixed $value Value to set at the key * * @throws \RuntimeException when trying to setPath using a nested path * that travels through a scalar value */ public function setPath($path, $value) { \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::setPath($this->data, $path, $value); } } guzzlehttp/guzzle/src/Utils.php000064400000016677150544704730012736 0ustar00expand($template, $variables); } /** * Wrapper for JSON decode that implements error detection with helpful * error messages. * * @param string $json JSON data to parse * @param bool $assoc When true, returned objects will be converted * into associative arrays. * @param int $depth User specified recursion depth. * @param int $options Bitmask of JSON decode options. * * @return mixed * @throws \InvalidArgumentException if the JSON cannot be parsed. * @link http://www.php.net/manual/en/function.json-decode.php */ public static function jsonDecode($json, $assoc = \false, $depth = 512, $options = 0) { if ($json === '' || $json === null) { return null; } static $jsonErrors = [\JSON_ERROR_DEPTH => 'JSON_ERROR_DEPTH - Maximum stack depth exceeded', \JSON_ERROR_STATE_MISMATCH => 'JSON_ERROR_STATE_MISMATCH - Underflow or the modes mismatch', \JSON_ERROR_CTRL_CHAR => 'JSON_ERROR_CTRL_CHAR - Unexpected control character found', \JSON_ERROR_SYNTAX => 'JSON_ERROR_SYNTAX - Syntax error, malformed JSON', \JSON_ERROR_UTF8 => 'JSON_ERROR_UTF8 - Malformed UTF-8 characters, possibly incorrectly encoded']; $data = \json_decode($json, $assoc, $depth, $options); if (\JSON_ERROR_NONE !== \json_last_error()) { $last = \json_last_error(); throw new \InvalidArgumentException('Unable to parse JSON data: ' . (isset($jsonErrors[$last]) ? $jsonErrors[$last] : 'Unknown error')); } return $data; } /** * Get the default User-Agent string to use with Guzzle * * @return string */ public static function getDefaultUserAgent() { static $defaultAgent = ''; if (!$defaultAgent) { $defaultAgent = 'Guzzle/' . \Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface::VERSION; if (\extension_loaded('curl')) { $defaultAgent .= ' curl/' . \curl_version()['version']; } $defaultAgent .= ' PHP/' . \PHP_VERSION; } return $defaultAgent; } /** * Create a default handler to use based on the environment * * @throws \RuntimeException if no viable Handler is available. */ public static function getDefaultHandler() { $default = $future = null; if (\extension_loaded('curl')) { $config = ['select_timeout' => \getenv('GUZZLE_CURL_SELECT_TIMEOUT') ?: 1]; if ($maxHandles = \getenv('GUZZLE_CURL_MAX_HANDLES')) { $config['max_handles'] = $maxHandles; } if (\function_exists('curl_reset')) { $default = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\CurlHandler(); $future = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\CurlMultiHandler($config); } else { $default = new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\CurlMultiHandler($config); } } if (\ini_get('allow_url_fopen')) { $default = !$default ? new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\StreamHandler() : \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\Middleware::wrapStreaming($default, new \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\StreamHandler()); } elseif (!$default) { throw new \RuntimeException('Guzzle requires cURL, the ' . 'allow_url_fopen ini setting, or a custom HTTP handler.'); } return $future ? \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Client\Middleware::wrapFuture($default, $future) : $default; } } guzzlehttp/guzzle/src/Pool.php000064400000027040150544704730012531 0ustar00client = $client; $this->iter = $this->coerceIterable($requests); $this->deferred = new \Google\Site_Kit_Dependencies\React\Promise\Deferred(); $this->promise = $this->deferred->promise(); $this->poolSize = isset($options['pool_size']) ? $options['pool_size'] : 25; $this->eventListeners = $this->prepareListeners($options, ['before', 'complete', 'error', 'end']); } /** * Sends multiple requests in parallel and returns an array of responses * and exceptions that uses the same ordering as the provided requests. * * IMPORTANT: This method keeps every request and response in memory, and * as such, is NOT recommended when sending a large number or an * indeterminate number of requests concurrently. * * @param ClientInterface $client Client used to send the requests * @param array|\Iterator $requests Requests to send in parallel * @param array $options Passes through the options available in * {@see GuzzleHttp\Pool::__construct} * * @return BatchResults Returns a container for the results. * @throws \InvalidArgumentException if the event format is incorrect. */ public static function batch(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $client, $requests, array $options = []) { $hash = new \SplObjectStorage(); foreach ($requests as $request) { $hash->attach($request); } // In addition to the normally run events when requests complete, add // and event to continuously track the results of transfers in the hash. (new self($client, $requests, \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::convertEventArray($options, ['end'], ['priority' => \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::LATE, 'fn' => function (\Google\Site_Kit_Dependencies\GuzzleHttp\Event\EndEvent $e) use($hash) { $hash[$e->getRequest()] = $e->getException() ? $e->getException() : $e->getResponse(); }])))->wait(); return new \Google\Site_Kit_Dependencies\GuzzleHttp\BatchResults($hash); } /** * Creates a Pool and immediately sends the requests. * * @param ClientInterface $client Client used to send the requests * @param array|\Iterator $requests Requests to send in parallel * @param array $options Passes through the options available in * {@see GuzzleHttp\Pool::__construct} */ public static function send(\Google\Site_Kit_Dependencies\GuzzleHttp\ClientInterface $client, $requests, array $options = []) { $pool = new self($client, $requests, $options); $pool->wait(); } private function getPoolSize() { return \is_callable($this->poolSize) ? \call_user_func($this->poolSize, \count($this->waitQueue)) : $this->poolSize; } /** * Add as many requests as possible up to the current pool limit. */ private function addNextRequests() { $limit = \max($this->getPoolSize() - \count($this->waitQueue), 0); while ($limit--) { if (!$this->addNextRequest()) { break; } } } public function wait() { if ($this->isRealized) { return \false; } // Seed the pool with N number of requests. $this->addNextRequests(); // Stop if the pool was cancelled while transferring requests. if ($this->isRealized) { return \false; } // Wait on any outstanding FutureResponse objects. while ($response = \array_pop($this->waitQueue)) { try { $response->wait(); } catch (\Exception $e) { // Eat exceptions because they should be handled asynchronously } $this->addNextRequests(); } // Clean up no longer needed state. $this->isRealized = \true; $this->waitQueue = $this->eventListeners = []; $this->client = $this->iter = null; $this->deferred->resolve(\true); return \true; } /** * {@inheritdoc} * * Attempt to cancel all outstanding requests (requests that are queued for * dereferencing). Returns true if all outstanding requests can be * cancelled. * * @return bool */ public function cancel() { if ($this->isRealized) { return \false; } $success = $this->isRealized = \true; foreach ($this->waitQueue as $response) { if (!$response->cancel()) { $success = \false; } } return $success; } /** * Returns a promise that is invoked when the pool completed. There will be * no passed value. * * {@inheritdoc} */ public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { return $this->promise->then($onFulfilled, $onRejected, $onProgress); } public function promise() { return $this->promise; } private function coerceIterable($requests) { if ($requests instanceof \Iterator) { return $requests; } elseif (\is_array($requests)) { return new \ArrayIterator($requests); } throw new \InvalidArgumentException('Expected Iterator or array. ' . 'Found ' . \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::describeType($requests)); } /** * Adds the next request to pool and tracks what requests need to be * dereferenced when completing the pool. */ private function addNextRequest() { add_next: if ($this->isRealized || !$this->iter || !$this->iter->valid()) { return \false; } $request = $this->iter->current(); $this->iter->next(); if (!$request instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface) { throw new \InvalidArgumentException(\sprintf('All requests in the provided iterator must implement ' . 'RequestInterface. Found %s', \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::describeType($request))); } // Be sure to use "lazy" futures, meaning they do not send right away. $request->getConfig()->set('future', 'lazy'); $hash = \spl_object_hash($request); $this->attachListeners($request, $this->eventListeners); $request->getEmitter()->on('before', [$this, '_trackRetries'], \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::EARLY); $response = $this->client->send($request); $this->waitQueue[$hash] = $response; $promise = $response->promise(); // Don't recursively call itself for completed or rejected responses. if ($promise instanceof \Google\Site_Kit_Dependencies\React\Promise\FulfilledPromise || $promise instanceof \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise) { try { $this->finishResponse($request, $response->wait(), $hash); } catch (\Exception $e) { $this->finishResponse($request, $e, $hash); } goto add_next; } // Use this function for both resolution and rejection. $thenFn = function ($value) use($request, $hash) { $this->finishResponse($request, $value, $hash); if (!$request->getConfig()->get('_pool_retries')) { $this->addNextRequests(); } }; $promise->then($thenFn, $thenFn); return \true; } public function _trackRetries(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\BeforeEvent $e) { $e->getRequest()->getConfig()->set('_pool_retries', $e->getRetryCount()); } private function finishResponse($request, $value, $hash) { unset($this->waitQueue[$hash]); $result = $value instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface ? ['request' => $request, 'response' => $value, 'error' => null] : ['request' => $request, 'response' => null, 'error' => $value]; $this->deferred->notify($result); } } guzzlehttp/guzzle/src/Post/PostBody.php000064400000015077150544704730014317 0ustar00files || $this->forceMultipart) { $request->setHeader('Content-Type', 'multipart/form-data; boundary=' . $this->getBody()->getBoundary()); } elseif ($this->fields && !$request->hasHeader('Content-Type')) { $request->setHeader('Content-Type', 'application/x-www-form-urlencoded'); } if ($size = $this->getSize()) { $request->setHeader('Content-Length', $size); } } public function forceMultipartUpload($force) { $this->forceMultipart = $force; } public function setAggregator(callable $aggregator) { $this->aggregator = $aggregator; } public function setField($name, $value) { $this->fields[$name] = $value; $this->mutate(); } public function replaceFields(array $fields) { $this->fields = $fields; $this->mutate(); } public function getField($name) { return isset($this->fields[$name]) ? $this->fields[$name] : null; } public function removeField($name) { unset($this->fields[$name]); $this->mutate(); } public function getFields($asString = \false) { if (!$asString) { return $this->fields; } $query = new \Google\Site_Kit_Dependencies\GuzzleHttp\Query($this->fields); $query->setEncodingType(\Google\Site_Kit_Dependencies\GuzzleHttp\Query::RFC1738); $query->setAggregator($this->getAggregator()); return (string) $query; } public function hasField($name) { return isset($this->fields[$name]); } public function getFile($name) { foreach ($this->files as $file) { if ($file->getName() == $name) { return $file; } } return null; } public function getFiles() { return $this->files; } public function addFile(\Google\Site_Kit_Dependencies\GuzzleHttp\Post\PostFileInterface $file) { $this->files[] = $file; $this->mutate(); } public function clearFiles() { $this->files = []; $this->mutate(); } /** * Returns the numbers of fields + files * * @return int */ public function count() { return \count($this->files) + \count($this->fields); } public function __toString() { return (string) $this->getBody(); } public function getContents($maxLength = -1) { return $this->getBody()->getContents(); } public function close() { $this->detach(); } public function detach() { $this->detached = \true; $this->fields = $this->files = []; if ($this->body) { $this->body->close(); $this->body = null; } } public function attach($stream) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Exception\CannotAttachException(); } public function eof() { return $this->getBody()->eof(); } public function tell() { return $this->body ? $this->body->tell() : 0; } public function isSeekable() { return \true; } public function isReadable() { return \true; } public function isWritable() { return \false; } public function getSize() { return $this->getBody()->getSize(); } public function seek($offset, $whence = \SEEK_SET) { return $this->getBody()->seek($offset, $whence); } public function read($length) { return $this->getBody()->read($length); } public function write($string) { return \false; } public function getMetadata($key = null) { return $key ? null : []; } /** * Return a stream object that is built from the POST fields and files. * * If one has already been created, the previously created stream will be * returned. */ private function getBody() { if ($this->body) { return $this->body; } elseif ($this->files || $this->forceMultipart) { return $this->body = $this->createMultipart(); } elseif ($this->fields) { return $this->body = $this->createUrlEncoded(); } else { return $this->body = \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory(); } } /** * Get the aggregator used to join multi-valued field parameters * * @return callable */ protected final function getAggregator() { if (!$this->aggregator) { $this->aggregator = \Google\Site_Kit_Dependencies\GuzzleHttp\Query::phpAggregator(); } return $this->aggregator; } /** * Creates a multipart/form-data body stream * * @return MultipartBody */ private function createMultipart() { // Flatten the nested query string values using the correct aggregator return new \Google\Site_Kit_Dependencies\GuzzleHttp\Post\MultipartBody(\call_user_func($this->getAggregator(), $this->fields), $this->files); } /** * Creates an application/x-www-form-urlencoded stream body * * @return StreamInterface */ private function createUrlEncoded() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($this->getFields(\true)); } /** * Get rid of any cached data */ private function mutate() { $this->body = null; } } guzzlehttp/guzzle/src/Post/PostFile.php000064400000007610150544704730014273 0ustar00headers = $headers; $this->name = $name; $this->prepareContent($content); $this->prepareFilename($filename); $this->prepareDefaultHeaders(); } public function getName() { return $this->name; } public function getFilename() { return $this->filename; } public function getContent() { return $this->content; } public function getHeaders() { return $this->headers; } /** * Prepares the contents of a POST file. * * @param mixed $content Content of the POST file */ private function prepareContent($content) { $this->content = $content; if (!$this->content instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface) { $this->content = \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($this->content); } elseif ($this->content instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Post\MultipartBody) { if (!$this->hasHeader('Content-Disposition')) { $disposition = 'form-data; name="' . $this->name . '"'; $this->headers['Content-Disposition'] = $disposition; } if (!$this->hasHeader('Content-Type')) { $this->headers['Content-Type'] = \sprintf("multipart/form-data; boundary=%s", $this->content->getBoundary()); } } } /** * Applies a file name to the POST file based on various checks. * * @param string|null $filename Filename to apply (or null to guess) */ private function prepareFilename($filename) { $this->filename = $filename; if (!$this->filename) { $this->filename = $this->content->getMetadata('uri'); } if (!$this->filename || \substr($this->filename, 0, 6) === 'php://') { $this->filename = $this->name; } } /** * Applies default Content-Disposition and Content-Type headers if needed. */ private function prepareDefaultHeaders() { // Set a default content-disposition header if one was no provided if (!$this->hasHeader('Content-Disposition')) { $this->headers['Content-Disposition'] = \sprintf('form-data; name="%s"; filename="%s"', $this->name, \basename($this->filename)); } // Set a default Content-Type if one was not supplied if (!$this->hasHeader('Content-Type')) { $this->headers['Content-Type'] = \Google\Site_Kit_Dependencies\GuzzleHttp\Mimetypes::getInstance()->fromFilename($this->filename) ?: 'text/plain'; } } /** * Check if a specific header exists on the POST file by name. * * @param string $name Case-insensitive header to check * * @return bool */ private function hasHeader($name) { return isset(\array_change_key_case($this->headers)[\strtolower($name)]); } } guzzlehttp/guzzle/src/Post/MultipartBody.php000064400000006375150544704730015354 0ustar00boundary = $boundary ?: \uniqid(); $this->stream = $this->createStream($fields, $files); } /** * Get the boundary * * @return string */ public function getBoundary() { return $this->boundary; } public function isWritable() { return \false; } /** * Get the string needed to transfer a POST field */ private function getFieldString($name, $value) { return \sprintf("--%s\r\nContent-Disposition: form-data; name=\"%s\"\r\n\r\n%s\r\n", $this->boundary, $name, $value); } /** * Get the headers needed before transferring the content of a POST file */ private function getFileHeaders(\Google\Site_Kit_Dependencies\GuzzleHttp\Post\PostFileInterface $file) { $headers = ''; foreach ($file->getHeaders() as $key => $value) { $headers .= "{$key}: {$value}\r\n"; } return "--{$this->boundary}\r\n" . \trim($headers) . "\r\n\r\n"; } /** * Create the aggregate stream that will be used to upload the POST data */ protected function createStream(array $fields, array $files) { $stream = new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\AppendStream(); foreach ($fields as $name => $fieldValues) { foreach ((array) $fieldValues as $value) { $stream->addStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($this->getFieldString($name, $value))); } } foreach ($files as $file) { if (!$file instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Post\PostFileInterface) { throw new \InvalidArgumentException('All POST fields must ' . 'implement PostFieldInterface'); } $stream->addStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($this->getFileHeaders($file))); $stream->addStream($file->getContent()); $stream->addStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory("\r\n")); } // Add the trailing boundary with CRLF $stream->addStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory("--{$this->boundary}--\r\n")); return $stream; } } guzzlehttp/guzzle/src/Post/PostFileInterface.php000064400000001473150544704730016115 0ustar00duplicates = \false; $this->numericIndices = \true; $decoder = self::getDecoder($urlEncoding); foreach (\explode('&', $str) as $kvp) { $parts = \explode('=', $kvp, 2); $key = $decoder($parts[0]); $value = isset($parts[1]) ? $decoder($parts[1]) : null; // Special handling needs to be taken for PHP nested array syntax if (\strpos($key, '[') !== \false) { $this->parsePhpValue($key, $value, $result); continue; } if (!isset($result[$key])) { $result[$key] = $value; } else { $this->duplicates = \true; if (!\is_array($result[$key])) { $result[$key] = [$result[$key]]; } $result[$key][] = $value; } } $query->replace($result); if (!$this->numericIndices) { $query->setAggregator(\Google\Site_Kit_Dependencies\GuzzleHttp\Query::phpAggregator(\false)); } elseif ($this->duplicates) { $query->setAggregator(\Google\Site_Kit_Dependencies\GuzzleHttp\Query::duplicateAggregator()); } } /** * Returns a callable that is used to URL decode query keys and values. * * @param string|bool $type One of true, false, RFC3986, and RFC1738 * * @return callable|string */ private static function getDecoder($type) { if ($type === \true) { return function ($value) { return \rawurldecode(\str_replace('+', ' ', $value)); }; } elseif ($type == \Google\Site_Kit_Dependencies\GuzzleHttp\Query::RFC3986) { return 'rawurldecode'; } elseif ($type == \Google\Site_Kit_Dependencies\GuzzleHttp\Query::RFC1738) { return 'urldecode'; } else { return function ($str) { return $str; }; } } /** * Parses a PHP style key value pair. * * @param string $key Key to parse (e.g., "foo[a][b]") * @param string|null $value Value to set * @param array $result Result to modify by reference */ private function parsePhpValue($key, $value, array &$result) { $node =& $result; $keyBuffer = ''; for ($i = 0, $t = \strlen($key); $i < $t; $i++) { switch ($key[$i]) { case '[': if ($keyBuffer) { $this->prepareNode($node, $keyBuffer); $node =& $node[$keyBuffer]; $keyBuffer = ''; } break; case ']': $k = $this->cleanKey($node, $keyBuffer); $this->prepareNode($node, $k); $node =& $node[$k]; $keyBuffer = ''; break; default: $keyBuffer .= $key[$i]; break; } } if (isset($node)) { $this->duplicates = \true; $node[] = $value; } else { $node = $value; } } /** * Prepares a value in the array at the given key. * * If the key already exists, the key value is converted into an array. * * @param array $node Result node to modify * @param string $key Key to add or modify in the node */ private function prepareNode(&$node, $key) { if (!isset($node[$key])) { $node[$key] = null; } elseif (!\is_array($node[$key])) { $node[$key] = [$node[$key]]; } } /** * Returns the appropriate key based on the node and key. */ private function cleanKey($node, $key) { if ($key === '') { $key = $node ? (string) \count($node) : 0; // Found a [] key, so track this to ensure that we disable numeric // indexing of keys in the resolved query aggregator. $this->numericIndices = \false; } return $key; } } guzzlehttp/guzzle/src/Transaction.php000064400000005421150544704730014104 0ustar00client = $client; $this->request = $request; $this->_future = $future; } } guzzlehttp/guzzle/src/BatchResults.php000064400000006331150544704730014223 0ustar00hash = $hash; } /** * Get the keys that are available on the batch result. * * @return array */ public function getKeys() { return \iterator_to_array($this->hash); } /** * Gets a result from the container for the given object. When getting * results for a batch of requests, provide the request object. * * @param object $forObject Object to retrieve the result for. * * @return mixed|null */ public function getResult($forObject) { return isset($this->hash[$forObject]) ? $this->hash[$forObject] : null; } /** * Get an array of successful results. * * @return array */ public function getSuccessful() { $results = []; foreach ($this->hash as $key) { if (!$this->hash[$key] instanceof \Exception) { $results[] = $this->hash[$key]; } } return $results; } /** * Get an array of failed results. * * @return array */ public function getFailures() { $results = []; foreach ($this->hash as $key) { if ($this->hash[$key] instanceof \Exception) { $results[] = $this->hash[$key]; } } return $results; } /** * Allows iteration over all batch result values. * * @return \ArrayIterator */ public function getIterator() { $results = []; foreach ($this->hash as $key) { $results[] = $this->hash[$key]; } return new \ArrayIterator($results); } /** * Counts the number of elements in the batch result. * * @return int */ public function count() { return \count($this->hash); } /** * Checks if the batch contains a specific numerical array index. * * @param int $key Index to access * * @return bool */ public function offsetExists($key) { return $key < \count($this->hash); } /** * Allows access of the batch using a numerical array index. * * @param int $key Index to access. * * @return mixed|null */ public function offsetGet($key) { $i = -1; foreach ($this->hash as $obj) { if ($key === ++$i) { return $this->hash[$obj]; } } return null; } public function offsetUnset($key) { throw new \RuntimeException('Not implemented'); } public function offsetSet($key, $value) { throw new \RuntimeException('Not implemented'); } } guzzlehttp/guzzle/src/Cookie/SetCookie.php000064400000021705150544704730014720 0ustar00 null, 'Value' => null, 'Domain' => null, 'Path' => '/', 'Max-Age' => null, 'Expires' => null, 'Secure' => \false, 'Discard' => \false, 'HttpOnly' => \false]; /** @var array Cookie data */ private $data; /** * Create a new SetCookie object from a string * * @param string $cookie Set-Cookie header string * * @return self */ public static function fromString($cookie) { // Create the default return array $data = self::$defaults; // Explode the cookie string using a series of semicolons $pieces = \array_filter(\array_map('trim', \explode(';', $cookie))); // The name of the cookie (first kvp) must include an equal sign. if (empty($pieces) || !\strpos($pieces[0], '=')) { return new self($data); } // Add the cookie pieces into the parsed data array foreach ($pieces as $part) { $cookieParts = \explode('=', $part, 2); $key = \trim($cookieParts[0]); $value = isset($cookieParts[1]) ? \trim($cookieParts[1], " \n\r\t\0\v\"") : \true; // Only check for non-cookies when cookies have been found if (empty($data['Name'])) { $data['Name'] = $key; $data['Value'] = $value; } else { foreach (\array_keys(self::$defaults) as $search) { if (!\strcasecmp($search, $key)) { $data[$search] = $value; continue 2; } } $data[$key] = $value; } } return new self($data); } /** * @param array $data Array of cookie data provided by a Cookie parser */ public function __construct(array $data = []) { $this->data = \array_replace(self::$defaults, $data); // Extract the Expires value and turn it into a UNIX timestamp if needed if (!$this->getExpires() && $this->getMaxAge()) { // Calculate the Expires date $this->setExpires(\time() + $this->getMaxAge()); } elseif ($this->getExpires() && !\is_numeric($this->getExpires())) { $this->setExpires($this->getExpires()); } } public function __toString() { $str = $this->data['Name'] . '=' . $this->data['Value'] . '; '; foreach ($this->data as $k => $v) { if ($k != 'Name' && $k != 'Value' && $v !== null && $v !== \false) { if ($k == 'Expires') { $str .= 'Expires=' . \gmdate('D, d M Y H:i:s \\G\\M\\T', $v) . '; '; } else { $str .= ($v === \true ? $k : "{$k}={$v}") . '; '; } } } return \rtrim($str, '; '); } public function toArray() { return $this->data; } /** * Get the cookie name * * @return string */ public function getName() { return $this->data['Name']; } /** * Set the cookie name * * @param string $name Cookie name */ public function setName($name) { $this->data['Name'] = $name; } /** * Get the cookie value * * @return string */ public function getValue() { return $this->data['Value']; } /** * Set the cookie value * * @param string $value Cookie value */ public function setValue($value) { $this->data['Value'] = $value; } /** * Get the domain * * @return string|null */ public function getDomain() { return $this->data['Domain']; } /** * Set the domain of the cookie * * @param string $domain */ public function setDomain($domain) { $this->data['Domain'] = $domain; } /** * Get the path * * @return string */ public function getPath() { return $this->data['Path']; } /** * Set the path of the cookie * * @param string $path Path of the cookie */ public function setPath($path) { $this->data['Path'] = $path; } /** * Maximum lifetime of the cookie in seconds * * @return int|null */ public function getMaxAge() { return $this->data['Max-Age']; } /** * Set the max-age of the cookie * * @param int $maxAge Max age of the cookie in seconds */ public function setMaxAge($maxAge) { $this->data['Max-Age'] = $maxAge; } /** * The UNIX timestamp when the cookie Expires * * @return mixed */ public function getExpires() { return $this->data['Expires']; } /** * Set the unix timestamp for which the cookie will expire * * @param int $timestamp Unix timestamp */ public function setExpires($timestamp) { $this->data['Expires'] = \is_numeric($timestamp) ? (int) $timestamp : \strtotime($timestamp); } /** * Get whether or not this is a secure cookie * * @return null|bool */ public function getSecure() { return $this->data['Secure']; } /** * Set whether or not the cookie is secure * * @param bool $secure Set to true or false if secure */ public function setSecure($secure) { $this->data['Secure'] = $secure; } /** * Get whether or not this is a session cookie * * @return null|bool */ public function getDiscard() { return $this->data['Discard']; } /** * Set whether or not this is a session cookie * * @param bool $discard Set to true or false if this is a session cookie */ public function setDiscard($discard) { $this->data['Discard'] = $discard; } /** * Get whether or not this is an HTTP only cookie * * @return bool */ public function getHttpOnly() { return $this->data['HttpOnly']; } /** * Set whether or not this is an HTTP only cookie * * @param bool $httpOnly Set to true or false if this is HTTP only */ public function setHttpOnly($httpOnly) { $this->data['HttpOnly'] = $httpOnly; } /** * Check if the cookie matches a path value * * @param string $path Path to check against * * @return bool */ public function matchesPath($path) { return !$this->getPath() || 0 === \stripos($path, $this->getPath()); } /** * Check if the cookie matches a domain value * * @param string $domain Domain to check against * * @return bool */ public function matchesDomain($domain) { // Remove the leading '.' as per spec in RFC 6265. // http://tools.ietf.org/html/rfc6265#section-5.2.3 $cookieDomain = \ltrim($this->getDomain(), '.'); // Domain not set or exact match. if (!$cookieDomain || !\strcasecmp($domain, $cookieDomain)) { return \true; } // Matching the subdomain according to RFC 6265. // http://tools.ietf.org/html/rfc6265#section-5.1.3 if (\filter_var($domain, \FILTER_VALIDATE_IP)) { return \false; } return (bool) \preg_match('/\\.' . \preg_quote($cookieDomain) . '$/i', $domain); } /** * Check if the cookie is expired * * @return bool */ public function isExpired() { return $this->getExpires() !== null && \time() > $this->getExpires(); } /** * Check if the cookie is valid according to RFC 6265 * * @return bool|string Returns true if valid or an error message if invalid */ public function validate() { // Names must not be empty, but can be 0 $name = $this->getName(); if (empty($name) && !\is_numeric($name)) { return 'The cookie name must not be empty'; } // Check if any of the invalid characters are present in the cookie name if (\preg_match("/[=,; \t\r\n\v\f]/", $name)) { return "Google\\Site_Kit_Dependencies\\Cookie name must not cannot invalid characters: =,; \\t\\r\\n\\013\\014"; } // Value must not be empty, but can be 0 $value = $this->getValue(); if (empty($value) && !\is_numeric($value)) { return 'The cookie value must not be empty'; } // Domains must not be empty, but can be 0 // A "0" is not a valid internet domain, but may be used as server name // in a private network. $domain = $this->getDomain(); if (empty($domain) && !\is_numeric($domain)) { return 'The cookie domain must not be empty'; } return \true; } } guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php000064400000005374150544704730016526 0ustar00filename = $cookieFile; if (\file_exists($cookieFile)) { $this->load($cookieFile); } } /** * Saves the file when shutting down */ public function __destruct() { $this->save($this->filename); } /** * Saves the cookies to a file. * * @param string $filename File to save * @throws \RuntimeException if the file cannot be found or created */ public function save($filename) { $json = []; foreach ($this as $cookie) { if ($cookie->getExpires() && !$cookie->getDiscard()) { $json[] = $cookie->toArray(); } } if (\false === \file_put_contents($filename, \json_encode($json), \LOCK_EX)) { // @codeCoverageIgnoreStart throw new \RuntimeException("Unable to save file {$filename}"); // @codeCoverageIgnoreEnd } } /** * Load cookies from a JSON formatted file. * * Old cookies are kept unless overwritten by newly loaded ones. * * @param string $filename Cookie file to load. * @throws \RuntimeException if the file cannot be loaded. */ public function load($filename) { $json = \file_get_contents($filename); if (\false === $json) { // @codeCoverageIgnoreStart throw new \RuntimeException("Unable to load file {$filename}"); // @codeCoverageIgnoreEnd } $data = \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::jsonDecode($json, \true); if (\is_array($data)) { foreach (\Google\Site_Kit_Dependencies\GuzzleHttp\Utils::jsonDecode($json, \true) as $cookie) { $this->setCookie(new \Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie($cookie)); } } elseif (\strlen($data)) { throw new \RuntimeException("Invalid cookie file: {$filename}"); } } } guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php000064400000003243150544704730016242 0ustar00sessionKey = $sessionKey; $this->load(); } /** * Saves cookies to session when shutting down */ public function __destruct() { $this->save(); } /** * Save cookies to the client session */ public function save() { $json = []; foreach ($this as $cookie) { if ($cookie->getExpires() && !$cookie->getDiscard()) { $json[] = $cookie->toArray(); } } $_SESSION[$this->sessionKey] = \json_encode($json); } /** * Load the contents of the client session into the data array */ protected function load() { $cookieJar = isset($_SESSION[$this->sessionKey]) ? $_SESSION[$this->sessionKey] : null; $data = \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::jsonDecode($cookieJar, \true); if (\is_array($data)) { foreach ($data as $cookie) { $this->setCookie(new \Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie($cookie)); } } elseif (\strlen($data)) { throw new \RuntimeException("Invalid cookie data"); } } } guzzlehttp/guzzle/src/Cookie/CookieJar.php000064400000017043150544704730014701 0ustar00strictMode = $strictMode; foreach ($cookieArray as $cookie) { if (!$cookie instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie) { $cookie = new \Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie($cookie); } $this->setCookie($cookie); } } /** * Create a new Cookie jar from an associative array and domain. * * @param array $cookies Cookies to create the jar from * @param string $domain Domain to set the cookies to * * @return self */ public static function fromArray(array $cookies, $domain) { $cookieJar = new self(); foreach ($cookies as $name => $value) { $cookieJar->setCookie(new \Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie(['Domain' => $domain, 'Name' => $name, 'Value' => $value, 'Discard' => \true])); } return $cookieJar; } /** * Quote the cookie value if it is not already quoted and it contains * problematic characters. * * @param string $value Value that may or may not need to be quoted * * @return string */ public static function getCookieValue($value) { if (\substr($value, 0, 1) !== '"' && \substr($value, -1, 1) !== '"' && \strpbrk($value, ';,')) { $value = '"' . $value . '"'; } return $value; } public function toArray() { return \array_map(function (\Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie $cookie) { return $cookie->toArray(); }, $this->getIterator()->getArrayCopy()); } public function clear($domain = null, $path = null, $name = null) { if (!$domain) { $this->cookies = []; return; } elseif (!$path) { $this->cookies = \array_filter($this->cookies, function (\Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain) { return !$cookie->matchesDomain($domain); }); } elseif (!$name) { $this->cookies = \array_filter($this->cookies, function (\Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain) { return !($cookie->matchesPath($path) && $cookie->matchesDomain($domain)); }); } else { $this->cookies = \array_filter($this->cookies, function (\Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain, $name) { return !($cookie->getName() == $name && $cookie->matchesPath($path) && $cookie->matchesDomain($domain)); }); } } public function clearSessionCookies() { $this->cookies = \array_filter($this->cookies, function (\Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie $cookie) { return !$cookie->getDiscard() && $cookie->getExpires(); }); } public function setCookie(\Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie $cookie) { // Only allow cookies with set and valid domain, name, value $result = $cookie->validate(); if ($result !== \true) { if ($this->strictMode) { throw new \RuntimeException('Invalid cookie: ' . $result); } else { $this->removeCookieIfEmpty($cookie); return \false; } } // Resolve conflicts with previously set cookies foreach ($this->cookies as $i => $c) { // Two cookies are identical, when their path, and domain are // identical. if ($c->getPath() != $cookie->getPath() || $c->getDomain() != $cookie->getDomain() || $c->getName() != $cookie->getName()) { continue; } // The previously set cookie is a discard cookie and this one is // not so allow the new cookie to be set if (!$cookie->getDiscard() && $c->getDiscard()) { unset($this->cookies[$i]); continue; } // If the new cookie's expiration is further into the future, then // replace the old cookie if ($cookie->getExpires() > $c->getExpires()) { unset($this->cookies[$i]); continue; } // If the value has changed, we better change it if ($cookie->getValue() !== $c->getValue()) { unset($this->cookies[$i]); continue; } // The cookie exists, so no need to continue return \false; } $this->cookies[] = $cookie; return \true; } public function count() { return \count($this->cookies); } public function getIterator() { return new \ArrayIterator(\array_values($this->cookies)); } public function extractCookies(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, \Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface $response) { if ($cookieHeader = $response->getHeaderAsArray('Set-Cookie')) { foreach ($cookieHeader as $cookie) { $sc = \Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie::fromString($cookie); if (!$sc->getDomain()) { $sc->setDomain($request->getHost()); } $this->setCookie($sc); } } } public function addCookieHeader(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request) { $values = []; $scheme = $request->getScheme(); $host = $request->getHost(); $path = $request->getPath(); foreach ($this->cookies as $cookie) { if ($cookie->matchesPath($path) && $cookie->matchesDomain($host) && !$cookie->isExpired() && (!$cookie->getSecure() || $scheme == 'https')) { $values[] = $cookie->getName() . '=' . self::getCookieValue($cookie->getValue()); } } if ($values) { $request->setHeader('Cookie', \implode('; ', $values)); } } /** * If a cookie already exists and the server asks to set it again with a * null value, the cookie must be deleted. * * @param SetCookie $cookie */ private function removeCookieIfEmpty(\Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\SetCookie $cookie) { $cookieValue = $cookie->getValue(); if ($cookieValue === null || $cookieValue === '') { $this->clear($cookie->getDomain(), $cookie->getPath(), $cookie->getName()); } } } guzzlehttp/guzzle/src/ClientInterface.php000064400000012151150544704730014654 0ustar00 array('prefix' => '', 'joiner' => ',', 'query' => \false), '+' => array('prefix' => '', 'joiner' => ',', 'query' => \false), '#' => array('prefix' => '#', 'joiner' => ',', 'query' => \false), '.' => array('prefix' => '.', 'joiner' => '.', 'query' => \false), '/' => array('prefix' => '/', 'joiner' => '/', 'query' => \false), ';' => array('prefix' => ';', 'joiner' => ';', 'query' => \true), '?' => array('prefix' => '?', 'joiner' => '&', 'query' => \true), '&' => array('prefix' => '&', 'joiner' => '&', 'query' => \true)); /** @var array Delimiters */ private static $delims = array(':', '/', '?', '#', '[', ']', '@', '!', '$', '&', '\'', '(', ')', '*', '+', ',', ';', '='); /** @var array Percent encoded delimiters */ private static $delimsPct = array('%3A', '%2F', '%3F', '%23', '%5B', '%5D', '%40', '%21', '%24', '%26', '%27', '%28', '%29', '%2A', '%2B', '%2C', '%3B', '%3D'); public function expand($template, array $variables) { if (\false === \strpos($template, '{')) { return $template; } $this->template = $template; $this->variables = $variables; return \preg_replace_callback('/\\{([^\\}]+)\\}/', [$this, 'expandMatch'], $this->template); } /** * Parse an expression into parts * * @param string $expression Expression to parse * * @return array Returns an associative array of parts */ private function parseExpression($expression) { $result = array(); if (isset(self::$operatorHash[$expression[0]])) { $result['operator'] = $expression[0]; $expression = \substr($expression, 1); } else { $result['operator'] = ''; } foreach (\explode(',', $expression) as $value) { $value = \trim($value); $varspec = array(); if ($colonPos = \strpos($value, ':')) { $varspec['value'] = \substr($value, 0, $colonPos); $varspec['modifier'] = ':'; $varspec['position'] = (int) \substr($value, $colonPos + 1); } elseif (\substr($value, -1) == '*') { $varspec['modifier'] = '*'; $varspec['value'] = \substr($value, 0, -1); } else { $varspec['value'] = (string) $value; $varspec['modifier'] = ''; } $result['values'][] = $varspec; } return $result; } /** * Process an expansion * * @param array $matches Matches met in the preg_replace_callback * * @return string Returns the replacement string */ private function expandMatch(array $matches) { static $rfc1738to3986 = array('+' => '%20', '%7e' => '~'); $replacements = array(); $parsed = self::parseExpression($matches[1]); $prefix = self::$operatorHash[$parsed['operator']]['prefix']; $joiner = self::$operatorHash[$parsed['operator']]['joiner']; $useQuery = self::$operatorHash[$parsed['operator']]['query']; foreach ($parsed['values'] as $value) { if (!isset($this->variables[$value['value']])) { continue; } $variable = $this->variables[$value['value']]; $actuallyUseQuery = $useQuery; $expanded = ''; if (\is_array($variable)) { $isAssoc = $this->isAssoc($variable); $kvp = array(); foreach ($variable as $key => $var) { if ($isAssoc) { $key = \rawurlencode($key); $isNestedArray = \is_array($var); } else { $isNestedArray = \false; } if (!$isNestedArray) { $var = \rawurlencode($var); if ($parsed['operator'] == '+' || $parsed['operator'] == '#') { $var = $this->decodeReserved($var); } } if ($value['modifier'] == '*') { if ($isAssoc) { if ($isNestedArray) { // Nested arrays must allow for deeply nested // structures. $var = \strtr(\http_build_query([$key => $var]), $rfc1738to3986); } else { $var = $key . '=' . $var; } } elseif ($key > 0 && $actuallyUseQuery) { $var = $value['value'] . '=' . $var; } } $kvp[$key] = $var; } if (empty($variable)) { $actuallyUseQuery = \false; } elseif ($value['modifier'] == '*') { $expanded = \implode($joiner, $kvp); if ($isAssoc) { // Don't prepend the value name when using the explode // modifier with an associative array. $actuallyUseQuery = \false; } } else { if ($isAssoc) { // When an associative array is encountered and the // explode modifier is not set, then the result must be // a comma separated list of keys followed by their // respective values. foreach ($kvp as $k => &$v) { $v = $k . ',' . $v; } } $expanded = \implode(',', $kvp); } } else { if ($value['modifier'] == ':') { $variable = \substr($variable, 0, $value['position']); } $expanded = \rawurlencode($variable); if ($parsed['operator'] == '+' || $parsed['operator'] == '#') { $expanded = $this->decodeReserved($expanded); } } if ($actuallyUseQuery) { if (!$expanded && $joiner != '&') { $expanded = $value['value']; } else { $expanded = $value['value'] . '=' . $expanded; } } $replacements[] = $expanded; } $ret = \implode($joiner, $replacements); if ($ret && $prefix) { return $prefix . $ret; } return $ret; } /** * Determines if an array is associative. * * This makes the assumption that input arrays are sequences or hashes. * This assumption is a tradeoff for accuracy in favor of speed, but it * should work in almost every case where input is supplied for a URI * template. * * @param array $array Array to check * * @return bool */ private function isAssoc(array $array) { return $array && \array_keys($array)[0] !== 0; } /** * Removes percent encoding on reserved characters (used with + and # * modifiers). * * @param string $string String to fix * * @return string */ private function decodeReserved($string) { return \str_replace(self::$delimsPct, self::$delims, $string); } } guzzlehttp/guzzle/src/Mimetypes.php000064400000104144150544704730013575 0ustar00 'text/vnd.in3d.3dml', '3g2' => 'video/3gpp2', '3gp' => 'video/3gpp', '7z' => 'application/x-7z-compressed', 'aab' => 'application/x-authorware-bin', 'aac' => 'audio/x-aac', 'aam' => 'application/x-authorware-map', 'aas' => 'application/x-authorware-seg', 'abw' => 'application/x-abiword', 'ac' => 'application/pkix-attr-cert', 'acc' => 'application/vnd.americandynamics.acc', 'ace' => 'application/x-ace-compressed', 'acu' => 'application/vnd.acucobol', 'acutc' => 'application/vnd.acucorp', 'adp' => 'audio/adpcm', 'aep' => 'application/vnd.audiograph', 'afm' => 'application/x-font-type1', 'afp' => 'application/vnd.ibm.modcap', 'ahead' => 'application/vnd.ahead.space', 'ai' => 'application/postscript', 'aif' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', 'aiff' => 'audio/x-aiff', 'air' => 'application/vnd.adobe.air-application-installer-package+zip', 'ait' => 'application/vnd.dvb.ait', 'ami' => 'application/vnd.amiga.ami', 'apk' => 'application/vnd.android.package-archive', 'application' => 'application/x-ms-application', 'apr' => 'application/vnd.lotus-approach', 'asa' => 'text/plain', 'asax' => 'application/octet-stream', 'asc' => 'application/pgp-signature', 'ascx' => 'text/plain', 'asf' => 'video/x-ms-asf', 'ashx' => 'text/plain', 'asm' => 'text/x-asm', 'asmx' => 'text/plain', 'aso' => 'application/vnd.accpac.simply.aso', 'asp' => 'text/plain', 'aspx' => 'text/plain', 'asx' => 'video/x-ms-asf', 'atc' => 'application/vnd.acucorp', 'atom' => 'application/atom+xml', 'atomcat' => 'application/atomcat+xml', 'atomsvc' => 'application/atomsvc+xml', 'atx' => 'application/vnd.antix.game-component', 'au' => 'audio/basic', 'avi' => 'video/x-msvideo', 'aw' => 'application/applixware', 'axd' => 'text/plain', 'azf' => 'application/vnd.airzip.filesecure.azf', 'azs' => 'application/vnd.airzip.filesecure.azs', 'azw' => 'application/vnd.amazon.ebook', 'bat' => 'application/x-msdownload', 'bcpio' => 'application/x-bcpio', 'bdf' => 'application/x-font-bdf', 'bdm' => 'application/vnd.syncml.dm+wbxml', 'bed' => 'application/vnd.realvnc.bed', 'bh2' => 'application/vnd.fujitsu.oasysprs', 'bin' => 'application/octet-stream', 'bmi' => 'application/vnd.bmi', 'bmp' => 'image/bmp', 'book' => 'application/vnd.framemaker', 'box' => 'application/vnd.previewsystems.box', 'boz' => 'application/x-bzip2', 'bpk' => 'application/octet-stream', 'btif' => 'image/prs.btif', 'bz' => 'application/x-bzip', 'bz2' => 'application/x-bzip2', 'c' => 'text/x-c', 'c11amc' => 'application/vnd.cluetrust.cartomobile-config', 'c11amz' => 'application/vnd.cluetrust.cartomobile-config-pkg', 'c4d' => 'application/vnd.clonk.c4group', 'c4f' => 'application/vnd.clonk.c4group', 'c4g' => 'application/vnd.clonk.c4group', 'c4p' => 'application/vnd.clonk.c4group', 'c4u' => 'application/vnd.clonk.c4group', 'cab' => 'application/vnd.ms-cab-compressed', 'car' => 'application/vnd.curl.car', 'cat' => 'application/vnd.ms-pki.seccat', 'cc' => 'text/x-c', 'cct' => 'application/x-director', 'ccxml' => 'application/ccxml+xml', 'cdbcmsg' => 'application/vnd.contact.cmsg', 'cdf' => 'application/x-netcdf', 'cdkey' => 'application/vnd.mediastation.cdkey', 'cdmia' => 'application/cdmi-capability', 'cdmic' => 'application/cdmi-container', 'cdmid' => 'application/cdmi-domain', 'cdmio' => 'application/cdmi-object', 'cdmiq' => 'application/cdmi-queue', 'cdx' => 'chemical/x-cdx', 'cdxml' => 'application/vnd.chemdraw+xml', 'cdy' => 'application/vnd.cinderella', 'cer' => 'application/pkix-cert', 'cfc' => 'application/x-coldfusion', 'cfm' => 'application/x-coldfusion', 'cgm' => 'image/cgm', 'chat' => 'application/x-chat', 'chm' => 'application/vnd.ms-htmlhelp', 'chrt' => 'application/vnd.kde.kchart', 'cif' => 'chemical/x-cif', 'cii' => 'application/vnd.anser-web-certificate-issue-initiation', 'cil' => 'application/vnd.ms-artgalry', 'cla' => 'application/vnd.claymore', 'class' => 'application/java-vm', 'clkk' => 'application/vnd.crick.clicker.keyboard', 'clkp' => 'application/vnd.crick.clicker.palette', 'clkt' => 'application/vnd.crick.clicker.template', 'clkw' => 'application/vnd.crick.clicker.wordbank', 'clkx' => 'application/vnd.crick.clicker', 'clp' => 'application/x-msclip', 'cmc' => 'application/vnd.cosmocaller', 'cmdf' => 'chemical/x-cmdf', 'cml' => 'chemical/x-cml', 'cmp' => 'application/vnd.yellowriver-custom-menu', 'cmx' => 'image/x-cmx', 'cod' => 'application/vnd.rim.cod', 'com' => 'application/x-msdownload', 'conf' => 'text/plain', 'cpio' => 'application/x-cpio', 'cpp' => 'text/x-c', 'cpt' => 'application/mac-compactpro', 'crd' => 'application/x-mscardfile', 'crl' => 'application/pkix-crl', 'crt' => 'application/x-x509-ca-cert', 'cryptonote' => 'application/vnd.rig.cryptonote', 'cs' => 'text/plain', 'csh' => 'application/x-csh', 'csml' => 'chemical/x-csml', 'csp' => 'application/vnd.commonspace', 'css' => 'text/css', 'cst' => 'application/x-director', 'csv' => 'text/csv', 'cu' => 'application/cu-seeme', 'curl' => 'text/vnd.curl', 'cww' => 'application/prs.cww', 'cxt' => 'application/x-director', 'cxx' => 'text/x-c', 'dae' => 'model/vnd.collada+xml', 'daf' => 'application/vnd.mobius.daf', 'dataless' => 'application/vnd.fdsn.seed', 'davmount' => 'application/davmount+xml', 'dcr' => 'application/x-director', 'dcurl' => 'text/vnd.curl.dcurl', 'dd2' => 'application/vnd.oma.dd2+xml', 'ddd' => 'application/vnd.fujixerox.ddd', 'deb' => 'application/x-debian-package', 'def' => 'text/plain', 'deploy' => 'application/octet-stream', 'der' => 'application/x-x509-ca-cert', 'dfac' => 'application/vnd.dreamfactory', 'dic' => 'text/x-c', 'dir' => 'application/x-director', 'dis' => 'application/vnd.mobius.dis', 'dist' => 'application/octet-stream', 'distz' => 'application/octet-stream', 'djv' => 'image/vnd.djvu', 'djvu' => 'image/vnd.djvu', 'dll' => 'application/x-msdownload', 'dmg' => 'application/octet-stream', 'dms' => 'application/octet-stream', 'dna' => 'application/vnd.dna', 'doc' => 'application/msword', 'docm' => 'application/vnd.ms-word.document.macroenabled.12', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'dot' => 'application/msword', 'dotm' => 'application/vnd.ms-word.template.macroenabled.12', 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'dp' => 'application/vnd.osgi.dp', 'dpg' => 'application/vnd.dpgraph', 'dra' => 'audio/vnd.dra', 'dsc' => 'text/prs.lines.tag', 'dssc' => 'application/dssc+der', 'dtb' => 'application/x-dtbook+xml', 'dtd' => 'application/xml-dtd', 'dts' => 'audio/vnd.dts', 'dtshd' => 'audio/vnd.dts.hd', 'dump' => 'application/octet-stream', 'dvi' => 'application/x-dvi', 'dwf' => 'model/vnd.dwf', 'dwg' => 'image/vnd.dwg', 'dxf' => 'image/vnd.dxf', 'dxp' => 'application/vnd.spotfire.dxp', 'dxr' => 'application/x-director', 'ecelp4800' => 'audio/vnd.nuera.ecelp4800', 'ecelp7470' => 'audio/vnd.nuera.ecelp7470', 'ecelp9600' => 'audio/vnd.nuera.ecelp9600', 'ecma' => 'application/ecmascript', 'edm' => 'application/vnd.novadigm.edm', 'edx' => 'application/vnd.novadigm.edx', 'efif' => 'application/vnd.picsel', 'ei6' => 'application/vnd.pg.osasli', 'elc' => 'application/octet-stream', 'eml' => 'message/rfc822', 'emma' => 'application/emma+xml', 'eol' => 'audio/vnd.digital-winds', 'eot' => 'application/vnd.ms-fontobject', 'eps' => 'application/postscript', 'epub' => 'application/epub+zip', 'es3' => 'application/vnd.eszigno3+xml', 'esf' => 'application/vnd.epson.esf', 'et3' => 'application/vnd.eszigno3+xml', 'etx' => 'text/x-setext', 'exe' => 'application/x-msdownload', 'exi' => 'application/exi', 'ext' => 'application/vnd.novadigm.ext', 'ez' => 'application/andrew-inset', 'ez2' => 'application/vnd.ezpix-album', 'ez3' => 'application/vnd.ezpix-package', 'f' => 'text/x-fortran', 'f4v' => 'video/x-f4v', 'f77' => 'text/x-fortran', 'f90' => 'text/x-fortran', 'fbs' => 'image/vnd.fastbidsheet', 'fcs' => 'application/vnd.isac.fcs', 'fdf' => 'application/vnd.fdf', 'fe_launch' => 'application/vnd.denovo.fcselayout-link', 'fg5' => 'application/vnd.fujitsu.oasysgp', 'fgd' => 'application/x-director', 'fh' => 'image/x-freehand', 'fh4' => 'image/x-freehand', 'fh5' => 'image/x-freehand', 'fh7' => 'image/x-freehand', 'fhc' => 'image/x-freehand', 'fig' => 'application/x-xfig', 'fli' => 'video/x-fli', 'flo' => 'application/vnd.micrografx.flo', 'flv' => 'video/x-flv', 'flw' => 'application/vnd.kde.kivio', 'flx' => 'text/vnd.fmi.flexstor', 'fly' => 'text/vnd.fly', 'fm' => 'application/vnd.framemaker', 'fnc' => 'application/vnd.frogans.fnc', 'for' => 'text/x-fortran', 'fpx' => 'image/vnd.fpx', 'frame' => 'application/vnd.framemaker', 'fsc' => 'application/vnd.fsc.weblaunch', 'fst' => 'image/vnd.fst', 'ftc' => 'application/vnd.fluxtime.clip', 'fti' => 'application/vnd.anser-web-funds-transfer-initiation', 'fvt' => 'video/vnd.fvt', 'fxp' => 'application/vnd.adobe.fxp', 'fxpl' => 'application/vnd.adobe.fxp', 'fzs' => 'application/vnd.fuzzysheet', 'g2w' => 'application/vnd.geoplan', 'g3' => 'image/g3fax', 'g3w' => 'application/vnd.geospace', 'gac' => 'application/vnd.groove-account', 'gdl' => 'model/vnd.gdl', 'geo' => 'application/vnd.dynageo', 'gex' => 'application/vnd.geometry-explorer', 'ggb' => 'application/vnd.geogebra.file', 'ggt' => 'application/vnd.geogebra.tool', 'ghf' => 'application/vnd.groove-help', 'gif' => 'image/gif', 'gim' => 'application/vnd.groove-identity-message', 'gmx' => 'application/vnd.gmx', 'gnumeric' => 'application/x-gnumeric', 'gph' => 'application/vnd.flographit', 'gqf' => 'application/vnd.grafeq', 'gqs' => 'application/vnd.grafeq', 'gram' => 'application/srgs', 'gre' => 'application/vnd.geometry-explorer', 'grv' => 'application/vnd.groove-injector', 'grxml' => 'application/srgs+xml', 'gsf' => 'application/x-font-ghostscript', 'gtar' => 'application/x-gtar', 'gtm' => 'application/vnd.groove-tool-message', 'gtw' => 'model/vnd.gtw', 'gv' => 'text/vnd.graphviz', 'gxt' => 'application/vnd.geonext', 'h' => 'text/x-c', 'h261' => 'video/h261', 'h263' => 'video/h263', 'h264' => 'video/h264', 'hal' => 'application/vnd.hal+xml', 'hbci' => 'application/vnd.hbci', 'hdf' => 'application/x-hdf', 'hh' => 'text/x-c', 'hlp' => 'application/winhlp', 'hpgl' => 'application/vnd.hp-hpgl', 'hpid' => 'application/vnd.hp-hpid', 'hps' => 'application/vnd.hp-hps', 'hqx' => 'application/mac-binhex40', 'hta' => 'application/octet-stream', 'htc' => 'text/html', 'htke' => 'application/vnd.kenameaapp', 'htm' => 'text/html', 'html' => 'text/html', 'hvd' => 'application/vnd.yamaha.hv-dic', 'hvp' => 'application/vnd.yamaha.hv-voice', 'hvs' => 'application/vnd.yamaha.hv-script', 'i2g' => 'application/vnd.intergeo', 'icc' => 'application/vnd.iccprofile', 'ice' => 'x-conference/x-cooltalk', 'icm' => 'application/vnd.iccprofile', 'ico' => 'image/x-icon', 'ics' => 'text/calendar', 'ief' => 'image/ief', 'ifb' => 'text/calendar', 'ifm' => 'application/vnd.shana.informed.formdata', 'iges' => 'model/iges', 'igl' => 'application/vnd.igloader', 'igm' => 'application/vnd.insors.igm', 'igs' => 'model/iges', 'igx' => 'application/vnd.micrografx.igx', 'iif' => 'application/vnd.shana.informed.interchange', 'imp' => 'application/vnd.accpac.simply.imp', 'ims' => 'application/vnd.ms-ims', 'in' => 'text/plain', 'ini' => 'text/plain', 'ipfix' => 'application/ipfix', 'ipk' => 'application/vnd.shana.informed.package', 'irm' => 'application/vnd.ibm.rights-management', 'irp' => 'application/vnd.irepository.package+xml', 'iso' => 'application/octet-stream', 'itp' => 'application/vnd.shana.informed.formtemplate', 'ivp' => 'application/vnd.immervision-ivp', 'ivu' => 'application/vnd.immervision-ivu', 'jad' => 'text/vnd.sun.j2me.app-descriptor', 'jam' => 'application/vnd.jam', 'jar' => 'application/java-archive', 'java' => 'text/x-java-source', 'jisp' => 'application/vnd.jisp', 'jlt' => 'application/vnd.hp-jlyt', 'jnlp' => 'application/x-java-jnlp-file', 'joda' => 'application/vnd.joost.joda-archive', 'jpe' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'jpg' => 'image/jpeg', 'jpgm' => 'video/jpm', 'jpgv' => 'video/jpeg', 'jpm' => 'video/jpm', 'js' => 'text/javascript', 'json' => 'application/json', 'kar' => 'audio/midi', 'karbon' => 'application/vnd.kde.karbon', 'kfo' => 'application/vnd.kde.kformula', 'kia' => 'application/vnd.kidspiration', 'kml' => 'application/vnd.google-earth.kml+xml', 'kmz' => 'application/vnd.google-earth.kmz', 'kne' => 'application/vnd.kinar', 'knp' => 'application/vnd.kinar', 'kon' => 'application/vnd.kde.kontour', 'kpr' => 'application/vnd.kde.kpresenter', 'kpt' => 'application/vnd.kde.kpresenter', 'ksp' => 'application/vnd.kde.kspread', 'ktr' => 'application/vnd.kahootz', 'ktx' => 'image/ktx', 'ktz' => 'application/vnd.kahootz', 'kwd' => 'application/vnd.kde.kword', 'kwt' => 'application/vnd.kde.kword', 'lasxml' => 'application/vnd.las.las+xml', 'latex' => 'application/x-latex', 'lbd' => 'application/vnd.llamagraphics.life-balance.desktop', 'lbe' => 'application/vnd.llamagraphics.life-balance.exchange+xml', 'les' => 'application/vnd.hhe.lesson-player', 'lha' => 'application/octet-stream', 'link66' => 'application/vnd.route66.link66+xml', 'list' => 'text/plain', 'list3820' => 'application/vnd.ibm.modcap', 'listafp' => 'application/vnd.ibm.modcap', 'log' => 'text/plain', 'lostxml' => 'application/lost+xml', 'lrf' => 'application/octet-stream', 'lrm' => 'application/vnd.ms-lrm', 'ltf' => 'application/vnd.frogans.ltf', 'lvp' => 'audio/vnd.lucent.voice', 'lwp' => 'application/vnd.lotus-wordpro', 'lzh' => 'application/octet-stream', 'm13' => 'application/x-msmediaview', 'm14' => 'application/x-msmediaview', 'm1v' => 'video/mpeg', 'm21' => 'application/mp21', 'm2a' => 'audio/mpeg', 'm2v' => 'video/mpeg', 'm3a' => 'audio/mpeg', 'm3u' => 'audio/x-mpegurl', 'm3u8' => 'application/vnd.apple.mpegurl', 'm4a' => 'audio/mp4', 'm4u' => 'video/vnd.mpegurl', 'm4v' => 'video/mp4', 'ma' => 'application/mathematica', 'mads' => 'application/mads+xml', 'mag' => 'application/vnd.ecowin.chart', 'maker' => 'application/vnd.framemaker', 'man' => 'text/troff', 'mathml' => 'application/mathml+xml', 'mb' => 'application/mathematica', 'mbk' => 'application/vnd.mobius.mbk', 'mbox' => 'application/mbox', 'mc1' => 'application/vnd.medcalcdata', 'mcd' => 'application/vnd.mcd', 'mcurl' => 'text/vnd.curl.mcurl', 'mdb' => 'application/x-msaccess', 'mdi' => 'image/vnd.ms-modi', 'me' => 'text/troff', 'mesh' => 'model/mesh', 'meta4' => 'application/metalink4+xml', 'mets' => 'application/mets+xml', 'mfm' => 'application/vnd.mfmp', 'mgp' => 'application/vnd.osgeo.mapguide.package', 'mgz' => 'application/vnd.proteus.magazine', 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mif' => 'application/vnd.mif', 'mime' => 'message/rfc822', 'mj2' => 'video/mj2', 'mjp2' => 'video/mj2', 'mlp' => 'application/vnd.dolby.mlp', 'mmd' => 'application/vnd.chipnuts.karaoke-mmd', 'mmf' => 'application/vnd.smaf', 'mmr' => 'image/vnd.fujixerox.edmics-mmr', 'mny' => 'application/x-msmoney', 'mobi' => 'application/x-mobipocket-ebook', 'mods' => 'application/mods+xml', 'mov' => 'video/quicktime', 'movie' => 'video/x-sgi-movie', 'mp2' => 'audio/mpeg', 'mp21' => 'application/mp21', 'mp2a' => 'audio/mpeg', 'mp3' => 'audio/mpeg', 'mp4' => 'video/mp4', 'mp4a' => 'audio/mp4', 'mp4s' => 'application/mp4', 'mp4v' => 'video/mp4', 'mpc' => 'application/vnd.mophun.certificate', 'mpe' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpg4' => 'video/mp4', 'mpga' => 'audio/mpeg', 'mpkg' => 'application/vnd.apple.installer+xml', 'mpm' => 'application/vnd.blueice.multipass', 'mpn' => 'application/vnd.mophun.application', 'mpp' => 'application/vnd.ms-project', 'mpt' => 'application/vnd.ms-project', 'mpy' => 'application/vnd.ibm.minipay', 'mqy' => 'application/vnd.mobius.mqy', 'mrc' => 'application/marc', 'mrcx' => 'application/marcxml+xml', 'ms' => 'text/troff', 'mscml' => 'application/mediaservercontrol+xml', 'mseed' => 'application/vnd.fdsn.mseed', 'mseq' => 'application/vnd.mseq', 'msf' => 'application/vnd.epson.msf', 'msh' => 'model/mesh', 'msi' => 'application/x-msdownload', 'msl' => 'application/vnd.mobius.msl', 'msty' => 'application/vnd.muvee.style', 'mts' => 'model/vnd.mts', 'mus' => 'application/vnd.musician', 'musicxml' => 'application/vnd.recordare.musicxml+xml', 'mvb' => 'application/x-msmediaview', 'mwf' => 'application/vnd.mfer', 'mxf' => 'application/mxf', 'mxl' => 'application/vnd.recordare.musicxml', 'mxml' => 'application/xv+xml', 'mxs' => 'application/vnd.triscape.mxs', 'mxu' => 'video/vnd.mpegurl', 'n-gage' => 'application/vnd.nokia.n-gage.symbian.install', 'n3' => 'text/n3', 'nb' => 'application/mathematica', 'nbp' => 'application/vnd.wolfram.player', 'nc' => 'application/x-netcdf', 'ncx' => 'application/x-dtbncx+xml', 'ngdat' => 'application/vnd.nokia.n-gage.data', 'nlu' => 'application/vnd.neurolanguage.nlu', 'nml' => 'application/vnd.enliven', 'nnd' => 'application/vnd.noblenet-directory', 'nns' => 'application/vnd.noblenet-sealer', 'nnw' => 'application/vnd.noblenet-web', 'npx' => 'image/vnd.net-fpx', 'nsf' => 'application/vnd.lotus-notes', 'oa2' => 'application/vnd.fujitsu.oasys2', 'oa3' => 'application/vnd.fujitsu.oasys3', 'oas' => 'application/vnd.fujitsu.oasys', 'obd' => 'application/x-msbinder', 'oda' => 'application/oda', 'odb' => 'application/vnd.oasis.opendocument.database', 'odc' => 'application/vnd.oasis.opendocument.chart', 'odf' => 'application/vnd.oasis.opendocument.formula', 'odft' => 'application/vnd.oasis.opendocument.formula-template', 'odg' => 'application/vnd.oasis.opendocument.graphics', 'odi' => 'application/vnd.oasis.opendocument.image', 'odm' => 'application/vnd.oasis.opendocument.text-master', 'odp' => 'application/vnd.oasis.opendocument.presentation', 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', 'odt' => 'application/vnd.oasis.opendocument.text', 'oga' => 'audio/ogg', 'ogg' => 'audio/ogg', 'ogv' => 'video/ogg', 'ogx' => 'application/ogg', 'onepkg' => 'application/onenote', 'onetmp' => 'application/onenote', 'onetoc' => 'application/onenote', 'onetoc2' => 'application/onenote', 'opf' => 'application/oebps-package+xml', 'oprc' => 'application/vnd.palm', 'org' => 'application/vnd.lotus-organizer', 'osf' => 'application/vnd.yamaha.openscoreformat', 'osfpvg' => 'application/vnd.yamaha.openscoreformat.osfpvg+xml', 'otc' => 'application/vnd.oasis.opendocument.chart-template', 'otf' => 'application/x-font-otf', 'otg' => 'application/vnd.oasis.opendocument.graphics-template', 'oth' => 'application/vnd.oasis.opendocument.text-web', 'oti' => 'application/vnd.oasis.opendocument.image-template', 'otp' => 'application/vnd.oasis.opendocument.presentation-template', 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', 'ott' => 'application/vnd.oasis.opendocument.text-template', 'oxt' => 'application/vnd.openofficeorg.extension', 'p' => 'text/x-pascal', 'p10' => 'application/pkcs10', 'p12' => 'application/x-pkcs12', 'p7b' => 'application/x-pkcs7-certificates', 'p7c' => 'application/pkcs7-mime', 'p7m' => 'application/pkcs7-mime', 'p7r' => 'application/x-pkcs7-certreqresp', 'p7s' => 'application/pkcs7-signature', 'p8' => 'application/pkcs8', 'pas' => 'text/x-pascal', 'paw' => 'application/vnd.pawaafile', 'pbd' => 'application/vnd.powerbuilder6', 'pbm' => 'image/x-portable-bitmap', 'pcf' => 'application/x-font-pcf', 'pcl' => 'application/vnd.hp-pcl', 'pclxl' => 'application/vnd.hp-pclxl', 'pct' => 'image/x-pict', 'pcurl' => 'application/vnd.curl.pcurl', 'pcx' => 'image/x-pcx', 'pdb' => 'application/vnd.palm', 'pdf' => 'application/pdf', 'pfa' => 'application/x-font-type1', 'pfb' => 'application/x-font-type1', 'pfm' => 'application/x-font-type1', 'pfr' => 'application/font-tdpfr', 'pfx' => 'application/x-pkcs12', 'pgm' => 'image/x-portable-graymap', 'pgn' => 'application/x-chess-pgn', 'pgp' => 'application/pgp-encrypted', 'php' => 'text/x-php', 'phps' => 'application/x-httpd-phps', 'pic' => 'image/x-pict', 'pkg' => 'application/octet-stream', 'pki' => 'application/pkixcmp', 'pkipath' => 'application/pkix-pkipath', 'plb' => 'application/vnd.3gpp.pic-bw-large', 'plc' => 'application/vnd.mobius.plc', 'plf' => 'application/vnd.pocketlearn', 'pls' => 'application/pls+xml', 'pml' => 'application/vnd.ctc-posml', 'png' => 'image/png', 'pnm' => 'image/x-portable-anymap', 'portpkg' => 'application/vnd.macports.portpkg', 'pot' => 'application/vnd.ms-powerpoint', 'potm' => 'application/vnd.ms-powerpoint.template.macroenabled.12', 'potx' => 'application/vnd.openxmlformats-officedocument.presentationml.template', 'ppam' => 'application/vnd.ms-powerpoint.addin.macroenabled.12', 'ppd' => 'application/vnd.cups-ppd', 'ppm' => 'image/x-portable-pixmap', 'pps' => 'application/vnd.ms-powerpoint', 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroenabled.12', 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'ppt' => 'application/vnd.ms-powerpoint', 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroenabled.12', 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'pqa' => 'application/vnd.palm', 'prc' => 'application/x-mobipocket-ebook', 'pre' => 'application/vnd.lotus-freelance', 'prf' => 'application/pics-rules', 'ps' => 'application/postscript', 'psb' => 'application/vnd.3gpp.pic-bw-small', 'psd' => 'image/vnd.adobe.photoshop', 'psf' => 'application/x-font-linux-psf', 'pskcxml' => 'application/pskc+xml', 'ptid' => 'application/vnd.pvi.ptid1', 'pub' => 'application/x-mspublisher', 'pvb' => 'application/vnd.3gpp.pic-bw-var', 'pwn' => 'application/vnd.3m.post-it-notes', 'pya' => 'audio/vnd.ms-playready.media.pya', 'pyv' => 'video/vnd.ms-playready.media.pyv', 'qam' => 'application/vnd.epson.quickanime', 'qbo' => 'application/vnd.intu.qbo', 'qfx' => 'application/vnd.intu.qfx', 'qps' => 'application/vnd.publishare-delta-tree', 'qt' => 'video/quicktime', 'qwd' => 'application/vnd.quark.quarkxpress', 'qwt' => 'application/vnd.quark.quarkxpress', 'qxb' => 'application/vnd.quark.quarkxpress', 'qxd' => 'application/vnd.quark.quarkxpress', 'qxl' => 'application/vnd.quark.quarkxpress', 'qxt' => 'application/vnd.quark.quarkxpress', 'ra' => 'audio/x-pn-realaudio', 'ram' => 'audio/x-pn-realaudio', 'rar' => 'application/x-rar-compressed', 'ras' => 'image/x-cmu-raster', 'rb' => 'text/plain', 'rcprofile' => 'application/vnd.ipunplugged.rcprofile', 'rdf' => 'application/rdf+xml', 'rdz' => 'application/vnd.data-vision.rdz', 'rep' => 'application/vnd.businessobjects', 'res' => 'application/x-dtbresource+xml', 'resx' => 'text/xml', 'rgb' => 'image/x-rgb', 'rif' => 'application/reginfo+xml', 'rip' => 'audio/vnd.rip', 'rl' => 'application/resource-lists+xml', 'rlc' => 'image/vnd.fujixerox.edmics-rlc', 'rld' => 'application/resource-lists-diff+xml', 'rm' => 'application/vnd.rn-realmedia', 'rmi' => 'audio/midi', 'rmp' => 'audio/x-pn-realaudio-plugin', 'rms' => 'application/vnd.jcp.javame.midlet-rms', 'rnc' => 'application/relax-ng-compact-syntax', 'roff' => 'text/troff', 'rp9' => 'application/vnd.cloanto.rp9', 'rpss' => 'application/vnd.nokia.radio-presets', 'rpst' => 'application/vnd.nokia.radio-preset', 'rq' => 'application/sparql-query', 'rs' => 'application/rls-services+xml', 'rsd' => 'application/rsd+xml', 'rss' => 'application/rss+xml', 'rtf' => 'application/rtf', 'rtx' => 'text/richtext', 's' => 'text/x-asm', 'saf' => 'application/vnd.yamaha.smaf-audio', 'sbml' => 'application/sbml+xml', 'sc' => 'application/vnd.ibm.secure-container', 'scd' => 'application/x-msschedule', 'scm' => 'application/vnd.lotus-screencam', 'scq' => 'application/scvp-cv-request', 'scs' => 'application/scvp-cv-response', 'scurl' => 'text/vnd.curl.scurl', 'sda' => 'application/vnd.stardivision.draw', 'sdc' => 'application/vnd.stardivision.calc', 'sdd' => 'application/vnd.stardivision.impress', 'sdkd' => 'application/vnd.solent.sdkm+xml', 'sdkm' => 'application/vnd.solent.sdkm+xml', 'sdp' => 'application/sdp', 'sdw' => 'application/vnd.stardivision.writer', 'see' => 'application/vnd.seemail', 'seed' => 'application/vnd.fdsn.seed', 'sema' => 'application/vnd.sema', 'semd' => 'application/vnd.semd', 'semf' => 'application/vnd.semf', 'ser' => 'application/java-serialized-object', 'setpay' => 'application/set-payment-initiation', 'setreg' => 'application/set-registration-initiation', 'sfd-hdstx' => 'application/vnd.hydrostatix.sof-data', 'sfs' => 'application/vnd.spotfire.sfs', 'sgl' => 'application/vnd.stardivision.writer-global', 'sgm' => 'text/sgml', 'sgml' => 'text/sgml', 'sh' => 'application/x-sh', 'shar' => 'application/x-shar', 'shf' => 'application/shf+xml', 'sig' => 'application/pgp-signature', 'silo' => 'model/mesh', 'sis' => 'application/vnd.symbian.install', 'sisx' => 'application/vnd.symbian.install', 'sit' => 'application/x-stuffit', 'sitx' => 'application/x-stuffitx', 'skd' => 'application/vnd.koan', 'skm' => 'application/vnd.koan', 'skp' => 'application/vnd.koan', 'skt' => 'application/vnd.koan', 'sldm' => 'application/vnd.ms-powerpoint.slide.macroenabled.12', 'sldx' => 'application/vnd.openxmlformats-officedocument.presentationml.slide', 'slt' => 'application/vnd.epson.salt', 'sm' => 'application/vnd.stepmania.stepchart', 'smf' => 'application/vnd.stardivision.math', 'smi' => 'application/smil+xml', 'smil' => 'application/smil+xml', 'snd' => 'audio/basic', 'snf' => 'application/x-font-snf', 'so' => 'application/octet-stream', 'spc' => 'application/x-pkcs7-certificates', 'spf' => 'application/vnd.yamaha.smaf-phrase', 'spl' => 'application/x-futuresplash', 'spot' => 'text/vnd.in3d.spot', 'spp' => 'application/scvp-vp-response', 'spq' => 'application/scvp-vp-request', 'spx' => 'audio/ogg', 'src' => 'application/x-wais-source', 'sru' => 'application/sru+xml', 'srx' => 'application/sparql-results+xml', 'sse' => 'application/vnd.kodak-descriptor', 'ssf' => 'application/vnd.epson.ssf', 'ssml' => 'application/ssml+xml', 'st' => 'application/vnd.sailingtracker.track', 'stc' => 'application/vnd.sun.xml.calc.template', 'std' => 'application/vnd.sun.xml.draw.template', 'stf' => 'application/vnd.wt.stf', 'sti' => 'application/vnd.sun.xml.impress.template', 'stk' => 'application/hyperstudio', 'stl' => 'application/vnd.ms-pki.stl', 'str' => 'application/vnd.pg.format', 'stw' => 'application/vnd.sun.xml.writer.template', 'sub' => 'image/vnd.dvb.subtitle', 'sus' => 'application/vnd.sus-calendar', 'susp' => 'application/vnd.sus-calendar', 'sv4cpio' => 'application/x-sv4cpio', 'sv4crc' => 'application/x-sv4crc', 'svc' => 'application/vnd.dvb.service', 'svd' => 'application/vnd.svd', 'svg' => 'image/svg+xml', 'svgz' => 'image/svg+xml', 'swa' => 'application/x-director', 'swf' => 'application/x-shockwave-flash', 'swi' => 'application/vnd.aristanetworks.swi', 'sxc' => 'application/vnd.sun.xml.calc', 'sxd' => 'application/vnd.sun.xml.draw', 'sxg' => 'application/vnd.sun.xml.writer.global', 'sxi' => 'application/vnd.sun.xml.impress', 'sxm' => 'application/vnd.sun.xml.math', 'sxw' => 'application/vnd.sun.xml.writer', 't' => 'text/troff', 'tao' => 'application/vnd.tao.intent-module-archive', 'tar' => 'application/x-tar', 'tcap' => 'application/vnd.3gpp2.tcap', 'tcl' => 'application/x-tcl', 'teacher' => 'application/vnd.smart.teacher', 'tei' => 'application/tei+xml', 'teicorpus' => 'application/tei+xml', 'tex' => 'application/x-tex', 'texi' => 'application/x-texinfo', 'texinfo' => 'application/x-texinfo', 'text' => 'text/plain', 'tfi' => 'application/thraud+xml', 'tfm' => 'application/x-tex-tfm', 'thmx' => 'application/vnd.ms-officetheme', 'tif' => 'image/tiff', 'tiff' => 'image/tiff', 'tmo' => 'application/vnd.tmobile-livetv', 'torrent' => 'application/x-bittorrent', 'tpl' => 'application/vnd.groove-tool-template', 'tpt' => 'application/vnd.trid.tpt', 'tr' => 'text/troff', 'tra' => 'application/vnd.trueapp', 'trm' => 'application/x-msterminal', 'tsd' => 'application/timestamped-data', 'tsv' => 'text/tab-separated-values', 'ttc' => 'application/x-font-ttf', 'ttf' => 'application/x-font-ttf', 'ttl' => 'text/turtle', 'twd' => 'application/vnd.simtech-mindmapper', 'twds' => 'application/vnd.simtech-mindmapper', 'txd' => 'application/vnd.genomatix.tuxedo', 'txf' => 'application/vnd.mobius.txf', 'txt' => 'text/plain', 'u32' => 'application/x-authorware-bin', 'udeb' => 'application/x-debian-package', 'ufd' => 'application/vnd.ufdl', 'ufdl' => 'application/vnd.ufdl', 'umj' => 'application/vnd.umajin', 'unityweb' => 'application/vnd.unity', 'uoml' => 'application/vnd.uoml+xml', 'uri' => 'text/uri-list', 'uris' => 'text/uri-list', 'urls' => 'text/uri-list', 'ustar' => 'application/x-ustar', 'utz' => 'application/vnd.uiq.theme', 'uu' => 'text/x-uuencode', 'uva' => 'audio/vnd.dece.audio', 'uvd' => 'application/vnd.dece.data', 'uvf' => 'application/vnd.dece.data', 'uvg' => 'image/vnd.dece.graphic', 'uvh' => 'video/vnd.dece.hd', 'uvi' => 'image/vnd.dece.graphic', 'uvm' => 'video/vnd.dece.mobile', 'uvp' => 'video/vnd.dece.pd', 'uvs' => 'video/vnd.dece.sd', 'uvt' => 'application/vnd.dece.ttml+xml', 'uvu' => 'video/vnd.uvvu.mp4', 'uvv' => 'video/vnd.dece.video', 'uvva' => 'audio/vnd.dece.audio', 'uvvd' => 'application/vnd.dece.data', 'uvvf' => 'application/vnd.dece.data', 'uvvg' => 'image/vnd.dece.graphic', 'uvvh' => 'video/vnd.dece.hd', 'uvvi' => 'image/vnd.dece.graphic', 'uvvm' => 'video/vnd.dece.mobile', 'uvvp' => 'video/vnd.dece.pd', 'uvvs' => 'video/vnd.dece.sd', 'uvvt' => 'application/vnd.dece.ttml+xml', 'uvvu' => 'video/vnd.uvvu.mp4', 'uvvv' => 'video/vnd.dece.video', 'uvvx' => 'application/vnd.dece.unspecified', 'uvx' => 'application/vnd.dece.unspecified', 'vcd' => 'application/x-cdlink', 'vcf' => 'text/x-vcard', 'vcg' => 'application/vnd.groove-vcard', 'vcs' => 'text/x-vcalendar', 'vcx' => 'application/vnd.vcx', 'vis' => 'application/vnd.visionary', 'viv' => 'video/vnd.vivo', 'vor' => 'application/vnd.stardivision.writer', 'vox' => 'application/x-authorware-bin', 'vrml' => 'model/vrml', 'vsd' => 'application/vnd.visio', 'vsf' => 'application/vnd.vsf', 'vss' => 'application/vnd.visio', 'vst' => 'application/vnd.visio', 'vsw' => 'application/vnd.visio', 'vtu' => 'model/vnd.vtu', 'vxml' => 'application/voicexml+xml', 'w3d' => 'application/x-director', 'wad' => 'application/x-doom', 'wav' => 'audio/x-wav', 'wax' => 'audio/x-ms-wax', 'wbmp' => 'image/vnd.wap.wbmp', 'wbs' => 'application/vnd.criticaltools.wbs+xml', 'wbxml' => 'application/vnd.wap.wbxml', 'wcm' => 'application/vnd.ms-works', 'wdb' => 'application/vnd.ms-works', 'weba' => 'audio/webm', 'webm' => 'video/webm', 'webp' => 'image/webp', 'wg' => 'application/vnd.pmi.widget', 'wgt' => 'application/widget', 'wks' => 'application/vnd.ms-works', 'wm' => 'video/x-ms-wm', 'wma' => 'audio/x-ms-wma', 'wmd' => 'application/x-ms-wmd', 'wmf' => 'application/x-msmetafile', 'wml' => 'text/vnd.wap.wml', 'wmlc' => 'application/vnd.wap.wmlc', 'wmls' => 'text/vnd.wap.wmlscript', 'wmlsc' => 'application/vnd.wap.wmlscriptc', 'wmv' => 'video/x-ms-wmv', 'wmx' => 'video/x-ms-wmx', 'wmz' => 'application/x-ms-wmz', 'woff' => 'application/x-font-woff', 'wpd' => 'application/vnd.wordperfect', 'wpl' => 'application/vnd.ms-wpl', 'wps' => 'application/vnd.ms-works', 'wqd' => 'application/vnd.wqd', 'wri' => 'application/x-mswrite', 'wrl' => 'model/vrml', 'wsdl' => 'application/wsdl+xml', 'wspolicy' => 'application/wspolicy+xml', 'wtb' => 'application/vnd.webturbo', 'wvx' => 'video/x-ms-wvx', 'x32' => 'application/x-authorware-bin', 'x3d' => 'application/vnd.hzn-3d-crossword', 'xap' => 'application/x-silverlight-app', 'xar' => 'application/vnd.xara', 'xbap' => 'application/x-ms-xbap', 'xbd' => 'application/vnd.fujixerox.docuworks.binder', 'xbm' => 'image/x-xbitmap', 'xdf' => 'application/xcap-diff+xml', 'xdm' => 'application/vnd.syncml.dm+xml', 'xdp' => 'application/vnd.adobe.xdp+xml', 'xdssc' => 'application/dssc+xml', 'xdw' => 'application/vnd.fujixerox.docuworks', 'xenc' => 'application/xenc+xml', 'xer' => 'application/patch-ops-error+xml', 'xfdf' => 'application/vnd.adobe.xfdf', 'xfdl' => 'application/vnd.xfdl', 'xht' => 'application/xhtml+xml', 'xhtml' => 'application/xhtml+xml', 'xhvml' => 'application/xv+xml', 'xif' => 'image/vnd.xiff', 'xla' => 'application/vnd.ms-excel', 'xlam' => 'application/vnd.ms-excel.addin.macroenabled.12', 'xlc' => 'application/vnd.ms-excel', 'xlm' => 'application/vnd.ms-excel', 'xls' => 'application/vnd.ms-excel', 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroenabled.12', 'xlsm' => 'application/vnd.ms-excel.sheet.macroenabled.12', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'xlt' => 'application/vnd.ms-excel', 'xltm' => 'application/vnd.ms-excel.template.macroenabled.12', 'xltx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'xlw' => 'application/vnd.ms-excel', 'xml' => 'application/xml', 'xo' => 'application/vnd.olpc-sugar', 'xop' => 'application/xop+xml', 'xpi' => 'application/x-xpinstall', 'xpm' => 'image/x-xpixmap', 'xpr' => 'application/vnd.is-xpr', 'xps' => 'application/vnd.ms-xpsdocument', 'xpw' => 'application/vnd.intercon.formnet', 'xpx' => 'application/vnd.intercon.formnet', 'xsl' => 'application/xml', 'xslt' => 'application/xslt+xml', 'xsm' => 'application/vnd.syncml+xml', 'xspf' => 'application/xspf+xml', 'xul' => 'application/vnd.mozilla.xul+xml', 'xvm' => 'application/xv+xml', 'xvml' => 'application/xv+xml', 'xwd' => 'image/x-xwindowdump', 'xyz' => 'chemical/x-xyz', 'yaml' => 'text/yaml', 'yang' => 'application/yang', 'yin' => 'application/yin+xml', 'yml' => 'text/yaml', 'zaz' => 'application/vnd.zzazz.deck+xml', 'zip' => 'application/zip', 'zir' => 'application/vnd.zul', 'zirz' => 'application/vnd.zul', 'zmm' => 'application/vnd.handheld-entertainment+xml'); /** * Get a singleton instance of the class * * @return self * @codeCoverageIgnore */ public static function getInstance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; } /** * Get a mimetype value from a file extension * * @param string $extension File extension * * @return string|null * */ public function fromExtension($extension) { $extension = \strtolower($extension); return isset($this->mimetypes[$extension]) ? $this->mimetypes[$extension] : null; } /** * Get a mimetype from a filename * * @param string $filename Filename to generate a mimetype from * * @return string|null */ public function fromFilename($filename) { return $this->fromExtension(\pathinfo($filename, \PATHINFO_EXTENSION)); } } guzzlehttp/guzzle/src/Exception/ClientException.php000064400000000363150544704730016652 0ustar00error = $error; } /** * Get the associated error * * @return \LibXMLError|null */ public function getError() { return $this->error; } } guzzlehttp/guzzle/src/Exception/ServerException.php000064400000000363150544704730016702 0ustar00getStatusCode() : 0; parent::__construct($message, $code, $previous); $this->request = $request; $this->response = $response; } /** * Wrap non-RequestExceptions with a RequestException * * @param RequestInterface $request * @param \Exception $e * * @return RequestException */ public static function wrapException(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, \Exception $e) { if ($e instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException) { return $e; } elseif ($e instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Exception\ConnectException) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\ConnectException($e->getMessage(), $request, null, $e); } else { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException($e->getMessage(), $request, null, $e); } } /** * Factory method to create a new exception with a normalized error message * * @param RequestInterface $request Request * @param ResponseInterface $response Response received * @param \Exception $previous Previous exception * * @return self */ public static function create(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, \Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface $response = null, \Exception $previous = null) { if (!$response) { return new self('Error completing request', $request, null, $previous); } $level = \floor($response->getStatusCode() / 100); if ($level == '4') { $label = 'Client error response'; $className = __NAMESPACE__ . '\\ClientException'; } elseif ($level == '5') { $label = 'Server error response'; $className = __NAMESPACE__ . '\\ServerException'; } else { $label = 'Unsuccessful response'; $className = __CLASS__; } $message = $label . ' [url] ' . $request->getUrl() . ' [status code] ' . $response->getStatusCode() . ' [reason phrase] ' . $response->getReasonPhrase(); return new $className($message, $request, $response, $previous); } /** * Get the request that caused the exception * * @return RequestInterface */ public function getRequest() { return $this->request; } /** * Get the associated response * * @return ResponseInterface|null */ public function getResponse() { return $this->response; } /** * Check if a response was received * * @return bool */ public function hasResponse() { return $this->response !== null; } } guzzlehttp/guzzle/src/Exception/StateException.php000064400000000253150544704730016512 0ustar00response = $response; } /** * Get the associated response * * @return ResponseInterface|null */ public function getResponse() { return $this->response; } } guzzlehttp/guzzle/src/ToArrayInterface.php000064400000000417150544704730015021 0ustar00 80, 'https' => 443, 'ftp' => 21]; private static $pathPattern = '/[^a-zA-Z0-9\\-\\._~!\\$&\'\\(\\)\\*\\+,;=%:@\\/]+|%(?![A-Fa-f0-9]{2})/'; private static $queryPattern = '/[^a-zA-Z0-9\\-\\._~!\\$\'\\(\\)\\*\\+,;%:@\\/\\?=&]+|%(?![A-Fa-f0-9]{2})/'; /** @var Query|string Query part of the URL */ private $query; /** * Factory method to create a new URL from a URL string * * @param string $url Full URL used to create a Url object * * @return Url * @throws \InvalidArgumentException */ public static function fromString($url) { static $defaults = ['scheme' => null, 'host' => null, 'path' => null, 'port' => null, 'query' => null, 'user' => null, 'pass' => null, 'fragment' => null]; if (\false === ($parts = \parse_url($url))) { throw new \InvalidArgumentException('Unable to parse malformed ' . 'url: ' . $url); } $parts += $defaults; // Convert the query string into a Query object if ($parts['query'] || 0 !== \strlen($parts['query'])) { $parts['query'] = \Google\Site_Kit_Dependencies\GuzzleHttp\Query::fromString($parts['query']); } return new static($parts['scheme'], $parts['host'], $parts['user'], $parts['pass'], $parts['port'], $parts['path'], $parts['query'], $parts['fragment']); } /** * Build a URL from parse_url parts. The generated URL will be a relative * URL if a scheme or host are not provided. * * @param array $parts Array of parse_url parts * * @return string */ public static function buildUrl(array $parts) { $url = $scheme = ''; if (!empty($parts['scheme'])) { $scheme = $parts['scheme']; $url .= $scheme . ':'; } if (!empty($parts['host'])) { $url .= '//'; if (isset($parts['user'])) { $url .= $parts['user']; if (isset($parts['pass'])) { $url .= ':' . $parts['pass']; } $url .= '@'; } $url .= $parts['host']; // Only include the port if it is not the default port of the scheme if (isset($parts['port']) && (!isset(self::$defaultPorts[$scheme]) || $parts['port'] != self::$defaultPorts[$scheme])) { $url .= ':' . $parts['port']; } } // Add the path component if present if (isset($parts['path']) && \strlen($parts['path'])) { // Always ensure that the path begins with '/' if set and something // is before the path if (!empty($parts['host']) && $parts['path'][0] != '/') { $url .= '/'; } $url .= $parts['path']; } // Add the query string if present if (isset($parts['query'])) { $queryStr = (string) $parts['query']; if ($queryStr || $queryStr === '0') { $url .= '?' . $queryStr; } } // Ensure that # is only added to the url if fragment contains anything. if (isset($parts['fragment'])) { $url .= '#' . $parts['fragment']; } return $url; } /** * Create a new URL from URL parts * * @param string $scheme Scheme of the URL * @param string $host Host of the URL * @param string $username Username of the URL * @param string $password Password of the URL * @param int $port Port of the URL * @param string $path Path of the URL * @param Query|array|string $query Query string of the URL * @param string $fragment Fragment of the URL */ public function __construct($scheme, $host, $username = null, $password = null, $port = null, $path = null, $query = null, $fragment = null) { $this->scheme = \strtolower($scheme); $this->host = $host; $this->port = $port; $this->username = $username; $this->password = $password; $this->fragment = $fragment; if ($query) { $this->setQuery($query); } $this->setPath($path); } /** * Clone the URL */ public function __clone() { if ($this->query instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Query) { $this->query = clone $this->query; } } /** * Returns the URL as a URL string * * @return string */ public function __toString() { return static::buildUrl($this->getParts()); } /** * Get the parts of the URL as an array * * @return array */ public function getParts() { return array('scheme' => $this->scheme, 'user' => $this->username, 'pass' => $this->password, 'host' => $this->host, 'port' => $this->port, 'path' => $this->path, 'query' => $this->query, 'fragment' => $this->fragment); } /** * Set the host of the request. * * @param string $host Host to set (e.g. www.yahoo.com, yahoo.com) * * @return Url */ public function setHost($host) { if (\strpos($host, ':') === \false) { $this->host = $host; } else { list($host, $port) = \explode(':', $host); $this->host = $host; $this->setPort($port); } } /** * Get the host part of the URL * * @return string */ public function getHost() { return $this->host; } /** * Set the scheme part of the URL (http, https, ftp, etc.) * * @param string $scheme Scheme to set */ public function setScheme($scheme) { // Remove the default port if one is specified if ($this->port && isset(self::$defaultPorts[$this->scheme]) && self::$defaultPorts[$this->scheme] == $this->port) { $this->port = null; } $this->scheme = \strtolower($scheme); } /** * Get the scheme part of the URL * * @return string */ public function getScheme() { return $this->scheme; } /** * Set the port part of the URL * * @param int $port Port to set */ public function setPort($port) { $this->port = $port; } /** * Get the port part of the URl. * * If no port was set, this method will return the default port for the * scheme of the URI. * * @return int|null */ public function getPort() { if ($this->port) { return $this->port; } elseif (isset(self::$defaultPorts[$this->scheme])) { return self::$defaultPorts[$this->scheme]; } return null; } /** * Set the path part of the URL. * * The provided URL is URL encoded as necessary. * * @param string $path Path string to set */ public function setPath($path) { $this->path = self::encodePath($path); } /** * Removes dot segments from a URL * @link http://tools.ietf.org/html/rfc3986#section-5.2.4 */ public function removeDotSegments() { static $noopPaths = ['' => \true, '/' => \true, '*' => \true]; static $ignoreSegments = ['.' => \true, '..' => \true]; if (isset($noopPaths[$this->path])) { return; } $results = []; $segments = $this->getPathSegments(); foreach ($segments as $segment) { if ($segment == '..') { \array_pop($results); } elseif (!isset($ignoreSegments[$segment])) { $results[] = $segment; } } $newPath = \implode('/', $results); // Add the leading slash if necessary if (\substr($this->path, 0, 1) === '/' && \substr($newPath, 0, 1) !== '/') { $newPath = '/' . $newPath; } // Add the trailing slash if necessary if ($newPath != '/' && isset($ignoreSegments[\end($segments)])) { $newPath .= '/'; } $this->path = $newPath; } /** * Add a relative path to the currently set path. * * @param string $relativePath Relative path to add */ public function addPath($relativePath) { if ($relativePath != '/' && \is_string($relativePath) && \strlen($relativePath) > 0) { // Add a leading slash if needed if ($relativePath[0] !== '/' && \substr($this->path, -1, 1) !== '/') { $relativePath = '/' . $relativePath; } $this->setPath($this->path . $relativePath); } } /** * Get the path part of the URL * * @return string */ public function getPath() { return $this->path; } /** * Get the path segments of the URL as an array * * @return array */ public function getPathSegments() { return \explode('/', $this->path); } /** * Set the password part of the URL * * @param string $password Password to set */ public function setPassword($password) { $this->password = $password; } /** * Get the password part of the URL * * @return null|string */ public function getPassword() { return $this->password; } /** * Set the username part of the URL * * @param string $username Username to set */ public function setUsername($username) { $this->username = $username; } /** * Get the username part of the URl * * @return null|string */ public function getUsername() { return $this->username; } /** * Get the query part of the URL as a Query object * * @return Query */ public function getQuery() { // Convert the query string to a query object if not already done. if (!$this->query instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Query) { $this->query = $this->query === null ? new \Google\Site_Kit_Dependencies\GuzzleHttp\Query() : \Google\Site_Kit_Dependencies\GuzzleHttp\Query::fromString($this->query); } return $this->query; } /** * Set the query part of the URL. * * You may provide a query string as a string and pass $rawString as true * to provide a query string that is not parsed until a call to getQuery() * is made. Setting a raw query string will still encode invalid characters * in a query string. * * @param Query|string|array $query Query string value to set. Can * be a string that will be parsed into a Query object, an array * of key value pairs, or a Query object. * @param bool $rawString Set to true when providing a raw query string. * * @throws \InvalidArgumentException */ public function setQuery($query, $rawString = \false) { if ($query instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Query) { $this->query = $query; } elseif (\is_string($query)) { if (!$rawString) { $this->query = \Google\Site_Kit_Dependencies\GuzzleHttp\Query::fromString($query); } else { // Ensure the query does not have illegal characters. $this->query = \preg_replace_callback(self::$queryPattern, [__CLASS__, 'encodeMatch'], $query); } } elseif (\is_array($query)) { $this->query = new \Google\Site_Kit_Dependencies\GuzzleHttp\Query($query); } else { throw new \InvalidArgumentException('Query must be a Query, ' . 'array, or string. Got ' . \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::describeType($query)); } } /** * Get the fragment part of the URL * * @return null|string */ public function getFragment() { return $this->fragment; } /** * Set the fragment part of the URL * * @param string $fragment Fragment to set */ public function setFragment($fragment) { $this->fragment = $fragment; } /** * Check if this is an absolute URL * * @return bool */ public function isAbsolute() { return $this->scheme && $this->host; } /** * Combine the URL with another URL and return a new URL instance. * * Follows the rules specific in RFC 3986 section 5.4. * * @param string $url Relative URL to combine with * * @return Url * @throws \InvalidArgumentException * @link http://tools.ietf.org/html/rfc3986#section-5.4 */ public function combine($url) { $url = static::fromString($url); // Use the more absolute URL as the base URL if (!$this->isAbsolute() && $url->isAbsolute()) { $url = $url->combine($this); } $parts = $url->getParts(); // Passing a URL with a scheme overrides everything if ($parts['scheme']) { return clone $url; } // Setting a host overrides the entire rest of the URL if ($parts['host']) { return new static($this->scheme, $parts['host'], $parts['user'], $parts['pass'], $parts['port'], $parts['path'], $parts['query'] instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Query ? clone $parts['query'] : $parts['query'], $parts['fragment']); } if (!$parts['path'] && $parts['path'] !== '0') { // The relative URL has no path, so check if it is just a query $path = $this->path ?: ''; $query = $parts['query'] ?: $this->query; } else { $query = $parts['query']; if ($parts['path'][0] == '/' || !$this->path) { // Overwrite the existing path if the rel path starts with "/" $path = $parts['path']; } else { // If the relative URL does not have a path or the base URL // path does not end in a "/" then overwrite the existing path // up to the last "/" $path = \substr($this->path, 0, \strrpos($this->path, '/') + 1) . $parts['path']; } } $result = new self($this->scheme, $this->host, $this->username, $this->password, $this->port, $path, $query instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Query ? clone $query : $query, $parts['fragment']); if ($path) { $result->removeDotSegments(); } return $result; } /** * Encodes the path part of a URL without double-encoding percent-encoded * key value pairs. * * @param string $path Path to encode * * @return string */ public static function encodePath($path) { static $cb = [__CLASS__, 'encodeMatch']; return \preg_replace_callback(self::$pathPattern, $cb, $path); } private static function encodeMatch(array $match) { return \rawurlencode($match[0]); } } guzzlehttp/guzzle/src/Query.php000064400000013711150544704730012725 0ustar00setEncodingType($urlEncoding); } $qp->parseInto($q, $query, $urlEncoding); return $q; } /** * Convert the query string parameters to a query string string * * @return string */ public function __toString() { if (!$this->data) { return ''; } // The default aggregator is statically cached static $defaultAggregator; if (!$this->aggregator) { if (!$defaultAggregator) { $defaultAggregator = self::phpAggregator(); } $this->aggregator = $defaultAggregator; } $result = ''; $aggregator = $this->aggregator; $encoder = $this->encoding; foreach ($aggregator($this->data) as $key => $values) { foreach ($values as $value) { if ($result) { $result .= '&'; } $result .= $encoder($key); if ($value !== null) { $result .= '=' . $encoder($value); } } } return $result; } /** * Controls how multi-valued query string parameters are aggregated into a * string. * * $query->setAggregator($query::duplicateAggregator()); * * @param callable $aggregator Callable used to convert a deeply nested * array of query string variables into a flattened array of key value * pairs. The callable accepts an array of query data and returns a * flattened array of key value pairs where each value is an array of * strings. */ public function setAggregator(callable $aggregator) { $this->aggregator = $aggregator; } /** * Specify how values are URL encoded * * @param string|bool $type One of 'RFC1738', 'RFC3986', or false to disable encoding * * @throws \InvalidArgumentException */ public function setEncodingType($type) { switch ($type) { case self::RFC3986: $this->encoding = 'rawurlencode'; break; case self::RFC1738: $this->encoding = 'urlencode'; break; case \false: $this->encoding = function ($v) { return $v; }; break; default: throw new \InvalidArgumentException('Invalid URL encoding type'); } } /** * Query string aggregator that does not aggregate nested query string * values and allows duplicates in the resulting array. * * Example: http://test.com?q=1&q=2 * * @return callable */ public static function duplicateAggregator() { return function (array $data) { return self::walkQuery($data, '', function ($key, $prefix) { return \is_int($key) ? $prefix : "{$prefix}[{$key}]"; }); }; } /** * Aggregates nested query string variables using the same technique as * ``http_build_query()``. * * @param bool $numericIndices Pass false to not include numeric indices * when multi-values query string parameters are present. * * @return callable */ public static function phpAggregator($numericIndices = \true) { return function (array $data) use($numericIndices) { return self::walkQuery($data, '', function ($key, $prefix) use($numericIndices) { return !$numericIndices && \is_int($key) ? "{$prefix}[]" : "{$prefix}[{$key}]"; }); }; } /** * Easily create query aggregation functions by providing a key prefix * function to this query string array walker. * * @param array $query Query string to walk * @param string $keyPrefix Key prefix (start with '') * @param callable $prefixer Function used to create a key prefix * * @return array */ public static function walkQuery(array $query, $keyPrefix, callable $prefixer) { $result = []; foreach ($query as $key => $value) { if ($keyPrefix) { $key = $prefixer($key, $keyPrefix); } if (\is_array($value)) { $result += self::walkQuery($value, $key, $prefixer); } elseif (isset($result[$key])) { $result[$key][] = $value; } else { $result[$key] = array($value); } } return $result; } } guzzlehttp/guzzle/src/Subscriber/Mock.php000064400000011127150544704730014613 0ustar00factory = new \Google\Site_Kit_Dependencies\GuzzleHttp\Message\MessageFactory(); $this->readBodies = $readBodies; $this->addMultiple($items); } public function getEvents() { // Fire the event last, after signing return ['before' => ['onBefore', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::SIGN_REQUEST - 10]]; } /** * @throws \OutOfBoundsException|\Exception */ public function onBefore(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\BeforeEvent $event) { if (!($item = \array_shift($this->queue))) { throw new \OutOfBoundsException('Mock queue is empty'); } elseif ($item instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException) { throw $item; } // Emulate reading a response body $request = $event->getRequest(); if ($this->readBodies && $request->getBody()) { while (!$request->getBody()->eof()) { $request->getBody()->read(8096); } } $saveTo = $event->getRequest()->getConfig()->get('save_to'); if (null !== $saveTo) { $body = $item->getBody(); if (\is_resource($saveTo)) { \fwrite($saveTo, $body); } elseif (\is_string($saveTo)) { \file_put_contents($saveTo, $body); } elseif ($saveTo instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface) { $saveTo->write($body); } } $event->intercept($item); } public function count() { return \count($this->queue); } /** * Add a response to the end of the queue * * @param string|ResponseInterface $response Response or path to response file * * @return self * @throws \InvalidArgumentException if a string or Response is not passed */ public function addResponse($response) { if (\is_string($response)) { $response = \file_exists($response) ? $this->factory->fromMessage(\file_get_contents($response)) : $this->factory->fromMessage($response); } elseif (!$response instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface) { throw new \InvalidArgumentException('Response must a message ' . 'string, response object, or path to a file'); } $this->queue[] = $response; return $this; } /** * Add an exception to the end of the queue * * @param RequestException $e Exception to throw when the request is executed * * @return self */ public function addException(\Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException $e) { $this->queue[] = $e; return $this; } /** * Add multiple items to the queue * * @param array $items Items to add */ public function addMultiple(array $items) { foreach ($items as $item) { if ($item instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException) { $this->addException($item); } else { $this->addResponse($item); } } } /** * Clear the queue */ public function clearQueue() { $this->queue = []; } } guzzlehttp/guzzle/src/Subscriber/Cookie.php000064400000003447150544704730015141 0ustar00cookieJar = $cookieJar ?: new \Google\Site_Kit_Dependencies\GuzzleHttp\Cookie\CookieJar(); } public function getEvents() { // Fire the cookie plugin complete event before redirecting return ['before' => ['onBefore'], 'complete' => ['onComplete', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::REDIRECT_RESPONSE + 10]]; } /** * Get the cookie cookieJar * * @return CookieJarInterface */ public function getCookieJar() { return $this->cookieJar; } public function onBefore(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\BeforeEvent $event) { $this->cookieJar->addCookieHeader($event->getRequest()); } public function onComplete(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\CompleteEvent $event) { $this->cookieJar->extractCookies($event->getRequest(), $event->getResponse()); } } guzzlehttp/guzzle/src/Subscriber/HttpError.php000064400000002350150544704730015651 0ustar00 ['onComplete', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::VERIFY_RESPONSE]]; } /** * Throw a RequestException on an HTTP protocol error * * @param CompleteEvent $event Emitted event * @throws RequestException */ public function onComplete(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\CompleteEvent $event) { $code = (string) $event->getResponse()->getStatusCode(); // Throw an exception for an unsuccessful response if ($code[0] >= 4) { throw \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException::create($event->getRequest(), $event->getResponse()); } } } guzzlehttp/guzzle/src/Subscriber/History.php000064400000012646150544704730015372 0ustar00limit = $limit; } public function getEvents() { return ['complete' => ['onComplete', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::EARLY], 'error' => ['onError', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::EARLY]]; } /** * Convert to a string that contains all request and response headers * * @return string */ public function __toString() { $lines = array(); foreach ($this->transactions as $entry) { $response = isset($entry['response']) ? $entry['response'] : ''; $lines[] = '> ' . \trim($entry['sent_request']) . "\n\n< " . \trim($response) . "\n"; } return \implode("\n", $lines); } public function onComplete(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\CompleteEvent $event) { $this->add($event->getRequest(), $event->getResponse()); } public function onError(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\ErrorEvent $event) { // Only track when no response is present, meaning this didn't ever // emit a complete event if (!$event->getResponse()) { $this->add($event->getRequest()); } } /** * Returns an Iterator that yields associative array values where each * associative array contains the following key value pairs: * * - request: Representing the actual request that was received. * - sent_request: A clone of the request that will not be mutated. * - response: The response that was received (if available). * * @return \Iterator */ public function getIterator() { return new \ArrayIterator($this->transactions); } /** * Get all of the requests sent through the plugin. * * Requests can be modified after they are logged by the history * subscriber. By default this method will return the actual request * instances that were received. Pass true to this method if you wish to * get copies of the requests that represent the request state when it was * initially logged by the history subscriber. * * @param bool $asSent Set to true to get clones of the requests that have * not been mutated since the request was received by * the history subscriber. * * @return RequestInterface[] */ public function getRequests($asSent = \false) { return \array_map(function ($t) use($asSent) { return $asSent ? $t['sent_request'] : $t['request']; }, $this->transactions); } /** * Get the number of requests in the history * * @return int */ public function count() { return \count($this->transactions); } /** * Get the last request sent. * * Requests can be modified after they are logged by the history * subscriber. By default this method will return the actual request * instance that was received. Pass true to this method if you wish to get * a copy of the request that represents the request state when it was * initially logged by the history subscriber. * * @param bool $asSent Set to true to get a clone of the last request that * has not been mutated since the request was received * by the history subscriber. * * @return RequestInterface */ public function getLastRequest($asSent = \false) { return $asSent ? \end($this->transactions)['sent_request'] : \end($this->transactions)['request']; } /** * Get the last response in the history * * @return ResponseInterface|null */ public function getLastResponse() { return \end($this->transactions)['response']; } /** * Clears the history */ public function clear() { $this->transactions = array(); } /** * Add a request to the history * * @param RequestInterface $request Request to add * @param ResponseInterface $response Response of the request */ private function add(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, \Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface $response = null) { $this->transactions[] = ['request' => $request, 'sent_request' => clone $request, 'response' => $response]; if (\count($this->transactions) > $this->limit) { \array_shift($this->transactions); } } } guzzlehttp/guzzle/src/Subscriber/Prepare.php000064400000011735150544704730015325 0ustar00 ['onBefore', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::PREPARE_REQUEST]]; } public function onBefore(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\BeforeEvent $event) { $request = $event->getRequest(); // Set the appropriate Content-Type for a request if one is not set and // there are form fields if (!($body = $request->getBody())) { return; } $this->addContentLength($request, $body); if ($body instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Message\AppliesHeadersInterface) { // Synchronize the body with the request headers $body->applyRequestHeaders($request); } elseif (!$request->hasHeader('Content-Type')) { $this->addContentType($request, $body); } $this->addExpectHeader($request, $body); } private function addContentType(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $body) { if (!($uri = $body->getMetadata('uri'))) { return; } // Guess the content-type based on the stream's "uri" metadata value. // The file extension is used to determine the appropriate mime-type. if ($contentType = \Google\Site_Kit_Dependencies\GuzzleHttp\Mimetypes::getInstance()->fromFilename($uri)) { $request->setHeader('Content-Type', $contentType); } } private function addContentLength(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $body) { // Set the Content-Length header if it can be determined, and never // send a Transfer-Encoding: chunked and Content-Length header in // the same request. if ($request->hasHeader('Content-Length')) { // Remove transfer-encoding if content-length is set. $request->removeHeader('Transfer-Encoding'); return; } if ($request->hasHeader('Transfer-Encoding')) { return; } if (null !== ($size = $body->getSize())) { $request->setHeader('Content-Length', $size); $request->removeHeader('Transfer-Encoding'); } elseif ('1.1' == $request->getProtocolVersion()) { // Use chunked Transfer-Encoding if there is no determinable // content-length header and we're using HTTP/1.1. $request->setHeader('Transfer-Encoding', 'chunked'); $request->removeHeader('Content-Length'); } } private function addExpectHeader(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $body) { // Determine if the Expect header should be used if ($request->hasHeader('Expect')) { return; } $expect = $request->getConfig()['expect']; // Return if disabled or if you're not using HTTP/1.1 if ($expect === \false || $request->getProtocolVersion() !== '1.1') { return; } // The expect header is unconditionally enabled if ($expect === \true) { $request->setHeader('Expect', '100-Continue'); return; } // By default, send the expect header when the payload is > 1mb if ($expect === null) { $expect = 1048576; } // Always add if the body cannot be rewound, the size cannot be // determined, or the size is greater than the cutoff threshold $size = $body->getSize(); if ($size === null || $size >= (int) $expect || !$body->isSeekable()) { $request->setHeader('Expect', '100-Continue'); } } } guzzlehttp/guzzle/src/Subscriber/Redirect.php000064400000015212150544704730015462 0ustar00 ['onComplete', \Google\Site_Kit_Dependencies\GuzzleHttp\Event\RequestEvents::REDIRECT_RESPONSE]]; } /** * Rewind the entity body of the request if needed * * @param RequestInterface $redirectRequest * @throws CouldNotRewindStreamException */ public static function rewindEntityBody(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $redirectRequest) { // Rewind the entity body of the request if needed if ($body = $redirectRequest->getBody()) { // Only rewind the body if some of it has been read already, and // throw an exception if the rewind fails if ($body->tell() && !$body->seek(0)) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\CouldNotRewindStreamException('Unable to rewind the non-seekable request body after redirecting', $redirectRequest); } } } /** * Called when a request receives a redirect response * * @param CompleteEvent $event Event emitted * @throws TooManyRedirectsException */ public function onComplete(\Google\Site_Kit_Dependencies\GuzzleHttp\Event\CompleteEvent $event) { $response = $event->getResponse(); if (\substr($response->getStatusCode(), 0, 1) != '3' || !$response->hasHeader('Location')) { return; } $request = $event->getRequest(); $config = $request->getConfig(); // Increment the redirect and initialize the redirect state. if ($redirectCount = $config['redirect_count']) { $config['redirect_count'] = ++$redirectCount; } else { $config['redirect_scheme'] = $request->getScheme(); $config['redirect_count'] = $redirectCount = 1; } $max = $config->getPath('redirect/max') ?: 5; if ($redirectCount > $max) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\TooManyRedirectsException("Will not follow more than {$redirectCount} redirects", $request); } $this->modifyRedirectRequest($request, $response); $event->retry(); } private function modifyRedirectRequest(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, \Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface $response) { $config = $request->getConfig(); $protocols = $config->getPath('redirect/protocols') ?: ['http', 'https']; // Use a GET request if this is an entity enclosing request and we are // not forcing RFC compliance, but rather emulating what all browsers // would do. $statusCode = $response->getStatusCode(); if ($statusCode == 303 || $statusCode <= 302 && $request->getBody() && !$config->getPath('redirect/strict')) { $request->setMethod('GET'); $request->setBody(null); } $previousUrl = $request->getUrl(); $this->setRedirectUrl($request, $response, $protocols); $this->rewindEntityBody($request); // Add the Referer header if it is told to do so and only // add the header if we are not redirecting from https to http. if ($config->getPath('redirect/referer') && ($request->getScheme() == 'https' || $request->getScheme() == $config['redirect_scheme'])) { $url = \Google\Site_Kit_Dependencies\GuzzleHttp\Url::fromString($previousUrl); $url->setUsername(null); $url->setPassword(null); $request->setHeader('Referer', (string) $url); } else { $request->removeHeader('Referer'); } } /** * Set the appropriate URL on the request based on the location header * * @param RequestInterface $request * @param ResponseInterface $response * @param array $protocols */ private function setRedirectUrl(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request, \Google\Site_Kit_Dependencies\GuzzleHttp\Message\ResponseInterface $response, array $protocols) { $location = $response->getHeader('Location'); $location = \Google\Site_Kit_Dependencies\GuzzleHttp\Url::fromString($location); // Combine location with the original URL if it is not absolute. if (!$location->isAbsolute()) { $originalUrl = \Google\Site_Kit_Dependencies\GuzzleHttp\Url::fromString($request->getUrl()); // Remove query string parameters and just take what is present on // the redirect Location header $originalUrl->getQuery()->clear(); $location = $originalUrl->combine($location); } // Ensure that the redirect URL is allowed based on the protocols. if (!\in_array($location->getScheme(), $protocols)) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\BadResponseException(\sprintf('Redirect URL, %s, does not use one of the allowed redirect protocols: %s', $location, \implode(', ', $protocols)), $request, $response); } $request->setUrl($location); } } guzzlehttp/guzzle/src/RequestFsm.php000064400000013017150544704730013715 0ustar00mf = $messageFactory; $this->maxTransitions = $maxTransitions; $this->handler = $handler; } /** * Runs the state machine until a terminal state is entered or the * optionally supplied $finalState is entered. * * @param Transaction $trans Transaction being transitioned. * * @throws \Exception if a terminal state throws an exception. */ public function __invoke(\Google\Site_Kit_Dependencies\GuzzleHttp\Transaction $trans) { $trans->_transitionCount = 0; if (!$trans->state) { $trans->state = 'before'; } transition: if (++$trans->_transitionCount > $this->maxTransitions) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\StateException("Too many state transitions were " . "encountered ({$trans->_transitionCount}). This likely " . "means that a combination of event listeners are in an " . "infinite loop."); } switch ($trans->state) { case 'before': goto before; case 'complete': goto complete; case 'error': goto error; case 'retry': goto retry; case 'send': goto send; case 'end': goto end; default: throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\StateException("Invalid state: {$trans->state}"); } before: try { $trans->request->getEmitter()->emit('before', new \Google\Site_Kit_Dependencies\GuzzleHttp\Event\BeforeEvent($trans)); $trans->state = 'send'; if ((bool) $trans->response) { $trans->state = 'complete'; } } catch (\Exception $e) { $trans->state = 'error'; $trans->exception = $e; } goto transition; complete: try { if ($trans->response instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\FutureInterface) { // Futures will have their own end events emitted when // dereferenced. return; } $trans->state = 'end'; $trans->response->setEffectiveUrl($trans->request->getUrl()); $trans->request->getEmitter()->emit('complete', new \Google\Site_Kit_Dependencies\GuzzleHttp\Event\CompleteEvent($trans)); } catch (\Exception $e) { $trans->state = 'error'; $trans->exception = $e; } goto transition; error: try { // Convert non-request exception to a wrapped exception $trans->exception = \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException::wrapException($trans->request, $trans->exception); $trans->state = 'end'; $trans->request->getEmitter()->emit('error', new \Google\Site_Kit_Dependencies\GuzzleHttp\Event\ErrorEvent($trans)); // An intercepted request (not retried) transitions to complete if (!$trans->exception && $trans->state !== 'retry') { $trans->state = 'complete'; } } catch (\Exception $e) { $trans->state = 'end'; $trans->exception = $e; } goto transition; retry: $trans->retries++; $trans->response = null; $trans->exception = null; $trans->state = 'before'; goto transition; send: $fn = $this->handler; $trans->response = \Google\Site_Kit_Dependencies\GuzzleHttp\Message\FutureResponse::proxy($fn(\Google\Site_Kit_Dependencies\GuzzleHttp\RingBridge::prepareRingRequest($trans)), function ($value) use($trans) { \Google\Site_Kit_Dependencies\GuzzleHttp\RingBridge::completeRingResponse($trans, $value, $this->mf, $this); $this($trans); return $trans->response; }); return; end: $trans->request->getEmitter()->emit('end', new \Google\Site_Kit_Dependencies\GuzzleHttp\Event\EndEvent($trans)); // Throw exceptions in the terminal event if the exception // was not handled by an "end" event listener. if ($trans->exception) { if (!$trans->exception instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException) { $trans->exception = \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException::wrapException($trans->request, $trans->exception); } throw $trans->exception; } } } guzzlehttp/guzzle/src/Client.php000064400000031677150544704730013051 0ustar00 [ * 'http://www.foo.com/{version}/', * ['version' => '123'] * ], * 'defaults' => [ * 'timeout' => 10, * 'allow_redirects' => false, * 'proxy' => '192.168.16.1:10' * ] * ]); * * @param array $config Client configuration settings * - base_url: Base URL of the client that is merged into relative URLs. * Can be a string or an array that contains a URI template followed * by an associative array of expansion variables to inject into the * URI template. * - handler: callable RingPHP handler used to transfer requests * - message_factory: Factory used to create request and response object * - defaults: Default request options to apply to each request * - emitter: Event emitter used for request events * - fsm: (internal use only) The request finite state machine. A * function that accepts a transaction and optional final state. The * function is responsible for transitioning a request through its * lifecycle events. */ public function __construct(array $config = []) { $this->configureBaseUrl($config); $this->configureDefaults($config); if (isset($config['emitter'])) { $this->emitter = $config['emitter']; } $this->messageFactory = isset($config['message_factory']) ? $config['message_factory'] : new \Google\Site_Kit_Dependencies\GuzzleHttp\Message\MessageFactory(); if (isset($config['fsm'])) { $this->fsm = $config['fsm']; } else { if (isset($config['handler'])) { $handler = $config['handler']; } elseif (isset($config['adapter'])) { $handler = $config['adapter']; } else { $handler = \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::getDefaultHandler(); } $this->fsm = new \Google\Site_Kit_Dependencies\GuzzleHttp\RequestFsm($handler, $this->messageFactory); } } public function getDefaultOption($keyOrPath = null) { return $keyOrPath === null ? $this->defaults : \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::getPath($this->defaults, $keyOrPath); } public function setDefaultOption($keyOrPath, $value) { \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::setPath($this->defaults, $keyOrPath, $value); } public function getBaseUrl() { return (string) $this->baseUrl; } public function createRequest($method, $url = null, array $options = []) { $options = $this->mergeDefaults($options); // Use a clone of the client's emitter $options['config']['emitter'] = clone $this->getEmitter(); $url = $url || \is_string($url) && \strlen($url) ? $this->buildUrl($url) : (string) $this->baseUrl; return $this->messageFactory->createRequest($method, $url, $options); } public function get($url = null, $options = []) { return $this->send($this->createRequest('GET', $url, $options)); } public function head($url = null, array $options = []) { return $this->send($this->createRequest('HEAD', $url, $options)); } public function delete($url = null, array $options = []) { return $this->send($this->createRequest('DELETE', $url, $options)); } public function put($url = null, array $options = []) { return $this->send($this->createRequest('PUT', $url, $options)); } public function patch($url = null, array $options = []) { return $this->send($this->createRequest('PATCH', $url, $options)); } public function post($url = null, array $options = []) { return $this->send($this->createRequest('POST', $url, $options)); } public function options($url = null, array $options = []) { return $this->send($this->createRequest('OPTIONS', $url, $options)); } public function send(\Google\Site_Kit_Dependencies\GuzzleHttp\Message\RequestInterface $request) { $isFuture = $request->getConfig()->get('future'); $trans = new \Google\Site_Kit_Dependencies\GuzzleHttp\Transaction($this, $request, $isFuture); $fn = $this->fsm; try { $fn($trans); if ($isFuture) { // Turn the normal response into a future if needed. return $trans->response instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\FutureInterface ? $trans->response : new \Google\Site_Kit_Dependencies\GuzzleHttp\Message\FutureResponse(new \Google\Site_Kit_Dependencies\React\Promise\FulfilledPromise($trans->response)); } // Resolve deep futures if this is not a future // transaction. This accounts for things like retries // that do not have an immediate side-effect. while ($trans->response instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Future\FutureInterface) { $trans->response = $trans->response->wait(); } return $trans->response; } catch (\Exception $e) { if ($isFuture) { // Wrap the exception in a promise return new \Google\Site_Kit_Dependencies\GuzzleHttp\Message\FutureResponse(new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($e)); } throw \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException::wrapException($trans->request, $e); } catch (\TypeError $error) { $exception = new \Exception($error->getMessage(), $error->getCode(), $error); if ($isFuture) { // Wrap the exception in a promise return new \Google\Site_Kit_Dependencies\GuzzleHttp\Message\FutureResponse(new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($exception)); } throw \Google\Site_Kit_Dependencies\GuzzleHttp\Exception\RequestException::wrapException($trans->request, $exception); } } /** * Get an array of default options to apply to the client * * @return array */ protected function getDefaultOptions() { $settings = ['allow_redirects' => \true, 'exceptions' => \true, 'decode_content' => \true, 'verify' => \true]; // Use the standard Linux HTTP_PROXY and HTTPS_PROXY if set. // We can only trust the HTTP_PROXY environment variable in a CLI // process due to the fact that PHP has no reliable mechanism to // get environment variables that start with "HTTP_". if (\php_sapi_name() == 'cli' && \getenv('HTTP_PROXY')) { $settings['proxy']['http'] = \getenv('HTTP_PROXY'); } if ($proxy = \getenv('HTTPS_PROXY')) { $settings['proxy']['https'] = $proxy; } return $settings; } /** * Expand a URI template and inherit from the base URL if it's relative * * @param string|array $url URL or an array of the URI template to expand * followed by a hash of template varnames. * @return string * @throws \InvalidArgumentException */ private function buildUrl($url) { // URI template (absolute or relative) if (!\is_array($url)) { return \strpos($url, '://') ? (string) $url : (string) $this->baseUrl->combine($url); } if (!isset($url[1])) { throw new \InvalidArgumentException('You must provide a hash of ' . 'varname options in the second element of a URL array.'); } // Absolute URL if (\strpos($url[0], '://')) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::uriTemplate($url[0], $url[1]); } // Combine the relative URL with the base URL return (string) $this->baseUrl->combine(\Google\Site_Kit_Dependencies\GuzzleHttp\Utils::uriTemplate($url[0], $url[1])); } private function configureBaseUrl(&$config) { if (!isset($config['base_url'])) { $this->baseUrl = new \Google\Site_Kit_Dependencies\GuzzleHttp\Url('', ''); } elseif (!\is_array($config['base_url'])) { $this->baseUrl = \Google\Site_Kit_Dependencies\GuzzleHttp\Url::fromString($config['base_url']); } elseif (\count($config['base_url']) < 2) { throw new \InvalidArgumentException('You must provide a hash of ' . 'varname options in the second element of a base_url array.'); } else { $this->baseUrl = \Google\Site_Kit_Dependencies\GuzzleHttp\Url::fromString(\Google\Site_Kit_Dependencies\GuzzleHttp\Utils::uriTemplate($config['base_url'][0], $config['base_url'][1])); $config['base_url'] = (string) $this->baseUrl; } } private function configureDefaults($config) { if (!isset($config['defaults'])) { $this->defaults = $this->getDefaultOptions(); } else { $this->defaults = \array_replace($this->getDefaultOptions(), $config['defaults']); } // Add the default user-agent header if (!isset($this->defaults['headers'])) { $this->defaults['headers'] = ['User-Agent' => \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::getDefaultUserAgent()]; } elseif (!\Google\Site_Kit_Dependencies\GuzzleHttp\Ring\Core::hasHeader($this->defaults, 'User-Agent')) { // Add the User-Agent header if one was not already set $this->defaults['headers']['User-Agent'] = \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::getDefaultUserAgent(); } } /** * Merges default options into the array passed by reference. * * @param array $options Options to modify by reference * * @return array */ private function mergeDefaults($options) { $defaults = $this->defaults; // Case-insensitively merge in default headers if both defaults and // options have headers specified. if (!empty($defaults['headers']) && !empty($options['headers'])) { // Create a set of lowercased keys that are present. $lkeys = []; foreach (\array_keys($options['headers']) as $k) { $lkeys[\strtolower($k)] = \true; } // Merge in lowercase default keys when not present in above set. foreach ($defaults['headers'] as $key => $value) { if (!isset($lkeys[\strtolower($key)])) { $options['headers'][$key] = $value; } } // No longer need to merge in headers. unset($defaults['headers']); } $result = \array_replace_recursive($defaults, $options); foreach ($options as $k => $v) { if ($v === null) { unset($result[$k]); } } return $result; } /** * @deprecated Use {@see GuzzleHttp\Pool} instead. * @see GuzzleHttp\Pool */ public function sendAll($requests, array $options = []) { \Google\Site_Kit_Dependencies\GuzzleHttp\Pool::send($this, $requests, $options); } /** * @deprecated Use GuzzleHttp\Utils::getDefaultHandler */ public static function getDefaultHandler() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::getDefaultHandler(); } /** * @deprecated Use GuzzleHttp\Utils::getDefaultUserAgent */ public static function getDefaultUserAgent() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Utils::getDefaultUserAgent(); } } guzzlehttp/streams/src/CachingStream.php000064400000007605150544704730014473 0ustar00remoteStream = $stream; $this->stream = $target ?: new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream(\fopen('php://temp', 'r+')); } public function getSize() { return \max($this->stream->getSize(), $this->remoteStream->getSize()); } /** * {@inheritdoc} * @throws SeekException When seeking with SEEK_END or when seeking * past the total size of the buffer stream */ public function seek($offset, $whence = \SEEK_SET) { if ($whence == \SEEK_SET) { $byte = $offset; } elseif ($whence == \SEEK_CUR) { $byte = $offset + $this->tell(); } else { return \false; } // You cannot skip ahead past where you've read from the remote stream if ($byte > $this->stream->getSize()) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Exception\SeekException($this, $byte, \sprintf('Cannot seek to byte %d when the buffered stream only' . ' contains %d bytes', $byte, $this->stream->getSize())); } return $this->stream->seek($byte); } public function read($length) { // Perform a regular read on any previously read data from the buffer $data = $this->stream->read($length); $remaining = $length - \strlen($data); // More data was requested so read from the remote stream if ($remaining) { // If data was written to the buffer in a position that would have // been filled from the remote stream, then we must skip bytes on // the remote stream to emulate overwriting bytes from that // position. This mimics the behavior of other PHP stream wrappers. $remoteData = $this->remoteStream->read($remaining + $this->skipReadBytes); if ($this->skipReadBytes) { $len = \strlen($remoteData); $remoteData = \substr($remoteData, $this->skipReadBytes); $this->skipReadBytes = \max(0, $this->skipReadBytes - $len); } $data .= $remoteData; $this->stream->write($remoteData); } return $data; } public function write($string) { // When appending to the end of the currently read stream, you'll want // to skip bytes from being read from the remote stream to emulate // other stream wrappers. Basically replacing bytes of data of a fixed // length. $overflow = \strlen($string) + $this->tell() - $this->remoteStream->tell(); if ($overflow > 0) { $this->skipReadBytes += $overflow; } return $this->stream->write($string); } public function eof() { return $this->stream->eof() && $this->remoteStream->eof(); } /** * Close both the remote stream and buffer stream */ public function close() { $this->remoteStream->close() && $this->stream->close(); } } guzzlehttp/streams/src/Stream.php000064400000015566150544704730013223 0ustar00 ['r' => \true, 'w+' => \true, 'r+' => \true, 'x+' => \true, 'c+' => \true, 'rb' => \true, 'w+b' => \true, 'r+b' => \true, 'x+b' => \true, 'c+b' => \true, 'rt' => \true, 'w+t' => \true, 'r+t' => \true, 'x+t' => \true, 'c+t' => \true, 'a+' => \true], 'write' => ['w' => \true, 'w+' => \true, 'rw' => \true, 'r+' => \true, 'x+' => \true, 'c+' => \true, 'wb' => \true, 'w+b' => \true, 'r+b' => \true, 'x+b' => \true, 'c+b' => \true, 'w+t' => \true, 'r+t' => \true, 'x+t' => \true, 'c+t' => \true, 'a' => \true, 'a+' => \true]]; /** * Create a new stream based on the input type. * * This factory accepts the same associative array of options as described * in the constructor. * * @param resource|string|StreamInterface $resource Entity body data * @param array $options Additional options * * @return Stream * @throws \InvalidArgumentException if the $resource arg is not valid. */ public static function factory($resource = '', array $options = []) { $type = \gettype($resource); if ($type == 'string') { $stream = \fopen('php://temp', 'r+'); if ($resource !== '') { \fwrite($stream, $resource); \fseek($stream, 0); } return new self($stream, $options); } if ($type == 'resource') { return new self($resource, $options); } if ($resource instanceof \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface) { return $resource; } if ($type == 'object' && \method_exists($resource, '__toString')) { return self::factory((string) $resource, $options); } if (\is_callable($resource)) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\PumpStream($resource, $options); } if ($resource instanceof \Iterator) { return new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\PumpStream(function () use($resource) { if (!$resource->valid()) { return \false; } $result = $resource->current(); $resource->next(); return $result; }, $options); } throw new \InvalidArgumentException('Invalid resource type: ' . $type); } /** * This constructor accepts an associative array of options. * * - size: (int) If a read stream would otherwise have an indeterminate * size, but the size is known due to foreknownledge, then you can * provide that size, in bytes. * - metadata: (array) Any additional metadata to return when the metadata * of the stream is accessed. * * @param resource $stream Stream resource to wrap. * @param array $options Associative array of options. * * @throws \InvalidArgumentException if the stream is not a stream resource */ public function __construct($stream, $options = []) { if (!\is_resource($stream)) { throw new \InvalidArgumentException('Stream must be a resource'); } if (isset($options['size'])) { $this->size = $options['size']; } $this->customMetadata = isset($options['metadata']) ? $options['metadata'] : []; $this->attach($stream); } /** * Closes the stream when the destructed */ public function __destruct() { $this->close(); } public function __toString() { if (!$this->stream) { return ''; } $this->seek(0); return (string) \stream_get_contents($this->stream); } public function getContents() { return $this->stream ? \stream_get_contents($this->stream) : ''; } public function close() { if (\is_resource($this->stream)) { \fclose($this->stream); } $this->detach(); } public function detach() { $result = $this->stream; $this->stream = $this->size = $this->uri = null; $this->readable = $this->writable = $this->seekable = \false; return $result; } public function attach($stream) { $this->stream = $stream; $meta = \stream_get_meta_data($this->stream); $this->seekable = $meta['seekable']; $this->readable = isset(self::$readWriteHash['read'][$meta['mode']]); $this->writable = isset(self::$readWriteHash['write'][$meta['mode']]); $this->uri = $this->getMetadata('uri'); } public function getSize() { if ($this->size !== null) { return $this->size; } if (!$this->stream) { return null; } // Clear the stat cache if the stream has a URI if ($this->uri) { \clearstatcache(\true, $this->uri); } $stats = \fstat($this->stream); if (isset($stats['size'])) { $this->size = $stats['size']; return $this->size; } return null; } public function isReadable() { return $this->readable; } public function isWritable() { return $this->writable; } public function isSeekable() { return $this->seekable; } public function eof() { return !$this->stream || \feof($this->stream); } public function tell() { return $this->stream ? \ftell($this->stream) : \false; } public function setSize($size) { $this->size = $size; return $this; } public function seek($offset, $whence = \SEEK_SET) { return $this->seekable ? \fseek($this->stream, $offset, $whence) === 0 : \false; } public function read($length) { return $this->readable ? \fread($this->stream, $length) : \false; } public function write($string) { // We can't know the size after writing anything $this->size = null; return $this->writable ? \fwrite($this->stream, $string) : \false; } public function getMetadata($key = null) { if (!$this->stream) { return $key ? null : []; } elseif (!$key) { return $this->customMetadata + \stream_get_meta_data($this->stream); } elseif (isset($this->customMetadata[$key])) { return $this->customMetadata[$key]; } $meta = \stream_get_meta_data($this->stream); return isset($meta[$key]) ? $meta[$key] : null; } } guzzlehttp/streams/src/BufferStream.php000064400000006064150544704730014346 0ustar00hwm = $hwm; } public function __toString() { return $this->getContents(); } public function getContents() { $buffer = $this->buffer; $this->buffer = ''; return $buffer; } public function close() { $this->buffer = ''; } public function detach() { $this->close(); } public function attach($stream) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Exception\CannotAttachException(); } public function getSize() { return \strlen($this->buffer); } public function isReadable() { return \true; } public function isWritable() { return \true; } public function isSeekable() { return \false; } public function seek($offset, $whence = \SEEK_SET) { return \false; } public function eof() { return \strlen($this->buffer) === 0; } public function tell() { return \false; } /** * Reads data from the buffer. */ public function read($length) { $currentLength = \strlen($this->buffer); if ($length >= $currentLength) { // No need to slice the buffer because we don't have enough data. $result = $this->buffer; $this->buffer = ''; } else { // Slice up the result to provide a subset of the buffer. $result = \substr($this->buffer, 0, $length); $this->buffer = \substr($this->buffer, $length); } return $result; } /** * Writes data to the buffer. */ public function write($string) { $this->buffer .= $string; if (\strlen($this->buffer) >= $this->hwm) { return \false; } return \strlen($string); } public function getMetadata($key = null) { if ($key == 'hwm') { return $this->hwm; } return $key ? null : []; } } guzzlehttp/streams/src/LazyOpenStream.php000064400000001774150544704730014701 0ustar00filename = $filename; $this->mode = $mode; } /** * Creates the underlying stream lazily when required. * * @return StreamInterface */ protected function createStream() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Utils::open($this->filename, $this->mode)); } } guzzlehttp/streams/src/GuzzleStreamWrapper.php000064400000004757150544704730015765 0ustar00isReadable()) { $mode = $stream->isWritable() ? 'r+' : 'r'; } elseif ($stream->isWritable()) { $mode = 'w'; } else { throw new \InvalidArgumentException('The stream must be readable, ' . 'writable, or both.'); } return \fopen('guzzle://stream', $mode, null, \stream_context_create(['guzzle' => ['stream' => $stream]])); } /** * Registers the stream wrapper if needed */ public static function register() { if (!\in_array('guzzle', \stream_get_wrappers())) { \stream_wrapper_register('guzzle', __CLASS__); } } public function stream_open($path, $mode, $options, &$opened_path) { $options = \stream_context_get_options($this->context); if (!isset($options['guzzle']['stream'])) { return \false; } $this->mode = $mode; $this->stream = $options['guzzle']['stream']; return \true; } public function stream_read($count) { return $this->stream->read($count); } public function stream_write($data) { return (int) $this->stream->write($data); } public function stream_tell() { return $this->stream->tell(); } public function stream_eof() { return $this->stream->eof(); } public function stream_seek($offset, $whence) { return $this->stream->seek($offset, $whence); } public function stream_stat() { static $modeMap = ['r' => 33060, 'r+' => 33206, 'w' => 33188]; return ['dev' => 0, 'ino' => 0, 'mode' => $modeMap[$this->mode], 'nlink' => 0, 'uid' => 0, 'gid' => 0, 'rdev' => 0, 'size' => $this->stream->getSize() ?: 0, 'atime' => 0, 'mtime' => 0, 'ctime' => 0, 'blksize' => 0, 'blocks' => 0]; } } guzzlehttp/streams/src/Utils.php000064400000013266150544704730013063 0ustar00eof()) { $buf = $stream->read(1048576); if ($buf === \false) { break; } $buffer .= $buf; } return $buffer; } $len = 0; while (!$stream->eof() && $len < $maxLen) { $buf = $stream->read($maxLen - $len); if ($buf === \false) { break; } $buffer .= $buf; $len = \strlen($buffer); } return $buffer; } /** * Copy the contents of a stream into another stream until the given number * of bytes have been read. * * @param StreamInterface $source Stream to read from * @param StreamInterface $dest Stream to write to * @param int $maxLen Maximum number of bytes to read. Pass -1 * to read the entire stream. */ public static function copyToStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $source, \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $dest, $maxLen = -1) { if ($maxLen === -1) { while (!$source->eof()) { if (!$dest->write($source->read(1048576))) { break; } } return; } $bytes = 0; while (!$source->eof()) { $buf = $source->read($maxLen - $bytes); if (!($len = \strlen($buf))) { break; } $bytes += $len; $dest->write($buf); if ($bytes == $maxLen) { break; } } } /** * Calculate a hash of a Stream * * @param StreamInterface $stream Stream to calculate the hash for * @param string $algo Hash algorithm (e.g. md5, crc32, etc) * @param bool $rawOutput Whether or not to use raw output * * @return string Returns the hash of the stream * @throws SeekException */ public static function hash(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $stream, $algo, $rawOutput = \false) { $pos = $stream->tell(); if ($pos > 0 && !$stream->seek(0)) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Exception\SeekException($stream); } $ctx = \hash_init($algo); while (!$stream->eof()) { \hash_update($ctx, $stream->read(1048576)); } $out = \hash_final($ctx, (bool) $rawOutput); $stream->seek($pos); return $out; } /** * Read a line from the stream up to the maximum allowed buffer length * * @param StreamInterface $stream Stream to read from * @param int $maxLength Maximum buffer length * * @return string|bool */ public static function readline(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $stream, $maxLength = null) { $buffer = ''; $size = 0; while (!$stream->eof()) { if (\false === ($byte = $stream->read(1))) { return $buffer; } $buffer .= $byte; // Break when a new line is found or the max length - 1 is reached if ($byte == \PHP_EOL || ++$size == $maxLength - 1) { break; } } return $buffer; } /** * Alias of GuzzleHttp\Stream\Stream::factory. * * @param mixed $resource Resource to create * @param array $options Associative array of stream options defined in * {@see \GuzzleHttp\Stream\Stream::__construct} * * @return StreamInterface * * @see GuzzleHttp\Stream\Stream::factory * @see GuzzleHttp\Stream\Stream::__construct */ public static function create($resource, array $options = []) { return \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream::factory($resource, $options); } } guzzlehttp/streams/src/AppendStream.php000064400000012012150544704730014332 0ustar00addStream($stream); } } public function __toString() { try { $this->seek(0); return $this->getContents(); } catch (\Exception $e) { return ''; } } /** * Add a stream to the AppendStream * * @param StreamInterface $stream Stream to append. Must be readable. * * @throws \InvalidArgumentException if the stream is not readable */ public function addStream(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $stream) { if (!$stream->isReadable()) { throw new \InvalidArgumentException('Each stream must be readable'); } // The stream is only seekable if all streams are seekable if (!$stream->isSeekable()) { $this->seekable = \false; } $this->streams[] = $stream; } public function getContents() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Utils::copyToString($this); } /** * Closes each attached stream. * * {@inheritdoc} */ public function close() { $this->pos = $this->current = 0; foreach ($this->streams as $stream) { $stream->close(); } $this->streams = []; } /** * Detaches each attached stream * * {@inheritdoc} */ public function detach() { $this->close(); $this->detached = \true; } public function attach($stream) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Exception\CannotAttachException(); } public function tell() { return $this->pos; } /** * Tries to calculate the size by adding the size of each stream. * * If any of the streams do not return a valid number, then the size of the * append stream cannot be determined and null is returned. * * {@inheritdoc} */ public function getSize() { $size = 0; foreach ($this->streams as $stream) { $s = $stream->getSize(); if ($s === null) { return null; } $size += $s; } return $size; } public function eof() { return !$this->streams || $this->current >= \count($this->streams) - 1 && $this->streams[$this->current]->eof(); } /** * Attempts to seek to the given position. Only supports SEEK_SET. * * {@inheritdoc} */ public function seek($offset, $whence = \SEEK_SET) { if (!$this->seekable || $whence !== \SEEK_SET) { return \false; } $success = \true; $this->pos = $this->current = 0; // Rewind each stream foreach ($this->streams as $stream) { if (!$stream->seek(0)) { $success = \false; } } if (!$success) { return \false; } // Seek to the actual position by reading from each stream while ($this->pos < $offset && !$this->eof()) { $this->read(\min(8096, $offset - $this->pos)); } return $this->pos == $offset; } /** * Reads from all of the appended streams until the length is met or EOF. * * {@inheritdoc} */ public function read($length) { $buffer = ''; $total = \count($this->streams) - 1; $remaining = $length; while ($remaining > 0) { // Progress to the next stream if needed. if ($this->streams[$this->current]->eof()) { if ($this->current == $total) { break; } $this->current++; } $buffer .= $this->streams[$this->current]->read($remaining); $remaining = $length - \strlen($buffer); } $this->pos += \strlen($buffer); return $buffer; } public function isReadable() { return \true; } public function isWritable() { return \false; } public function isSeekable() { return $this->seekable; } public function write($string) { return \false; } public function getMetadata($key = null) { return $key ? null : []; } } guzzlehttp/streams/src/StreamDecoratorTrait.php000064400000006470150544704730016064 0ustar00stream = $stream; } /** * Magic method used to create a new stream if streams are not added in * the constructor of a decorator (e.g., LazyOpenStream). */ public function __get($name) { if ($name == 'stream') { $this->stream = $this->createStream(); return $this->stream; } throw new \UnexpectedValueException("{$name} not found on class"); } public function __toString() { try { $this->seek(0); return $this->getContents(); } catch (\Exception $e) { // Really, PHP? https://bugs.php.net/bug.php?id=53648 \trigger_error('StreamDecorator::__toString exception: ' . (string) $e, \E_USER_ERROR); return ''; } } public function getContents() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Utils::copyToString($this); } /** * Allow decorators to implement custom methods * * @param string $method Missing method name * @param array $args Method arguments * * @return mixed */ public function __call($method, array $args) { $result = \call_user_func_array(array($this->stream, $method), $args); // Always return the wrapped object if the result is a return $this return $result === $this->stream ? $this : $result; } public function close() { $this->stream->close(); } public function getMetadata($key = null) { return $this->stream->getMetadata($key); } public function detach() { return $this->stream->detach(); } public function attach($stream) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Exception\CannotAttachException(); } public function getSize() { return $this->stream->getSize(); } public function eof() { return $this->stream->eof(); } public function tell() { return $this->stream->tell(); } public function isReadable() { return $this->stream->isReadable(); } public function isWritable() { return $this->stream->isWritable(); } public function isSeekable() { return $this->stream->isSeekable(); } public function seek($offset, $whence = \SEEK_SET) { return $this->stream->seek($offset, $whence); } public function read($length) { return $this->stream->read($length); } public function write($string) { return $this->stream->write($string); } /** * Implement in subclasses to dynamically create streams when requested. * * @return StreamInterface * @throws \BadMethodCallException */ protected function createStream() { throw new \BadMethodCallException('createStream() not implemented in ' . \get_class($this)); } } guzzlehttp/streams/src/InflateStream.php000064400000002275150544704730014517 0ustar00stream = new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Stream($resource); } } guzzlehttp/streams/src/NoSeekStream.php000064400000000775150544704730014324 0ustar00stream->attach($stream); } } guzzlehttp/streams/src/DroppingStream.php000064400000002246150544704730014715 0ustar00stream = $stream; $this->maxLength = $maxLength; } public function write($string) { $diff = $this->maxLength - $this->stream->getSize(); // Begin returning false when the underlying stream is too large. if ($diff <= 0) { return \false; } // Write the stream or a subset of the stream if needed. if (\strlen($string) < $diff) { return $this->stream->write($string); } $this->stream->write(\substr($string, 0, $diff)); return \false; } } guzzlehttp/streams/src/LimitStream.php000064400000010423150544704730014205 0ustar00stream = $stream; $this->setLimit($limit); $this->setOffset($offset); } public function eof() { // Always return true if the underlying stream is EOF if ($this->stream->eof()) { return \true; } // No limit and the underlying stream is not at EOF if ($this->limit == -1) { return \false; } $tell = $this->stream->tell(); if ($tell === \false) { return \false; } return $tell >= $this->offset + $this->limit; } /** * Returns the size of the limited subset of data * {@inheritdoc} */ public function getSize() { if (null === ($length = $this->stream->getSize())) { return null; } elseif ($this->limit == -1) { return $length - $this->offset; } else { return \min($this->limit, $length - $this->offset); } } /** * Allow for a bounded seek on the read limited stream * {@inheritdoc} */ public function seek($offset, $whence = \SEEK_SET) { if ($whence !== \SEEK_SET || $offset < 0) { return \false; } $offset += $this->offset; if ($this->limit !== -1) { if ($offset > $this->offset + $this->limit) { $offset = $this->offset + $this->limit; } } return $this->stream->seek($offset); } /** * Give a relative tell() * {@inheritdoc} */ public function tell() { return $this->stream->tell() - $this->offset; } /** * Set the offset to start limiting from * * @param int $offset Offset to seek to and begin byte limiting from * * @return self * @throws SeekException */ public function setOffset($offset) { $current = $this->stream->tell(); if ($current !== $offset) { // If the stream cannot seek to the offset position, then read to it if (!$this->stream->seek($offset)) { if ($current > $offset) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Exception\SeekException($this, $offset); } else { $this->stream->read($offset - $current); } } } $this->offset = $offset; return $this; } /** * Set the limit of bytes that the decorator allows to be read from the * stream. * * @param int $limit Number of bytes to allow to be read from the stream. * Use -1 for no limit. * @return self */ public function setLimit($limit) { $this->limit = $limit; return $this; } public function read($length) { if ($this->limit == -1) { return $this->stream->read($length); } // Check if the current position is less than the total allowed // bytes + original offset $remaining = $this->offset + $this->limit - $this->stream->tell(); if ($remaining > 0) { // Only return the amount of requested data, ensuring that the byte // limit is not exceeded return $this->stream->read(\min($remaining, $length)); } else { return \false; } } } guzzlehttp/streams/src/MetadataStreamInterface.php000064400000000552150544704730016472 0ustar00source = $source; $this->size = isset($options['size']) ? $options['size'] : null; $this->metadata = isset($options['metadata']) ? $options['metadata'] : []; $this->buffer = new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\BufferStream(); } public function __toString() { return \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Utils::copyToString($this); } public function close() { $this->detach(); } public function detach() { $this->tellPos = \false; $this->source = null; } public function attach($stream) { throw new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\Exception\CannotAttachException(); } public function getSize() { return $this->size; } public function tell() { return $this->tellPos; } public function eof() { return !$this->source; } public function isSeekable() { return \false; } public function seek($offset, $whence = \SEEK_SET) { return \false; } public function isWritable() { return \false; } public function write($string) { return \false; } public function isReadable() { return \true; } public function read($length) { $data = $this->buffer->read($length); $readLen = \strlen($data); $this->tellPos += $readLen; $remaining = $length - $readLen; if ($remaining) { $this->pump($remaining); $data .= $this->buffer->read($remaining); $this->tellPos += \strlen($data) - $readLen; } return $data; } public function getContents() { $result = ''; while (!$this->eof()) { $result .= $this->read(1000000); } return $result; } public function getMetadata($key = null) { if (!$key) { return $this->metadata; } return isset($this->metadata[$key]) ? $this->metadata[$key] : null; } private function pump($length) { if ($this->source) { do { $data = \call_user_func($this->source, $length); if ($data === \false || $data === null) { $this->source = null; return; } $this->buffer->write($data); $length -= \strlen($data); } while ($length > 0); } } } guzzlehttp/streams/src/AsyncReadStream.php000064400000017033150544704730015004 0ustar00isReadable() || !$buffer->isWritable()) { throw new \InvalidArgumentException('Buffer must be readable and writable'); } if (isset($config['size'])) { $this->size = $config['size']; } static $callables = ['pump', 'drain']; foreach ($callables as $check) { if (isset($config[$check])) { if (!\is_callable($config[$check])) { throw new \InvalidArgumentException($check . ' must be callable'); } $this->{$check} = $config[$check]; } } $this->hwm = $buffer->getMetadata('hwm'); // Cannot drain when there's no high water mark. if ($this->hwm === null) { $this->drain = null; } $this->stream = $buffer; } /** * Factory method used to create new async stream and an underlying buffer * if no buffer is provided. * * This function accepts the same options as AsyncReadStream::__construct, * but added the following key value pairs: * * - buffer: (StreamInterface) Buffer used to buffer data. If none is * provided, a default buffer is created. * - hwm: (int) High water mark to use if a buffer is created on your * behalf. * - max_buffer: (int) If provided, wraps the utilized buffer in a * DroppingStream decorator to ensure that buffer does not exceed a given * length. When exceeded, the stream will begin dropping data. Set the * max_buffer to 0, to use a NullStream which does not store data. * - write: (callable) A function that is invoked when data is written * to the underlying buffer. The function accepts the buffer as the first * argument, and the data being written as the second. The function MUST * return the number of bytes that were written or false to let writers * know to slow down. * - drain: (callable) See constructor documentation. * - pump: (callable) See constructor documentation. * * @param array $options Associative array of options. * * @return array Returns an array containing the buffer used to buffer * data, followed by the ready to use AsyncReadStream object. */ public static function create(array $options = []) { $maxBuffer = isset($options['max_buffer']) ? $options['max_buffer'] : null; if ($maxBuffer === 0) { $buffer = new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\NullStream(); } elseif (isset($options['buffer'])) { $buffer = $options['buffer']; } else { $hwm = isset($options['hwm']) ? $options['hwm'] : 16384; $buffer = new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\BufferStream($hwm); } if ($maxBuffer > 0) { $buffer = new \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\DroppingStream($buffer, $options['max_buffer']); } // Call the on_write callback if an on_write function was provided. if (isset($options['write'])) { $onWrite = $options['write']; $buffer = \Google\Site_Kit_Dependencies\GuzzleHttp\Stream\FnStream::decorate($buffer, ['write' => function ($string) use($buffer, $onWrite) { $result = $buffer->write($string); $onWrite($buffer, $string); return $result; }]); } return [$buffer, new self($buffer, $options)]; } public function getSize() { return $this->size; } public function isWritable() { return \false; } public function write($string) { return \false; } public function read($length) { if (!$this->needsDrain && $this->drain) { $this->needsDrain = $this->stream->getSize() >= $this->hwm; } $result = $this->stream->read($length); // If we need to drain, then drain when the buffer is empty. if ($this->needsDrain && $this->stream->getSize() === 0) { $this->needsDrain = \false; $drainFn = $this->drain; $drainFn($this->stream); } $resultLen = \strlen($result); // If a pump was provided, the buffer is still open, and not enough // data was given, then block until the data is provided. if ($this->pump && $resultLen < $length) { $pumpFn = $this->pump; $result .= $pumpFn($length - $resultLen); } return $result; } } guzzlehttp/streams/src/Exception/SeekException.php000064400000001241150544704730016455 0ustar00stream = $stream; $msg = $msg ?: 'Could not seek the stream to position ' . $pos; parent::__construct($msg); } /** * @return StreamInterface */ public function getStream() { return $this->stream; } } guzzlehttp/streams/src/Exception/CannotAttachException.php000064400000000206150544704730020135 0ustar00methods = $methods; // Create the functions on the class foreach ($methods as $name => $fn) { $this->{'_fn_' . $name} = $fn; } } /** * Lazily determine which methods are not implemented. * @throws \BadMethodCallException */ public function __get($name) { throw new \BadMethodCallException(\str_replace('_fn_', '', $name) . '() is not implemented in the FnStream'); } /** * The close method is called on the underlying stream only if possible. */ public function __destruct() { if (isset($this->_fn_close)) { \call_user_func($this->_fn_close); } } /** * Adds custom functionality to an underlying stream by intercepting * specific method calls. * * @param StreamInterface $stream Stream to decorate * @param array $methods Hash of method name to a closure * * @return FnStream */ public static function decorate(\Google\Site_Kit_Dependencies\GuzzleHttp\Stream\StreamInterface $stream, array $methods) { // If any of the required methods were not provided, then simply // proxy to the decorated stream. foreach (\array_diff(self::$slots, \array_keys($methods)) as $diff) { $methods[$diff] = [$stream, $diff]; } return new self($methods); } public function __toString() { return \call_user_func($this->_fn___toString); } public function close() { return \call_user_func($this->_fn_close); } public function detach() { return \call_user_func($this->_fn_detach); } public function attach($stream) { return \call_user_func($this->_fn_attach, $stream); } public function getSize() { return \call_user_func($this->_fn_getSize); } public function tell() { return \call_user_func($this->_fn_tell); } public function eof() { return \call_user_func($this->_fn_eof); } public function isSeekable() { return \call_user_func($this->_fn_isSeekable); } public function seek($offset, $whence = \SEEK_SET) { return \call_user_func($this->_fn_seek, $offset, $whence); } public function isWritable() { return \call_user_func($this->_fn_isWritable); } public function write($string) { return \call_user_func($this->_fn_write, $string); } public function isReadable() { return \call_user_func($this->_fn_isReadable); } public function read($length) { return \call_user_func($this->_fn_read, $length); } public function getContents() { return \call_user_func($this->_fn_getContents); } public function getMetadata($key = null) { return \call_user_func($this->_fn_getMetadata, $key); } } guzzlehttp/streams/src/NullStream.php000064400000002522150544704730014042 0ustar00`_, and is (currently) compatible with the WIP PSR-7. Installation ============ This package can be installed easily using `Composer `_. Simply add the following to the composer.json file at the root of your project: .. code-block:: javascript { "require": { "guzzlehttp/streams": "~3.0" } } Then install your dependencies using ``composer.phar install``. Documentation ============= The documentation for this package can be found on the main Guzzle website at http://docs.guzzlephp.org/en/guzzle4/streams.html. Testing ======= This library is tested using PHPUnit. You'll need to install the dependencies using `Composer `_ then run ``make test``. true/punycode/src/Punycode.php000064400000025265150544704730012462 0ustar00 0, 'b' => 1, 'c' => 2, 'd' => 3, 'e' => 4, 'f' => 5, 'g' => 6, 'h' => 7, 'i' => 8, 'j' => 9, 'k' => 10, 'l' => 11, 'm' => 12, 'n' => 13, 'o' => 14, 'p' => 15, 'q' => 16, 'r' => 17, 's' => 18, 't' => 19, 'u' => 20, 'v' => 21, 'w' => 22, 'x' => 23, 'y' => 24, 'z' => 25, '0' => 26, '1' => 27, '2' => 28, '3' => 29, '4' => 30, '5' => 31, '6' => 32, '7' => 33, '8' => 34, '9' => 35); /** * Character encoding * * @param string */ protected $encoding; /** * Constructor * * @param string $encoding Character encoding */ public function __construct($encoding = 'UTF-8') { $this->encoding = $encoding; } /** * Encode a domain to its Punycode version * * @param string $input Domain name in Unicode to be encoded * @return string Punycode representation in ASCII */ public function encode($input) { $input = \mb_strtolower($input, $this->encoding); $parts = \explode('.', $input); foreach ($parts as &$part) { $length = \strlen($part); if ($length < 1) { throw new \Google\Site_Kit_Dependencies\TrueBV\Exception\LabelOutOfBoundsException(\sprintf('The length of any one label is limited to between 1 and 63 octets, but %s given.', $length)); } $part = $this->encodePart($part); } $output = \implode('.', $parts); $length = \strlen($output); if ($length > 255) { throw new \Google\Site_Kit_Dependencies\TrueBV\Exception\DomainOutOfBoundsException(\sprintf('A full domain name is limited to 255 octets (including the separators), %s given.', $length)); } return $output; } /** * Encode a part of a domain name, such as tld, to its Punycode version * * @param string $input Part of a domain name * @return string Punycode representation of a domain part */ protected function encodePart($input) { $codePoints = $this->listCodePoints($input); $n = static::INITIAL_N; $bias = static::INITIAL_BIAS; $delta = 0; $h = $b = \count($codePoints['basic']); $output = ''; foreach ($codePoints['basic'] as $code) { $output .= $this->codePointToChar($code); } if ($input === $output) { return $output; } if ($b > 0) { $output .= static::DELIMITER; } $codePoints['nonBasic'] = \array_unique($codePoints['nonBasic']); \sort($codePoints['nonBasic']); $i = 0; $length = \mb_strlen($input, $this->encoding); while ($h < $length) { $m = $codePoints['nonBasic'][$i++]; $delta = $delta + ($m - $n) * ($h + 1); $n = $m; foreach ($codePoints['all'] as $c) { if ($c < $n || $c < static::INITIAL_N) { $delta++; } if ($c === $n) { $q = $delta; for ($k = static::BASE;; $k += static::BASE) { $t = $this->calculateThreshold($k, $bias); if ($q < $t) { break; } $code = $t + ($q - $t) % (static::BASE - $t); $output .= static::$encodeTable[$code]; $q = ($q - $t) / (static::BASE - $t); } $output .= static::$encodeTable[$q]; $bias = $this->adapt($delta, $h + 1, $h === $b); $delta = 0; $h++; } } $delta++; $n++; } $out = static::PREFIX . $output; $length = \strlen($out); if ($length > 63 || $length < 1) { throw new \Google\Site_Kit_Dependencies\TrueBV\Exception\LabelOutOfBoundsException(\sprintf('The length of any one label is limited to between 1 and 63 octets, but %s given.', $length)); } return $out; } /** * Decode a Punycode domain name to its Unicode counterpart * * @param string $input Domain name in Punycode * @return string Unicode domain name */ public function decode($input) { $input = \strtolower($input); $parts = \explode('.', $input); foreach ($parts as &$part) { $length = \strlen($part); if ($length > 63 || $length < 1) { throw new \Google\Site_Kit_Dependencies\TrueBV\Exception\LabelOutOfBoundsException(\sprintf('The length of any one label is limited to between 1 and 63 octets, but %s given.', $length)); } if (\strpos($part, static::PREFIX) !== 0) { continue; } $part = \substr($part, \strlen(static::PREFIX)); $part = $this->decodePart($part); } $output = \implode('.', $parts); $length = \strlen($output); if ($length > 255) { throw new \Google\Site_Kit_Dependencies\TrueBV\Exception\DomainOutOfBoundsException(\sprintf('A full domain name is limited to 255 octets (including the separators), %s given.', $length)); } return $output; } /** * Decode a part of domain name, such as tld * * @param string $input Part of a domain name * @return string Unicode domain part */ protected function decodePart($input) { $n = static::INITIAL_N; $i = 0; $bias = static::INITIAL_BIAS; $output = ''; $pos = \strrpos($input, static::DELIMITER); if ($pos !== \false) { $output = \substr($input, 0, $pos++); } else { $pos = 0; } $outputLength = \strlen($output); $inputLength = \strlen($input); while ($pos < $inputLength) { $oldi = $i; $w = 1; for ($k = static::BASE;; $k += static::BASE) { $digit = static::$decodeTable[$input[$pos++]]; $i = $i + $digit * $w; $t = $this->calculateThreshold($k, $bias); if ($digit < $t) { break; } $w = $w * (static::BASE - $t); } $bias = $this->adapt($i - $oldi, ++$outputLength, $oldi === 0); $n = $n + (int) ($i / $outputLength); $i = $i % $outputLength; $output = \mb_substr($output, 0, $i, $this->encoding) . $this->codePointToChar($n) . \mb_substr($output, $i, $outputLength - 1, $this->encoding); $i++; } return $output; } /** * Calculate the bias threshold to fall between TMIN and TMAX * * @param integer $k * @param integer $bias * @return integer */ protected function calculateThreshold($k, $bias) { if ($k <= $bias + static::TMIN) { return static::TMIN; } elseif ($k >= $bias + static::TMAX) { return static::TMAX; } return $k - $bias; } /** * Bias adaptation * * @param integer $delta * @param integer $numPoints * @param boolean $firstTime * @return integer */ protected function adapt($delta, $numPoints, $firstTime) { $delta = (int) ($firstTime ? $delta / static::DAMP : $delta / 2); $delta += (int) ($delta / $numPoints); $k = 0; while ($delta > (static::BASE - static::TMIN) * static::TMAX / 2) { $delta = (int) ($delta / (static::BASE - static::TMIN)); $k = $k + static::BASE; } $k = $k + (int) ((static::BASE - static::TMIN + 1) * $delta / ($delta + static::SKEW)); return $k; } /** * List code points for a given input * * @param string $input * @return array Multi-dimension array with basic, non-basic and aggregated code points */ protected function listCodePoints($input) { $codePoints = array('all' => array(), 'basic' => array(), 'nonBasic' => array()); $length = \mb_strlen($input, $this->encoding); for ($i = 0; $i < $length; $i++) { $char = \mb_substr($input, $i, 1, $this->encoding); $code = $this->charToCodePoint($char); if ($code < 128) { $codePoints['all'][] = $codePoints['basic'][] = $code; } else { $codePoints['all'][] = $codePoints['nonBasic'][] = $code; } } return $codePoints; } /** * Convert a single or multi-byte character to its code point * * @param string $char * @return integer */ protected function charToCodePoint($char) { $code = \ord($char[0]); if ($code < 128) { return $code; } elseif ($code < 224) { return ($code - 192) * 64 + (\ord($char[1]) - 128); } elseif ($code < 240) { return ($code - 224) * 4096 + (\ord($char[1]) - 128) * 64 + (\ord($char[2]) - 128); } else { return ($code - 240) * 262144 + (\ord($char[1]) - 128) * 4096 + (\ord($char[2]) - 128) * 64 + (\ord($char[3]) - 128); } } /** * Convert a code point to its single or multi-byte character * * @param integer $code * @return string */ protected function codePointToChar($code) { if ($code <= 0x7f) { return \chr($code); } elseif ($code <= 0x7ff) { return \chr(($code >> 6) + 192) . \chr(($code & 63) + 128); } elseif ($code <= 0xffff) { return \chr(($code >> 12) + 224) . \chr(($code >> 6 & 63) + 128) . \chr(($code & 63) + 128); } else { return \chr(($code >> 18) + 240) . \chr(($code >> 12 & 63) + 128) . \chr(($code >> 6 & 63) + 128) . \chr(($code & 63) + 128); } } } true/punycode/src/Exception/DomainOutOfBoundsException.php000064400000000446150544704730020042 0ustar00 */ class DomainOutOfBoundsException extends \Google\Site_Kit_Dependencies\TrueBV\Exception\OutOfBoundsException { } true/punycode/src/Exception/LabelOutOfBoundsException.php000064400000000444150544704730017650 0ustar00 */ class LabelOutOfBoundsException extends \Google\Site_Kit_Dependencies\TrueBV\Exception\OutOfBoundsException { } true/punycode/src/Exception/OutOfBoundsException.php000064400000000350150544704730016704 0ustar00 */ class OutOfBoundsException extends \RuntimeException { } vendor/composer/autoload_classmap.php000064400000554155150544704730014124 0ustar00 $vendorDir . '/composer/InstalledVersions.php', 'Google\\Site_Kit_Dependencies\\Firebase\\JWT\\BeforeValidException' => $baseDir . '/firebase/php-jwt/src/BeforeValidException.php', 'Google\\Site_Kit_Dependencies\\Firebase\\JWT\\ExpiredException' => $baseDir . '/firebase/php-jwt/src/ExpiredException.php', 'Google\\Site_Kit_Dependencies\\Firebase\\JWT\\JWK' => $baseDir . '/firebase/php-jwt/src/JWK.php', 'Google\\Site_Kit_Dependencies\\Firebase\\JWT\\JWT' => $baseDir . '/firebase/php-jwt/src/JWT.php', 'Google\\Site_Kit_Dependencies\\Firebase\\JWT\\Key' => $baseDir . '/firebase/php-jwt/src/Key.php', 'Google\\Site_Kit_Dependencies\\Firebase\\JWT\\SignatureInvalidException' => $baseDir . '/firebase/php-jwt/src/SignatureInvalidException.php', 'Google\\Site_Kit_Dependencies\\Google\\AccessToken\\Revoke' => $baseDir . '/google/apiclient/src/AccessToken/Revoke.php', 'Google\\Site_Kit_Dependencies\\Google\\AccessToken\\Verify' => $baseDir . '/google/apiclient/src/AccessToken/Verify.php', 'Google\\Site_Kit_Dependencies\\Google\\AuthHandler\\AuthHandlerFactory' => $baseDir . '/google/apiclient/src/AuthHandler/AuthHandlerFactory.php', 'Google\\Site_Kit_Dependencies\\Google\\AuthHandler\\Guzzle5AuthHandler' => $baseDir . '/google/apiclient/src/AuthHandler/Guzzle5AuthHandler.php', 'Google\\Site_Kit_Dependencies\\Google\\AuthHandler\\Guzzle6AuthHandler' => $baseDir . '/google/apiclient/src/AuthHandler/Guzzle6AuthHandler.php', 'Google\\Site_Kit_Dependencies\\Google\\AuthHandler\\Guzzle7AuthHandler' => $baseDir . '/google/apiclient/src/AuthHandler/Guzzle7AuthHandler.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\AccessToken' => $baseDir . '/google/auth/src/AccessToken.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\ApplicationDefaultCredentials' => $baseDir . '/google/auth/src/ApplicationDefaultCredentials.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\CacheTrait' => $baseDir . '/google/auth/src/CacheTrait.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Cache\\InvalidArgumentException' => $baseDir . '/google/auth/src/Cache/InvalidArgumentException.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Cache\\Item' => $baseDir . '/google/auth/src/Cache/Item.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Cache\\MemoryCacheItemPool' => $baseDir . '/google/auth/src/Cache/MemoryCacheItemPool.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Cache\\SysVCacheItemPool' => $baseDir . '/google/auth/src/Cache/SysVCacheItemPool.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\CredentialsLoader' => $baseDir . '/google/auth/src/CredentialsLoader.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Credentials\\AppIdentityCredentials' => $baseDir . '/google/auth/src/Credentials/AppIdentityCredentials.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Credentials\\GCECredentials' => $baseDir . '/google/auth/src/Credentials/GCECredentials.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Credentials\\IAMCredentials' => $baseDir . '/google/auth/src/Credentials/IAMCredentials.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Credentials\\InsecureCredentials' => $baseDir . '/google/auth/src/Credentials/InsecureCredentials.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Credentials\\ServiceAccountCredentials' => $baseDir . '/google/auth/src/Credentials/ServiceAccountCredentials.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Credentials\\ServiceAccountJwtAccessCredentials' => $baseDir . '/google/auth/src/Credentials/ServiceAccountJwtAccessCredentials.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Credentials\\UserRefreshCredentials' => $baseDir . '/google/auth/src/Credentials/UserRefreshCredentials.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\FetchAuthTokenCache' => $baseDir . '/google/auth/src/FetchAuthTokenCache.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\FetchAuthTokenInterface' => $baseDir . '/google/auth/src/FetchAuthTokenInterface.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\GCECache' => $baseDir . '/google/auth/src/GCECache.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\GetQuotaProjectInterface' => $baseDir . '/google/auth/src/GetQuotaProjectInterface.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\HttpHandler\\Guzzle5HttpHandler' => $baseDir . '/google/auth/src/HttpHandler/Guzzle5HttpHandler.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\HttpHandler\\Guzzle6HttpHandler' => $baseDir . '/google/auth/src/HttpHandler/Guzzle6HttpHandler.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\HttpHandler\\Guzzle7HttpHandler' => $baseDir . '/google/auth/src/HttpHandler/Guzzle7HttpHandler.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\HttpHandler\\HttpClientCache' => $baseDir . '/google/auth/src/HttpHandler/HttpClientCache.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\HttpHandler\\HttpHandlerFactory' => $baseDir . '/google/auth/src/HttpHandler/HttpHandlerFactory.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Iam' => $baseDir . '/google/auth/src/Iam.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Middleware\\AuthTokenMiddleware' => $baseDir . '/google/auth/src/Middleware/AuthTokenMiddleware.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Middleware\\ProxyAuthTokenMiddleware' => $baseDir . '/google/auth/src/Middleware/ProxyAuthTokenMiddleware.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Middleware\\ScopedAccessTokenMiddleware' => $baseDir . '/google/auth/src/Middleware/ScopedAccessTokenMiddleware.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Middleware\\SimpleMiddleware' => $baseDir . '/google/auth/src/Middleware/SimpleMiddleware.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\OAuth2' => $baseDir . '/google/auth/src/OAuth2.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\ProjectIdProviderInterface' => $baseDir . '/google/auth/src/ProjectIdProviderInterface.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\ServiceAccountSignerTrait' => $baseDir . '/google/auth/src/ServiceAccountSignerTrait.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\SignBlobInterface' => $baseDir . '/google/auth/src/SignBlobInterface.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Subscriber\\AuthTokenSubscriber' => $baseDir . '/google/auth/src/Subscriber/AuthTokenSubscriber.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Subscriber\\ScopedAccessTokenSubscriber' => $baseDir . '/google/auth/src/Subscriber/ScopedAccessTokenSubscriber.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\Subscriber\\SimpleSubscriber' => $baseDir . '/google/auth/src/Subscriber/SimpleSubscriber.php', 'Google\\Site_Kit_Dependencies\\Google\\Auth\\UpdateMetadataInterface' => $baseDir . '/google/auth/src/UpdateMetadataInterface.php', 'Google\\Site_Kit_Dependencies\\Google\\Client' => $baseDir . '/google/apiclient/src/Client.php', 'Google\\Site_Kit_Dependencies\\Google\\Collection' => $baseDir . '/google/apiclient/src/Collection.php', 'Google\\Site_Kit_Dependencies\\Google\\Exception' => $baseDir . '/google/apiclient/src/Exception.php', 'Google\\Site_Kit_Dependencies\\Google\\Http\\Batch' => $baseDir . '/google/apiclient/src/Http/Batch.php', 'Google\\Site_Kit_Dependencies\\Google\\Http\\MediaFileUpload' => $baseDir . '/google/apiclient/src/Http/MediaFileUpload.php', 'Google\\Site_Kit_Dependencies\\Google\\Http\\REST' => $baseDir . '/google/apiclient/src/Http/REST.php', 'Google\\Site_Kit_Dependencies\\Google\\Model' => $baseDir . '/google/apiclient/src/Model.php', 'Google\\Site_Kit_Dependencies\\Google\\Service' => $baseDir . '/google/apiclient/src/Service.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense' => $baseDir . '/google/apiclient-services/src/Adsense.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Account' => $baseDir . '/google/apiclient-services/src/Adsense/Account.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\AdBlockingRecoveryTag' => $baseDir . '/google/apiclient-services/src/Adsense/AdBlockingRecoveryTag.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\AdClient' => $baseDir . '/google/apiclient-services/src/Adsense/AdClient.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\AdClientAdCode' => $baseDir . '/google/apiclient-services/src/Adsense/AdClientAdCode.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\AdUnit' => $baseDir . '/google/apiclient-services/src/Adsense/AdUnit.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\AdUnitAdCode' => $baseDir . '/google/apiclient-services/src/Adsense/AdUnitAdCode.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\AdsenseEmpty' => $baseDir . '/google/apiclient-services/src/Adsense/AdsenseEmpty.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Alert' => $baseDir . '/google/apiclient-services/src/Adsense/Alert.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Cell' => $baseDir . '/google/apiclient-services/src/Adsense/Cell.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ContentAdsSettings' => $baseDir . '/google/apiclient-services/src/Adsense/ContentAdsSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\CustomChannel' => $baseDir . '/google/apiclient-services/src/Adsense/CustomChannel.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Date' => $baseDir . '/google/apiclient-services/src/Adsense/Date.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Header' => $baseDir . '/google/apiclient-services/src/Adsense/Header.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\HttpBody' => $baseDir . '/google/apiclient-services/src/Adsense/HttpBody.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListAccountsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListAccountsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListAdClientsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListAdClientsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListAdUnitsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListAdUnitsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListAlertsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListAlertsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListChildAccountsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListChildAccountsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListCustomChannelsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListCustomChannelsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListLinkedAdUnitsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListLinkedAdUnitsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListLinkedCustomChannelsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListLinkedCustomChannelsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListPaymentsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListPaymentsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListSavedReportsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListSavedReportsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListSitesResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListSitesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ListUrlChannelsResponse' => $baseDir . '/google/apiclient-services/src/Adsense/ListUrlChannelsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Payment' => $baseDir . '/google/apiclient-services/src/Adsense/Payment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\ReportResult' => $baseDir . '/google/apiclient-services/src/Adsense/ReportResult.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\Accounts' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/Accounts.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\AccountsAdclients' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/AccountsAdclients.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\AccountsAdclientsAdunits' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/AccountsAdclientsAdunits.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\AccountsAdclientsCustomchannels' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/AccountsAdclientsCustomchannels.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\AccountsAdclientsUrlchannels' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/AccountsAdclientsUrlchannels.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\AccountsAlerts' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/AccountsAlerts.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\AccountsPayments' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/AccountsPayments.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\AccountsReports' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/AccountsReports.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\AccountsReportsSaved' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/AccountsReportsSaved.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Resource\\AccountsSites' => $baseDir . '/google/apiclient-services/src/Adsense/Resource/AccountsSites.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Row' => $baseDir . '/google/apiclient-services/src/Adsense/Row.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\SavedReport' => $baseDir . '/google/apiclient-services/src/Adsense/SavedReport.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\Site' => $baseDir . '/google/apiclient-services/src/Adsense/Site.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\TimeZone' => $baseDir . '/google/apiclient-services/src/Adsense/TimeZone.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Adsense\\UrlChannel' => $baseDir . '/google/apiclient-services/src/Adsense/UrlChannel.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics' => $baseDir . '/google/apiclient-services/src/Analytics.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData' => $baseDir . '/google/apiclient-services/src/AnalyticsData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\ActiveMetricRestriction' => $baseDir . '/google/apiclient-services/src/AnalyticsData/ActiveMetricRestriction.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\BatchRunPivotReportsRequest' => $baseDir . '/google/apiclient-services/src/AnalyticsData/BatchRunPivotReportsRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\BatchRunPivotReportsResponse' => $baseDir . '/google/apiclient-services/src/AnalyticsData/BatchRunPivotReportsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\BatchRunReportsRequest' => $baseDir . '/google/apiclient-services/src/AnalyticsData/BatchRunReportsRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\BatchRunReportsResponse' => $baseDir . '/google/apiclient-services/src/AnalyticsData/BatchRunReportsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\BetweenFilter' => $baseDir . '/google/apiclient-services/src/AnalyticsData/BetweenFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\CaseExpression' => $baseDir . '/google/apiclient-services/src/AnalyticsData/CaseExpression.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\CheckCompatibilityRequest' => $baseDir . '/google/apiclient-services/src/AnalyticsData/CheckCompatibilityRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\CheckCompatibilityResponse' => $baseDir . '/google/apiclient-services/src/AnalyticsData/CheckCompatibilityResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\Cohort' => $baseDir . '/google/apiclient-services/src/AnalyticsData/Cohort.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\CohortReportSettings' => $baseDir . '/google/apiclient-services/src/AnalyticsData/CohortReportSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\CohortSpec' => $baseDir . '/google/apiclient-services/src/AnalyticsData/CohortSpec.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\CohortsRange' => $baseDir . '/google/apiclient-services/src/AnalyticsData/CohortsRange.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\ConcatenateExpression' => $baseDir . '/google/apiclient-services/src/AnalyticsData/ConcatenateExpression.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\DateRange' => $baseDir . '/google/apiclient-services/src/AnalyticsData/DateRange.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\Dimension' => $baseDir . '/google/apiclient-services/src/AnalyticsData/Dimension.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\DimensionCompatibility' => $baseDir . '/google/apiclient-services/src/AnalyticsData/DimensionCompatibility.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\DimensionExpression' => $baseDir . '/google/apiclient-services/src/AnalyticsData/DimensionExpression.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\DimensionHeader' => $baseDir . '/google/apiclient-services/src/AnalyticsData/DimensionHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\DimensionMetadata' => $baseDir . '/google/apiclient-services/src/AnalyticsData/DimensionMetadata.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\DimensionOrderBy' => $baseDir . '/google/apiclient-services/src/AnalyticsData/DimensionOrderBy.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\DimensionValue' => $baseDir . '/google/apiclient-services/src/AnalyticsData/DimensionValue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\Filter' => $baseDir . '/google/apiclient-services/src/AnalyticsData/Filter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\FilterExpression' => $baseDir . '/google/apiclient-services/src/AnalyticsData/FilterExpression.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\FilterExpressionList' => $baseDir . '/google/apiclient-services/src/AnalyticsData/FilterExpressionList.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\InListFilter' => $baseDir . '/google/apiclient-services/src/AnalyticsData/InListFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\Metadata' => $baseDir . '/google/apiclient-services/src/AnalyticsData/Metadata.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\Metric' => $baseDir . '/google/apiclient-services/src/AnalyticsData/Metric.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\MetricCompatibility' => $baseDir . '/google/apiclient-services/src/AnalyticsData/MetricCompatibility.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\MetricHeader' => $baseDir . '/google/apiclient-services/src/AnalyticsData/MetricHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\MetricMetadata' => $baseDir . '/google/apiclient-services/src/AnalyticsData/MetricMetadata.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\MetricOrderBy' => $baseDir . '/google/apiclient-services/src/AnalyticsData/MetricOrderBy.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\MetricValue' => $baseDir . '/google/apiclient-services/src/AnalyticsData/MetricValue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\MinuteRange' => $baseDir . '/google/apiclient-services/src/AnalyticsData/MinuteRange.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\NumericFilter' => $baseDir . '/google/apiclient-services/src/AnalyticsData/NumericFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\NumericValue' => $baseDir . '/google/apiclient-services/src/AnalyticsData/NumericValue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\OrderBy' => $baseDir . '/google/apiclient-services/src/AnalyticsData/OrderBy.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\Pivot' => $baseDir . '/google/apiclient-services/src/AnalyticsData/Pivot.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\PivotDimensionHeader' => $baseDir . '/google/apiclient-services/src/AnalyticsData/PivotDimensionHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\PivotHeader' => $baseDir . '/google/apiclient-services/src/AnalyticsData/PivotHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\PivotOrderBy' => $baseDir . '/google/apiclient-services/src/AnalyticsData/PivotOrderBy.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\PivotSelection' => $baseDir . '/google/apiclient-services/src/AnalyticsData/PivotSelection.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\PropertyQuota' => $baseDir . '/google/apiclient-services/src/AnalyticsData/PropertyQuota.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\QuotaStatus' => $baseDir . '/google/apiclient-services/src/AnalyticsData/QuotaStatus.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\Resource\\Properties' => $baseDir . '/google/apiclient-services/src/AnalyticsData/Resource/Properties.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\ResponseMetaData' => $baseDir . '/google/apiclient-services/src/AnalyticsData/ResponseMetaData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\Row' => $baseDir . '/google/apiclient-services/src/AnalyticsData/Row.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\RunPivotReportRequest' => $baseDir . '/google/apiclient-services/src/AnalyticsData/RunPivotReportRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\RunPivotReportResponse' => $baseDir . '/google/apiclient-services/src/AnalyticsData/RunPivotReportResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\RunRealtimeReportRequest' => $baseDir . '/google/apiclient-services/src/AnalyticsData/RunRealtimeReportRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\RunRealtimeReportResponse' => $baseDir . '/google/apiclient-services/src/AnalyticsData/RunRealtimeReportResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\RunReportRequest' => $baseDir . '/google/apiclient-services/src/AnalyticsData/RunReportRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\RunReportResponse' => $baseDir . '/google/apiclient-services/src/AnalyticsData/RunReportResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\SchemaRestrictionResponse' => $baseDir . '/google/apiclient-services/src/AnalyticsData/SchemaRestrictionResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsData\\StringFilter' => $baseDir . '/google/apiclient-services/src/AnalyticsData/StringFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\Activity' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/Activity.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\Cohort' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/Cohort.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\CohortGroup' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/CohortGroup.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\ColumnHeader' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/ColumnHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\CustomDimension' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/CustomDimension.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\DateRange' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/DateRange.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\DateRangeValues' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/DateRangeValues.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\Dimension' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/Dimension.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\DimensionFilter' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/DimensionFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\DimensionFilterClause' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/DimensionFilterClause.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\DynamicSegment' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/DynamicSegment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\EcommerceData' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/EcommerceData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\EventData' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/EventData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\GetReportsRequest' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/GetReportsRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\GetReportsResponse' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/GetReportsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\GoalData' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/GoalData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\GoalSetData' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/GoalSetData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\Metric' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/Metric.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\MetricFilter' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/MetricFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\MetricFilterClause' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/MetricFilterClause.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\MetricHeader' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/MetricHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\MetricHeaderEntry' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/MetricHeaderEntry.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\OrFiltersForSegment' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/OrFiltersForSegment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\OrderBy' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/OrderBy.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\PageviewData' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/PageviewData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\Pivot' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/Pivot.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\PivotHeader' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/PivotHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\PivotHeaderEntry' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/PivotHeaderEntry.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\PivotValueRegion' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/PivotValueRegion.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\ProductData' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/ProductData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\Report' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/Report.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\ReportData' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/ReportData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\ReportRequest' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/ReportRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\ReportRow' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/ReportRow.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\ResourceQuotasRemaining' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/ResourceQuotasRemaining.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\Resource\\Reports' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/Resource/Reports.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\Resource\\UserActivity' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/Resource/UserActivity.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\ScreenviewData' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/ScreenviewData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SearchUserActivityRequest' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SearchUserActivityRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SearchUserActivityResponse' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SearchUserActivityResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\Segment' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/Segment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SegmentDefinition' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SegmentDefinition.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SegmentDimensionFilter' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SegmentDimensionFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SegmentFilter' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SegmentFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SegmentFilterClause' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SegmentFilterClause.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SegmentMetricFilter' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SegmentMetricFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SegmentSequenceStep' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SegmentSequenceStep.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SequenceSegment' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SequenceSegment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\SimpleSegment' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/SimpleSegment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\TransactionData' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/TransactionData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\User' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/User.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\AnalyticsReporting\\UserActivitySession' => $baseDir . '/google/apiclient-services/src/AnalyticsReporting/UserActivitySession.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Account' => $baseDir . '/google/apiclient-services/src/Analytics/Account.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AccountChildLink' => $baseDir . '/google/apiclient-services/src/Analytics/AccountChildLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AccountPermissions' => $baseDir . '/google/apiclient-services/src/Analytics/AccountPermissions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AccountRef' => $baseDir . '/google/apiclient-services/src/Analytics/AccountRef.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AccountSummaries' => $baseDir . '/google/apiclient-services/src/Analytics/AccountSummaries.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AccountSummary' => $baseDir . '/google/apiclient-services/src/Analytics/AccountSummary.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AccountTicket' => $baseDir . '/google/apiclient-services/src/Analytics/AccountTicket.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AccountTreeRequest' => $baseDir . '/google/apiclient-services/src/Analytics/AccountTreeRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AccountTreeResponse' => $baseDir . '/google/apiclient-services/src/Analytics/AccountTreeResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Accounts' => $baseDir . '/google/apiclient-services/src/Analytics/Accounts.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AdWordsAccount' => $baseDir . '/google/apiclient-services/src/Analytics/AdWordsAccount.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\AnalyticsDataimportDeleteUploadDataRequest' => $baseDir . '/google/apiclient-services/src/Analytics/AnalyticsDataimportDeleteUploadDataRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Column' => $baseDir . '/google/apiclient-services/src/Analytics/Column.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Columns' => $baseDir . '/google/apiclient-services/src/Analytics/Columns.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomDataSource' => $baseDir . '/google/apiclient-services/src/Analytics/CustomDataSource.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomDataSourceChildLink' => $baseDir . '/google/apiclient-services/src/Analytics/CustomDataSourceChildLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomDataSourceParentLink' => $baseDir . '/google/apiclient-services/src/Analytics/CustomDataSourceParentLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomDataSources' => $baseDir . '/google/apiclient-services/src/Analytics/CustomDataSources.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomDimension' => $baseDir . '/google/apiclient-services/src/Analytics/CustomDimension.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomDimensionParentLink' => $baseDir . '/google/apiclient-services/src/Analytics/CustomDimensionParentLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomDimensions' => $baseDir . '/google/apiclient-services/src/Analytics/CustomDimensions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomMetric' => $baseDir . '/google/apiclient-services/src/Analytics/CustomMetric.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomMetricParentLink' => $baseDir . '/google/apiclient-services/src/Analytics/CustomMetricParentLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\CustomMetrics' => $baseDir . '/google/apiclient-services/src/Analytics/CustomMetrics.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\EntityAdWordsLink' => $baseDir . '/google/apiclient-services/src/Analytics/EntityAdWordsLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\EntityAdWordsLinkEntity' => $baseDir . '/google/apiclient-services/src/Analytics/EntityAdWordsLinkEntity.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\EntityAdWordsLinks' => $baseDir . '/google/apiclient-services/src/Analytics/EntityAdWordsLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\EntityUserLink' => $baseDir . '/google/apiclient-services/src/Analytics/EntityUserLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\EntityUserLinkEntity' => $baseDir . '/google/apiclient-services/src/Analytics/EntityUserLinkEntity.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\EntityUserLinkPermissions' => $baseDir . '/google/apiclient-services/src/Analytics/EntityUserLinkPermissions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\EntityUserLinks' => $baseDir . '/google/apiclient-services/src/Analytics/EntityUserLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Experiment' => $baseDir . '/google/apiclient-services/src/Analytics/Experiment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\ExperimentParentLink' => $baseDir . '/google/apiclient-services/src/Analytics/ExperimentParentLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\ExperimentVariations' => $baseDir . '/google/apiclient-services/src/Analytics/ExperimentVariations.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Experiments' => $baseDir . '/google/apiclient-services/src/Analytics/Experiments.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Filter' => $baseDir . '/google/apiclient-services/src/Analytics/Filter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\FilterAdvancedDetails' => $baseDir . '/google/apiclient-services/src/Analytics/FilterAdvancedDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\FilterExpression' => $baseDir . '/google/apiclient-services/src/Analytics/FilterExpression.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\FilterLowercaseDetails' => $baseDir . '/google/apiclient-services/src/Analytics/FilterLowercaseDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\FilterParentLink' => $baseDir . '/google/apiclient-services/src/Analytics/FilterParentLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\FilterRef' => $baseDir . '/google/apiclient-services/src/Analytics/FilterRef.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\FilterSearchAndReplaceDetails' => $baseDir . '/google/apiclient-services/src/Analytics/FilterSearchAndReplaceDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\FilterUppercaseDetails' => $baseDir . '/google/apiclient-services/src/Analytics/FilterUppercaseDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Filters' => $baseDir . '/google/apiclient-services/src/Analytics/Filters.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GaData' => $baseDir . '/google/apiclient-services/src/Analytics/GaData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GaDataColumnHeaders' => $baseDir . '/google/apiclient-services/src/Analytics/GaDataColumnHeaders.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GaDataDataTable' => $baseDir . '/google/apiclient-services/src/Analytics/GaDataDataTable.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GaDataDataTableCols' => $baseDir . '/google/apiclient-services/src/Analytics/GaDataDataTableCols.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GaDataDataTableRows' => $baseDir . '/google/apiclient-services/src/Analytics/GaDataDataTableRows.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GaDataDataTableRowsC' => $baseDir . '/google/apiclient-services/src/Analytics/GaDataDataTableRowsC.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GaDataProfileInfo' => $baseDir . '/google/apiclient-services/src/Analytics/GaDataProfileInfo.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GaDataQuery' => $baseDir . '/google/apiclient-services/src/Analytics/GaDataQuery.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Goal' => $baseDir . '/google/apiclient-services/src/Analytics/Goal.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GoalEventDetails' => $baseDir . '/google/apiclient-services/src/Analytics/GoalEventDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GoalEventDetailsEventConditions' => $baseDir . '/google/apiclient-services/src/Analytics/GoalEventDetailsEventConditions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GoalParentLink' => $baseDir . '/google/apiclient-services/src/Analytics/GoalParentLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GoalUrlDestinationDetails' => $baseDir . '/google/apiclient-services/src/Analytics/GoalUrlDestinationDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GoalUrlDestinationDetailsSteps' => $baseDir . '/google/apiclient-services/src/Analytics/GoalUrlDestinationDetailsSteps.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GoalVisitNumPagesDetails' => $baseDir . '/google/apiclient-services/src/Analytics/GoalVisitNumPagesDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\GoalVisitTimeOnSiteDetails' => $baseDir . '/google/apiclient-services/src/Analytics/GoalVisitTimeOnSiteDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Goals' => $baseDir . '/google/apiclient-services/src/Analytics/Goals.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\HashClientIdRequest' => $baseDir . '/google/apiclient-services/src/Analytics/HashClientIdRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\HashClientIdResponse' => $baseDir . '/google/apiclient-services/src/Analytics/HashClientIdResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\IncludeConditions' => $baseDir . '/google/apiclient-services/src/Analytics/IncludeConditions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\LinkedForeignAccount' => $baseDir . '/google/apiclient-services/src/Analytics/LinkedForeignAccount.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\McfData' => $baseDir . '/google/apiclient-services/src/Analytics/McfData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\McfDataColumnHeaders' => $baseDir . '/google/apiclient-services/src/Analytics/McfDataColumnHeaders.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\McfDataProfileInfo' => $baseDir . '/google/apiclient-services/src/Analytics/McfDataProfileInfo.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\McfDataQuery' => $baseDir . '/google/apiclient-services/src/Analytics/McfDataQuery.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\McfDataRows' => $baseDir . '/google/apiclient-services/src/Analytics/McfDataRows.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\McfDataRowsConversionPathValue' => $baseDir . '/google/apiclient-services/src/Analytics/McfDataRowsConversionPathValue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Profile' => $baseDir . '/google/apiclient-services/src/Analytics/Profile.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\ProfileChildLink' => $baseDir . '/google/apiclient-services/src/Analytics/ProfileChildLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\ProfileFilterLink' => $baseDir . '/google/apiclient-services/src/Analytics/ProfileFilterLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\ProfileFilterLinks' => $baseDir . '/google/apiclient-services/src/Analytics/ProfileFilterLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\ProfileParentLink' => $baseDir . '/google/apiclient-services/src/Analytics/ProfileParentLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\ProfilePermissions' => $baseDir . '/google/apiclient-services/src/Analytics/ProfilePermissions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\ProfileRef' => $baseDir . '/google/apiclient-services/src/Analytics/ProfileRef.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\ProfileSummary' => $baseDir . '/google/apiclient-services/src/Analytics/ProfileSummary.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Profiles' => $baseDir . '/google/apiclient-services/src/Analytics/Profiles.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\RealtimeData' => $baseDir . '/google/apiclient-services/src/Analytics/RealtimeData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\RealtimeDataColumnHeaders' => $baseDir . '/google/apiclient-services/src/Analytics/RealtimeDataColumnHeaders.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\RealtimeDataProfileInfo' => $baseDir . '/google/apiclient-services/src/Analytics/RealtimeDataProfileInfo.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\RealtimeDataQuery' => $baseDir . '/google/apiclient-services/src/Analytics/RealtimeDataQuery.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\RemarketingAudience' => $baseDir . '/google/apiclient-services/src/Analytics/RemarketingAudience.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\RemarketingAudienceAudienceDefinition' => $baseDir . '/google/apiclient-services/src/Analytics/RemarketingAudienceAudienceDefinition.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\RemarketingAudienceStateBasedAudienceDefinition' => $baseDir . '/google/apiclient-services/src/Analytics/RemarketingAudienceStateBasedAudienceDefinition.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions' => $baseDir . '/google/apiclient-services/src/Analytics/RemarketingAudienceStateBasedAudienceDefinitionExcludeConditions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\RemarketingAudiences' => $baseDir . '/google/apiclient-services/src/Analytics/RemarketingAudiences.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\Data' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/Data.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\DataGa' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/DataGa.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\DataMcf' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/DataMcf.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\DataRealtime' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/DataRealtime.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\Management' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/Management.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementAccountSummaries' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementAccountSummaries.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementAccountUserLinks' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementAccountUserLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementAccounts' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementAccounts.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementClientId' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementClientId.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementCustomDataSources' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementCustomDataSources.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementCustomDimensions' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementCustomDimensions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementCustomMetrics' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementCustomMetrics.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementExperiments' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementExperiments.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementFilters' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementFilters.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementGoals' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementGoals.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementProfileFilterLinks' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementProfileFilterLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementProfileUserLinks' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementProfileUserLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementProfiles' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementProfiles.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementRemarketingAudience' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementRemarketingAudience.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementSegments' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementSegments.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementUnsampledReports' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementUnsampledReports.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementUploads' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementUploads.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementWebPropertyAdWordsLinks' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementWebPropertyAdWordsLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementWebproperties' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementWebproperties.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\ManagementWebpropertyUserLinks' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/ManagementWebpropertyUserLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\Metadata' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/Metadata.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\MetadataColumns' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/MetadataColumns.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\Provisioning' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/Provisioning.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\UserDeletion' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/UserDeletion.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Resource\\UserDeletionUserDeletionRequest' => $baseDir . '/google/apiclient-services/src/Analytics/Resource/UserDeletionUserDeletionRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Segment' => $baseDir . '/google/apiclient-services/src/Analytics/Segment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Segments' => $baseDir . '/google/apiclient-services/src/Analytics/Segments.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\UnsampledReport' => $baseDir . '/google/apiclient-services/src/Analytics/UnsampledReport.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\UnsampledReportCloudStorageDownloadDetails' => $baseDir . '/google/apiclient-services/src/Analytics/UnsampledReportCloudStorageDownloadDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\UnsampledReportDriveDownloadDetails' => $baseDir . '/google/apiclient-services/src/Analytics/UnsampledReportDriveDownloadDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\UnsampledReports' => $baseDir . '/google/apiclient-services/src/Analytics/UnsampledReports.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Upload' => $baseDir . '/google/apiclient-services/src/Analytics/Upload.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Uploads' => $baseDir . '/google/apiclient-services/src/Analytics/Uploads.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\UserDeletionRequest' => $baseDir . '/google/apiclient-services/src/Analytics/UserDeletionRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\UserDeletionRequestId' => $baseDir . '/google/apiclient-services/src/Analytics/UserDeletionRequestId.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\UserRef' => $baseDir . '/google/apiclient-services/src/Analytics/UserRef.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\WebPropertyRef' => $baseDir . '/google/apiclient-services/src/Analytics/WebPropertyRef.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\WebPropertySummary' => $baseDir . '/google/apiclient-services/src/Analytics/WebPropertySummary.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Webproperties' => $baseDir . '/google/apiclient-services/src/Analytics/Webproperties.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\Webproperty' => $baseDir . '/google/apiclient-services/src/Analytics/Webproperty.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\WebpropertyChildLink' => $baseDir . '/google/apiclient-services/src/Analytics/WebpropertyChildLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\WebpropertyParentLink' => $baseDir . '/google/apiclient-services/src/Analytics/WebpropertyParentLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Analytics\\WebpropertyPermissions' => $baseDir . '/google/apiclient-services/src/Analytics/WebpropertyPermissions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Exception' => $baseDir . '/google/apiclient/src/Service/Exception.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessBetweenFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessBetweenFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessDateRange' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDateRange.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessDimension' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDimension.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessDimensionHeader' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDimensionHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessDimensionValue' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessDimensionValue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessFilterExpression' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessFilterExpression.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessFilterExpressionList' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessFilterExpressionList.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessInListFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessInListFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessMetric' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessMetric.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessMetricHeader' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessMetricHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessMetricValue' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessMetricValue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessNumericFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessNumericFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessOrderBy' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessOrderBy.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessOrderByDimensionOrderBy.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessOrderByMetricOrderBy.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessQuota' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessQuota.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessQuotaStatus' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessQuotaStatus.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessRow' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessRow.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccessStringFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccessStringFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccount' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccount.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAccountSummary' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAccountSummary.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAcknowledgeUserDataCollectionResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAndroidAppDataStream' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAndroidAppDataStream.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaApproveDisplayVideo360AdvertiserLinkProposalResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaArchiveAudienceRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaArchiveAudienceRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaArchiveCustomDimensionRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaArchiveCustomMetricRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAttributionSettings' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAttributionSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudience' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudience.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterBetweenFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterInListFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterNumericValue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceDimensionOrMetricFilterStringFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceEventFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceEventFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceEventTrigger' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceEventTrigger.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceFilterClause' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceFilterClause.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceFilterExpression' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceFilterExpression.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceFilterExpressionList.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceSequenceFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceSequenceFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceSequenceFilterAudienceSequenceStep.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAudienceSimpleFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAudienceSimpleFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAuditUserLink' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAuditUserLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAuditUserLinksRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAuditUserLinksRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaAuditUserLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaAuditUserLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchCreateUserLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchDeleteUserLinksRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchGetUserLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaBatchUpdateUserLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaCancelDisplayVideo360AdvertiserLinkProposalRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaChangeHistoryChange' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaChangeHistoryChange.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaChangeHistoryChangeChangeHistoryResource.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaChangeHistoryEvent' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaChangeHistoryEvent.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaConversionEvent' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaConversionEvent.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaCreateUserLinkRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaCreateUserLinkRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaCustomDimension' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaCustomDimension.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaCustomMetric' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaCustomMetric.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaDataRetentionSettings' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataRetentionSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaDataSharingSettings' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataSharingSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaDataStream' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataStream.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataStreamAndroidAppStreamData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataStreamIosAppStreamData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaDataStreamWebStreamData' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDataStreamWebStreamData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDeleteUserLinkRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaDisplayVideo360AdvertiserLinkProposal.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaEnhancedMeasurementSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaExpandedDataSet' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSet.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaExpandedDataSetFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpression.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterExpressionList.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterInListFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaExpandedDataSetFilterStringFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaFirebaseLink' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaFirebaseLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaGlobalSiteTag' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaGlobalSiteTag.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaGoogleAdsLink' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaGoogleAdsLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaGoogleSignalsSettings' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaGoogleSignalsSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaIosAppDataStream' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaIosAppDataStream.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaLinkProposalStatusDetails.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListAccountSummariesResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListAccountSummariesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListAccountsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListAccountsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListAndroidAppDataStreamsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListAudiencesResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListAudiencesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListConversionEventsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListConversionEventsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListCustomDimensionsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListCustomMetricsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListCustomMetricsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListDataStreamsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListDataStreamsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinkProposalsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListDisplayVideo360AdvertiserLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListFirebaseLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListGoogleAdsLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListIosAppDataStreamsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListMeasurementProtocolSecretsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListPropertiesResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListPropertiesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListSearchAds360LinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListUserLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListUserLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaListWebDataStreamsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaMeasurementProtocolSecret.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaNumericValue' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaNumericValue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaProperty' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaProperty.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaPropertySummary' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaPropertySummary.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaProvisionAccountTicketRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaProvisionAccountTicketResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaRunAccessReportRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaRunAccessReportRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaRunAccessReportResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaRunAccessReportResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaSearchAds360Link' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaSearchAds360Link.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaSearchChangeHistoryEventsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaUpdateUserLinkRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaUserLink' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaUserLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1alphaWebDataStream' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1alphaWebDataStream.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaAccount' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccount.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaAccountSummary' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAccountSummary.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaAcknowledgeUserDataCollectionResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaArchiveCustomDimensionRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaArchiveCustomMetricRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaChangeHistoryChange' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaChangeHistoryChange.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaChangeHistoryChangeChangeHistoryResource.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaChangeHistoryEvent' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaChangeHistoryEvent.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaConversionEvent' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaConversionEvent.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaCustomDimension' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaCustomDimension.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaCustomMetric' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaCustomMetric.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaDataRetentionSettings' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataRetentionSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaDataSharingSettings' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataSharingSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaDataStream' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStream.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStreamAndroidAppStreamData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStreamIosAppStreamData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaDataStreamWebStreamData' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaDataStreamWebStreamData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaFirebaseLink' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaFirebaseLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaGoogleAdsLink' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaGoogleAdsLink.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListAccountSummariesResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListAccountSummariesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListAccountsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListAccountsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListConversionEventsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListConversionEventsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListCustomDimensionsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListCustomDimensionsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListCustomMetricsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListCustomMetricsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListDataStreamsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListDataStreamsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListFirebaseLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListFirebaseLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListGoogleAdsLinksResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListMeasurementProtocolSecretsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaListPropertiesResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaListPropertiesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaMeasurementProtocolSecret' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaMeasurementProtocolSecret.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaProperty' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProperty.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaPropertySummary' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaPropertySummary.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProvisionAccountTicketRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaProvisionAccountTicketResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleAnalyticsAdminV1betaSearchChangeHistoryEventsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\GoogleProtobufEmpty' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/GoogleProtobufEmpty.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\AccountSummaries' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/AccountSummaries.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\Accounts' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/Accounts.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\AccountsUserLinks' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/AccountsUserLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\Properties' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/Properties.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesAndroidAppDataStreams' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesAndroidAppDataStreams.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesAndroidAppDataStreamsMeasurementProtocolSecrets' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesAndroidAppDataStreamsMeasurementProtocolSecrets.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesAudiences' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesAudiences.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesConversionEvents' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesConversionEvents.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesCustomDimensions' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesCustomDimensions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesCustomMetrics' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesCustomMetrics.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesDataStreams' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesDataStreams.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesDataStreamsMeasurementProtocolSecrets' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesDataStreamsMeasurementProtocolSecrets.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesDisplayVideo360AdvertiserLinkProposals' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesDisplayVideo360AdvertiserLinkProposals.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesDisplayVideo360AdvertiserLinks' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesDisplayVideo360AdvertiserLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesFirebaseLinks' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesFirebaseLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesGoogleAdsLinks' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesGoogleAdsLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesIosAppDataStreams' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesIosAppDataStreams.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesIosAppDataStreamsMeasurementProtocolSecrets' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesIosAppDataStreamsMeasurementProtocolSecrets.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesSearchAds360Links' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesSearchAds360Links.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesUserLinks' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesUserLinks.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesWebDataStreams' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesWebDataStreams.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\GoogleAnalyticsAdmin\\Resource\\PropertiesWebDataStreamsMeasurementProtocolSecrets' => $baseDir . '/google/apiclient-services/src/GoogleAnalyticsAdmin/Resource/PropertiesWebDataStreamsMeasurementProtocolSecrets.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub' => $baseDir . '/google/apiclient-services/src/Ideahub.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1alphaAvailableLocale' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaAvailableLocale.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1alphaIdea' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaIdea.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1alphaIdeaActivity' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaIdeaActivity.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1alphaIdeaState' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaIdeaState.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1alphaListAvailableLocalesResponse' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaListAvailableLocalesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1alphaListIdeasResponse' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaListIdeasResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1alphaTopic' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaTopic.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1alphaTopicState' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1alphaTopicState.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1betaAvailableLocale' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaAvailableLocale.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1betaIdea' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaIdea.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1betaIdeaActivity' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaIdeaActivity.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1betaIdeaState' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaIdeaState.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1betaListAvailableLocalesResponse' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaListAvailableLocalesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1betaListIdeasResponse' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaListIdeasResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1betaTopic' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaTopic.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\GoogleSearchIdeahubV1betaTopicState' => $baseDir . '/google/apiclient-services/src/Ideahub/GoogleSearchIdeahubV1betaTopicState.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\Resource\\Ideas' => $baseDir . '/google/apiclient-services/src/Ideahub/Resource/Ideas.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\Resource\\Platforms' => $baseDir . '/google/apiclient-services/src/Ideahub/Resource/Platforms.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\Resource\\PlatformsProperties' => $baseDir . '/google/apiclient-services/src/Ideahub/Resource/PlatformsProperties.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\Resource\\PlatformsPropertiesIdeaActivities' => $baseDir . '/google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesIdeaActivities.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\Resource\\PlatformsPropertiesIdeaStates' => $baseDir . '/google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesIdeaStates.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\Resource\\PlatformsPropertiesIdeas' => $baseDir . '/google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesIdeas.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\Resource\\PlatformsPropertiesLocales' => $baseDir . '/google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesLocales.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Ideahub\\Resource\\PlatformsPropertiesTopicStates' => $baseDir . '/google/apiclient-services/src/Ideahub/Resource/PlatformsPropertiesTopicStates.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights' => $baseDir . '/google/apiclient-services/src/PagespeedInsights.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\AuditRefs' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/AuditRefs.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\Bucket' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/Bucket.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\Categories' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/Categories.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\CategoryGroupV5' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/CategoryGroupV5.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\ConfigSettings' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/ConfigSettings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\Environment' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/Environment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\I18n' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/I18n.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\LighthouseAuditResultV5' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/LighthouseAuditResultV5.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\LighthouseCategoryV5' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/LighthouseCategoryV5.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\LighthouseResultV5' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/LighthouseResultV5.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\PagespeedApiLoadingExperienceV5' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/PagespeedApiLoadingExperienceV5.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\PagespeedApiPagespeedResponseV5' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/PagespeedApiPagespeedResponseV5.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\PagespeedVersion' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/PagespeedVersion.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\RendererFormattedStrings' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/RendererFormattedStrings.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\Resource\\Pagespeedapi' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/Resource/Pagespeedapi.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\RuntimeError' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/RuntimeError.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\StackPack' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/StackPack.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\Timing' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/Timing.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PagespeedInsights\\UserPageLoadMetricV5' => $baseDir . '/google/apiclient-services/src/PagespeedInsights/UserPageLoadMetricV5.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService' => $baseDir . '/google/apiclient-services/src/PeopleService.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Address' => $baseDir . '/google/apiclient-services/src/PeopleService/Address.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\AgeRangeType' => $baseDir . '/google/apiclient-services/src/PeopleService/AgeRangeType.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\BatchCreateContactsRequest' => $baseDir . '/google/apiclient-services/src/PeopleService/BatchCreateContactsRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\BatchCreateContactsResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/BatchCreateContactsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\BatchDeleteContactsRequest' => $baseDir . '/google/apiclient-services/src/PeopleService/BatchDeleteContactsRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\BatchGetContactGroupsResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/BatchGetContactGroupsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\BatchUpdateContactsRequest' => $baseDir . '/google/apiclient-services/src/PeopleService/BatchUpdateContactsRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\BatchUpdateContactsResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/BatchUpdateContactsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Biography' => $baseDir . '/google/apiclient-services/src/PeopleService/Biography.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Birthday' => $baseDir . '/google/apiclient-services/src/PeopleService/Birthday.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\BraggingRights' => $baseDir . '/google/apiclient-services/src/PeopleService/BraggingRights.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\CalendarUrl' => $baseDir . '/google/apiclient-services/src/PeopleService/CalendarUrl.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ClientData' => $baseDir . '/google/apiclient-services/src/PeopleService/ClientData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ContactGroup' => $baseDir . '/google/apiclient-services/src/PeopleService/ContactGroup.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ContactGroupMembership' => $baseDir . '/google/apiclient-services/src/PeopleService/ContactGroupMembership.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ContactGroupMetadata' => $baseDir . '/google/apiclient-services/src/PeopleService/ContactGroupMetadata.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ContactGroupResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/ContactGroupResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ContactToCreate' => $baseDir . '/google/apiclient-services/src/PeopleService/ContactToCreate.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\CopyOtherContactToMyContactsGroupRequest' => $baseDir . '/google/apiclient-services/src/PeopleService/CopyOtherContactToMyContactsGroupRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\CoverPhoto' => $baseDir . '/google/apiclient-services/src/PeopleService/CoverPhoto.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\CreateContactGroupRequest' => $baseDir . '/google/apiclient-services/src/PeopleService/CreateContactGroupRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Date' => $baseDir . '/google/apiclient-services/src/PeopleService/Date.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\DeleteContactPhotoResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/DeleteContactPhotoResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\DomainMembership' => $baseDir . '/google/apiclient-services/src/PeopleService/DomainMembership.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\EmailAddress' => $baseDir . '/google/apiclient-services/src/PeopleService/EmailAddress.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Event' => $baseDir . '/google/apiclient-services/src/PeopleService/Event.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ExternalId' => $baseDir . '/google/apiclient-services/src/PeopleService/ExternalId.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\FieldMetadata' => $baseDir . '/google/apiclient-services/src/PeopleService/FieldMetadata.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\FileAs' => $baseDir . '/google/apiclient-services/src/PeopleService/FileAs.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Gender' => $baseDir . '/google/apiclient-services/src/PeopleService/Gender.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\GetPeopleResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/GetPeopleResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\GroupClientData' => $baseDir . '/google/apiclient-services/src/PeopleService/GroupClientData.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ImClient' => $baseDir . '/google/apiclient-services/src/PeopleService/ImClient.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Interest' => $baseDir . '/google/apiclient-services/src/PeopleService/Interest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ListConnectionsResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/ListConnectionsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ListContactGroupsResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/ListContactGroupsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ListDirectoryPeopleResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/ListDirectoryPeopleResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ListOtherContactsResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/ListOtherContactsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Locale' => $baseDir . '/google/apiclient-services/src/PeopleService/Locale.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Location' => $baseDir . '/google/apiclient-services/src/PeopleService/Location.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Membership' => $baseDir . '/google/apiclient-services/src/PeopleService/Membership.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\MiscKeyword' => $baseDir . '/google/apiclient-services/src/PeopleService/MiscKeyword.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ModifyContactGroupMembersRequest' => $baseDir . '/google/apiclient-services/src/PeopleService/ModifyContactGroupMembersRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ModifyContactGroupMembersResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/ModifyContactGroupMembersResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Name' => $baseDir . '/google/apiclient-services/src/PeopleService/Name.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Nickname' => $baseDir . '/google/apiclient-services/src/PeopleService/Nickname.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Occupation' => $baseDir . '/google/apiclient-services/src/PeopleService/Occupation.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Organization' => $baseDir . '/google/apiclient-services/src/PeopleService/Organization.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\PeopleEmpty' => $baseDir . '/google/apiclient-services/src/PeopleService/PeopleEmpty.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Person' => $baseDir . '/google/apiclient-services/src/PeopleService/Person.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\PersonMetadata' => $baseDir . '/google/apiclient-services/src/PeopleService/PersonMetadata.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\PersonResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/PersonResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\PhoneNumber' => $baseDir . '/google/apiclient-services/src/PeopleService/PhoneNumber.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Photo' => $baseDir . '/google/apiclient-services/src/PeopleService/Photo.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\ProfileMetadata' => $baseDir . '/google/apiclient-services/src/PeopleService/ProfileMetadata.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Relation' => $baseDir . '/google/apiclient-services/src/PeopleService/Relation.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\RelationshipInterest' => $baseDir . '/google/apiclient-services/src/PeopleService/RelationshipInterest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\RelationshipStatus' => $baseDir . '/google/apiclient-services/src/PeopleService/RelationshipStatus.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Residence' => $baseDir . '/google/apiclient-services/src/PeopleService/Residence.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Resource\\ContactGroups' => $baseDir . '/google/apiclient-services/src/PeopleService/Resource/ContactGroups.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Resource\\ContactGroupsMembers' => $baseDir . '/google/apiclient-services/src/PeopleService/Resource/ContactGroupsMembers.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Resource\\OtherContacts' => $baseDir . '/google/apiclient-services/src/PeopleService/Resource/OtherContacts.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Resource\\People' => $baseDir . '/google/apiclient-services/src/PeopleService/Resource/People.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Resource\\PeopleConnections' => $baseDir . '/google/apiclient-services/src/PeopleService/Resource/PeopleConnections.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\SearchDirectoryPeopleResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/SearchDirectoryPeopleResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\SearchResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/SearchResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\SearchResult' => $baseDir . '/google/apiclient-services/src/PeopleService/SearchResult.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\SipAddress' => $baseDir . '/google/apiclient-services/src/PeopleService/SipAddress.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Skill' => $baseDir . '/google/apiclient-services/src/PeopleService/Skill.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Source' => $baseDir . '/google/apiclient-services/src/PeopleService/Source.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Status' => $baseDir . '/google/apiclient-services/src/PeopleService/Status.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Tagline' => $baseDir . '/google/apiclient-services/src/PeopleService/Tagline.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\UpdateContactGroupRequest' => $baseDir . '/google/apiclient-services/src/PeopleService/UpdateContactGroupRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\UpdateContactPhotoRequest' => $baseDir . '/google/apiclient-services/src/PeopleService/UpdateContactPhotoRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\UpdateContactPhotoResponse' => $baseDir . '/google/apiclient-services/src/PeopleService/UpdateContactPhotoResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\Url' => $baseDir . '/google/apiclient-services/src/PeopleService/Url.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\PeopleService\\UserDefined' => $baseDir . '/google/apiclient-services/src/PeopleService/UserDefined.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\Resource' => $baseDir . '/google/apiclient/src/Service/Resource.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole' => $baseDir . '/google/apiclient-services/src/SearchConsole.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\AmpInspectionResult' => $baseDir . '/google/apiclient-services/src/SearchConsole/AmpInspectionResult.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\AmpIssue' => $baseDir . '/google/apiclient-services/src/SearchConsole/AmpIssue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\ApiDataRow' => $baseDir . '/google/apiclient-services/src/SearchConsole/ApiDataRow.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\ApiDimensionFilter' => $baseDir . '/google/apiclient-services/src/SearchConsole/ApiDimensionFilter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\ApiDimensionFilterGroup' => $baseDir . '/google/apiclient-services/src/SearchConsole/ApiDimensionFilterGroup.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\BlockedResource' => $baseDir . '/google/apiclient-services/src/SearchConsole/BlockedResource.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\DetectedItems' => $baseDir . '/google/apiclient-services/src/SearchConsole/DetectedItems.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\Image' => $baseDir . '/google/apiclient-services/src/SearchConsole/Image.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\IndexStatusInspectionResult' => $baseDir . '/google/apiclient-services/src/SearchConsole/IndexStatusInspectionResult.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\InspectUrlIndexRequest' => $baseDir . '/google/apiclient-services/src/SearchConsole/InspectUrlIndexRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\InspectUrlIndexResponse' => $baseDir . '/google/apiclient-services/src/SearchConsole/InspectUrlIndexResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\Item' => $baseDir . '/google/apiclient-services/src/SearchConsole/Item.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\MobileFriendlyIssue' => $baseDir . '/google/apiclient-services/src/SearchConsole/MobileFriendlyIssue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\MobileUsabilityInspectionResult' => $baseDir . '/google/apiclient-services/src/SearchConsole/MobileUsabilityInspectionResult.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\MobileUsabilityIssue' => $baseDir . '/google/apiclient-services/src/SearchConsole/MobileUsabilityIssue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\ResourceIssue' => $baseDir . '/google/apiclient-services/src/SearchConsole/ResourceIssue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\Resource\\Searchanalytics' => $baseDir . '/google/apiclient-services/src/SearchConsole/Resource/Searchanalytics.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\Resource\\Sitemaps' => $baseDir . '/google/apiclient-services/src/SearchConsole/Resource/Sitemaps.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\Resource\\Sites' => $baseDir . '/google/apiclient-services/src/SearchConsole/Resource/Sites.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\Resource\\UrlInspection' => $baseDir . '/google/apiclient-services/src/SearchConsole/Resource/UrlInspection.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\Resource\\UrlInspectionIndex' => $baseDir . '/google/apiclient-services/src/SearchConsole/Resource/UrlInspectionIndex.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\Resource\\UrlTestingTools' => $baseDir . '/google/apiclient-services/src/SearchConsole/Resource/UrlTestingTools.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\Resource\\UrlTestingToolsMobileFriendlyTest' => $baseDir . '/google/apiclient-services/src/SearchConsole/Resource/UrlTestingToolsMobileFriendlyTest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\RichResultsInspectionResult' => $baseDir . '/google/apiclient-services/src/SearchConsole/RichResultsInspectionResult.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\RichResultsIssue' => $baseDir . '/google/apiclient-services/src/SearchConsole/RichResultsIssue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\RunMobileFriendlyTestRequest' => $baseDir . '/google/apiclient-services/src/SearchConsole/RunMobileFriendlyTestRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\RunMobileFriendlyTestResponse' => $baseDir . '/google/apiclient-services/src/SearchConsole/RunMobileFriendlyTestResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\SearchAnalyticsQueryRequest' => $baseDir . '/google/apiclient-services/src/SearchConsole/SearchAnalyticsQueryRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\SearchAnalyticsQueryResponse' => $baseDir . '/google/apiclient-services/src/SearchConsole/SearchAnalyticsQueryResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\SitemapsListResponse' => $baseDir . '/google/apiclient-services/src/SearchConsole/SitemapsListResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\SitesListResponse' => $baseDir . '/google/apiclient-services/src/SearchConsole/SitesListResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\TestStatus' => $baseDir . '/google/apiclient-services/src/SearchConsole/TestStatus.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\UrlInspectionResult' => $baseDir . '/google/apiclient-services/src/SearchConsole/UrlInspectionResult.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\WmxSite' => $baseDir . '/google/apiclient-services/src/SearchConsole/WmxSite.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\WmxSitemap' => $baseDir . '/google/apiclient-services/src/SearchConsole/WmxSitemap.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SearchConsole\\WmxSitemapContent' => $baseDir . '/google/apiclient-services/src/SearchConsole/WmxSitemapContent.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SiteVerification' => $baseDir . '/google/apiclient-services/src/SiteVerification.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SiteVerification\\Resource\\WebResource' => $baseDir . '/google/apiclient-services/src/SiteVerification/Resource/WebResource.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SiteVerification\\SiteVerificationWebResourceGettokenRequest' => $baseDir . '/google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceGettokenRequest.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SiteVerification\\SiteVerificationWebResourceGettokenRequestSite' => $baseDir . '/google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceGettokenRequestSite.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SiteVerification\\SiteVerificationWebResourceGettokenResponse' => $baseDir . '/google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceGettokenResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SiteVerification\\SiteVerificationWebResourceListResponse' => $baseDir . '/google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceListResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SiteVerification\\SiteVerificationWebResourceResource' => $baseDir . '/google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceResource.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\SiteVerification\\SiteVerificationWebResourceResourceSite' => $baseDir . '/google/apiclient-services/src/SiteVerification/SiteVerificationWebResourceResourceSite.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager' => $baseDir . '/google/apiclient-services/src/TagManager.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Account' => $baseDir . '/google/apiclient-services/src/TagManager/Account.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\AccountAccess' => $baseDir . '/google/apiclient-services/src/TagManager/AccountAccess.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\AccountFeatures' => $baseDir . '/google/apiclient-services/src/TagManager/AccountFeatures.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\BuiltInVariable' => $baseDir . '/google/apiclient-services/src/TagManager/BuiltInVariable.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Client' => $baseDir . '/google/apiclient-services/src/TagManager/Client.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Condition' => $baseDir . '/google/apiclient-services/src/TagManager/Condition.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Container' => $baseDir . '/google/apiclient-services/src/TagManager/Container.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ContainerAccess' => $baseDir . '/google/apiclient-services/src/TagManager/ContainerAccess.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ContainerFeatures' => $baseDir . '/google/apiclient-services/src/TagManager/ContainerFeatures.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ContainerVersion' => $baseDir . '/google/apiclient-services/src/TagManager/ContainerVersion.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ContainerVersionHeader' => $baseDir . '/google/apiclient-services/src/TagManager/ContainerVersionHeader.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\CreateBuiltInVariableResponse' => $baseDir . '/google/apiclient-services/src/TagManager/CreateBuiltInVariableResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\CreateContainerVersionRequestVersionOptions' => $baseDir . '/google/apiclient-services/src/TagManager/CreateContainerVersionRequestVersionOptions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\CreateContainerVersionResponse' => $baseDir . '/google/apiclient-services/src/TagManager/CreateContainerVersionResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\CustomTemplate' => $baseDir . '/google/apiclient-services/src/TagManager/CustomTemplate.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Destination' => $baseDir . '/google/apiclient-services/src/TagManager/Destination.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Entity' => $baseDir . '/google/apiclient-services/src/TagManager/Entity.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Environment' => $baseDir . '/google/apiclient-services/src/TagManager/Environment.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Folder' => $baseDir . '/google/apiclient-services/src/TagManager/Folder.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\FolderEntities' => $baseDir . '/google/apiclient-services/src/TagManager/FolderEntities.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\GalleryReference' => $baseDir . '/google/apiclient-services/src/TagManager/GalleryReference.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\GetContainerSnippetResponse' => $baseDir . '/google/apiclient-services/src/TagManager/GetContainerSnippetResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\GetWorkspaceStatusResponse' => $baseDir . '/google/apiclient-services/src/TagManager/GetWorkspaceStatusResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\GtagConfig' => $baseDir . '/google/apiclient-services/src/TagManager/GtagConfig.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListAccountsResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListAccountsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListClientsResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListClientsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListContainerVersionsResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListContainerVersionsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListContainersResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListContainersResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListDestinationsResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListDestinationsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListEnabledBuiltInVariablesResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListEnabledBuiltInVariablesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListEnvironmentsResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListEnvironmentsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListFoldersResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListFoldersResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListGtagConfigResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListGtagConfigResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListTagsResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListTagsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListTemplatesResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListTemplatesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListTriggersResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListTriggersResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListUserPermissionsResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListUserPermissionsResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListVariablesResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListVariablesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListWorkspacesResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListWorkspacesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ListZonesResponse' => $baseDir . '/google/apiclient-services/src/TagManager/ListZonesResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\MergeConflict' => $baseDir . '/google/apiclient-services/src/TagManager/MergeConflict.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Parameter' => $baseDir . '/google/apiclient-services/src/TagManager/Parameter.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\PublishContainerVersionResponse' => $baseDir . '/google/apiclient-services/src/TagManager/PublishContainerVersionResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\QuickPreviewResponse' => $baseDir . '/google/apiclient-services/src/TagManager/QuickPreviewResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\Accounts' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/Accounts.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainers' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainers.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersDestinations' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersDestinations.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersEnvironments' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersEnvironments.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersVersionHeaders' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersVersionHeaders.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersVersions' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersVersions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspaces' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspaces.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspacesBuiltInVariables' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesBuiltInVariables.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspacesClients' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesClients.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspacesFolders' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesFolders.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspacesGtagConfig' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesGtagConfig.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspacesTags' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTags.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspacesTemplates' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTemplates.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspacesTriggers' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesTriggers.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspacesVariables' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesVariables.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsContainersWorkspacesZones' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsContainersWorkspacesZones.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Resource\\AccountsUserPermissions' => $baseDir . '/google/apiclient-services/src/TagManager/Resource/AccountsUserPermissions.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\RevertBuiltInVariableResponse' => $baseDir . '/google/apiclient-services/src/TagManager/RevertBuiltInVariableResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\RevertClientResponse' => $baseDir . '/google/apiclient-services/src/TagManager/RevertClientResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\RevertFolderResponse' => $baseDir . '/google/apiclient-services/src/TagManager/RevertFolderResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\RevertTagResponse' => $baseDir . '/google/apiclient-services/src/TagManager/RevertTagResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\RevertTemplateResponse' => $baseDir . '/google/apiclient-services/src/TagManager/RevertTemplateResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\RevertTriggerResponse' => $baseDir . '/google/apiclient-services/src/TagManager/RevertTriggerResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\RevertVariableResponse' => $baseDir . '/google/apiclient-services/src/TagManager/RevertVariableResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\RevertZoneResponse' => $baseDir . '/google/apiclient-services/src/TagManager/RevertZoneResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\SetupTag' => $baseDir . '/google/apiclient-services/src/TagManager/SetupTag.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\SyncStatus' => $baseDir . '/google/apiclient-services/src/TagManager/SyncStatus.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\SyncWorkspaceResponse' => $baseDir . '/google/apiclient-services/src/TagManager/SyncWorkspaceResponse.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Tag' => $baseDir . '/google/apiclient-services/src/TagManager/Tag.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\TagConsentSetting' => $baseDir . '/google/apiclient-services/src/TagManager/TagConsentSetting.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\TeardownTag' => $baseDir . '/google/apiclient-services/src/TagManager/TeardownTag.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Trigger' => $baseDir . '/google/apiclient-services/src/TagManager/Trigger.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\UserPermission' => $baseDir . '/google/apiclient-services/src/TagManager/UserPermission.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Variable' => $baseDir . '/google/apiclient-services/src/TagManager/Variable.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\VariableFormatValue' => $baseDir . '/google/apiclient-services/src/TagManager/VariableFormatValue.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Workspace' => $baseDir . '/google/apiclient-services/src/TagManager/Workspace.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\Zone' => $baseDir . '/google/apiclient-services/src/TagManager/Zone.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ZoneBoundary' => $baseDir . '/google/apiclient-services/src/TagManager/ZoneBoundary.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ZoneChildContainer' => $baseDir . '/google/apiclient-services/src/TagManager/ZoneChildContainer.php', 'Google\\Site_Kit_Dependencies\\Google\\Service\\TagManager\\ZoneTypeRestriction' => $baseDir . '/google/apiclient-services/src/TagManager/ZoneTypeRestriction.php', 'Google\\Site_Kit_Dependencies\\Google\\Task\\Composer' => $baseDir . '/google/apiclient/src/Task/Composer.php', 'Google\\Site_Kit_Dependencies\\Google\\Task\\Exception' => $baseDir . '/google/apiclient/src/Task/Exception.php', 'Google\\Site_Kit_Dependencies\\Google\\Task\\Retryable' => $baseDir . '/google/apiclient/src/Task/Retryable.php', 'Google\\Site_Kit_Dependencies\\Google\\Task\\Runner' => $baseDir . '/google/apiclient/src/Task/Runner.php', 'Google\\Site_Kit_Dependencies\\Google\\Utils\\UriTemplate' => $baseDir . '/google/apiclient/src/Utils/UriTemplate.php', 'Google\\Site_Kit_Dependencies\\Google_AccessToken_Revoke' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_AccessToken_Verify' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_AuthHandler_AuthHandlerFactory' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_AuthHandler_Guzzle5AuthHandler' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_AuthHandler_Guzzle6AuthHandler' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_AuthHandler_Guzzle7AuthHandler' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Client' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Collection' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Exception' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Http_Batch' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Http_MediaFileUpload' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Http_REST' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Model' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Service' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Service_Exception' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Service_Resource' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Task_Composer' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Task_Exception' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Task_Retryable' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Task_Runner' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\Google_Utils_UriTemplate' => $baseDir . '/google/apiclient/src/aliases.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\BatchResults' => $baseDir . '/guzzlehttp/guzzle/src/BatchResults.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Client' => $baseDir . '/guzzlehttp/guzzle/src/Client.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\ClientInterface' => $baseDir . '/guzzlehttp/guzzle/src/ClientInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Collection' => $baseDir . '/guzzlehttp/guzzle/src/Collection.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Cookie\\CookieJar' => $baseDir . '/guzzlehttp/guzzle/src/Cookie/CookieJar.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Cookie\\CookieJarInterface' => $baseDir . '/guzzlehttp/guzzle/src/Cookie/CookieJarInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Cookie\\FileCookieJar' => $baseDir . '/guzzlehttp/guzzle/src/Cookie/FileCookieJar.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Cookie\\SessionCookieJar' => $baseDir . '/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Cookie\\SetCookie' => $baseDir . '/guzzlehttp/guzzle/src/Cookie/SetCookie.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\AbstractEvent' => $baseDir . '/guzzlehttp/guzzle/src/Event/AbstractEvent.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\AbstractRequestEvent' => $baseDir . '/guzzlehttp/guzzle/src/Event/AbstractRequestEvent.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\AbstractRetryableEvent' => $baseDir . '/guzzlehttp/guzzle/src/Event/AbstractRetryableEvent.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\AbstractTransferEvent' => $baseDir . '/guzzlehttp/guzzle/src/Event/AbstractTransferEvent.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\BeforeEvent' => $baseDir . '/guzzlehttp/guzzle/src/Event/BeforeEvent.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\CompleteEvent' => $baseDir . '/guzzlehttp/guzzle/src/Event/CompleteEvent.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\Emitter' => $baseDir . '/guzzlehttp/guzzle/src/Event/Emitter.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\EmitterInterface' => $baseDir . '/guzzlehttp/guzzle/src/Event/EmitterInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\EndEvent' => $baseDir . '/guzzlehttp/guzzle/src/Event/EndEvent.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\ErrorEvent' => $baseDir . '/guzzlehttp/guzzle/src/Event/ErrorEvent.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\EventInterface' => $baseDir . '/guzzlehttp/guzzle/src/Event/EventInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\HasEmitterInterface' => $baseDir . '/guzzlehttp/guzzle/src/Event/HasEmitterInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\HasEmitterTrait' => $baseDir . '/guzzlehttp/guzzle/src/Event/HasEmitterTrait.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\ListenerAttacherTrait' => $baseDir . '/guzzlehttp/guzzle/src/Event/ListenerAttacherTrait.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\ProgressEvent' => $baseDir . '/guzzlehttp/guzzle/src/Event/ProgressEvent.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\RequestEvents' => $baseDir . '/guzzlehttp/guzzle/src/Event/RequestEvents.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Event\\SubscriberInterface' => $baseDir . '/guzzlehttp/guzzle/src/Event/SubscriberInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\BadResponseException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/BadResponseException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\ClientException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/ClientException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\ConnectException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/ConnectException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\CouldNotRewindStreamException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/CouldNotRewindStreamException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\ParseException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/ParseException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\RequestException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/RequestException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\ServerException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/ServerException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\StateException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/StateException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\TooManyRedirectsException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\TransferException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/TransferException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Exception\\XmlParseException' => $baseDir . '/guzzlehttp/guzzle/src/Exception/XmlParseException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\HasDataTrait' => $baseDir . '/guzzlehttp/guzzle/src/HasDataTrait.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\AbstractMessage' => $baseDir . '/guzzlehttp/guzzle/src/Message/AbstractMessage.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\AppliesHeadersInterface' => $baseDir . '/guzzlehttp/guzzle/src/Message/AppliesHeadersInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\FutureResponse' => $baseDir . '/guzzlehttp/guzzle/src/Message/FutureResponse.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\MessageFactory' => $baseDir . '/guzzlehttp/guzzle/src/Message/MessageFactory.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\MessageFactoryInterface' => $baseDir . '/guzzlehttp/guzzle/src/Message/MessageFactoryInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\MessageInterface' => $baseDir . '/guzzlehttp/guzzle/src/Message/MessageInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\MessageParser' => $baseDir . '/guzzlehttp/guzzle/src/Message/MessageParser.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\Request' => $baseDir . '/guzzlehttp/guzzle/src/Message/Request.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\RequestInterface' => $baseDir . '/guzzlehttp/guzzle/src/Message/RequestInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\Response' => $baseDir . '/guzzlehttp/guzzle/src/Message/Response.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Message\\ResponseInterface' => $baseDir . '/guzzlehttp/guzzle/src/Message/ResponseInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Mimetypes' => $baseDir . '/guzzlehttp/guzzle/src/Mimetypes.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Pool' => $baseDir . '/guzzlehttp/guzzle/src/Pool.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Post\\MultipartBody' => $baseDir . '/guzzlehttp/guzzle/src/Post/MultipartBody.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Post\\PostBody' => $baseDir . '/guzzlehttp/guzzle/src/Post/PostBody.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Post\\PostBodyInterface' => $baseDir . '/guzzlehttp/guzzle/src/Post/PostBodyInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Post\\PostFile' => $baseDir . '/guzzlehttp/guzzle/src/Post/PostFile.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Post\\PostFileInterface' => $baseDir . '/guzzlehttp/guzzle/src/Post/PostFileInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\AppendStream' => $baseDir . '/guzzlehttp/psr7/src/AppendStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\BufferStream' => $baseDir . '/guzzlehttp/psr7/src/BufferStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\CachingStream' => $baseDir . '/guzzlehttp/psr7/src/CachingStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\DroppingStream' => $baseDir . '/guzzlehttp/psr7/src/DroppingStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\FnStream' => $baseDir . '/guzzlehttp/psr7/src/FnStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\Header' => $baseDir . '/guzzlehttp/psr7/src/Header.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\InflateStream' => $baseDir . '/guzzlehttp/psr7/src/InflateStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\LazyOpenStream' => $baseDir . '/guzzlehttp/psr7/src/LazyOpenStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\LimitStream' => $baseDir . '/guzzlehttp/psr7/src/LimitStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\Message' => $baseDir . '/guzzlehttp/psr7/src/Message.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\MessageTrait' => $baseDir . '/guzzlehttp/psr7/src/MessageTrait.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\MimeType' => $baseDir . '/guzzlehttp/psr7/src/MimeType.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\MultipartStream' => $baseDir . '/guzzlehttp/psr7/src/MultipartStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\NoSeekStream' => $baseDir . '/guzzlehttp/psr7/src/NoSeekStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\PumpStream' => $baseDir . '/guzzlehttp/psr7/src/PumpStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\Query' => $baseDir . '/guzzlehttp/psr7/src/Query.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\Request' => $baseDir . '/guzzlehttp/psr7/src/Request.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\Response' => $baseDir . '/guzzlehttp/psr7/src/Response.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\Rfc7230' => $baseDir . '/guzzlehttp/psr7/src/Rfc7230.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\ServerRequest' => $baseDir . '/guzzlehttp/psr7/src/ServerRequest.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\Stream' => $baseDir . '/guzzlehttp/psr7/src/Stream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\StreamDecoratorTrait' => $baseDir . '/guzzlehttp/psr7/src/StreamDecoratorTrait.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\StreamWrapper' => $baseDir . '/guzzlehttp/psr7/src/StreamWrapper.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\UploadedFile' => $baseDir . '/guzzlehttp/psr7/src/UploadedFile.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\Uri' => $baseDir . '/guzzlehttp/psr7/src/Uri.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\UriNormalizer' => $baseDir . '/guzzlehttp/psr7/src/UriNormalizer.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\UriResolver' => $baseDir . '/guzzlehttp/psr7/src/UriResolver.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Psr7\\Utils' => $baseDir . '/guzzlehttp/psr7/src/Utils.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Query' => $baseDir . '/guzzlehttp/guzzle/src/Query.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\QueryParser' => $baseDir . '/guzzlehttp/guzzle/src/QueryParser.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\RequestFsm' => $baseDir . '/guzzlehttp/guzzle/src/RequestFsm.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\RingBridge' => $baseDir . '/guzzlehttp/guzzle/src/RingBridge.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Client\\ClientUtils' => $baseDir . '/guzzlehttp/ringphp/src/Client/ClientUtils.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Client\\CurlFactory' => $baseDir . '/guzzlehttp/ringphp/src/Client/CurlFactory.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Client\\CurlHandler' => $baseDir . '/guzzlehttp/ringphp/src/Client/CurlHandler.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Client\\CurlMultiHandler' => $baseDir . '/guzzlehttp/ringphp/src/Client/CurlMultiHandler.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Client\\Middleware' => $baseDir . '/guzzlehttp/ringphp/src/Client/Middleware.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Client\\MockHandler' => $baseDir . '/guzzlehttp/ringphp/src/Client/MockHandler.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Client\\StreamHandler' => $baseDir . '/guzzlehttp/ringphp/src/Client/StreamHandler.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Core' => $baseDir . '/guzzlehttp/ringphp/src/Core.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Exception\\CancelledException' => $baseDir . '/guzzlehttp/ringphp/src/Exception/CancelledException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Exception\\CancelledFutureAccessException' => $baseDir . '/guzzlehttp/ringphp/src/Exception/CancelledFutureAccessException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Exception\\ConnectException' => $baseDir . '/guzzlehttp/ringphp/src/Exception/ConnectException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Exception\\RingException' => $baseDir . '/guzzlehttp/ringphp/src/Exception/RingException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Future\\BaseFutureTrait' => $baseDir . '/guzzlehttp/ringphp/src/Future/BaseFutureTrait.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Future\\CompletedFutureArray' => $baseDir . '/guzzlehttp/ringphp/src/Future/CompletedFutureArray.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Future\\CompletedFutureValue' => $baseDir . '/guzzlehttp/ringphp/src/Future/CompletedFutureValue.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Future\\FutureArray' => $baseDir . '/guzzlehttp/ringphp/src/Future/FutureArray.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Future\\FutureArrayInterface' => $baseDir . '/guzzlehttp/ringphp/src/Future/FutureArrayInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Future\\FutureInterface' => $baseDir . '/guzzlehttp/ringphp/src/Future/FutureInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Future\\FutureValue' => $baseDir . '/guzzlehttp/ringphp/src/Future/FutureValue.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Ring\\Future\\MagicFutureTrait' => $baseDir . '/guzzlehttp/ringphp/src/Future/MagicFutureTrait.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\AppendStream' => $baseDir . '/guzzlehttp/streams/src/AppendStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\AsyncReadStream' => $baseDir . '/guzzlehttp/streams/src/AsyncReadStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\BufferStream' => $baseDir . '/guzzlehttp/streams/src/BufferStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\CachingStream' => $baseDir . '/guzzlehttp/streams/src/CachingStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\DroppingStream' => $baseDir . '/guzzlehttp/streams/src/DroppingStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\Exception\\CannotAttachException' => $baseDir . '/guzzlehttp/streams/src/Exception/CannotAttachException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\Exception\\SeekException' => $baseDir . '/guzzlehttp/streams/src/Exception/SeekException.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\FnStream' => $baseDir . '/guzzlehttp/streams/src/FnStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\GuzzleStreamWrapper' => $baseDir . '/guzzlehttp/streams/src/GuzzleStreamWrapper.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\InflateStream' => $baseDir . '/guzzlehttp/streams/src/InflateStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\LazyOpenStream' => $baseDir . '/guzzlehttp/streams/src/LazyOpenStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\LimitStream' => $baseDir . '/guzzlehttp/streams/src/LimitStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\MetadataStreamInterface' => $baseDir . '/guzzlehttp/streams/src/MetadataStreamInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\NoSeekStream' => $baseDir . '/guzzlehttp/streams/src/NoSeekStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\NullStream' => $baseDir . '/guzzlehttp/streams/src/NullStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\PumpStream' => $baseDir . '/guzzlehttp/streams/src/PumpStream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\Stream' => $baseDir . '/guzzlehttp/streams/src/Stream.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\StreamDecoratorTrait' => $baseDir . '/guzzlehttp/streams/src/StreamDecoratorTrait.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\StreamInterface' => $baseDir . '/guzzlehttp/streams/src/StreamInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Stream\\Utils' => $baseDir . '/guzzlehttp/streams/src/Utils.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Subscriber\\Cookie' => $baseDir . '/guzzlehttp/guzzle/src/Subscriber/Cookie.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Subscriber\\History' => $baseDir . '/guzzlehttp/guzzle/src/Subscriber/History.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Subscriber\\HttpError' => $baseDir . '/guzzlehttp/guzzle/src/Subscriber/HttpError.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Subscriber\\Mock' => $baseDir . '/guzzlehttp/guzzle/src/Subscriber/Mock.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Subscriber\\Prepare' => $baseDir . '/guzzlehttp/guzzle/src/Subscriber/Prepare.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Subscriber\\Redirect' => $baseDir . '/guzzlehttp/guzzle/src/Subscriber/Redirect.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\ToArrayInterface' => $baseDir . '/guzzlehttp/guzzle/src/ToArrayInterface.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Transaction' => $baseDir . '/guzzlehttp/guzzle/src/Transaction.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\UriTemplate' => $baseDir . '/guzzlehttp/guzzle/src/UriTemplate.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Url' => $baseDir . '/guzzlehttp/guzzle/src/Url.php', 'Google\\Site_Kit_Dependencies\\GuzzleHttp\\Utils' => $baseDir . '/guzzlehttp/guzzle/src/Utils.php', 'Google\\Site_Kit_Dependencies\\Monolog\\ErrorHandler' => $baseDir . '/monolog/monolog/src/Monolog/ErrorHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\ChromePHPFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\ElasticaFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\FlowdockFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\FluentdFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\FormatterInterface' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/FormatterInterface.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\GelfMessageFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\HtmlFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\JsonFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/JsonFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\LineFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/LineFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\LogglyFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\LogstashFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\MongoDBFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\NormalizerFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\ScalarFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Formatter\\WildfireFormatter' => $baseDir . '/monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\AbstractHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/AbstractHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\AbstractProcessingHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\AbstractSyslogHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\AmqpHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/AmqpHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\BrowserConsoleHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\BufferHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/BufferHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\ChromePHPHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\CouchDBHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\CubeHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/CubeHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\Curl\\Util' => $baseDir . '/monolog/monolog/src/Monolog/Handler/Curl/Util.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\DeduplicationHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\DoctrineCouchDBHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\DynamoDbHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\ElasticSearchHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\ErrorLogHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FilterHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FilterHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FingersCrossedHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FingersCrossed\\ActivationStrategyInterface' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FingersCrossed\\ChannelLevelActivationStrategy' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FingersCrossed\\ErrorLevelActivationStrategy' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FirePHPHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FirePHPHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FleepHookHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FleepHookHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FlowdockHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FlowdockHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FormattableHandlerInterface' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\FormattableHandlerTrait' => $baseDir . '/monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\GelfHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/GelfHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\GroupHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/GroupHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\HandlerInterface' => $baseDir . '/monolog/monolog/src/Monolog/Handler/HandlerInterface.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\HandlerWrapper' => $baseDir . '/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\HipChatHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/HipChatHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\IFTTTHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/IFTTTHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\InsightOpsHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\LogEntriesHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\LogglyHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/LogglyHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\MailHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/MailHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\MandrillHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/MandrillHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\MissingExtensionException' => $baseDir . '/monolog/monolog/src/Monolog/Handler/MissingExtensionException.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\MongoDBHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\NativeMailerHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\NewRelicHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\NullHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/NullHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\PHPConsoleHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\ProcessableHandlerInterface' => $baseDir . '/monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\ProcessableHandlerTrait' => $baseDir . '/monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\PsrHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/PsrHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\PushoverHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/PushoverHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\RavenHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/RavenHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\RedisHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/RedisHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\RollbarHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/RollbarHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\RotatingFileHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\SamplingHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/SamplingHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\SlackHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/SlackHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\SlackWebhookHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\Slack\\SlackRecord' => $baseDir . '/monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\SlackbotHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/SlackbotHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\SocketHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/SocketHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\StreamHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/StreamHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\SwiftMailerHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\SyslogHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/SyslogHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\SyslogUdpHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\SyslogUdp\\UdpSocket' => $baseDir . '/monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\TestHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/TestHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\WhatFailureGroupHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Handler\\ZendMonitorHandler' => $baseDir . '/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Logger' => $baseDir . '/monolog/monolog/src/Monolog/Logger.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\GitProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/GitProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\IntrospectionProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\MemoryPeakUsageProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\MemoryProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/MemoryProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\MemoryUsageProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\MercurialProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/MercurialProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\ProcessIdProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\ProcessorInterface' => $baseDir . '/monolog/monolog/src/Monolog/Processor/ProcessorInterface.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\PsrLogMessageProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\TagProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/TagProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\UidProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/UidProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Processor\\WebProcessor' => $baseDir . '/monolog/monolog/src/Monolog/Processor/WebProcessor.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Registry' => $baseDir . '/monolog/monolog/src/Monolog/Registry.php', 'Google\\Site_Kit_Dependencies\\Monolog\\ResettableInterface' => $baseDir . '/monolog/monolog/src/Monolog/ResettableInterface.php', 'Google\\Site_Kit_Dependencies\\Monolog\\SignalHandler' => $baseDir . '/monolog/monolog/src/Monolog/SignalHandler.php', 'Google\\Site_Kit_Dependencies\\Monolog\\Utils' => $baseDir . '/monolog/monolog/src/Monolog/Utils.php', 'Google\\Site_Kit_Dependencies\\Psr\\Cache\\CacheException' => $baseDir . '/psr/cache/src/CacheException.php', 'Google\\Site_Kit_Dependencies\\Psr\\Cache\\CacheItemInterface' => $baseDir . '/psr/cache/src/CacheItemInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Cache\\CacheItemPoolInterface' => $baseDir . '/psr/cache/src/CacheItemPoolInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Cache\\InvalidArgumentException' => $baseDir . '/psr/cache/src/InvalidArgumentException.php', 'Google\\Site_Kit_Dependencies\\Psr\\Http\\Message\\MessageInterface' => $baseDir . '/psr/http-message/src/MessageInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Http\\Message\\RequestInterface' => $baseDir . '/psr/http-message/src/RequestInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Http\\Message\\ResponseInterface' => $baseDir . '/psr/http-message/src/ResponseInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Http\\Message\\ServerRequestInterface' => $baseDir . '/psr/http-message/src/ServerRequestInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Http\\Message\\StreamInterface' => $baseDir . '/psr/http-message/src/StreamInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Http\\Message\\UploadedFileInterface' => $baseDir . '/psr/http-message/src/UploadedFileInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Http\\Message\\UriInterface' => $baseDir . '/psr/http-message/src/UriInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\AbstractLogger' => $baseDir . '/psr/log/Psr/Log/AbstractLogger.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\InvalidArgumentException' => $baseDir . '/psr/log/Psr/Log/InvalidArgumentException.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\LogLevel' => $baseDir . '/psr/log/Psr/Log/LogLevel.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\LoggerAwareInterface' => $baseDir . '/psr/log/Psr/Log/LoggerAwareInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\LoggerAwareTrait' => $baseDir . '/psr/log/Psr/Log/LoggerAwareTrait.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\LoggerInterface' => $baseDir . '/psr/log/Psr/Log/LoggerInterface.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\LoggerTrait' => $baseDir . '/psr/log/Psr/Log/LoggerTrait.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\NullLogger' => $baseDir . '/psr/log/Psr/Log/NullLogger.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\Test\\DummyTest' => $baseDir . '/psr/log/Psr/Log/Test/DummyTest.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\Test\\LoggerInterfaceTest' => $baseDir . '/psr/log/Psr/Log/Test/LoggerInterfaceTest.php', 'Google\\Site_Kit_Dependencies\\Psr\\Log\\Test\\TestLogger' => $baseDir . '/psr/log/Psr/Log/Test/TestLogger.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\CancellablePromiseInterface' => $baseDir . '/react/promise/src/CancellablePromiseInterface.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\CancellationQueue' => $baseDir . '/react/promise/src/CancellationQueue.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\Deferred' => $baseDir . '/react/promise/src/Deferred.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\Exception\\LengthException' => $baseDir . '/react/promise/src/Exception/LengthException.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\ExtendedPromiseInterface' => $baseDir . '/react/promise/src/ExtendedPromiseInterface.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\FulfilledPromise' => $baseDir . '/react/promise/src/FulfilledPromise.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\LazyPromise' => $baseDir . '/react/promise/src/LazyPromise.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\Promise' => $baseDir . '/react/promise/src/Promise.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\PromiseInterface' => $baseDir . '/react/promise/src/PromiseInterface.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\PromisorInterface' => $baseDir . '/react/promise/src/PromisorInterface.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\RejectedPromise' => $baseDir . '/react/promise/src/RejectedPromise.php', 'Google\\Site_Kit_Dependencies\\React\\Promise\\UnhandledRejectionException' => $baseDir . '/react/promise/src/UnhandledRejectionException.php', 'Google\\Site_Kit_Dependencies\\TrueBV\\Exception\\DomainOutOfBoundsException' => $baseDir . '/true/punycode/src/Exception/DomainOutOfBoundsException.php', 'Google\\Site_Kit_Dependencies\\TrueBV\\Exception\\LabelOutOfBoundsException' => $baseDir . '/true/punycode/src/Exception/LabelOutOfBoundsException.php', 'Google\\Site_Kit_Dependencies\\TrueBV\\Exception\\OutOfBoundsException' => $baseDir . '/true/punycode/src/Exception/OutOfBoundsException.php', 'Google\\Site_Kit_Dependencies\\TrueBV\\Punycode' => $baseDir . '/true/punycode/src/Punycode.php', ); vendor/autoload_files.php000064400000001177150544704730011563 0ustar00 $vendorDir . '/react/promise/src/functions_include.php', '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', '1f87db08236948d07391152dccb70f04' => $vendorDir . '/google/apiclient-services/autoload.php', 'a8d3953fd9959404dd22d3dfcd0a79f0' => $vendorDir . '/google/apiclient/src/aliases.php', ); monolog/monolog/src/Monolog/Logger.php000064400000054011150544704730014033 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog; use Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface; use Google\Site_Kit_Dependencies\Monolog\Handler\StreamHandler; use Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface; use Google\Site_Kit_Dependencies\Psr\Log\InvalidArgumentException; use Exception; /** * Monolog log channel * * It contains a stack of Handlers and a stack of Processors, * and uses them to store records that are added to it. * * @author Jordi Boggiano */ class Logger implements \Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface, \Google\Site_Kit_Dependencies\Monolog\ResettableInterface { /** * Detailed debug information */ const DEBUG = 100; /** * Interesting events * * Examples: User logs in, SQL logs. */ const INFO = 200; /** * Uncommon events */ const NOTICE = 250; /** * Exceptional occurrences that are not errors * * Examples: Use of deprecated APIs, poor use of an API, * undesirable things that are not necessarily wrong. */ const WARNING = 300; /** * Runtime errors */ const ERROR = 400; /** * Critical conditions * * Example: Application component unavailable, unexpected exception. */ const CRITICAL = 500; /** * Action must be taken immediately * * Example: Entire website down, database unavailable, etc. * This should trigger the SMS alerts and wake you up. */ const ALERT = 550; /** * Urgent alert. */ const EMERGENCY = 600; /** * Monolog API version * * This is only bumped when API breaks are done and should * follow the major version of the library * * @var int */ const API = 1; /** * Logging levels from syslog protocol defined in RFC 5424 * * @var array $levels Logging levels */ protected static $levels = array(self::DEBUG => 'DEBUG', self::INFO => 'INFO', self::NOTICE => 'NOTICE', self::WARNING => 'WARNING', self::ERROR => 'ERROR', self::CRITICAL => 'CRITICAL', self::ALERT => 'ALERT', self::EMERGENCY => 'EMERGENCY'); /** * @var \DateTimeZone */ protected static $timezone; /** * @var string */ protected $name; /** * The handler stack * * @var HandlerInterface[] */ protected $handlers; /** * Processors that will process all log records * * To process records of a single handler instead, add the processor on that specific handler * * @var callable[] */ protected $processors; /** * @var bool */ protected $microsecondTimestamps = \true; /** * @var callable */ protected $exceptionHandler; /** * @param string $name The logging channel * @param HandlerInterface[] $handlers Optional stack of handlers, the first one in the array is called first, etc. * @param callable[] $processors Optional array of processors */ public function __construct($name, array $handlers = array(), array $processors = array()) { $this->name = $name; $this->setHandlers($handlers); $this->processors = $processors; } /** * @return string */ public function getName() { return $this->name; } /** * Return a new cloned instance with the name changed * * @return static */ public function withName($name) { $new = clone $this; $new->name = $name; return $new; } /** * Pushes a handler on to the stack. * * @param HandlerInterface $handler * @return $this */ public function pushHandler(\Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface $handler) { \array_unshift($this->handlers, $handler); return $this; } /** * Pops a handler from the stack * * @return HandlerInterface */ public function popHandler() { if (!$this->handlers) { throw new \LogicException('You tried to pop from an empty handler stack.'); } return \array_shift($this->handlers); } /** * Set handlers, replacing all existing ones. * * If a map is passed, keys will be ignored. * * @param HandlerInterface[] $handlers * @return $this */ public function setHandlers(array $handlers) { $this->handlers = array(); foreach (\array_reverse($handlers) as $handler) { $this->pushHandler($handler); } return $this; } /** * @return HandlerInterface[] */ public function getHandlers() { return $this->handlers; } /** * Adds a processor on to the stack. * * @param callable $callback * @return $this */ public function pushProcessor($callback) { if (!\is_callable($callback)) { throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), ' . \var_export($callback, \true) . ' given'); } \array_unshift($this->processors, $callback); return $this; } /** * Removes the processor on top of the stack and returns it. * * @return callable */ public function popProcessor() { if (!$this->processors) { throw new \LogicException('You tried to pop from an empty processor stack.'); } return \array_shift($this->processors); } /** * @return callable[] */ public function getProcessors() { return $this->processors; } /** * Control the use of microsecond resolution timestamps in the 'datetime' * member of new records. * * Generating microsecond resolution timestamps by calling * microtime(true), formatting the result via sprintf() and then parsing * the resulting string via \DateTime::createFromFormat() can incur * a measurable runtime overhead vs simple usage of DateTime to capture * a second resolution timestamp in systems which generate a large number * of log events. * * @param bool $micro True to use microtime() to create timestamps */ public function useMicrosecondTimestamps($micro) { $this->microsecondTimestamps = (bool) $micro; } /** * Adds a log record. * * @param int $level The logging level * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addRecord($level, $message, array $context = array()) { if (!$this->handlers) { $this->pushHandler(new \Google\Site_Kit_Dependencies\Monolog\Handler\StreamHandler('php://stderr', static::DEBUG)); } $levelName = static::getLevelName($level); // check if any handler will handle this message so we can return early and save cycles $handlerKey = null; \reset($this->handlers); while ($handler = \current($this->handlers)) { if ($handler->isHandling(array('level' => $level))) { $handlerKey = \key($this->handlers); break; } \next($this->handlers); } if (null === $handlerKey) { return \false; } if (!static::$timezone) { static::$timezone = new \DateTimeZone(\date_default_timezone_get() ?: 'UTC'); } // php7.1+ always has microseconds enabled, so we do not need this hack if ($this->microsecondTimestamps && \PHP_VERSION_ID < 70100) { $ts = \DateTime::createFromFormat('U.u', \sprintf('%.6F', \microtime(\true)), static::$timezone); } else { $ts = new \DateTime('now', static::$timezone); } $ts->setTimezone(static::$timezone); $record = array('message' => (string) $message, 'context' => $context, 'level' => $level, 'level_name' => $levelName, 'channel' => $this->name, 'datetime' => $ts, 'extra' => array()); try { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } while ($handler = \current($this->handlers)) { if (\true === $handler->handle($record)) { break; } \next($this->handlers); } } catch (\Exception $e) { $this->handleException($e, $record); } return \true; } /** * Ends a log cycle and frees all resources used by handlers. * * Closing a Handler means flushing all buffers and freeing any open resources/handles. * Handlers that have been closed should be able to accept log records again and re-open * themselves on demand, but this may not always be possible depending on implementation. * * This is useful at the end of a request and will be called automatically on every handler * when they get destructed. */ public function close() { foreach ($this->handlers as $handler) { if (\method_exists($handler, 'close')) { $handler->close(); } } } /** * Ends a log cycle and resets all handlers and processors to their initial state. * * Resetting a Handler or a Processor means flushing/cleaning all buffers, resetting internal * state, and getting it back to a state in which it can receive log records again. * * This is useful in case you want to avoid logs leaking between two requests or jobs when you * have a long running process like a worker or an application server serving multiple requests * in one process. */ public function reset() { foreach ($this->handlers as $handler) { if ($handler instanceof \Google\Site_Kit_Dependencies\Monolog\ResettableInterface) { $handler->reset(); } } foreach ($this->processors as $processor) { if ($processor instanceof \Google\Site_Kit_Dependencies\Monolog\ResettableInterface) { $processor->reset(); } } } /** * Adds a log record at the DEBUG level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addDebug($message, array $context = array()) { return $this->addRecord(static::DEBUG, $message, $context); } /** * Adds a log record at the INFO level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addInfo($message, array $context = array()) { return $this->addRecord(static::INFO, $message, $context); } /** * Adds a log record at the NOTICE level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addNotice($message, array $context = array()) { return $this->addRecord(static::NOTICE, $message, $context); } /** * Adds a log record at the WARNING level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addWarning($message, array $context = array()) { return $this->addRecord(static::WARNING, $message, $context); } /** * Adds a log record at the ERROR level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addError($message, array $context = array()) { return $this->addRecord(static::ERROR, $message, $context); } /** * Adds a log record at the CRITICAL level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addCritical($message, array $context = array()) { return $this->addRecord(static::CRITICAL, $message, $context); } /** * Adds a log record at the ALERT level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addAlert($message, array $context = array()) { return $this->addRecord(static::ALERT, $message, $context); } /** * Adds a log record at the EMERGENCY level. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function addEmergency($message, array $context = array()) { return $this->addRecord(static::EMERGENCY, $message, $context); } /** * Gets all supported logging levels. * * @return array Assoc array with human-readable level names => level codes. */ public static function getLevels() { return \array_flip(static::$levels); } /** * Gets the name of the logging level. * * @param int $level * @return string */ public static function getLevelName($level) { if (!isset(static::$levels[$level])) { throw new \Google\Site_Kit_Dependencies\Psr\Log\InvalidArgumentException('Level "' . $level . '" is not defined, use one of: ' . \implode(', ', \array_keys(static::$levels))); } return static::$levels[$level]; } /** * Converts PSR-3 levels to Monolog ones if necessary * * @param string|int $level Level number (monolog) or name (PSR-3) * @return int */ public static function toMonologLevel($level) { if (\is_string($level)) { // Contains chars of all log levels and avoids using strtoupper() which may have // strange results depending on locale (for example, "i" will become "İ") $upper = \strtr($level, 'abcdefgilmnortuwy', 'ABCDEFGILMNORTUWY'); if (\defined(__CLASS__ . '::' . $upper)) { return \constant(__CLASS__ . '::' . $upper); } } return $level; } /** * Checks whether the Logger has a handler that listens on the given level * * @param int $level * @return bool */ public function isHandling($level) { $record = array('level' => $level); foreach ($this->handlers as $handler) { if ($handler->isHandling($record)) { return \true; } } return \false; } /** * Set a custom exception handler * * @param callable $callback * @return $this */ public function setExceptionHandler($callback) { if (!\is_callable($callback)) { throw new \InvalidArgumentException('Exception handler must be valid callable (callback or object with an __invoke method), ' . \var_export($callback, \true) . ' given'); } $this->exceptionHandler = $callback; return $this; } /** * @return callable */ public function getExceptionHandler() { return $this->exceptionHandler; } /** * Delegates exception management to the custom exception handler, * or throws the exception if no custom handler is set. */ protected function handleException(\Exception $e, array $record) { if (!$this->exceptionHandler) { throw $e; } \call_user_func($this->exceptionHandler, $e, $record); } /** * Adds a log record at an arbitrary level. * * This method allows for compatibility with common interfaces. * * @param mixed $level The log level * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function log($level, $message, array $context = array()) { $level = static::toMonologLevel($level); return $this->addRecord($level, $message, $context); } /** * Adds a log record at the DEBUG level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function debug($message, array $context = array()) { return $this->addRecord(static::DEBUG, $message, $context); } /** * Adds a log record at the INFO level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function info($message, array $context = array()) { return $this->addRecord(static::INFO, $message, $context); } /** * Adds a log record at the NOTICE level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function notice($message, array $context = array()) { return $this->addRecord(static::NOTICE, $message, $context); } /** * Adds a log record at the WARNING level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function warn($message, array $context = array()) { return $this->addRecord(static::WARNING, $message, $context); } /** * Adds a log record at the WARNING level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function warning($message, array $context = array()) { return $this->addRecord(static::WARNING, $message, $context); } /** * Adds a log record at the ERROR level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function err($message, array $context = array()) { return $this->addRecord(static::ERROR, $message, $context); } /** * Adds a log record at the ERROR level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function error($message, array $context = array()) { return $this->addRecord(static::ERROR, $message, $context); } /** * Adds a log record at the CRITICAL level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function crit($message, array $context = array()) { return $this->addRecord(static::CRITICAL, $message, $context); } /** * Adds a log record at the CRITICAL level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function critical($message, array $context = array()) { return $this->addRecord(static::CRITICAL, $message, $context); } /** * Adds a log record at the ALERT level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function alert($message, array $context = array()) { return $this->addRecord(static::ALERT, $message, $context); } /** * Adds a log record at the EMERGENCY level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function emerg($message, array $context = array()) { return $this->addRecord(static::EMERGENCY, $message, $context); } /** * Adds a log record at the EMERGENCY level. * * This method allows for compatibility with common interfaces. * * @param string $message The log message * @param array $context The log context * @return bool Whether the record has been processed */ public function emergency($message, array $context = array()) { return $this->addRecord(static::EMERGENCY, $message, $context); } /** * Set the timezone to be used for the timestamp of log records. * * This is stored globally for all Logger instances * * @param \DateTimeZone $tz Timezone object */ public static function setTimezone(\DateTimeZone $tz) { self::$timezone = $tz; } } monolog/monolog/src/Monolog/ErrorHandler.php000064400000022156150544704730015210 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog; use Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface; use Google\Site_Kit_Dependencies\Psr\Log\LogLevel; use Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler; /** * Monolog error handler * * A facility to enable logging of runtime errors, exceptions and fatal errors. * * Quick setup: ErrorHandler::register($logger); * * @author Jordi Boggiano */ class ErrorHandler { private $logger; private $previousExceptionHandler; private $uncaughtExceptionLevel; private $previousErrorHandler; private $errorLevelMap; private $handleOnlyReportedErrors; private $hasFatalErrorHandler; private $fatalLevel; private $reservedMemory; private $lastFatalTrace; private static $fatalErrors = array(\E_ERROR, \E_PARSE, \E_CORE_ERROR, \E_COMPILE_ERROR, \E_USER_ERROR); public function __construct(\Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface $logger) { $this->logger = $logger; } /** * Registers a new ErrorHandler for a given Logger * * By default it will handle errors, exceptions and fatal errors * * @param LoggerInterface $logger * @param array|false $errorLevelMap an array of E_* constant to LogLevel::* constant mapping, or false to disable error handling * @param int|false $exceptionLevel a LogLevel::* constant, or false to disable exception handling * @param int|false $fatalLevel a LogLevel::* constant, or false to disable fatal error handling * @return ErrorHandler */ public static function register(\Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface $logger, $errorLevelMap = array(), $exceptionLevel = null, $fatalLevel = null) { //Forces the autoloader to run for LogLevel. Fixes an autoload issue at compile-time on PHP5.3. See https://github.com/Seldaek/monolog/pull/929 \class_exists('Google\\Site_Kit_Dependencies\\Psr\\Log\\LogLevel', \true); /** @phpstan-ignore-next-line */ $handler = new static($logger); if ($errorLevelMap !== \false) { $handler->registerErrorHandler($errorLevelMap); } if ($exceptionLevel !== \false) { $handler->registerExceptionHandler($exceptionLevel); } if ($fatalLevel !== \false) { $handler->registerFatalHandler($fatalLevel); } return $handler; } public function registerExceptionHandler($level = null, $callPrevious = \true) { $prev = \set_exception_handler(array($this, 'handleException')); $this->uncaughtExceptionLevel = $level; if ($callPrevious && $prev) { $this->previousExceptionHandler = $prev; } } public function registerErrorHandler(array $levelMap = array(), $callPrevious = \true, $errorTypes = -1, $handleOnlyReportedErrors = \true) { $prev = \set_error_handler(array($this, 'handleError'), $errorTypes); $this->errorLevelMap = \array_replace($this->defaultErrorLevelMap(), $levelMap); if ($callPrevious) { $this->previousErrorHandler = $prev ?: \true; } $this->handleOnlyReportedErrors = $handleOnlyReportedErrors; } public function registerFatalHandler($level = null, $reservedMemorySize = 20) { \register_shutdown_function(array($this, 'handleFatalError')); $this->reservedMemory = \str_repeat(' ', 1024 * $reservedMemorySize); $this->fatalLevel = $level; $this->hasFatalErrorHandler = \true; } protected function defaultErrorLevelMap() { return array(\E_ERROR => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::CRITICAL, \E_WARNING => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::WARNING, \E_PARSE => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ALERT, \E_NOTICE => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::NOTICE, \E_CORE_ERROR => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::CRITICAL, \E_CORE_WARNING => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::WARNING, \E_COMPILE_ERROR => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ALERT, \E_COMPILE_WARNING => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::WARNING, \E_USER_ERROR => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ERROR, \E_USER_WARNING => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::WARNING, \E_USER_NOTICE => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::NOTICE, \E_STRICT => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::NOTICE, \E_RECOVERABLE_ERROR => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ERROR, \E_DEPRECATED => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::NOTICE, \E_USER_DEPRECATED => \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::NOTICE); } /** * @private */ public function handleException($e) { $this->logger->log($this->uncaughtExceptionLevel === null ? \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ERROR : $this->uncaughtExceptionLevel, \sprintf('Uncaught Exception %s: "%s" at %s line %s', \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($e), $e->getMessage(), $e->getFile(), $e->getLine()), array('exception' => $e)); if ($this->previousExceptionHandler) { \call_user_func($this->previousExceptionHandler, $e); } exit(255); } /** * @private */ public function handleError($code, $message, $file = '', $line = 0, $context = array()) { if ($this->handleOnlyReportedErrors && !(\error_reporting() & $code)) { return; } // fatal error codes are ignored if a fatal error handler is present as well to avoid duplicate log entries if (!$this->hasFatalErrorHandler || !\in_array($code, self::$fatalErrors, \true)) { $level = isset($this->errorLevelMap[$code]) ? $this->errorLevelMap[$code] : \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::CRITICAL; $this->logger->log($level, self::codeToString($code) . ': ' . $message, array('code' => $code, 'message' => $message, 'file' => $file, 'line' => $line)); } else { // http://php.net/manual/en/function.debug-backtrace.php // As of 5.3.6, DEBUG_BACKTRACE_IGNORE_ARGS option was added. // Any version less than 5.3.6 must use the DEBUG_BACKTRACE_IGNORE_ARGS constant value '2'. $trace = \debug_backtrace(\PHP_VERSION_ID < 50306 ? 2 : \DEBUG_BACKTRACE_IGNORE_ARGS); \array_shift($trace); // Exclude handleError from trace $this->lastFatalTrace = $trace; } if ($this->previousErrorHandler === \true) { return \false; } elseif ($this->previousErrorHandler) { return \call_user_func($this->previousErrorHandler, $code, $message, $file, $line, $context); } } /** * @private */ public function handleFatalError() { $this->reservedMemory = null; $lastError = \error_get_last(); if ($lastError && \in_array($lastError['type'], self::$fatalErrors, \true)) { $this->logger->log($this->fatalLevel === null ? \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ALERT : $this->fatalLevel, 'Fatal Error (' . self::codeToString($lastError['type']) . '): ' . $lastError['message'], array('code' => $lastError['type'], 'message' => $lastError['message'], 'file' => $lastError['file'], 'line' => $lastError['line'], 'trace' => $this->lastFatalTrace)); if ($this->logger instanceof \Google\Site_Kit_Dependencies\Monolog\Logger) { foreach ($this->logger->getHandlers() as $handler) { if ($handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler) { $handler->close(); } } } } } private static function codeToString($code) { switch ($code) { case \E_ERROR: return 'E_ERROR'; case \E_WARNING: return 'E_WARNING'; case \E_PARSE: return 'E_PARSE'; case \E_NOTICE: return 'E_NOTICE'; case \E_CORE_ERROR: return 'E_CORE_ERROR'; case \E_CORE_WARNING: return 'E_CORE_WARNING'; case \E_COMPILE_ERROR: return 'E_COMPILE_ERROR'; case \E_COMPILE_WARNING: return 'E_COMPILE_WARNING'; case \E_USER_ERROR: return 'E_USER_ERROR'; case \E_USER_WARNING: return 'E_USER_WARNING'; case \E_USER_NOTICE: return 'E_USER_NOTICE'; case \E_STRICT: return 'E_STRICT'; case \E_RECOVERABLE_ERROR: return 'E_RECOVERABLE_ERROR'; case \E_DEPRECATED: return 'E_DEPRECATED'; case \E_USER_DEPRECATED: return 'E_USER_DEPRECATED'; } return 'Unknown PHP error'; } } monolog/monolog/src/Monolog/Utils.php000064400000014505150544704730013720 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog; class Utils { /** * @internal */ public static function getClass($object) { $class = \get_class($object); return 'c' === $class[0] && 0 === \strpos($class, "class@anonymous\0") ? \get_parent_class($class) . '@anonymous' : $class; } /** * Makes sure if a relative path is passed in it is turned into an absolute path * * @param string $streamUrl stream URL or path without protocol * * @return string */ public static function canonicalizePath($streamUrl) { $prefix = ''; if ('file://' === \substr($streamUrl, 0, 7)) { $streamUrl = \substr($streamUrl, 7); $prefix = 'file://'; } // other type of stream, not supported if (\false !== \strpos($streamUrl, '://')) { return $streamUrl; } // already absolute if (\substr($streamUrl, 0, 1) === '/' || \substr($streamUrl, 1, 1) === ':' || \substr($streamUrl, 0, 2) === '\\\\') { return $prefix . $streamUrl; } $streamUrl = \getcwd() . '/' . $streamUrl; return $prefix . $streamUrl; } /** * Return the JSON representation of a value * * @param mixed $data * @param int $encodeFlags flags to pass to json encode, defaults to JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE * @param bool $ignoreErrors whether to ignore encoding errors or to throw on error, when ignored and the encoding fails, "null" is returned which is valid json for null * @throws \RuntimeException if encoding fails and errors are not ignored * @return string */ public static function jsonEncode($data, $encodeFlags = null, $ignoreErrors = \false) { if (null === $encodeFlags && \version_compare(\PHP_VERSION, '5.4.0', '>=')) { $encodeFlags = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE; } if ($ignoreErrors) { $json = @\json_encode($data, $encodeFlags); if (\false === $json) { return 'null'; } return $json; } $json = \json_encode($data, $encodeFlags); if (\false === $json) { $json = self::handleJsonError(\json_last_error(), $data); } return $json; } /** * Handle a json_encode failure. * * If the failure is due to invalid string encoding, try to clean the * input and encode again. If the second encoding attempt fails, the * inital error is not encoding related or the input can't be cleaned then * raise a descriptive exception. * * @param int $code return code of json_last_error function * @param mixed $data data that was meant to be encoded * @param int $encodeFlags flags to pass to json encode, defaults to JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE * @throws \RuntimeException if failure can't be corrected * @return string JSON encoded data after error correction */ public static function handleJsonError($code, $data, $encodeFlags = null) { if ($code !== \JSON_ERROR_UTF8) { self::throwEncodeError($code, $data); } if (\is_string($data)) { self::detectAndCleanUtf8($data); } elseif (\is_array($data)) { \array_walk_recursive($data, array('Monolog\\Utils', 'detectAndCleanUtf8')); } else { self::throwEncodeError($code, $data); } if (null === $encodeFlags && \version_compare(\PHP_VERSION, '5.4.0', '>=')) { $encodeFlags = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE; } $json = \json_encode($data, $encodeFlags); if ($json === \false) { self::throwEncodeError(\json_last_error(), $data); } return $json; } /** * Throws an exception according to a given code with a customized message * * @param int $code return code of json_last_error function * @param mixed $data data that was meant to be encoded * @throws \RuntimeException */ private static function throwEncodeError($code, $data) { switch ($code) { case \JSON_ERROR_DEPTH: $msg = 'Maximum stack depth exceeded'; break; case \JSON_ERROR_STATE_MISMATCH: $msg = 'Underflow or the modes mismatch'; break; case \JSON_ERROR_CTRL_CHAR: $msg = 'Unexpected control character found'; break; case \JSON_ERROR_UTF8: $msg = 'Malformed UTF-8 characters, possibly incorrectly encoded'; break; default: $msg = 'Unknown error'; } throw new \RuntimeException('JSON encoding failed: ' . $msg . '. Encoding: ' . \var_export($data, \true)); } /** * Detect invalid UTF-8 string characters and convert to valid UTF-8. * * Valid UTF-8 input will be left unmodified, but strings containing * invalid UTF-8 codepoints will be reencoded as UTF-8 with an assumed * original encoding of ISO-8859-15. This conversion may result in * incorrect output if the actual encoding was not ISO-8859-15, but it * will be clean UTF-8 output and will not rely on expensive and fragile * detection algorithms. * * Function converts the input in place in the passed variable so that it * can be used as a callback for array_walk_recursive. * * @param mixed $data Input to check and convert if needed, passed by ref * @private */ public static function detectAndCleanUtf8(&$data) { if (\is_string($data) && !\preg_match('//u', $data)) { $data = \preg_replace_callback('/[\\x80-\\xFF]+/', function ($m) { return \utf8_encode($m[0]); }, $data); $data = \str_replace(array('¤', '¦', '¨', '´', '¸', '¼', '½', '¾'), array('€', 'Å ', 'Å¡', 'Ž', 'ž', 'Å’', 'Å“', 'Ÿ'), $data); } } } monolog/monolog/src/Monolog/ResettableInterface.php000064400000001713150544704730016530 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog; /** * Handler or Processor implementing this interface will be reset when Logger::reset() is called. * * Resetting ends a log cycle gets them back to their initial state. * * Resetting a Handler or a Processor means flushing/cleaning all buffers, resetting internal * state, and getting it back to a state in which it can receive log records again. * * This is useful in case you want to avoid logs leaking between two requests or jobs when you * have a long running process like a worker or an application server serving multiple requests * in one process. * * @author Grégoire Pineau */ interface ResettableInterface { public function reset(); } monolog/monolog/src/Monolog/Registry.php000064400000010105150544704730014420 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog; use InvalidArgumentException; /** * Monolog log registry * * Allows to get `Logger` instances in the global scope * via static method calls on this class. * * * $application = new Monolog\Logger('application'); * $api = new Monolog\Logger('api'); * * Monolog\Registry::addLogger($application); * Monolog\Registry::addLogger($api); * * function testLogger() * { * Monolog\Registry::api()->addError('Sent to $api Logger instance'); * Monolog\Registry::application()->addError('Sent to $application Logger instance'); * } * * * @author Tomas Tatarko */ class Registry { /** * List of all loggers in the registry (by named indexes) * * @var Logger[] */ private static $loggers = array(); /** * Adds new logging channel to the registry * * @param Logger $logger Instance of the logging channel * @param string|null $name Name of the logging channel ($logger->getName() by default) * @param bool $overwrite Overwrite instance in the registry if the given name already exists? * @throws \InvalidArgumentException If $overwrite set to false and named Logger instance already exists */ public static function addLogger(\Google\Site_Kit_Dependencies\Monolog\Logger $logger, $name = null, $overwrite = \false) { $name = $name ?: $logger->getName(); if (isset(self::$loggers[$name]) && !$overwrite) { throw new \InvalidArgumentException('Logger with the given name already exists'); } self::$loggers[$name] = $logger; } /** * Checks if such logging channel exists by name or instance * * @param string|Logger $logger Name or logger instance */ public static function hasLogger($logger) { if ($logger instanceof \Google\Site_Kit_Dependencies\Monolog\Logger) { $index = \array_search($logger, self::$loggers, \true); return \false !== $index; } else { return isset(self::$loggers[$logger]); } } /** * Removes instance from registry by name or instance * * @param string|Logger $logger Name or logger instance */ public static function removeLogger($logger) { if ($logger instanceof \Google\Site_Kit_Dependencies\Monolog\Logger) { if (\false !== ($idx = \array_search($logger, self::$loggers, \true))) { unset(self::$loggers[$idx]); } } else { unset(self::$loggers[$logger]); } } /** * Clears the registry */ public static function clear() { self::$loggers = array(); } /** * Gets Logger instance from the registry * * @param string $name Name of the requested Logger instance * @throws \InvalidArgumentException If named Logger instance is not in the registry * @return Logger Requested instance of Logger */ public static function getInstance($name) { if (!isset(self::$loggers[$name])) { throw new \InvalidArgumentException(\sprintf('Requested "%s" logger instance is not in the registry', $name)); } return self::$loggers[$name]; } /** * Gets Logger instance from the registry via static method call * * @param string $name Name of the requested Logger instance * @param array $arguments Arguments passed to static method call * @throws \InvalidArgumentException If named Logger instance is not in the registry * @return Logger Requested instance of Logger */ public static function __callStatic($name, $arguments) { return self::getInstance($name); } } monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php000064400000011711150544704730017347 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Formats incoming records into an HTML table * * This is especially useful for html email logging * * @author Tiago Brito */ class HtmlFormatter extends \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter { /** * Translates Monolog log levels to html color priorities. */ protected $logLevels = array(\Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG => '#cccccc', \Google\Site_Kit_Dependencies\Monolog\Logger::INFO => '#468847', \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE => '#3a87ad', \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING => '#c09853', \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR => '#f0ad4e', \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL => '#FF7708', \Google\Site_Kit_Dependencies\Monolog\Logger::ALERT => '#C12A19', \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY => '#000000'); /** * @param string $dateFormat The format of the timestamp: one supported by DateTime::format */ public function __construct($dateFormat = null) { parent::__construct($dateFormat); } /** * Creates an HTML table row * * @param string $th Row header content * @param string $td Row standard cell content * @param bool $escapeTd false if td content must not be html escaped * @return string */ protected function addRow($th, $td = ' ', $escapeTd = \true) { $th = \htmlspecialchars($th, \ENT_NOQUOTES, 'UTF-8'); if ($escapeTd) { $td = '
' . \htmlspecialchars($td, \ENT_NOQUOTES, 'UTF-8') . '
'; } return "\n{$th}:\n" . $td . "\n"; } /** * Create a HTML h1 tag * * @param string $title Text to be in the h1 * @param int $level Error level * @return string */ protected function addTitle($title, $level) { $title = \htmlspecialchars($title, \ENT_NOQUOTES, 'UTF-8'); return '

' . $title . '

'; } /** * Formats a log record. * * @param array $record A record to format * @return mixed The formatted record */ public function format(array $record) { $output = $this->addTitle($record['level_name'], $record['level']); $output .= ''; $output .= $this->addRow('Message', (string) $record['message']); $output .= $this->addRow('Time', $record['datetime']->format($this->dateFormat)); $output .= $this->addRow('Channel', $record['channel']); if ($record['context']) { $embeddedTable = '
'; foreach ($record['context'] as $key => $value) { $embeddedTable .= $this->addRow($key, $this->convertToString($value)); } $embeddedTable .= '
'; $output .= $this->addRow('Context', $embeddedTable, \false); } if ($record['extra']) { $embeddedTable = ''; foreach ($record['extra'] as $key => $value) { $embeddedTable .= $this->addRow($key, $this->convertToString($value)); } $embeddedTable .= '
'; $output .= $this->addRow('Extra', $embeddedTable, \false); } return $output . ''; } /** * Formats a set of log records. * * @param array $records A set of records to format * @return mixed The formatted set of records */ public function formatBatch(array $records) { $message = ''; foreach ($records as $record) { $message .= $this->format($record); } return $message; } protected function convertToString($data) { if (null === $data || \is_scalar($data)) { return (string) $data; } $data = $this->normalize($data); if (\version_compare(\PHP_VERSION, '5.4.0', '>=')) { return \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($data, \JSON_PRETTY_PRINT | \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE, \true); } return \str_replace('\\/', '/', \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($data, null, \true)); } } monolog/monolog/src/Monolog/Formatter/JsonFormatter.php000064400000012642150544704730017360 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Exception; use Google\Site_Kit_Dependencies\Monolog\Utils; use Throwable; /** * Encodes whatever record data is passed to it as json * * This can be useful to log to databases or remote APIs * * @author Jordi Boggiano */ class JsonFormatter extends \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter { const BATCH_MODE_JSON = 1; const BATCH_MODE_NEWLINES = 2; protected $batchMode; protected $appendNewline; /** * @var bool */ protected $includeStacktraces = \false; /** * @param int $batchMode * @param bool $appendNewline * @param int $maxDepth */ public function __construct($batchMode = self::BATCH_MODE_JSON, $appendNewline = \true, $maxDepth = 9) { parent::__construct(null, $maxDepth); $this->batchMode = $batchMode; $this->appendNewline = $appendNewline; } /** * The batch mode option configures the formatting style for * multiple records. By default, multiple records will be * formatted as a JSON-encoded array. However, for * compatibility with some API endpoints, alternative styles * are available. * * @return int */ public function getBatchMode() { return $this->batchMode; } /** * True if newlines are appended to every formatted record * * @return bool */ public function isAppendingNewlines() { return $this->appendNewline; } /** * {@inheritdoc} */ public function format(array $record) { return $this->toJson($this->normalize($record), \true) . ($this->appendNewline ? "\n" : ''); } /** * {@inheritdoc} */ public function formatBatch(array $records) { switch ($this->batchMode) { case static::BATCH_MODE_NEWLINES: return $this->formatBatchNewlines($records); case static::BATCH_MODE_JSON: default: return $this->formatBatchJson($records); } } /** * @param bool $include */ public function includeStacktraces($include = \true) { $this->includeStacktraces = $include; } /** * Return a JSON-encoded array of records. * * @param array $records * @return string */ protected function formatBatchJson(array $records) { return $this->toJson($this->normalize($records), \true); } /** * Use new lines to separate records instead of a * JSON-encoded array. * * @param array $records * @return string */ protected function formatBatchNewlines(array $records) { $instance = $this; $oldNewline = $this->appendNewline; $this->appendNewline = \false; \array_walk($records, function (&$value, $key) use($instance) { $value = $instance->format($value); }); $this->appendNewline = $oldNewline; return \implode("\n", $records); } /** * Normalizes given $data. * * @param mixed $data * * @return mixed */ protected function normalize($data, $depth = 0) { if ($depth > $this->maxDepth) { return 'Over ' . $this->maxDepth . ' levels deep, aborting normalization'; } if (\is_array($data)) { $normalized = array(); $count = 1; foreach ($data as $key => $value) { if ($count++ > 1000) { $normalized['...'] = 'Over 1000 items (' . \count($data) . ' total), aborting normalization'; break; } $normalized[$key] = $this->normalize($value, $depth + 1); } return $normalized; } if ($data instanceof \Exception || $data instanceof \Throwable) { return $this->normalizeException($data); } if (\is_resource($data)) { return parent::normalize($data); } return $data; } /** * Normalizes given exception with or without its own stack trace based on * `includeStacktraces` property. * * @param Exception|Throwable $e * * @return array */ protected function normalizeException($e) { // TODO 2.0 only check for Throwable if (!$e instanceof \Exception && !$e instanceof \Throwable) { throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($e)); } $data = array('class' => \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($e), 'message' => $e->getMessage(), 'code' => (int) $e->getCode(), 'file' => $e->getFile() . ':' . $e->getLine()); if ($this->includeStacktraces) { $trace = $e->getTrace(); foreach ($trace as $frame) { if (isset($frame['file'])) { $data['trace'][] = $frame['file'] . ':' . $frame['line']; } } } if ($previous = $e->getPrevious()) { $data['previous'] = $this->normalizeException($previous); } return $data; } } monolog/monolog/src/Monolog/Formatter/ChromePHPFormatter.php000064400000004372150544704730020235 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Formats a log message according to the ChromePHP array format * * @author Christophe Coevoet */ class ChromePHPFormatter implements \Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface { /** * Translates Monolog log levels to Wildfire levels. */ private $logLevels = array(\Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG => 'log', \Google\Site_Kit_Dependencies\Monolog\Logger::INFO => 'info', \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE => 'info', \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING => 'warn', \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR => 'error', \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL => 'error', \Google\Site_Kit_Dependencies\Monolog\Logger::ALERT => 'error', \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY => 'error'); /** * {@inheritdoc} */ public function format(array $record) { // Retrieve the line and file if set and remove them from the formatted extra $backtrace = 'unknown'; if (isset($record['extra']['file'], $record['extra']['line'])) { $backtrace = $record['extra']['file'] . ' : ' . $record['extra']['line']; unset($record['extra']['file'], $record['extra']['line']); } $message = array('message' => $record['message']); if ($record['context']) { $message['context'] = $record['context']; } if ($record['extra']) { $message['extra'] = $record['extra']; } if (\count($message) === 1) { $message = \reset($message); } return array($record['channel'], $message, $backtrace, $this->logLevels[$record['level']]); } public function formatBatch(array $records) { $formatted = array(); foreach ($records as $record) { $formatted[] = $this->format($record); } return $formatted; } } monolog/monolog/src/Monolog/Formatter/MongoDBFormatter.php000064400000006525150544704730017737 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Formats a record for use with the MongoDBHandler. * * @author Florian Plattner */ class MongoDBFormatter implements \Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface { private $exceptionTraceAsString; private $maxNestingLevel; /** * @param int $maxNestingLevel 0 means infinite nesting, the $record itself is level 1, $record['context'] is 2 * @param bool $exceptionTraceAsString set to false to log exception traces as a sub documents instead of strings */ public function __construct($maxNestingLevel = 3, $exceptionTraceAsString = \true) { $this->maxNestingLevel = \max($maxNestingLevel, 0); $this->exceptionTraceAsString = (bool) $exceptionTraceAsString; } /** * {@inheritDoc} */ public function format(array $record) { return $this->formatArray($record); } /** * {@inheritDoc} */ public function formatBatch(array $records) { foreach ($records as $key => $record) { $records[$key] = $this->format($record); } return $records; } protected function formatArray(array $record, $nestingLevel = 0) { if ($this->maxNestingLevel == 0 || $nestingLevel <= $this->maxNestingLevel) { foreach ($record as $name => $value) { if ($value instanceof \DateTime) { $record[$name] = $this->formatDate($value, $nestingLevel + 1); } elseif ($value instanceof \Exception) { $record[$name] = $this->formatException($value, $nestingLevel + 1); } elseif (\is_array($value)) { $record[$name] = $this->formatArray($value, $nestingLevel + 1); } elseif (\is_object($value)) { $record[$name] = $this->formatObject($value, $nestingLevel + 1); } } } else { $record = '[...]'; } return $record; } protected function formatObject($value, $nestingLevel) { $objectVars = \get_object_vars($value); $objectVars['class'] = \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($value); return $this->formatArray($objectVars, $nestingLevel); } protected function formatException(\Exception $exception, $nestingLevel) { $formattedException = array('class' => \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($exception), 'message' => $exception->getMessage(), 'code' => (int) $exception->getCode(), 'file' => $exception->getFile() . ':' . $exception->getLine()); if ($this->exceptionTraceAsString === \true) { $formattedException['trace'] = $exception->getTraceAsString(); } else { $formattedException['trace'] = $exception->getTrace(); } return $this->formatArray($formattedException, $nestingLevel); } protected function formatDate(\DateTime $value, $nestingLevel) { return new \MongoDate($value->getTimestamp()); } } monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php000064400000004347150544704730020053 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Class FluentdFormatter * * Serializes a log message to Fluentd unix socket protocol * * Fluentd config: * * * type unix * path /var/run/td-agent/td-agent.sock * * * Monolog setup: * * $logger = new Monolog\Logger('fluent.tag'); * $fluentHandler = new Monolog\Handler\SocketHandler('unix:///var/run/td-agent/td-agent.sock'); * $fluentHandler->setFormatter(new Monolog\Formatter\FluentdFormatter()); * $logger->pushHandler($fluentHandler); * * @author Andrius Putna */ class FluentdFormatter implements \Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface { /** * @var bool $levelTag should message level be a part of the fluentd tag */ protected $levelTag = \false; public function __construct($levelTag = \false) { if (!\function_exists('json_encode')) { throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s FluentdUnixFormatter'); } $this->levelTag = (bool) $levelTag; } public function isUsingLevelsInTag() { return $this->levelTag; } public function format(array $record) { $tag = $record['channel']; if ($this->levelTag) { $tag .= '.' . \strtolower($record['level_name']); } $message = array('message' => $record['message'], 'context' => $record['context'], 'extra' => $record['extra']); if (!$this->levelTag) { $message['level'] = $record['level']; $message['level_name'] = $record['level_name']; } return \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode(array($tag, $record['datetime']->getTimestamp(), $message)); } public function formatBatch(array $records) { $message = ''; foreach ($records as $record) { $message .= $this->format($record); } return $message; } } monolog/monolog/src/Monolog/Formatter/GelfMessageFormatter.php000064400000011176150544704730020632 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Gelf\Message; /** * Serializes a log message to GELF * @see http://www.graylog2.org/about/gelf * * @author Matt Lehner */ class GelfMessageFormatter extends \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter { const DEFAULT_MAX_LENGTH = 32766; /** * @var string the name of the system for the Gelf log message */ protected $systemName; /** * @var string a prefix for 'extra' fields from the Monolog record (optional) */ protected $extraPrefix; /** * @var string a prefix for 'context' fields from the Monolog record (optional) */ protected $contextPrefix; /** * @var int max length per field */ protected $maxLength; /** * Translates Monolog log levels to Graylog2 log priorities. */ private $logLevels = array(\Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG => 7, \Google\Site_Kit_Dependencies\Monolog\Logger::INFO => 6, \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE => 5, \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING => 4, \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR => 3, \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL => 2, \Google\Site_Kit_Dependencies\Monolog\Logger::ALERT => 1, \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY => 0); public function __construct($systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_', $maxLength = null) { parent::__construct('U.u'); $this->systemName = $systemName ?: \gethostname(); $this->extraPrefix = $extraPrefix; $this->contextPrefix = $contextPrefix; $this->maxLength = \is_null($maxLength) ? self::DEFAULT_MAX_LENGTH : $maxLength; } /** * {@inheritdoc} */ public function format(array $record) { $record = parent::format($record); if (!isset($record['datetime'], $record['message'], $record['level'])) { throw new \InvalidArgumentException('The record should at least contain datetime, message and level keys, ' . \var_export($record, \true) . ' given'); } $message = new \Google\Site_Kit_Dependencies\Gelf\Message(); $message->setTimestamp($record['datetime'])->setShortMessage((string) $record['message'])->setHost($this->systemName)->setLevel($this->logLevels[$record['level']]); // message length + system name length + 200 for padding / metadata $len = 200 + \strlen((string) $record['message']) + \strlen($this->systemName); if ($len > $this->maxLength) { $message->setShortMessage(\substr($record['message'], 0, $this->maxLength)); } if (isset($record['channel'])) { $message->setFacility($record['channel']); } if (isset($record['extra']['line'])) { $message->setLine($record['extra']['line']); unset($record['extra']['line']); } if (isset($record['extra']['file'])) { $message->setFile($record['extra']['file']); unset($record['extra']['file']); } foreach ($record['extra'] as $key => $val) { $val = \is_scalar($val) || null === $val ? $val : $this->toJson($val); $len = \strlen($this->extraPrefix . $key . $val); if ($len > $this->maxLength) { $message->setAdditional($this->extraPrefix . $key, \substr($val, 0, $this->maxLength)); break; } $message->setAdditional($this->extraPrefix . $key, $val); } foreach ($record['context'] as $key => $val) { $val = \is_scalar($val) || null === $val ? $val : $this->toJson($val); $len = \strlen($this->contextPrefix . $key . $val); if ($len > $this->maxLength) { $message->setAdditional($this->contextPrefix . $key, \substr($val, 0, $this->maxLength)); break; } $message->setAdditional($this->contextPrefix . $key, $val); } if (null === $message->getFile() && isset($record['context']['exception']['file'])) { if (\preg_match("/^(.+):([0-9]+)\$/", $record['context']['exception']['file'], $matches)) { $message->setFile($matches[1]); $message->setLine($matches[2]); } } return $message; } } monolog/monolog/src/Monolog/Formatter/LogglyFormatter.php000064400000002564150544704730017706 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; /** * Encodes message information into JSON in a format compatible with Loggly. * * @author Adam Pancutt */ class LogglyFormatter extends \Google\Site_Kit_Dependencies\Monolog\Formatter\JsonFormatter { /** * Overrides the default batch mode to new lines for compatibility with the * Loggly bulk API. * * @param int $batchMode */ public function __construct($batchMode = self::BATCH_MODE_NEWLINES, $appendNewline = \false) { parent::__construct($batchMode, $appendNewline); } /** * Appends the 'timestamp' parameter for indexing by Loggly. * * @see https://www.loggly.com/docs/automated-parsing/#json * @see \Monolog\Formatter\JsonFormatter::format() */ public function format(array $record) { if (isset($record["datetime"]) && $record["datetime"] instanceof \DateTime) { $record["timestamp"] = $record["datetime"]->format("Y-m-d\\TH:i:s.uO"); // TODO 2.0 unset the 'datetime' parameter, retained for BC } return parent::format($record); } } monolog/monolog/src/Monolog/Formatter/ElasticaFormatter.php000064400000003664150544704730020200 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Google\Site_Kit_Dependencies\Elastica\Document; /** * Format a log message into an Elastica Document * * @author Jelle Vink */ class ElasticaFormatter extends \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter { /** * @var string Elastic search index name */ protected $index; /** * @var string Elastic search document type */ protected $type; /** * @param string $index Elastic Search index name * @param string $type Elastic Search document type */ public function __construct($index, $type) { // elasticsearch requires a ISO 8601 format date with optional millisecond precision. parent::__construct('Y-m-d\\TH:i:s.uP'); $this->index = $index; $this->type = $type; } /** * {@inheritdoc} */ public function format(array $record) { $record = parent::format($record); return $this->getDocument($record); } /** * Getter index * @return string */ public function getIndex() { return $this->index; } /** * Getter type * @return string */ public function getType() { return $this->type; } /** * Convert a log message into an Elastica Document * * @param array $record Log message * @return Document */ protected function getDocument($record) { $document = new \Google\Site_Kit_Dependencies\Elastica\Document(); $document->setData($record); $document->setType($this->type); $document->setIndex($this->index); return $document; } } monolog/monolog/src/Monolog/Formatter/LogstashFormatter.php000064400000012237150544704730020233 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; /** * Serializes a log message to Logstash Event Format * * @see http://logstash.net/ * @see https://github.com/logstash/logstash/blob/master/lib/logstash/event.rb * * @author Tim Mower */ class LogstashFormatter extends \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter { const V0 = 0; const V1 = 1; /** * @var string the name of the system for the Logstash log message, used to fill the @source field */ protected $systemName; /** * @var string an application name for the Logstash log message, used to fill the @type field */ protected $applicationName; /** * @var string a prefix for 'extra' fields from the Monolog record (optional) */ protected $extraPrefix; /** * @var string a prefix for 'context' fields from the Monolog record (optional) */ protected $contextPrefix; /** * @var int logstash format version to use */ protected $version; /** * @param string $applicationName the application that sends the data, used as the "type" field of logstash * @param string $systemName the system/machine name, used as the "source" field of logstash, defaults to the hostname of the machine * @param string $extraPrefix prefix for extra keys inside logstash "fields" * @param string $contextPrefix prefix for context keys inside logstash "fields", defaults to ctxt_ * @param int $version the logstash format version to use, defaults to 0 */ public function __construct($applicationName, $systemName = null, $extraPrefix = null, $contextPrefix = 'ctxt_', $version = self::V0) { // logstash requires a ISO 8601 format date with optional millisecond precision. parent::__construct('Y-m-d\\TH:i:s.uP'); $this->systemName = $systemName ?: \gethostname(); $this->applicationName = $applicationName; $this->extraPrefix = $extraPrefix; $this->contextPrefix = $contextPrefix; $this->version = $version; } /** * {@inheritdoc} */ public function format(array $record) { $record = parent::format($record); if ($this->version === self::V1) { $message = $this->formatV1($record); } else { $message = $this->formatV0($record); } return $this->toJson($message) . "\n"; } protected function formatV0(array $record) { if (empty($record['datetime'])) { $record['datetime'] = \gmdate('c'); } $message = array('@timestamp' => $record['datetime'], '@source' => $this->systemName, '@fields' => array()); if (isset($record['message'])) { $message['@message'] = $record['message']; } if (isset($record['channel'])) { $message['@tags'] = array($record['channel']); $message['@fields']['channel'] = $record['channel']; } if (isset($record['level'])) { $message['@fields']['level'] = $record['level']; } if ($this->applicationName) { $message['@type'] = $this->applicationName; } if (isset($record['extra']['server'])) { $message['@source_host'] = $record['extra']['server']; } if (isset($record['extra']['url'])) { $message['@source_path'] = $record['extra']['url']; } if (!empty($record['extra'])) { foreach ($record['extra'] as $key => $val) { $message['@fields'][$this->extraPrefix . $key] = $val; } } if (!empty($record['context'])) { foreach ($record['context'] as $key => $val) { $message['@fields'][$this->contextPrefix . $key] = $val; } } return $message; } protected function formatV1(array $record) { if (empty($record['datetime'])) { $record['datetime'] = \gmdate('c'); } $message = array('@timestamp' => $record['datetime'], '@version' => 1, 'host' => $this->systemName); if (isset($record['message'])) { $message['message'] = $record['message']; } if (isset($record['channel'])) { $message['type'] = $record['channel']; $message['channel'] = $record['channel']; } if (isset($record['level_name'])) { $message['level'] = $record['level_name']; } if ($this->applicationName) { $message['type'] = $this->applicationName; } if (!empty($record['extra'])) { foreach ($record['extra'] as $key => $val) { $message[$this->extraPrefix . $key] = $val; } } if (!empty($record['context'])) { foreach ($record['context'] as $key => $val) { $message[$this->contextPrefix . $key] = $val; } } return $message; } } monolog/monolog/src/Monolog/Formatter/FlowdockFormatter.php000064400000004574150544704730020224 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; /** * formats the record to be used in the FlowdockHandler * * @author Dominik Liebler */ class FlowdockFormatter implements \Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface { /** * @var string */ private $source; /** * @var string */ private $sourceEmail; /** * @param string $source * @param string $sourceEmail */ public function __construct($source, $sourceEmail) { $this->source = $source; $this->sourceEmail = $sourceEmail; } /** * {@inheritdoc} */ public function format(array $record) { $tags = array('#logs', '#' . \strtolower($record['level_name']), '#' . $record['channel']); foreach ($record['extra'] as $value) { $tags[] = '#' . $value; } $subject = \sprintf('in %s: %s - %s', $this->source, $record['level_name'], $this->getShortMessage($record['message'])); $record['flowdock'] = array('source' => $this->source, 'from_address' => $this->sourceEmail, 'subject' => $subject, 'content' => $record['message'], 'tags' => $tags, 'project' => $this->source); return $record; } /** * {@inheritdoc} */ public function formatBatch(array $records) { $formatted = array(); foreach ($records as $record) { $formatted[] = $this->format($record); } return $formatted; } /** * @param string $message * * @return string */ public function getShortMessage($message) { static $hasMbString; if (null === $hasMbString) { $hasMbString = \function_exists('mb_strlen'); } $maxLength = 45; if ($hasMbString) { if (\mb_strlen($message, 'UTF-8') > $maxLength) { $message = \mb_substr($message, 0, $maxLength - 4, 'UTF-8') . ' ...'; } } else { if (\strlen($message) > $maxLength) { $message = \substr($message, 0, $maxLength - 4) . ' ...'; } } return $message; } } monolog/monolog/src/Monolog/Formatter/FormatterInterface.php000064400000001456150544704730020350 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; /** * Interface for formatters * * @author Jordi Boggiano */ interface FormatterInterface { /** * Formats a log record. * * @param array $record A record to format * @return mixed The formatted record */ public function format(array $record); /** * Formats a set of log records. * * @param array $records A set of records to format * @return mixed The formatted set of records */ public function formatBatch(array $records); } monolog/monolog/src/Monolog/Formatter/LineFormatter.php000064400000013360150544704730017334 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Formats incoming records into a one-line string * * This is especially useful for logging to files * * @author Jordi Boggiano * @author Christophe Coevoet */ class LineFormatter extends \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter { const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n"; protected $format; protected $allowInlineLineBreaks; protected $ignoreEmptyContextAndExtra; protected $includeStacktraces; /** * @param string $format The format of the message * @param string $dateFormat The format of the timestamp: one supported by DateTime::format * @param bool $allowInlineLineBreaks Whether to allow inline line breaks in log entries * @param bool $ignoreEmptyContextAndExtra */ public function __construct($format = null, $dateFormat = null, $allowInlineLineBreaks = \false, $ignoreEmptyContextAndExtra = \false) { $this->format = $format ?: static::SIMPLE_FORMAT; $this->allowInlineLineBreaks = $allowInlineLineBreaks; $this->ignoreEmptyContextAndExtra = $ignoreEmptyContextAndExtra; parent::__construct($dateFormat); } public function includeStacktraces($include = \true) { $this->includeStacktraces = $include; if ($this->includeStacktraces) { $this->allowInlineLineBreaks = \true; } } public function allowInlineLineBreaks($allow = \true) { $this->allowInlineLineBreaks = $allow; } public function ignoreEmptyContextAndExtra($ignore = \true) { $this->ignoreEmptyContextAndExtra = $ignore; } /** * {@inheritdoc} */ public function format(array $record) { $vars = parent::format($record); $output = $this->format; foreach ($vars['extra'] as $var => $val) { if (\false !== \strpos($output, '%extra.' . $var . '%')) { $output = \str_replace('%extra.' . $var . '%', $this->stringify($val), $output); unset($vars['extra'][$var]); } } foreach ($vars['context'] as $var => $val) { if (\false !== \strpos($output, '%context.' . $var . '%')) { $output = \str_replace('%context.' . $var . '%', $this->stringify($val), $output); unset($vars['context'][$var]); } } if ($this->ignoreEmptyContextAndExtra) { if (empty($vars['context'])) { unset($vars['context']); $output = \str_replace('%context%', '', $output); } if (empty($vars['extra'])) { unset($vars['extra']); $output = \str_replace('%extra%', '', $output); } } foreach ($vars as $var => $val) { if (\false !== \strpos($output, '%' . $var . '%')) { $output = \str_replace('%' . $var . '%', $this->stringify($val), $output); } } // remove leftover %extra.xxx% and %context.xxx% if any if (\false !== \strpos($output, '%')) { $output = \preg_replace('/%(?:extra|context)\\..+?%/', '', $output); } return $output; } public function formatBatch(array $records) { $message = ''; foreach ($records as $record) { $message .= $this->format($record); } return $message; } public function stringify($value) { return $this->replaceNewlines($this->convertToString($value)); } protected function normalizeException($e) { // TODO 2.0 only check for Throwable if (!$e instanceof \Exception && !$e instanceof \Throwable) { throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($e)); } $previousText = ''; if ($previous = $e->getPrevious()) { do { $previousText .= ', ' . \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($previous) . '(code: ' . $previous->getCode() . '): ' . $previous->getMessage() . ' at ' . $previous->getFile() . ':' . $previous->getLine(); } while ($previous = $previous->getPrevious()); } $str = '[object] (' . \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($e) . '(code: ' . $e->getCode() . '): ' . $e->getMessage() . ' at ' . $e->getFile() . ':' . $e->getLine() . $previousText . ')'; if ($this->includeStacktraces) { $str .= "\n[stacktrace]\n" . $e->getTraceAsString() . "\n"; } return $str; } protected function convertToString($data) { if (null === $data || \is_bool($data)) { return \var_export($data, \true); } if (\is_scalar($data)) { return (string) $data; } if (\version_compare(\PHP_VERSION, '5.4.0', '>=')) { return $this->toJson($data, \true); } return \str_replace('\\/', '/', $this->toJson($data, \true)); } protected function replaceNewlines($str) { if ($this->allowInlineLineBreaks) { if (0 === \strpos($str, '{')) { return \str_replace(array('\\r', '\\n'), array("\r", "\n"), $str); } return $str; } return \str_replace(array("\r\n", "\r", "\n"), ' ', $str); } } monolog/monolog/src/Monolog/Formatter/ScalarFormatter.php000064400000002133150544704730017646 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; /** * Formats data into an associative array of scalar values. * Objects and arrays will be JSON encoded. * * @author Andrew Lawson */ class ScalarFormatter extends \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter { /** * {@inheritdoc} */ public function format(array $record) { foreach ($record as $key => $value) { $record[$key] = $this->normalizeValue($value); } return $record; } /** * @param mixed $value * @return mixed */ protected function normalizeValue($value) { $normalized = $this->normalize($value); if (\is_array($normalized) || \is_object($normalized)) { return $this->toJson($normalized, \true); } return $normalized; } } monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php000064400000013240150544704730020564 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Exception; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Normalizes incoming records to remove objects/resources so it's easier to dump to various targets * * @author Jordi Boggiano */ class NormalizerFormatter implements \Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface { const SIMPLE_DATE = "Y-m-d H:i:s"; protected $dateFormat; protected $maxDepth; /** * @param string $dateFormat The format of the timestamp: one supported by DateTime::format * @param int $maxDepth */ public function __construct($dateFormat = null, $maxDepth = 9) { $this->dateFormat = $dateFormat ?: static::SIMPLE_DATE; $this->maxDepth = $maxDepth; if (!\function_exists('json_encode')) { throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s NormalizerFormatter'); } } /** * {@inheritdoc} */ public function format(array $record) { return $this->normalize($record); } /** * {@inheritdoc} */ public function formatBatch(array $records) { foreach ($records as $key => $record) { $records[$key] = $this->format($record); } return $records; } /** * @return int */ public function getMaxDepth() { return $this->maxDepth; } /** * @param int $maxDepth */ public function setMaxDepth($maxDepth) { $this->maxDepth = $maxDepth; } protected function normalize($data, $depth = 0) { if ($depth > $this->maxDepth) { return 'Over ' . $this->maxDepth . ' levels deep, aborting normalization'; } if (null === $data || \is_scalar($data)) { if (\is_float($data)) { if (\is_infinite($data)) { return ($data > 0 ? '' : '-') . 'INF'; } if (\is_nan($data)) { return 'NaN'; } } return $data; } if (\is_array($data)) { $normalized = array(); $count = 1; foreach ($data as $key => $value) { if ($count++ > 1000) { $normalized['...'] = 'Over 1000 items (' . \count($data) . ' total), aborting normalization'; break; } $normalized[$key] = $this->normalize($value, $depth + 1); } return $normalized; } if ($data instanceof \DateTime) { return $data->format($this->dateFormat); } if (\is_object($data)) { // TODO 2.0 only check for Throwable if ($data instanceof \Exception || \PHP_VERSION_ID > 70000 && $data instanceof \Throwable) { return $this->normalizeException($data); } // non-serializable objects that implement __toString stringified if (\method_exists($data, '__toString') && !$data instanceof \JsonSerializable) { $value = $data->__toString(); } else { // the rest is json-serialized in some way $value = $this->toJson($data, \true); } return \sprintf("[object] (%s: %s)", \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($data), $value); } if (\is_resource($data)) { return \sprintf('[resource] (%s)', \get_resource_type($data)); } return '[unknown(' . \gettype($data) . ')]'; } protected function normalizeException($e) { // TODO 2.0 only check for Throwable if (!$e instanceof \Exception && !$e instanceof \Throwable) { throw new \InvalidArgumentException('Exception/Throwable expected, got ' . \gettype($e) . ' / ' . \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($e)); } $data = array('class' => \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($e), 'message' => $e->getMessage(), 'code' => (int) $e->getCode(), 'file' => $e->getFile() . ':' . $e->getLine()); if ($e instanceof \SoapFault) { if (isset($e->faultcode)) { $data['faultcode'] = $e->faultcode; } if (isset($e->faultactor)) { $data['faultactor'] = $e->faultactor; } if (isset($e->detail)) { if (\is_string($e->detail)) { $data['detail'] = $e->detail; } elseif (\is_object($e->detail) || \is_array($e->detail)) { $data['detail'] = $this->toJson($e->detail, \true); } } } $trace = $e->getTrace(); foreach ($trace as $frame) { if (isset($frame['file'])) { $data['trace'][] = $frame['file'] . ':' . $frame['line']; } } if ($previous = $e->getPrevious()) { $data['previous'] = $this->normalizeException($previous); } return $data; } /** * Return the JSON representation of a value * * @param mixed $data * @param bool $ignoreErrors * @throws \RuntimeException if encoding fails and errors are not ignored * @return string */ protected function toJson($data, $ignoreErrors = \false) { return \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($data, null, $ignoreErrors); } } monolog/monolog/src/Monolog/Formatter/WildfireFormatter.php000064400000006514150544704730020215 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Formatter; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Serializes a log message according to Wildfire's header requirements * * @author Eric Clemmons (@ericclemmons) * @author Christophe Coevoet * @author Kirill chEbba Chebunin */ class WildfireFormatter extends \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter { const TABLE = 'table'; /** * Translates Monolog log levels to Wildfire levels. */ private $logLevels = array(\Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG => 'LOG', \Google\Site_Kit_Dependencies\Monolog\Logger::INFO => 'INFO', \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE => 'INFO', \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING => 'WARN', \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR => 'ERROR', \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL => 'ERROR', \Google\Site_Kit_Dependencies\Monolog\Logger::ALERT => 'ERROR', \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY => 'ERROR'); /** * {@inheritdoc} */ public function format(array $record) { // Retrieve the line and file if set and remove them from the formatted extra $file = $line = ''; if (isset($record['extra']['file'])) { $file = $record['extra']['file']; unset($record['extra']['file']); } if (isset($record['extra']['line'])) { $line = $record['extra']['line']; unset($record['extra']['line']); } $record = $this->normalize($record); $message = array('message' => $record['message']); $handleError = \false; if ($record['context']) { $message['context'] = $record['context']; $handleError = \true; } if ($record['extra']) { $message['extra'] = $record['extra']; $handleError = \true; } if (\count($message) === 1) { $message = \reset($message); } if (isset($record['context'][self::TABLE])) { $type = 'TABLE'; $label = $record['channel'] . ': ' . $record['message']; $message = $record['context'][self::TABLE]; } else { $type = $this->logLevels[$record['level']]; $label = $record['channel']; } // Create JSON object describing the appearance of the message in the console $json = $this->toJson(array(array('Type' => $type, 'File' => $file, 'Line' => $line, 'Label' => $label), $message), $handleError); // The message itself is a serialization of the above JSON object + it's length return \sprintf('%s|%s|', \strlen($json), $json); } public function formatBatch(array $records) { throw new \BadMethodCallException('Batch formatting does not make sense for the WildfireFormatter'); } protected function normalize($data, $depth = 0) { if (\is_object($data) && !$data instanceof \DateTime) { return $data; } return parent::normalize($data, $depth); } } monolog/monolog/src/Monolog/SignalHandler.php000064400000010441150544704730015326 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog; use Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface; use Google\Site_Kit_Dependencies\Psr\Log\LogLevel; use ReflectionExtension; /** * Monolog POSIX signal handler * * @author Robert Gust-Bardon */ class SignalHandler { private $logger; private $previousSignalHandler = array(); private $signalLevelMap = array(); private $signalRestartSyscalls = array(); public function __construct(\Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface $logger) { $this->logger = $logger; } public function registerSignalHandler($signo, $level = \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::CRITICAL, $callPrevious = \true, $restartSyscalls = \true, $async = \true) { if (!\extension_loaded('pcntl') || !\function_exists('pcntl_signal')) { return $this; } if ($callPrevious) { if (\function_exists('pcntl_signal_get_handler')) { $handler = \pcntl_signal_get_handler($signo); if ($handler === \false) { return $this; } $this->previousSignalHandler[$signo] = $handler; } else { $this->previousSignalHandler[$signo] = \true; } } else { unset($this->previousSignalHandler[$signo]); } $this->signalLevelMap[$signo] = $level; $this->signalRestartSyscalls[$signo] = $restartSyscalls; if (\function_exists('pcntl_async_signals') && $async !== null) { \pcntl_async_signals($async); } \pcntl_signal($signo, array($this, 'handleSignal'), $restartSyscalls); return $this; } public function handleSignal($signo, array $siginfo = null) { static $signals = array(); if (!$signals && \extension_loaded('pcntl')) { $pcntl = new \ReflectionExtension('pcntl'); $constants = $pcntl->getConstants(); if (!$constants) { // HHVM 3.24.2 returns an empty array. $constants = \get_defined_constants(\true); $constants = $constants['Core']; } foreach ($constants as $name => $value) { if (\substr($name, 0, 3) === 'SIG' && $name[3] !== '_' && \is_int($value)) { $signals[$value] = $name; } } unset($constants); } $level = isset($this->signalLevelMap[$signo]) ? $this->signalLevelMap[$signo] : \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::CRITICAL; $signal = isset($signals[$signo]) ? $signals[$signo] : $signo; $context = isset($siginfo) ? $siginfo : array(); $this->logger->log($level, \sprintf('Program received signal %s', $signal), $context); if (!isset($this->previousSignalHandler[$signo])) { return; } if ($this->previousSignalHandler[$signo] === \true || $this->previousSignalHandler[$signo] === \SIG_DFL) { if (\extension_loaded('pcntl') && \function_exists('pcntl_signal') && \function_exists('pcntl_sigprocmask') && \function_exists('pcntl_signal_dispatch') && \extension_loaded('posix') && \function_exists('posix_getpid') && \function_exists('posix_kill')) { $restartSyscalls = isset($this->signalRestartSyscalls[$signo]) ? $this->signalRestartSyscalls[$signo] : \true; \pcntl_signal($signo, \SIG_DFL, $restartSyscalls); \pcntl_sigprocmask(\SIG_UNBLOCK, array($signo), $oldset); \posix_kill(\posix_getpid(), $signo); \pcntl_signal_dispatch(); \pcntl_sigprocmask(\SIG_SETMASK, $oldset); \pcntl_signal($signo, array($this, 'handleSignal'), $restartSyscalls); } } elseif (\is_callable($this->previousSignalHandler[$signo])) { if (\PHP_VERSION_ID >= 70100) { $this->previousSignalHandler[$signo]($signo, $siginfo); } else { $this->previousSignalHandler[$signo]($signo); } } } } monolog/monolog/src/Monolog/Processor/UidProcessor.php000064400000002533150544704730017216 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; use Google\Site_Kit_Dependencies\Monolog\ResettableInterface; /** * Adds a unique identifier into records * * @author Simon Mönch */ class UidProcessor implements \Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface, \Google\Site_Kit_Dependencies\Monolog\ResettableInterface { private $uid; public function __construct($length = 7) { if (!\is_int($length) || $length > 32 || $length < 1) { throw new \InvalidArgumentException('The uid length must be an integer between 1 and 32'); } $this->uid = $this->generateUid($length); } public function __invoke(array $record) { $record['extra']['uid'] = $this->uid; return $record; } /** * @return string */ public function getUid() { return $this->uid; } public function reset() { $this->uid = $this->generateUid(\strlen($this->uid)); } private function generateUid($length) { return \substr(\hash('md5', \uniqid('', \true)), 0, $length); } } monolog/monolog/src/Monolog/Processor/PsrLogMessageProcessor.php000064400000005175150544704730021215 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Processes a record's message according to PSR-3 rules * * It replaces {foo} with the value from $context['foo'] * * @author Jordi Boggiano */ class PsrLogMessageProcessor implements \Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface { const SIMPLE_DATE = "Y-m-d\\TH:i:s.uP"; /** @var string|null */ private $dateFormat; /** @var bool */ private $removeUsedContextFields; /** * @param string|null $dateFormat The format of the timestamp: one supported by DateTime::format * @param bool $removeUsedContextFields If set to true the fields interpolated into message gets unset */ public function __construct($dateFormat = null, $removeUsedContextFields = \false) { $this->dateFormat = $dateFormat; $this->removeUsedContextFields = $removeUsedContextFields; } /** * @param array $record * @return array */ public function __invoke(array $record) { if (\false === \strpos($record['message'], '{')) { return $record; } $replacements = array(); foreach ($record['context'] as $key => $val) { $placeholder = '{' . $key . '}'; if (\strpos($record['message'], $placeholder) === \false) { continue; } if (\is_null($val) || \is_scalar($val) || \is_object($val) && \method_exists($val, "__toString")) { $replacements[$placeholder] = $val; } elseif ($val instanceof \DateTime) { $replacements[$placeholder] = $val->format($this->dateFormat ?: static::SIMPLE_DATE); } elseif (\is_object($val)) { $replacements[$placeholder] = '[object ' . \Google\Site_Kit_Dependencies\Monolog\Utils::getClass($val) . ']'; } elseif (\is_array($val)) { $replacements[$placeholder] = 'array' . \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($val, null, \true); } else { $replacements[$placeholder] = '[' . \gettype($val) . ']'; } if ($this->removeUsedContextFields) { unset($record['context'][$key]); } } $record['message'] = \strtr($record['message'], $replacements); return $record; } } monolog/monolog/src/Monolog/Processor/WebProcessor.php000064400000006237150544704730017217 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; /** * Injects url/method and remote IP of the current web request in all records * * @author Jordi Boggiano */ class WebProcessor implements \Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface { /** * @var array|\ArrayAccess */ protected $serverData; /** * Default fields * * Array is structured as [key in record.extra => key in $serverData] * * @var array */ protected $extraFields = array('url' => 'REQUEST_URI', 'ip' => 'REMOTE_ADDR', 'http_method' => 'REQUEST_METHOD', 'server' => 'SERVER_NAME', 'referrer' => 'HTTP_REFERER'); /** * @param array|\ArrayAccess $serverData Array or object w/ ArrayAccess that provides access to the $_SERVER data * @param array|null $extraFields Field names and the related key inside $serverData to be added. If not provided it defaults to: url, ip, http_method, server, referrer */ public function __construct($serverData = null, array $extraFields = null) { if (null === $serverData) { $this->serverData =& $_SERVER; } elseif (\is_array($serverData) || $serverData instanceof \ArrayAccess) { $this->serverData = $serverData; } else { throw new \UnexpectedValueException('$serverData must be an array or object implementing ArrayAccess.'); } if (isset($this->serverData['UNIQUE_ID'])) { $this->extraFields['unique_id'] = 'UNIQUE_ID'; } if (null !== $extraFields) { if (isset($extraFields[0])) { foreach (\array_keys($this->extraFields) as $fieldName) { if (!\in_array($fieldName, $extraFields)) { unset($this->extraFields[$fieldName]); } } } else { $this->extraFields = $extraFields; } } } /** * @param array $record * @return array */ public function __invoke(array $record) { // skip processing if for some reason request data // is not present (CLI or wonky SAPIs) if (!isset($this->serverData['REQUEST_URI'])) { return $record; } $record['extra'] = $this->appendExtraFields($record['extra']); return $record; } /** * @param string $extraName * @param string $serverName * @return $this */ public function addExtraField($extraName, $serverName) { $this->extraFields[$extraName] = $serverName; return $this; } /** * @param array $extra * @return array */ private function appendExtraFields(array $extra) { foreach ($this->extraFields as $extraName => $serverName) { $extra[$extraName] = isset($this->serverData[$serverName]) ? $this->serverData[$serverName] : null; } return $extra; } } monolog/monolog/src/Monolog/Processor/GitProcessor.php000064400000003053150544704730017216 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Injects Git branch and Git commit SHA in all records * * @author Nick Otter * @author Jordi Boggiano */ class GitProcessor implements \Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface { private $level; private static $cache; public function __construct($level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG) { $this->level = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($level); } /** * @param array $record * @return array */ public function __invoke(array $record) { // return if the level is not high enough if ($record['level'] < $this->level) { return $record; } $record['extra']['git'] = self::getGitInfo(); return $record; } private static function getGitInfo() { if (self::$cache) { return self::$cache; } $branches = `git branch -v --no-abbrev`; if ($branches && \preg_match('{^\\* (.+?)\\s+([a-f0-9]{40})(?:\\s|$)}m', $branches, $matches)) { return self::$cache = array('branch' => $matches[1], 'commit' => $matches[2]); } return self::$cache = array(); } } monolog/monolog/src/Monolog/Processor/IntrospectionProcessor.php000064400000007011150544704730021331 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Injects line/file:class/function where the log message came from * * Warning: This only works if the handler processes the logs directly. * If you put the processor on a handler that is behind a FingersCrossedHandler * for example, the processor will only be called once the trigger level is reached, * and all the log records will have the same file/line/.. data from the call that * triggered the FingersCrossedHandler. * * @author Jordi Boggiano */ class IntrospectionProcessor implements \Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface { private $level; private $skipClassesPartials; private $skipStackFramesCount; private $skipFunctions = array('call_user_func', 'call_user_func_array'); public function __construct($level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, array $skipClassesPartials = array(), $skipStackFramesCount = 0) { $this->level = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($level); $this->skipClassesPartials = \array_merge(array('Monolog\\'), $skipClassesPartials); $this->skipStackFramesCount = $skipStackFramesCount; } /** * @param array $record * @return array */ public function __invoke(array $record) { // return if the level is not high enough if ($record['level'] < $this->level) { return $record; } /* * http://php.net/manual/en/function.debug-backtrace.php * As of 5.3.6, DEBUG_BACKTRACE_IGNORE_ARGS option was added. * Any version less than 5.3.6 must use the DEBUG_BACKTRACE_IGNORE_ARGS constant value '2'. */ $trace = \debug_backtrace(\PHP_VERSION_ID < 50306 ? 2 : \DEBUG_BACKTRACE_IGNORE_ARGS); // skip first since it's always the current method \array_shift($trace); // the call_user_func call is also skipped \array_shift($trace); $i = 0; while ($this->isTraceClassOrSkippedFunction($trace, $i)) { if (isset($trace[$i]['class'])) { foreach ($this->skipClassesPartials as $part) { if (\strpos($trace[$i]['class'], $part) !== \false) { $i++; continue 2; } } } elseif (\in_array($trace[$i]['function'], $this->skipFunctions)) { $i++; continue; } break; } $i += $this->skipStackFramesCount; // we should have the call source now $record['extra'] = \array_merge($record['extra'], array('file' => isset($trace[$i - 1]['file']) ? $trace[$i - 1]['file'] : null, 'line' => isset($trace[$i - 1]['line']) ? $trace[$i - 1]['line'] : null, 'class' => isset($trace[$i]['class']) ? $trace[$i]['class'] : null, 'function' => isset($trace[$i]['function']) ? $trace[$i]['function'] : null)); return $record; } private function isTraceClassOrSkippedFunction(array $trace, $index) { if (!isset($trace[$index])) { return \false; } return isset($trace[$index]['class']) || \in_array($trace[$index]['function'], $this->skipFunctions); } } monolog/monolog/src/Monolog/Processor/TagProcessor.php000064400000001632150544704730017207 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; /** * Adds a tags array into record * * @author Martijn Riemers */ class TagProcessor implements \Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface { private $tags; public function __construct(array $tags = array()) { $this->setTags($tags); } public function addTags(array $tags = array()) { $this->tags = \array_merge($this->tags, $tags); } public function setTags(array $tags = array()) { $this->tags = $tags; } public function __invoke(array $record) { $record['extra']['tags'] = $this->tags; return $record; } } monolog/monolog/src/Monolog/Processor/MercurialProcessor.php000064400000003004150544704730020412 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Injects Hg branch and Hg revision number in all records * * @author Jonathan A. Schweder */ class MercurialProcessor implements \Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface { private $level; private static $cache; public function __construct($level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG) { $this->level = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($level); } /** * @param array $record * @return array */ public function __invoke(array $record) { // return if the level is not high enough if ($record['level'] < $this->level) { return $record; } $record['extra']['hg'] = self::getMercurialInfo(); return $record; } private static function getMercurialInfo() { if (self::$cache) { return self::$cache; } $result = \explode(' ', \trim(`hg id -nb`)); if (\count($result) >= 3) { return self::$cache = array('branch' => $result[1], 'revision' => $result[2]); } return self::$cache = array(); } } monolog/monolog/src/Monolog/Processor/ProcessorInterface.php000064400000001045150544704730020372 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; /** * An optional interface to allow labelling Monolog processors. * * @author Nicolas Grekas */ interface ProcessorInterface { /** * @return array The processed records */ public function __invoke(array $records); } monolog/monolog/src/Monolog/Processor/MemoryProcessor.php000064400000003567150544704730017755 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; /** * Some methods that are common for all memory processors * * @author Rob Jensen */ abstract class MemoryProcessor implements \Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface { /** * @var bool If true, get the real size of memory allocated from system. Else, only the memory used by emalloc() is reported. */ protected $realUsage; /** * @var bool If true, then format memory size to human readable string (MB, KB, B depending on size) */ protected $useFormatting; /** * @param bool $realUsage Set this to true to get the real size of memory allocated from system. * @param bool $useFormatting If true, then format memory size to human readable string (MB, KB, B depending on size) */ public function __construct($realUsage = \true, $useFormatting = \true) { $this->realUsage = (bool) $realUsage; $this->useFormatting = (bool) $useFormatting; } /** * Formats bytes into a human readable string if $this->useFormatting is true, otherwise return $bytes as is * * @param int $bytes * @return string|int Formatted string if $this->useFormatting is true, otherwise return $bytes as is */ protected function formatBytes($bytes) { $bytes = (int) $bytes; if (!$this->useFormatting) { return $bytes; } if ($bytes > 1024 * 1024) { return \round($bytes / 1024 / 1024, 2) . ' MB'; } elseif ($bytes > 1024) { return \round($bytes / 1024, 2) . ' KB'; } return $bytes . ' B'; } } monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php000064400000001541150544704730021531 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; /** * Injects memory_get_peak_usage in all records * * @see Monolog\Processor\MemoryProcessor::__construct() for options * @author Rob Jensen */ class MemoryPeakUsageProcessor extends \Google\Site_Kit_Dependencies\Monolog\Processor\MemoryProcessor { /** * @param array $record * @return array */ public function __invoke(array $record) { $bytes = \memory_get_peak_usage($this->realUsage); $formatted = $this->formatBytes($bytes); $record['extra']['memory_peak_usage'] = $formatted; return $record; } } monolog/monolog/src/Monolog/Processor/ProcessIdProcessor.php000064400000001250150544704730020363 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; /** * Adds value of getmypid into records * * @author Andreas Hörnicke */ class ProcessIdProcessor implements \Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface { /** * @param array $record * @return array */ public function __invoke(array $record) { $record['extra']['process_id'] = \getmypid(); return $record; } } monolog/monolog/src/Monolog/Processor/MemoryUsageProcessor.php000064400000001516150544704730020732 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Processor; /** * Injects memory_get_usage in all records * * @see Monolog\Processor\MemoryProcessor::__construct() for options * @author Rob Jensen */ class MemoryUsageProcessor extends \Google\Site_Kit_Dependencies\Monolog\Processor\MemoryProcessor { /** * @param array $record * @return array */ public function __invoke(array $record) { $bytes = \memory_get_usage($this->realUsage); $formatted = $this->formatBytes($bytes); $record['extra']['memory_usage'] = $formatted; return $record; } } monolog/monolog/src/Monolog/Handler/IFTTTHandler.php000064400000004433150544704730016364 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * IFTTTHandler uses cURL to trigger IFTTT Maker actions * * Register a secret key and trigger/event name at https://ifttt.com/maker * * value1 will be the channel from monolog's Logger constructor, * value2 will be the level name (ERROR, WARNING, ..) * value3 will be the log record's message * * @author Nehal Patel */ class IFTTTHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { private $eventName; private $secretKey; /** * @param string $eventName The name of the IFTTT Maker event that should be triggered * @param string $secretKey A valid IFTTT secret key * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($eventName, $secretKey, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR, $bubble = \true) { $this->eventName = $eventName; $this->secretKey = $secretKey; parent::__construct($level, $bubble); } /** * {@inheritdoc} */ public function write(array $record) { $postData = array("value1" => $record["channel"], "value2" => $record["level_name"], "value3" => $record["message"]); $postString = \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($postData); $ch = \curl_init(); \curl_setopt($ch, \CURLOPT_URL, "https://maker.ifttt.com/trigger/" . $this->eventName . "/with/key/" . $this->secretKey); \curl_setopt($ch, \CURLOPT_POST, \true); \curl_setopt($ch, \CURLOPT_RETURNTRANSFER, \true); \curl_setopt($ch, \CURLOPT_POSTFIELDS, $postString); \curl_setopt($ch, \CURLOPT_HTTPHEADER, array("Content-Type: application/json")); \Google\Site_Kit_Dependencies\Monolog\Handler\Curl\Util::execute($ch); } } monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php000064400000013177150544704730020263 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Simple handler wrapper that deduplicates log records across multiple requests * * It also includes the BufferHandler functionality and will buffer * all messages until the end of the request or flush() is called. * * This works by storing all log records' messages above $deduplicationLevel * to the file specified by $deduplicationStore. When further logs come in at the end of the * request (or when flush() is called), all those above $deduplicationLevel are checked * against the existing stored logs. If they match and the timestamps in the stored log is * not older than $time seconds, the new log record is discarded. If no log record is new, the * whole data set is discarded. * * This is mainly useful in combination with Mail handlers or things like Slack or HipChat handlers * that send messages to people, to avoid spamming with the same message over and over in case of * a major component failure like a database server being down which makes all requests fail in the * same way. * * @author Jordi Boggiano */ class DeduplicationHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\BufferHandler { /** * @var string */ protected $deduplicationStore; /** * @var int */ protected $deduplicationLevel; /** * @var int */ protected $time; /** * @var bool */ private $gc = \false; /** * @param HandlerInterface $handler Handler. * @param string $deduplicationStore The file/path where the deduplication log should be kept * @param int $deduplicationLevel The minimum logging level for log records to be looked at for deduplication purposes * @param int $time The period (in seconds) during which duplicate entries should be suppressed after a given log is sent through * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct(\Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface $handler, $deduplicationStore = null, $deduplicationLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR, $time = 60, $bubble = \true) { parent::__construct($handler, 0, \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble, \false); $this->deduplicationStore = $deduplicationStore === null ? \sys_get_temp_dir() . '/monolog-dedup-' . \substr(\md5(__FILE__), 0, 20) . '.log' : $deduplicationStore; $this->deduplicationLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($deduplicationLevel); $this->time = $time; } public function flush() { if ($this->bufferSize === 0) { return; } $passthru = null; foreach ($this->buffer as $record) { if ($record['level'] >= $this->deduplicationLevel) { $passthru = $passthru || !$this->isDuplicate($record); if ($passthru) { $this->appendRecord($record); } } } // default of null is valid as well as if no record matches duplicationLevel we just pass through if ($passthru === \true || $passthru === null) { $this->handler->handleBatch($this->buffer); } $this->clear(); if ($this->gc) { $this->collectLogs(); } } private function isDuplicate(array $record) { if (!\file_exists($this->deduplicationStore)) { return \false; } $store = \file($this->deduplicationStore, \FILE_IGNORE_NEW_LINES | \FILE_SKIP_EMPTY_LINES); if (!\is_array($store)) { return \false; } $yesterday = \time() - 86400; $timestampValidity = $record['datetime']->getTimestamp() - $this->time; $expectedMessage = \preg_replace('{[\\r\\n].*}', '', $record['message']); for ($i = \count($store) - 1; $i >= 0; $i--) { list($timestamp, $level, $message) = \explode(':', $store[$i], 3); if ($level === $record['level_name'] && $message === $expectedMessage && $timestamp > $timestampValidity) { return \true; } if ($timestamp < $yesterday) { $this->gc = \true; } } return \false; } private function collectLogs() { if (!\file_exists($this->deduplicationStore)) { return \false; } $handle = \fopen($this->deduplicationStore, 'rw+'); \flock($handle, \LOCK_EX); $validLogs = array(); $timestampValidity = \time() - $this->time; while (!\feof($handle)) { $log = \fgets($handle); if (\substr($log, 0, 10) >= $timestampValidity) { $validLogs[] = $log; } } \ftruncate($handle, 0); \rewind($handle); foreach ($validLogs as $log) { \fwrite($handle, $log); } \flock($handle, \LOCK_UN); \fclose($handle); $this->gc = \false; } private function appendRecord(array $record) { \file_put_contents($this->deduplicationStore, $record['datetime']->getTimestamp() . ':' . $record['level_name'] . ':' . \preg_replace('{[\\r\\n].*}', '', $record['message']) . "\n", \FILE_APPEND); } } monolog/monolog/src/Monolog/Handler/LogglyHandler.php000064400000005505150544704730016730 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Formatter\LogglyFormatter; /** * Sends errors to Loggly. * * @author Przemek Sobstel * @author Adam Pancutt * @author Gregory Barchard */ class LogglyHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { const HOST = 'logs-01.loggly.com'; const ENDPOINT_SINGLE = 'inputs'; const ENDPOINT_BATCH = 'bulk'; protected $token; protected $tag = array(); public function __construct($token, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { if (!\extension_loaded('curl')) { throw new \LogicException('The curl extension is needed to use the LogglyHandler'); } $this->token = $token; parent::__construct($level, $bubble); } public function setTag($tag) { $tag = !empty($tag) ? $tag : array(); $this->tag = \is_array($tag) ? $tag : array($tag); } public function addTag($tag) { if (!empty($tag)) { $tag = \is_array($tag) ? $tag : array($tag); $this->tag = \array_unique(\array_merge($this->tag, $tag)); } } protected function write(array $record) { $this->send($record["formatted"], self::ENDPOINT_SINGLE); } public function handleBatch(array $records) { $level = $this->level; $records = \array_filter($records, function ($record) use($level) { return $record['level'] >= $level; }); if ($records) { $this->send($this->getFormatter()->formatBatch($records), self::ENDPOINT_BATCH); } } protected function send($data, $endpoint) { $url = \sprintf("https://%s/%s/%s/", self::HOST, $endpoint, $this->token); $headers = array('Content-Type: application/json'); if (!empty($this->tag)) { $headers[] = 'X-LOGGLY-TAG: ' . \implode(',', $this->tag); } $ch = \curl_init(); \curl_setopt($ch, \CURLOPT_URL, $url); \curl_setopt($ch, \CURLOPT_POST, \true); \curl_setopt($ch, \CURLOPT_POSTFIELDS, $data); \curl_setopt($ch, \CURLOPT_HTTPHEADER, $headers); \curl_setopt($ch, \CURLOPT_RETURNTRANSFER, \true); \Google\Site_Kit_Dependencies\Monolog\Handler\Curl\Util::execute($ch); } protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LogglyFormatter(); } } monolog/monolog/src/Monolog/Handler/ProcessableHandlerTrait.php000064400000003313150544704730020734 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\ResettableInterface; /** * Helper trait for implementing ProcessableInterface * * This trait is present in monolog 1.x to ease forward compatibility. * * @author Jordi Boggiano */ trait ProcessableHandlerTrait { /** * @var callable[] */ protected $processors = []; /** * {@inheritdoc} * @suppress PhanTypeMismatchReturn */ public function pushProcessor($callback) : \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface { \array_unshift($this->processors, $callback); return $this; } /** * {@inheritdoc} */ public function popProcessor() : callable { if (!$this->processors) { throw new \LogicException('You tried to pop from an empty processor stack.'); } return \array_shift($this->processors); } /** * Processes a record. */ protected function processRecord(array $record) : array { foreach ($this->processors as $processor) { $record = $processor($record); } return $record; } protected function resetProcessors() : void { foreach ($this->processors as $processor) { if ($processor instanceof \Google\Site_Kit_Dependencies\Monolog\ResettableInterface) { $processor->reset(); } } } } monolog/monolog/src/Monolog/Handler/HandlerInterface.php000064400000005201150544704730017364 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; /** * Interface that all Monolog Handlers must implement * * @author Jordi Boggiano */ interface HandlerInterface { /** * Checks whether the given record will be handled by this handler. * * This is mostly done for performance reasons, to avoid calling processors for nothing. * * Handlers should still check the record levels within handle(), returning false in isHandling() * is no guarantee that handle() will not be called, and isHandling() might not be called * for a given record. * * @param array $record Partial log record containing only a level key * * @return bool */ public function isHandling(array $record); /** * Handles a record. * * All records may be passed to this method, and the handler should discard * those that it does not want to handle. * * The return value of this function controls the bubbling process of the handler stack. * Unless the bubbling is interrupted (by returning true), the Logger class will keep on * calling further handlers in the stack with a given log record. * * @param array $record The record to handle * @return bool true means that this handler handled the record, and that bubbling is not permitted. * false means the record was either not processed or that this handler allows bubbling. */ public function handle(array $record); /** * Handles a set of records at once. * * @param array $records The records to handle (an array of record arrays) */ public function handleBatch(array $records); /** * Adds a processor in the stack. * * @param callable $callback * @return self */ public function pushProcessor($callback); /** * Removes the processor on top of the stack and returns it. * * @return callable */ public function popProcessor(); /** * Sets the formatter. * * @param FormatterInterface $formatter * @return self */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter); /** * Gets the formatter. * * @return FormatterInterface */ public function getFormatter(); } monolog/monolog/src/Monolog/Handler/FingersCrossedHandler.php000064400000016222150544704730020411 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy; use Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed\ActivationStrategyInterface; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\ResettableInterface; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; /** * Buffers all records until a certain level is reached * * The advantage of this approach is that you don't get any clutter in your log files. * Only requests which actually trigger an error (or whatever your actionLevel is) will be * in the logs, but they will contain all records, not only those above the level threshold. * * You can find the various activation strategies in the * Monolog\Handler\FingersCrossed\ namespace. * * @author Jordi Boggiano */ class FingersCrossedHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler { protected $handler; protected $activationStrategy; protected $buffering = \true; protected $bufferSize; protected $buffer = array(); protected $stopBuffering; protected $passthruLevel; /** * @param callable|HandlerInterface $handler Handler or factory callable($record|null, $fingersCrossedHandler). * @param int|ActivationStrategyInterface $activationStrategy Strategy which determines when this handler takes action * @param int $bufferSize How many entries should be buffered at most, beyond that the oldest items are removed from the buffer. * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param bool $stopBuffering Whether the handler should stop buffering after being triggered (default true) * @param int $passthruLevel Minimum level to always flush to handler on close, even if strategy not triggered */ public function __construct($handler, $activationStrategy = null, $bufferSize = 0, $bubble = \true, $stopBuffering = \true, $passthruLevel = null) { if (null === $activationStrategy) { $activationStrategy = new \Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy(\Google\Site_Kit_Dependencies\Monolog\Logger::WARNING); } // convert simple int activationStrategy to an object if (!$activationStrategy instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed\ActivationStrategyInterface) { $activationStrategy = new \Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed\ErrorLevelActivationStrategy($activationStrategy); } $this->handler = $handler; $this->activationStrategy = $activationStrategy; $this->bufferSize = $bufferSize; $this->bubble = $bubble; $this->stopBuffering = $stopBuffering; if ($passthruLevel !== null) { $this->passthruLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($passthruLevel); } if (!$this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface && !\is_callable($this->handler)) { throw new \RuntimeException("The given handler (" . \json_encode($this->handler) . ") is not a callable nor a Monolog\\Handler\\HandlerInterface object"); } } /** * {@inheritdoc} */ public function isHandling(array $record) { return \true; } /** * Manually activate this logger regardless of the activation strategy */ public function activate() { if ($this->stopBuffering) { $this->buffering = \false; } $this->getHandler(\end($this->buffer) ?: null)->handleBatch($this->buffer); $this->buffer = array(); } /** * {@inheritdoc} */ public function handle(array $record) { if ($this->processors) { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } } if ($this->buffering) { $this->buffer[] = $record; if ($this->bufferSize > 0 && \count($this->buffer) > $this->bufferSize) { \array_shift($this->buffer); } if ($this->activationStrategy->isHandlerActivated($record)) { $this->activate(); } } else { $this->getHandler($record)->handle($record); } return \false === $this->bubble; } /** * {@inheritdoc} */ public function close() { $this->flushBuffer(); } public function reset() { $this->flushBuffer(); parent::reset(); if ($this->getHandler() instanceof \Google\Site_Kit_Dependencies\Monolog\ResettableInterface) { $this->getHandler()->reset(); } } /** * Clears the buffer without flushing any messages down to the wrapped handler. * * It also resets the handler to its initial buffering state. */ public function clear() { $this->buffer = array(); $this->reset(); } /** * Resets the state of the handler. Stops forwarding records to the wrapped handler. */ private function flushBuffer() { if (null !== $this->passthruLevel) { $level = $this->passthruLevel; $this->buffer = \array_filter($this->buffer, function ($record) use($level) { return $record['level'] >= $level; }); if (\count($this->buffer) > 0) { $this->getHandler(\end($this->buffer) ?: null)->handleBatch($this->buffer); } } $this->buffer = array(); $this->buffering = \true; } /** * Return the nested handler * * If the handler was provided as a factory callable, this will trigger the handler's instantiation. * * @return HandlerInterface */ public function getHandler(array $record = null) { if (!$this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface) { $this->handler = \call_user_func($this->handler, $record, $this); if (!$this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface) { throw new \RuntimeException("The factory callable should return a HandlerInterface"); } } return $this->handler; } /** * {@inheritdoc} */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { $this->getHandler()->setFormatter($formatter); return $this; } /** * {@inheritdoc} */ public function getFormatter() { return $this->getHandler()->getFormatter(); } } monolog/monolog/src/Monolog/Handler/Curl/Util.php000064400000002702150544704730016013 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler\Curl; class Util { private static $retriableErrorCodes = array(\CURLE_COULDNT_RESOLVE_HOST, \CURLE_COULDNT_CONNECT, \CURLE_HTTP_NOT_FOUND, \CURLE_READ_ERROR, \CURLE_OPERATION_TIMEOUTED, \CURLE_HTTP_POST_ERROR, \CURLE_SSL_CONNECT_ERROR); /** * Executes a CURL request with optional retries and exception on failure * * @param resource $ch curl handler * @throws \RuntimeException */ public static function execute($ch, $retries = 5, $closeAfterDone = \true) { while ($retries--) { if (\curl_exec($ch) === \false) { $curlErrno = \curl_errno($ch); if (\false === \in_array($curlErrno, self::$retriableErrorCodes, \true) || !$retries) { $curlError = \curl_error($ch); if ($closeAfterDone) { \curl_close($ch); } throw new \RuntimeException(\sprintf('Curl error (code %s): %s', $curlErrno, $curlError)); } continue; } if ($closeAfterDone) { \curl_close($ch); } break; } } } monolog/monolog/src/Monolog/Handler/FilterHandler.php000064400000013143150544704730016715 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; /** * Simple handler wrapper that filters records based on a list of levels * * It can be configured with an exact list of levels to allow, or a min/max level. * * @author Hennadiy Verkh * @author Jordi Boggiano */ class FilterHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler { /** * Handler or factory callable($record, $this) * * @var callable|\Monolog\Handler\HandlerInterface */ protected $handler; /** * Minimum level for logs that are passed to handler * * @var int[] */ protected $acceptedLevels; /** * Whether the messages that are handled can bubble up the stack or not * * @var bool */ protected $bubble; /** * @param callable|HandlerInterface $handler Handler or factory callable($record|null, $filterHandler). * @param int|array $minLevelOrList A list of levels to accept or a minimum level if maxLevel is provided * @param int $maxLevel Maximum level to accept, only used if $minLevelOrList is not an array * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($handler, $minLevelOrList = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $maxLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY, $bubble = \true) { $this->handler = $handler; $this->bubble = $bubble; $this->setAcceptedLevels($minLevelOrList, $maxLevel); if (!$this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface && !\is_callable($this->handler)) { throw new \RuntimeException("The given handler (" . \json_encode($this->handler) . ") is not a callable nor a Monolog\\Handler\\HandlerInterface object"); } } /** * @return array */ public function getAcceptedLevels() { return \array_flip($this->acceptedLevels); } /** * @param int|string|array $minLevelOrList A list of levels to accept or a minimum level or level name if maxLevel is provided * @param int|string $maxLevel Maximum level or level name to accept, only used if $minLevelOrList is not an array */ public function setAcceptedLevels($minLevelOrList = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $maxLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY) { if (\is_array($minLevelOrList)) { $acceptedLevels = \array_map('Monolog\\Logger::toMonologLevel', $minLevelOrList); } else { $minLevelOrList = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($minLevelOrList); $maxLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($maxLevel); $acceptedLevels = \array_values(\array_filter(\Google\Site_Kit_Dependencies\Monolog\Logger::getLevels(), function ($level) use($minLevelOrList, $maxLevel) { return $level >= $minLevelOrList && $level <= $maxLevel; })); } $this->acceptedLevels = \array_flip($acceptedLevels); } /** * {@inheritdoc} */ public function isHandling(array $record) { return isset($this->acceptedLevels[$record['level']]); } /** * {@inheritdoc} */ public function handle(array $record) { if (!$this->isHandling($record)) { return \false; } if ($this->processors) { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } } $this->getHandler($record)->handle($record); return \false === $this->bubble; } /** * {@inheritdoc} */ public function handleBatch(array $records) { $filtered = array(); foreach ($records as $record) { if ($this->isHandling($record)) { $filtered[] = $record; } } if (\count($filtered) > 0) { $this->getHandler($filtered[\count($filtered) - 1])->handleBatch($filtered); } } /** * Return the nested handler * * If the handler was provided as a factory callable, this will trigger the handler's instantiation. * * @return HandlerInterface */ public function getHandler(array $record = null) { if (!$this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface) { $this->handler = \call_user_func($this->handler, $record, $this); if (!$this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface) { throw new \RuntimeException("The factory callable should return a HandlerInterface"); } } return $this->handler; } /** * {@inheritdoc} */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { $this->getHandler()->setFormatter($formatter); return $this; } /** * {@inheritdoc} */ public function getFormatter() { return $this->getHandler()->getFormatter(); } } monolog/monolog/src/Monolog/Handler/AbstractSyslogHandler.php000064400000007323150544704730020437 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; /** * Common syslog functionality */ abstract class AbstractSyslogHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { protected $facility; /** * Translates Monolog log levels to syslog log priorities. */ protected $logLevels = array(\Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG => \LOG_DEBUG, \Google\Site_Kit_Dependencies\Monolog\Logger::INFO => \LOG_INFO, \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE => \LOG_NOTICE, \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING => \LOG_WARNING, \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR => \LOG_ERR, \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL => \LOG_CRIT, \Google\Site_Kit_Dependencies\Monolog\Logger::ALERT => \LOG_ALERT, \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY => \LOG_EMERG); /** * List of valid log facility names. */ protected $facilities = array('auth' => \LOG_AUTH, 'authpriv' => \LOG_AUTHPRIV, 'cron' => \LOG_CRON, 'daemon' => \LOG_DAEMON, 'kern' => \LOG_KERN, 'lpr' => \LOG_LPR, 'mail' => \LOG_MAIL, 'news' => \LOG_NEWS, 'syslog' => \LOG_SYSLOG, 'user' => \LOG_USER, 'uucp' => \LOG_UUCP); /** * @param mixed $facility * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($facility = \LOG_USER, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); if (!\defined('PHP_WINDOWS_VERSION_BUILD')) { $this->facilities['local0'] = \LOG_LOCAL0; $this->facilities['local1'] = \LOG_LOCAL1; $this->facilities['local2'] = \LOG_LOCAL2; $this->facilities['local3'] = \LOG_LOCAL3; $this->facilities['local4'] = \LOG_LOCAL4; $this->facilities['local5'] = \LOG_LOCAL5; $this->facilities['local6'] = \LOG_LOCAL6; $this->facilities['local7'] = \LOG_LOCAL7; } else { $this->facilities['local0'] = 128; // LOG_LOCAL0 $this->facilities['local1'] = 136; // LOG_LOCAL1 $this->facilities['local2'] = 144; // LOG_LOCAL2 $this->facilities['local3'] = 152; // LOG_LOCAL3 $this->facilities['local4'] = 160; // LOG_LOCAL4 $this->facilities['local5'] = 168; // LOG_LOCAL5 $this->facilities['local6'] = 176; // LOG_LOCAL6 $this->facilities['local7'] = 184; // LOG_LOCAL7 } // convert textual description of facility to syslog constant if (\array_key_exists(\strtolower($facility), $this->facilities)) { $facility = $this->facilities[\strtolower($facility)]; } elseif (!\in_array($facility, \array_values($this->facilities), \true)) { throw new \UnexpectedValueException('Unknown facility value "' . $facility . '" given'); } $this->facility = $facility; } /** * {@inheritdoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter('%channel%.%level_name%: %message% %context% %extra%'); } } monolog/monolog/src/Monolog/Handler/RollbarHandler.php000064400000010157150544704730017067 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\RollbarNotifier; use Exception; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Sends errors to Rollbar * * If the context data contains a `payload` key, that is used as an array * of payload options to RollbarNotifier's report_message/report_exception methods. * * Rollbar's context info will contain the context + extra keys from the log record * merged, and then on top of that a few keys: * * - level (rollbar level name) * - monolog_level (monolog level name, raw level, as rollbar only has 5 but monolog 8) * - channel * - datetime (unix timestamp) * * @author Paul Statezny */ class RollbarHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * Rollbar notifier * * @var RollbarNotifier */ protected $rollbarNotifier; protected $levelMap = array(\Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG => 'debug', \Google\Site_Kit_Dependencies\Monolog\Logger::INFO => 'info', \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE => 'info', \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING => 'warning', \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR => 'error', \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL => 'critical', \Google\Site_Kit_Dependencies\Monolog\Logger::ALERT => 'critical', \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY => 'critical'); /** * Records whether any log records have been added since the last flush of the rollbar notifier * * @var bool */ private $hasRecords = \false; protected $initialized = \false; /** * @param RollbarNotifier $rollbarNotifier RollbarNotifier object constructed with valid token * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct(\Google\Site_Kit_Dependencies\RollbarNotifier $rollbarNotifier, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR, $bubble = \true) { $this->rollbarNotifier = $rollbarNotifier; parent::__construct($level, $bubble); } /** * {@inheritdoc} */ protected function write(array $record) { if (!$this->initialized) { // __destructor() doesn't get called on Fatal errors \register_shutdown_function(array($this, 'close')); $this->initialized = \true; } $context = $record['context']; $payload = array(); if (isset($context['payload'])) { $payload = $context['payload']; unset($context['payload']); } $context = \array_merge($context, $record['extra'], array('level' => $this->levelMap[$record['level']], 'monolog_level' => $record['level_name'], 'channel' => $record['channel'], 'datetime' => $record['datetime']->format('U'))); if (isset($context['exception']) && $context['exception'] instanceof \Exception) { $payload['level'] = $context['level']; $exception = $context['exception']; unset($context['exception']); $this->rollbarNotifier->report_exception($exception, $context, $payload); } else { $this->rollbarNotifier->report_message($record['message'], $context['level'], $context, $payload); } $this->hasRecords = \true; } public function flush() { if ($this->hasRecords) { $this->rollbarNotifier->flush(); $this->hasRecords = \false; } } /** * {@inheritdoc} */ public function close() { $this->flush(); } /** * {@inheritdoc} */ public function reset() { $this->flush(); parent::reset(); } } monolog/monolog/src/Monolog/Handler/SwiftMailerHandler.php000064400000007361150544704730017723 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; use Google\Site_Kit_Dependencies\Swift; /** * SwiftMailerHandler uses Swift_Mailer to send the emails * * @author Gyula Sallai */ class SwiftMailerHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\MailHandler { protected $mailer; private $messageTemplate; /** * @param \Swift_Mailer $mailer The mailer to use * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct(\Google\Site_Kit_Dependencies\Swift_Mailer $mailer, $message, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR, $bubble = \true) { parent::__construct($level, $bubble); $this->mailer = $mailer; $this->messageTemplate = $message; } /** * {@inheritdoc} */ protected function send($content, array $records) { $this->mailer->send($this->buildMessage($content, $records)); } /** * Gets the formatter for the Swift_Message subject. * * @param string $format The format of the subject * @return FormatterInterface */ protected function getSubjectFormatter($format) { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter($format); } /** * Creates instance of Swift_Message to be sent * * @param string $content formatted email body to be sent * @param array $records Log records that formed the content * @return \Swift_Message */ protected function buildMessage($content, array $records) { $message = null; if ($this->messageTemplate instanceof \Google\Site_Kit_Dependencies\Swift_Message) { $message = clone $this->messageTemplate; $message->generateId(); } elseif (\is_callable($this->messageTemplate)) { $message = \call_user_func($this->messageTemplate, $content, $records); } if (!$message instanceof \Google\Site_Kit_Dependencies\Swift_Message) { throw new \InvalidArgumentException('Could not resolve message as instance of Swift_Message or a callable returning it'); } if ($records) { $subjectFormatter = $this->getSubjectFormatter($message->getSubject()); $message->setSubject($subjectFormatter->format($this->getHighestRecord($records))); } $message->setBody($content); if (\version_compare(\Google\Site_Kit_Dependencies\Swift::VERSION, '6.0.0', '>=')) { $message->setDate(new \DateTimeImmutable()); } else { $message->setDate(\time()); } return $message; } /** * BC getter, to be removed in 2.0 */ public function __get($name) { if ($name === 'message') { \trigger_error('SwiftMailerHandler->message is deprecated, use ->buildMessage() instead to retrieve the message', \E_USER_DEPRECATED); return $this->buildMessage(null, array()); } throw new \InvalidArgumentException('Invalid property ' . $name); } } monolog/monolog/src/Monolog/Handler/NullHandler.php000064400000002106150544704730016377 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Blackhole * * Any record it can handle will be thrown away. This can be used * to put on top of an existing stack to override it temporarily. * * @author Jordi Boggiano */ class NullHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler { /** * @param int $level The minimum logging level at which this handler will be triggered */ public function __construct($level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG) { parent::__construct($level, \false); } /** * {@inheritdoc} */ public function handle(array $record) { if ($record['level'] < $this->level) { return \false; } return \true; } } monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php000064400000013464150544704730020065 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Stores logs to files that are rotated every day and a limited number of files are kept. * * This rotation is only intended to be used as a workaround. Using logrotate to * handle the rotation is strongly encouraged when you can use it. * * @author Christophe Coevoet * @author Jordi Boggiano */ class RotatingFileHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\StreamHandler { const FILE_PER_DAY = 'Y-m-d'; const FILE_PER_MONTH = 'Y-m'; const FILE_PER_YEAR = 'Y'; protected $filename; protected $maxFiles; protected $mustRotate; protected $nextRotation; protected $filenameFormat; protected $dateFormat; /** * @param string $filename * @param int $maxFiles The maximal amount of files to keep (0 means unlimited) * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write) * @param bool $useLocking Try to lock log file before doing any writes */ public function __construct($filename, $maxFiles = 0, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true, $filePermission = null, $useLocking = \false) { $this->filename = \Google\Site_Kit_Dependencies\Monolog\Utils::canonicalizePath($filename); $this->maxFiles = (int) $maxFiles; $this->nextRotation = new \DateTime('tomorrow'); $this->filenameFormat = '{filename}-{date}'; $this->dateFormat = 'Y-m-d'; parent::__construct($this->getTimedFilename(), $level, $bubble, $filePermission, $useLocking); } /** * {@inheritdoc} */ public function close() { parent::close(); if (\true === $this->mustRotate) { $this->rotate(); } } /** * {@inheritdoc} */ public function reset() { parent::reset(); if (\true === $this->mustRotate) { $this->rotate(); } } public function setFilenameFormat($filenameFormat, $dateFormat) { if (!\preg_match('{^Y(([/_.-]?m)([/_.-]?d)?)?$}', $dateFormat)) { \trigger_error('Invalid date format - format must be one of ' . 'RotatingFileHandler::FILE_PER_DAY ("Y-m-d"), RotatingFileHandler::FILE_PER_MONTH ("Y-m") ' . 'or RotatingFileHandler::FILE_PER_YEAR ("Y"), or you can set one of the ' . 'date formats using slashes, underscores and/or dots instead of dashes.', \E_USER_DEPRECATED); } if (\substr_count($filenameFormat, '{date}') === 0) { \trigger_error('Invalid filename format - format should contain at least `{date}`, because otherwise rotating is impossible.', \E_USER_DEPRECATED); } $this->filenameFormat = $filenameFormat; $this->dateFormat = $dateFormat; $this->url = $this->getTimedFilename(); $this->close(); } /** * {@inheritdoc} */ protected function write(array $record) { // on the first record written, if the log is new, we should rotate (once per day) if (null === $this->mustRotate) { $this->mustRotate = !\file_exists($this->url); } if ($this->nextRotation < $record['datetime']) { $this->mustRotate = \true; $this->close(); } parent::write($record); } /** * Rotates the files. */ protected function rotate() { // update filename $this->url = $this->getTimedFilename(); $this->nextRotation = new \DateTime('tomorrow'); // skip GC of old logs if files are unlimited if (0 === $this->maxFiles) { return; } $logFiles = \glob($this->getGlobPattern()); if ($this->maxFiles >= \count($logFiles)) { // no files to remove return; } // Sorting the files by name to remove the older ones \usort($logFiles, function ($a, $b) { return \strcmp($b, $a); }); foreach (\array_slice($logFiles, $this->maxFiles) as $file) { if (\is_writable($file)) { // suppress errors here as unlink() might fail if two processes // are cleaning up/rotating at the same time \set_error_handler(function ($errno, $errstr, $errfile, $errline) { }); \unlink($file); \restore_error_handler(); } } $this->mustRotate = \false; } protected function getTimedFilename() { $fileInfo = \pathinfo($this->filename); $timedFilename = \str_replace(array('{filename}', '{date}'), array($fileInfo['filename'], \date($this->dateFormat)), $fileInfo['dirname'] . '/' . $this->filenameFormat); if (!empty($fileInfo['extension'])) { $timedFilename .= '.' . $fileInfo['extension']; } return $timedFilename; } protected function getGlobPattern() { $fileInfo = \pathinfo($this->filename); $glob = \str_replace(array('{filename}', '{date}'), array($fileInfo['filename'], '[0-9][0-9][0-9][0-9]*'), $fileInfo['dirname'] . '/' . $this->filenameFormat); if (!empty($fileInfo['extension'])) { $glob .= '.' . $fileInfo['extension']; } return $glob; } } monolog/monolog/src/Monolog/Handler/MandrillHandler.php000064400000004472150544704730017237 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * MandrillHandler uses cURL to send the emails to the Mandrill API * * @author Adam Nicholson */ class MandrillHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\MailHandler { protected $message; protected $apiKey; /** * @param string $apiKey A valid Mandrill API key * @param callable|\Swift_Message $message An example message for real messages, only the body will be replaced * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($apiKey, $message, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR, $bubble = \true) { parent::__construct($level, $bubble); if (!$message instanceof \Google\Site_Kit_Dependencies\Swift_Message && \is_callable($message)) { $message = \call_user_func($message); } if (!$message instanceof \Google\Site_Kit_Dependencies\Swift_Message) { throw new \InvalidArgumentException('You must provide either a Swift_Message instance or a callable returning it'); } $this->message = $message; $this->apiKey = $apiKey; } /** * {@inheritdoc} */ protected function send($content, array $records) { $message = clone $this->message; $message->setBody($content); $message->setDate(\time()); $ch = \curl_init(); \curl_setopt($ch, \CURLOPT_URL, 'https://mandrillapp.com/api/1.0/messages/send-raw.json'); \curl_setopt($ch, \CURLOPT_POST, 1); \curl_setopt($ch, \CURLOPT_RETURNTRANSFER, 1); \curl_setopt($ch, \CURLOPT_POSTFIELDS, \http_build_query(array('key' => $this->apiKey, 'raw_message' => (string) $message, 'async' => \false))); \Google\Site_Kit_Dependencies\Monolog\Handler\Curl\Util::execute($ch); } } monolog/monolog/src/Monolog/Handler/AbstractHandler.php000064400000011366150544704730017240 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\ResettableInterface; /** * Base Handler class providing the Handler structure * * @author Jordi Boggiano */ abstract class AbstractHandler implements \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface, \Google\Site_Kit_Dependencies\Monolog\ResettableInterface { protected $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG; protected $bubble = \true; /** * @var FormatterInterface */ protected $formatter; protected $processors = array(); /** * @param int|string $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { $this->setLevel($level); $this->bubble = $bubble; } /** * {@inheritdoc} */ public function isHandling(array $record) { return $record['level'] >= $this->level; } /** * {@inheritdoc} */ public function handleBatch(array $records) { foreach ($records as $record) { $this->handle($record); } } /** * Closes the handler. * * This will be called automatically when the object is destroyed */ public function close() { } /** * {@inheritdoc} */ public function pushProcessor($callback) { if (!\is_callable($callback)) { throw new \InvalidArgumentException('Processors must be valid callables (callback or object with an __invoke method), ' . \var_export($callback, \true) . ' given'); } \array_unshift($this->processors, $callback); return $this; } /** * {@inheritdoc} */ public function popProcessor() { if (!$this->processors) { throw new \LogicException('You tried to pop from an empty processor stack.'); } return \array_shift($this->processors); } /** * {@inheritdoc} */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { $this->formatter = $formatter; return $this; } /** * {@inheritdoc} */ public function getFormatter() { if (!$this->formatter) { $this->formatter = $this->getDefaultFormatter(); } return $this->formatter; } /** * Sets minimum logging level at which this handler will be triggered. * * @param int|string $level Level or level name * @return self */ public function setLevel($level) { $this->level = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($level); return $this; } /** * Gets minimum logging level at which this handler will be triggered. * * @return int */ public function getLevel() { return $this->level; } /** * Sets the bubbling behavior. * * @param bool $bubble true means that this handler allows bubbling. * false means that bubbling is not permitted. * @return self */ public function setBubble($bubble) { $this->bubble = $bubble; return $this; } /** * Gets the bubbling behavior. * * @return bool true means that this handler allows bubbling. * false means that bubbling is not permitted. */ public function getBubble() { return $this->bubble; } public function __destruct() { try { $this->close(); } catch (\Exception $e) { // do nothing } catch (\Throwable $e) { // do nothing } } public function reset() { foreach ($this->processors as $processor) { if ($processor instanceof \Google\Site_Kit_Dependencies\Monolog\ResettableInterface) { $processor->reset(); } } } /** * Gets the default formatter. * * @return FormatterInterface */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter(); } } monolog/monolog/src/Monolog/Handler/InsightOpsHandler.php000064400000003760150544704730017563 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Inspired on LogEntriesHandler. * * @author Robert Kaufmann III * @author Gabriel Machado */ class InsightOpsHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\SocketHandler { /** * @var string */ protected $logToken; /** * @param string $token Log token supplied by InsightOps * @param string $region Region where InsightOps account is hosted. Could be 'us' or 'eu'. * @param bool $useSSL Whether or not SSL encryption should be used * @param int $level The minimum logging level to trigger this handler * @param bool $bubble Whether or not messages that are handled should bubble up the stack. * * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing */ public function __construct($token, $region = 'us', $useSSL = \true, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { if ($useSSL && !\extension_loaded('openssl')) { throw new \Google\Site_Kit_Dependencies\Monolog\Handler\MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for InsightOpsHandler'); } $endpoint = $useSSL ? 'ssl://' . $region . '.data.logs.insight.rapid7.com:443' : $region . '.data.logs.insight.rapid7.com:80'; parent::__construct($endpoint, $level, $bubble); $this->logToken = $token; } /** * {@inheritdoc} * * @param array $record * @return string */ protected function generateDataStream($record) { return $this->logToken . ' ' . $record['formatted']; } } monolog/monolog/src/Monolog/Handler/MailHandler.php000064400000003232150544704730016350 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; /** * Base class for all mail handlers * * @author Gyula Sallai */ abstract class MailHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * {@inheritdoc} */ public function handleBatch(array $records) { $messages = array(); foreach ($records as $record) { if ($record['level'] < $this->level) { continue; } $messages[] = $this->processRecord($record); } if (!empty($messages)) { $this->send((string) $this->getFormatter()->formatBatch($messages), $messages); } } /** * Send a mail with the given content * * @param string $content formatted email body to be sent * @param array $records the array of log records that formed this content */ protected abstract function send($content, array $records); /** * {@inheritdoc} */ protected function write(array $record) { $this->send((string) $record['formatted'], array($record)); } protected function getHighestRecord(array $records) { $highestRecord = null; foreach ($records as $record) { if ($highestRecord === null || $highestRecord['level'] < $record['level']) { $highestRecord = $record; } } return $highestRecord; } } monolog/monolog/src/Monolog/Handler/FirePHPHandler.php000064400000012635150544704730016732 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\WildfireFormatter; /** * Simple FirePHP Handler (http://www.firephp.org/), which uses the Wildfire protocol. * * @author Eric Clemmons (@ericclemmons) */ class FirePHPHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * WildFire JSON header message format */ const PROTOCOL_URI = 'http://meta.wildfirehq.org/Protocol/JsonStream/0.2'; /** * FirePHP structure for parsing messages & their presentation */ const STRUCTURE_URI = 'http://meta.firephp.org/Wildfire/Structure/FirePHP/FirebugConsole/0.1'; /** * Must reference a "known" plugin, otherwise headers won't display in FirePHP */ const PLUGIN_URI = 'http://meta.firephp.org/Wildfire/Plugin/FirePHP/Library-FirePHPCore/0.3'; /** * Header prefix for Wildfire to recognize & parse headers */ const HEADER_PREFIX = 'X-Wf'; /** * Whether or not Wildfire vendor-specific headers have been generated & sent yet */ protected static $initialized = \false; /** * Shared static message index between potentially multiple handlers * @var int */ protected static $messageIndex = 1; protected static $sendHeaders = \true; /** * Base header creation function used by init headers & record headers * * @param array $meta Wildfire Plugin, Protocol & Structure Indexes * @param string $message Log message * @return array Complete header string ready for the client as key and message as value */ protected function createHeader(array $meta, $message) { $header = \sprintf('%s-%s', self::HEADER_PREFIX, \join('-', $meta)); return array($header => $message); } /** * Creates message header from record * * @see createHeader() * @param array $record * @return array */ protected function createRecordHeader(array $record) { // Wildfire is extensible to support multiple protocols & plugins in a single request, // but we're not taking advantage of that (yet), so we're using "1" for simplicity's sake. return $this->createHeader(array(1, 1, 1, self::$messageIndex++), $record['formatted']); } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\WildfireFormatter(); } /** * Wildfire initialization headers to enable message parsing * * @see createHeader() * @see sendHeader() * @return array */ protected function getInitHeaders() { // Initial payload consists of required headers for Wildfire return \array_merge($this->createHeader(array('Protocol', 1), self::PROTOCOL_URI), $this->createHeader(array(1, 'Structure', 1), self::STRUCTURE_URI), $this->createHeader(array(1, 'Plugin', 1), self::PLUGIN_URI)); } /** * Send header string to the client * * @param string $header * @param string $content */ protected function sendHeader($header, $content) { if (!\headers_sent() && self::$sendHeaders) { \header(\sprintf('%s: %s', $header, $content)); } } /** * Creates & sends header for a record, ensuring init headers have been sent prior * * @see sendHeader() * @see sendInitHeaders() * @param array $record */ protected function write(array $record) { if (!self::$sendHeaders) { return; } // WildFire-specific headers must be sent prior to any messages if (!self::$initialized) { self::$initialized = \true; self::$sendHeaders = $this->headersAccepted(); if (!self::$sendHeaders) { return; } foreach ($this->getInitHeaders() as $header => $content) { $this->sendHeader($header, $content); } } $header = $this->createRecordHeader($record); if (\trim(\current($header)) !== '') { $this->sendHeader(\key($header), \current($header)); } } /** * Verifies if the headers are accepted by the current user agent * * @return bool */ protected function headersAccepted() { if (!empty($_SERVER['HTTP_USER_AGENT']) && \preg_match('{\\bFirePHP/\\d+\\.\\d+\\b}', $_SERVER['HTTP_USER_AGENT'])) { return \true; } return isset($_SERVER['HTTP_X_FIREPHP_VERSION']); } /** * BC getter for the sendHeaders property that has been made static */ public function __get($property) { if ('sendHeaders' !== $property) { throw new \InvalidArgumentException('Undefined property ' . $property); } return static::$sendHeaders; } /** * BC setter for the sendHeaders property that has been made static */ public function __set($property, $value) { if ('sendHeaders' !== $property) { throw new \InvalidArgumentException('Undefined property ' . $property); } static::$sendHeaders = $value; } } monolog/monolog/src/Monolog/Handler/CouchDBHandler.php000064400000003736150544704730016746 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\JsonFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * CouchDB handler * * @author Markus Bachmann */ class CouchDBHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { private $options; public function __construct(array $options = array(), $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { $this->options = \array_merge(array('host' => 'localhost', 'port' => 5984, 'dbname' => 'logger', 'username' => null, 'password' => null), $options); parent::__construct($level, $bubble); } /** * {@inheritDoc} */ protected function write(array $record) { $basicAuth = null; if ($this->options['username']) { $basicAuth = \sprintf('%s:%s@', $this->options['username'], $this->options['password']); } $url = 'http://' . $basicAuth . $this->options['host'] . ':' . $this->options['port'] . '/' . $this->options['dbname']; $context = \stream_context_create(array('http' => array('method' => 'POST', 'content' => $record['formatted'], 'ignore_errors' => \true, 'max_redirects' => 0, 'header' => 'Content-type: application/json'))); if (\false === @\file_get_contents($url, null, $context)) { throw new \RuntimeException(\sprintf('Could not connect to %s', $url)); } } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\JsonFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\JsonFormatter::BATCH_MODE_JSON, \false); } } monolog/monolog/src/Monolog/Handler/HandlerWrapper.php000064400000005140150544704730017106 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\ResettableInterface; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; /** * This simple wrapper class can be used to extend handlers functionality. * * Example: A custom filtering that can be applied to any handler. * * Inherit from this class and override handle() like this: * * public function handle(array $record) * { * if ($record meets certain conditions) { * return false; * } * return $this->handler->handle($record); * } * * @author Alexey Karapetov */ class HandlerWrapper implements \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface, \Google\Site_Kit_Dependencies\Monolog\ResettableInterface { /** * @var HandlerInterface */ protected $handler; /** * HandlerWrapper constructor. * @param HandlerInterface $handler */ public function __construct(\Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface $handler) { $this->handler = $handler; } /** * {@inheritdoc} */ public function isHandling(array $record) { return $this->handler->isHandling($record); } /** * {@inheritdoc} */ public function handle(array $record) { return $this->handler->handle($record); } /** * {@inheritdoc} */ public function handleBatch(array $records) { return $this->handler->handleBatch($records); } /** * {@inheritdoc} */ public function pushProcessor($callback) { $this->handler->pushProcessor($callback); return $this; } /** * {@inheritdoc} */ public function popProcessor() { return $this->handler->popProcessor(); } /** * {@inheritdoc} */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { $this->handler->setFormatter($formatter); return $this; } /** * {@inheritdoc} */ public function getFormatter() { return $this->handler->getFormatter(); } public function reset() { if ($this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\ResettableInterface) { return $this->handler->reset(); } } } monolog/monolog/src/Monolog/Handler/MissingExtensionException.php000064400000000736150544704730021363 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; /** * Exception can be thrown if an extension for an handler is missing * * @author Christian Bergau */ class MissingExtensionException extends \Exception { } monolog/monolog/src/Monolog/Handler/SlackHandler.php000064400000015057150544704730016533 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; use Google\Site_Kit_Dependencies\Monolog\Handler\Slack\SlackRecord; /** * Sends notifications through Slack API * * @author Greg Kedzierski * @see https://api.slack.com/ */ class SlackHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\SocketHandler { /** * Slack API token * @var string */ private $token; /** * Instance of the SlackRecord util class preparing data for Slack API. * @var SlackRecord */ private $slackRecord; /** * @param string $token Slack API token * @param string $channel Slack channel (encoded ID or name) * @param string|null $username Name of a bot * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise) * @param string|null $iconEmoji The emoji name to use (or null) * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param bool $useShortAttachment Whether the the context/extra messages added to Slack as attachments are in a short style * @param bool $includeContextAndExtra Whether the attachment should include context and extra data * @param array $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] * @throws MissingExtensionException If no OpenSSL PHP extension configured */ public function __construct($token, $channel, $username = null, $useAttachment = \true, $iconEmoji = null, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL, $bubble = \true, $useShortAttachment = \false, $includeContextAndExtra = \false, array $excludeFields = array()) { if (!\extension_loaded('openssl')) { throw new \Google\Site_Kit_Dependencies\Monolog\Handler\MissingExtensionException('The OpenSSL PHP extension is required to use the SlackHandler'); } parent::__construct('ssl://slack.com:443', $level, $bubble); $this->slackRecord = new \Google\Site_Kit_Dependencies\Monolog\Handler\Slack\SlackRecord($channel, $username, $useAttachment, $iconEmoji, $useShortAttachment, $includeContextAndExtra, $excludeFields, $this->formatter); $this->token = $token; } public function getSlackRecord() { return $this->slackRecord; } public function getToken() { return $this->token; } /** * {@inheritdoc} * * @param array $record * @return string */ protected function generateDataStream($record) { $content = $this->buildContent($record); return $this->buildHeader($content) . $content; } /** * Builds the body of API call * * @param array $record * @return string */ private function buildContent($record) { $dataArray = $this->prepareContentData($record); return \http_build_query($dataArray); } /** * Prepares content data * * @param array $record * @return array */ protected function prepareContentData($record) { $dataArray = $this->slackRecord->getSlackData($record); $dataArray['token'] = $this->token; if (!empty($dataArray['attachments'])) { $dataArray['attachments'] = \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($dataArray['attachments']); } return $dataArray; } /** * Builds the header of the API Call * * @param string $content * @return string */ private function buildHeader($content) { $header = "POST /api/chat.postMessage HTTP/1.1\r\n"; $header .= "Host: slack.com\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; return $header; } /** * {@inheritdoc} * * @param array $record */ protected function write(array $record) { parent::write($record); $this->finalizeWrite(); } /** * Finalizes the request by reading some bytes and then closing the socket * * If we do not read some but close the socket too early, slack sometimes * drops the request entirely. */ protected function finalizeWrite() { $res = $this->getResource(); if (\is_resource($res)) { @\fread($res, 2048); } $this->closeSocket(); } /** * Returned a Slack message attachment color associated with * provided level. * * @param int $level * @return string * @deprecated Use underlying SlackRecord instead */ protected function getAttachmentColor($level) { \trigger_error('SlackHandler::getAttachmentColor() is deprecated. Use underlying SlackRecord instead.', \E_USER_DEPRECATED); return $this->slackRecord->getAttachmentColor($level); } /** * Stringifies an array of key/value pairs to be used in attachment fields * * @param array $fields * @return string * @deprecated Use underlying SlackRecord instead */ protected function stringify($fields) { \trigger_error('SlackHandler::stringify() is deprecated. Use underlying SlackRecord instead.', \E_USER_DEPRECATED); return $this->slackRecord->stringify($fields); } public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { parent::setFormatter($formatter); $this->slackRecord->setFormatter($formatter); return $this; } public function getFormatter() { $formatter = parent::getFormatter(); $this->slackRecord->setFormatter($formatter); return $formatter; } } monolog/monolog/src/Monolog/Handler/Slack/SlackRecord.php000064400000020460150544704730017423 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler\Slack; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; use Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; /** * Slack record utility helping to log to Slack webhooks or API. * * @author Greg Kedzierski * @author Haralan Dobrev * @see https://api.slack.com/incoming-webhooks * @see https://api.slack.com/docs/message-attachments */ class SlackRecord { const COLOR_DANGER = 'danger'; const COLOR_WARNING = 'warning'; const COLOR_GOOD = 'good'; const COLOR_DEFAULT = '#e3e4e6'; /** * Slack channel (encoded ID or name) * @var string|null */ private $channel; /** * Name of a bot * @var string|null */ private $username; /** * User icon e.g. 'ghost', 'http://example.com/user.png' * @var string */ private $userIcon; /** * Whether the message should be added to Slack as attachment (plain text otherwise) * @var bool */ private $useAttachment; /** * Whether the the context/extra messages added to Slack as attachments are in a short style * @var bool */ private $useShortAttachment; /** * Whether the attachment should include context and extra data * @var bool */ private $includeContextAndExtra; /** * Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] * @var array */ private $excludeFields; /** * @var FormatterInterface */ private $formatter; /** * @var NormalizerFormatter */ private $normalizerFormatter; public function __construct($channel = null, $username = null, $useAttachment = \true, $userIcon = null, $useShortAttachment = \false, $includeContextAndExtra = \false, array $excludeFields = array(), \Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter = null) { $this->channel = $channel; $this->username = $username; $this->userIcon = \trim($userIcon, ':'); $this->useAttachment = $useAttachment; $this->useShortAttachment = $useShortAttachment; $this->includeContextAndExtra = $includeContextAndExtra; $this->excludeFields = $excludeFields; $this->formatter = $formatter; if ($this->includeContextAndExtra) { $this->normalizerFormatter = new \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter(); } } public function getSlackData(array $record) { $dataArray = array(); $record = $this->excludeFields($record); if ($this->username) { $dataArray['username'] = $this->username; } if ($this->channel) { $dataArray['channel'] = $this->channel; } if ($this->formatter && !$this->useAttachment) { $message = $this->formatter->format($record); } else { $message = $record['message']; } if ($this->useAttachment) { $attachment = array('fallback' => $message, 'text' => $message, 'color' => $this->getAttachmentColor($record['level']), 'fields' => array(), 'mrkdwn_in' => array('fields'), 'ts' => $record['datetime']->getTimestamp()); if ($this->useShortAttachment) { $attachment['title'] = $record['level_name']; } else { $attachment['title'] = 'Message'; $attachment['fields'][] = $this->generateAttachmentField('Level', $record['level_name']); } if ($this->includeContextAndExtra) { foreach (array('extra', 'context') as $key) { if (empty($record[$key])) { continue; } if ($this->useShortAttachment) { $attachment['fields'][] = $this->generateAttachmentField($key, $record[$key]); } else { // Add all extra fields as individual fields in attachment $attachment['fields'] = \array_merge($attachment['fields'], $this->generateAttachmentFields($record[$key])); } } } $dataArray['attachments'] = array($attachment); } else { $dataArray['text'] = $message; } if ($this->userIcon) { if (\filter_var($this->userIcon, \FILTER_VALIDATE_URL)) { $dataArray['icon_url'] = $this->userIcon; } else { $dataArray['icon_emoji'] = ":{$this->userIcon}:"; } } return $dataArray; } /** * Returned a Slack message attachment color associated with * provided level. * * @param int $level * @return string */ public function getAttachmentColor($level) { switch (\true) { case $level >= \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR: return self::COLOR_DANGER; case $level >= \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING: return self::COLOR_WARNING; case $level >= \Google\Site_Kit_Dependencies\Monolog\Logger::INFO: return self::COLOR_GOOD; default: return self::COLOR_DEFAULT; } } /** * Stringifies an array of key/value pairs to be used in attachment fields * * @param array $fields * * @return string */ public function stringify($fields) { $normalized = $this->normalizerFormatter->format($fields); $prettyPrintFlag = \defined('JSON_PRETTY_PRINT') ? \JSON_PRETTY_PRINT : 128; $flags = 0; if (\PHP_VERSION_ID >= 50400) { $flags = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE; } $hasSecondDimension = \count(\array_filter($normalized, 'is_array')); $hasNonNumericKeys = !\count(\array_filter(\array_keys($normalized), 'is_numeric')); return $hasSecondDimension || $hasNonNumericKeys ? \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($normalized, $prettyPrintFlag | $flags) : \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($normalized, $flags); } /** * Sets the formatter * * @param FormatterInterface $formatter */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { $this->formatter = $formatter; } /** * Generates attachment field * * @param string $title * @param string|array $value * * @return array */ private function generateAttachmentField($title, $value) { $value = \is_array($value) ? \sprintf('```%s```', $this->stringify($value)) : $value; return array('title' => \ucfirst($title), 'value' => $value, 'short' => \false); } /** * Generates a collection of attachment fields from array * * @param array $data * * @return array */ private function generateAttachmentFields(array $data) { $fields = array(); foreach ($this->normalizerFormatter->format($data) as $key => $value) { $fields[] = $this->generateAttachmentField($key, $value); } return $fields; } /** * Get a copy of record with fields excluded according to $this->excludeFields * * @param array $record * * @return array */ private function excludeFields(array $record) { foreach ($this->excludeFields as $field) { $keys = \explode('.', $field); $node =& $record; $lastKey = \end($keys); foreach ($keys as $key) { if (!isset($node[$key])) { break; } if ($lastKey === $key) { unset($node[$key]); break; } $node =& $node[$key]; } } return $record; } } monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php000064400000012460150544704730020051 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; /** * NativeMailerHandler uses the mail() function to send the emails * * @author Christophe Coevoet * @author Mark Garrett */ class NativeMailerHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\MailHandler { /** * The email addresses to which the message will be sent * @var array */ protected $to; /** * The subject of the email * @var string */ protected $subject; /** * Optional headers for the message * @var array */ protected $headers = array(); /** * Optional parameters for the message * @var array */ protected $parameters = array(); /** * The wordwrap length for the message * @var int */ protected $maxColumnWidth; /** * The Content-type for the message * @var string */ protected $contentType = 'text/plain'; /** * The encoding for the message * @var string */ protected $encoding = 'utf-8'; /** * @param string|array $to The receiver of the mail * @param string $subject The subject of the mail * @param string $from The sender of the mail * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param int $maxColumnWidth The maximum column width that the message lines will have */ public function __construct($to, $subject, $from, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR, $bubble = \true, $maxColumnWidth = 70) { parent::__construct($level, $bubble); $this->to = \is_array($to) ? $to : array($to); $this->subject = $subject; $this->addHeader(\sprintf('From: %s', $from)); $this->maxColumnWidth = $maxColumnWidth; } /** * Add headers to the message * * @param string|array $headers Custom added headers * @return self */ public function addHeader($headers) { foreach ((array) $headers as $header) { if (\strpos($header, "\n") !== \false || \strpos($header, "\r") !== \false) { throw new \InvalidArgumentException('Headers can not contain newline characters for security reasons'); } $this->headers[] = $header; } return $this; } /** * Add parameters to the message * * @param string|array $parameters Custom added parameters * @return self */ public function addParameter($parameters) { $this->parameters = \array_merge($this->parameters, (array) $parameters); return $this; } /** * {@inheritdoc} */ protected function send($content, array $records) { $content = \wordwrap($content, $this->maxColumnWidth); $headers = \ltrim(\implode("\r\n", $this->headers) . "\r\n", "\r\n"); $headers .= 'Content-type: ' . $this->getContentType() . '; charset=' . $this->getEncoding() . "\r\n"; if ($this->getContentType() == 'text/html' && \false === \strpos($headers, 'MIME-Version:')) { $headers .= 'MIME-Version: 1.0' . "\r\n"; } $subject = $this->subject; if ($records) { $subjectFormatter = new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter($this->subject); $subject = $subjectFormatter->format($this->getHighestRecord($records)); } $parameters = \implode(' ', $this->parameters); foreach ($this->to as $to) { \mail($to, $subject, $content, $headers, $parameters); } } /** * @return string $contentType */ public function getContentType() { return $this->contentType; } /** * @return string $encoding */ public function getEncoding() { return $this->encoding; } /** * @param string $contentType The content type of the email - Defaults to text/plain. Use text/html for HTML * messages. * @return self */ public function setContentType($contentType) { if (\strpos($contentType, "\n") !== \false || \strpos($contentType, "\r") !== \false) { throw new \InvalidArgumentException('The content type can not contain newline characters to prevent email header injection'); } $this->contentType = $contentType; return $this; } /** * @param string $encoding * @return self */ public function setEncoding($encoding) { if (\strpos($encoding, "\n") !== \false || \strpos($encoding, "\r") !== \false) { throw new \InvalidArgumentException('The encoding can not contain newline characters to prevent email header injection'); } $this->encoding = $encoding; return $this; } } monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php000064400000007762150544704730020056 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; use Google\Site_Kit_Dependencies\Monolog\Handler\Slack\SlackRecord; /** * Sends notifications through Slack Webhooks * * @author Haralan Dobrev * @see https://api.slack.com/incoming-webhooks */ class SlackWebhookHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * Slack Webhook token * @var string */ private $webhookUrl; /** * Instance of the SlackRecord util class preparing data for Slack API. * @var SlackRecord */ private $slackRecord; /** * @param string $webhookUrl Slack Webhook URL * @param string|null $channel Slack channel (encoded ID or name) * @param string|null $username Name of a bot * @param bool $useAttachment Whether the message should be added to Slack as attachment (plain text otherwise) * @param string|null $iconEmoji The emoji name to use (or null) * @param bool $useShortAttachment Whether the the context/extra messages added to Slack as attachments are in a short style * @param bool $includeContextAndExtra Whether the attachment should include context and extra data * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param array $excludeFields Dot separated list of fields to exclude from slack message. E.g. ['context.field1', 'extra.field2'] */ public function __construct($webhookUrl, $channel = null, $username = null, $useAttachment = \true, $iconEmoji = null, $useShortAttachment = \false, $includeContextAndExtra = \false, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL, $bubble = \true, array $excludeFields = array()) { parent::__construct($level, $bubble); $this->webhookUrl = $webhookUrl; $this->slackRecord = new \Google\Site_Kit_Dependencies\Monolog\Handler\Slack\SlackRecord($channel, $username, $useAttachment, $iconEmoji, $useShortAttachment, $includeContextAndExtra, $excludeFields, $this->formatter); } public function getSlackRecord() { return $this->slackRecord; } public function getWebhookUrl() { return $this->webhookUrl; } /** * {@inheritdoc} * * @param array $record */ protected function write(array $record) { $postData = $this->slackRecord->getSlackData($record); $postString = \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($postData); $ch = \curl_init(); $options = array(\CURLOPT_URL => $this->webhookUrl, \CURLOPT_POST => \true, \CURLOPT_RETURNTRANSFER => \true, \CURLOPT_HTTPHEADER => array('Content-type: application/json'), \CURLOPT_POSTFIELDS => $postString); if (\defined('CURLOPT_SAFE_UPLOAD')) { $options[\CURLOPT_SAFE_UPLOAD] = \true; } \curl_setopt_array($ch, $options); \Google\Site_Kit_Dependencies\Monolog\Handler\Curl\Util::execute($ch); } public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { parent::setFormatter($formatter); $this->slackRecord->setFormatter($formatter); return $this; } public function getFormatter() { $formatter = parent::getFormatter(); $this->slackRecord->setFormatter($formatter); return $formatter; } } monolog/monolog/src/Monolog/Handler/RavenHandler.php000064400000020072150544704730016542 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Raven_Client; /** * Handler to send messages to a Sentry (https://github.com/getsentry/sentry) server * using sentry-php (https://github.com/getsentry/sentry-php) * * @author Marc Abramowitz */ class RavenHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * Translates Monolog log levels to Raven log levels. */ protected $logLevels = array(\Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG => \Google\Site_Kit_Dependencies\Raven_Client::DEBUG, \Google\Site_Kit_Dependencies\Monolog\Logger::INFO => \Google\Site_Kit_Dependencies\Raven_Client::INFO, \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE => \Google\Site_Kit_Dependencies\Raven_Client::INFO, \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING => \Google\Site_Kit_Dependencies\Raven_Client::WARNING, \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR => \Google\Site_Kit_Dependencies\Raven_Client::ERROR, \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL => \Google\Site_Kit_Dependencies\Raven_Client::FATAL, \Google\Site_Kit_Dependencies\Monolog\Logger::ALERT => \Google\Site_Kit_Dependencies\Raven_Client::FATAL, \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY => \Google\Site_Kit_Dependencies\Raven_Client::FATAL); /** * @var string should represent the current version of the calling * software. Can be any string (git commit, version number) */ protected $release; /** * @var Raven_Client the client object that sends the message to the server */ protected $ravenClient; /** * @var FormatterInterface The formatter to use for the logs generated via handleBatch() */ protected $batchFormatter; /** * @param Raven_Client $ravenClient * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct(\Google\Site_Kit_Dependencies\Raven_Client $ravenClient, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { @\trigger_error('The Monolog\\Handler\\RavenHandler class is deprecated. You should rather upgrade to the sentry/sentry 2.x and use Sentry\\Monolog\\Handler, see https://github.com/getsentry/sentry-php/blob/master/src/Monolog/Handler.php', \E_USER_DEPRECATED); parent::__construct($level, $bubble); $this->ravenClient = $ravenClient; } /** * {@inheritdoc} */ public function handleBatch(array $records) { $level = $this->level; // filter records based on their level $records = \array_filter($records, function ($record) use($level) { return $record['level'] >= $level; }); if (!$records) { return; } // the record with the highest severity is the "main" one $record = \array_reduce($records, function ($highest, $record) { if (null === $highest || $record['level'] > $highest['level']) { return $record; } return $highest; }); // the other ones are added as a context item $logs = array(); foreach ($records as $r) { $logs[] = $this->processRecord($r); } if ($logs) { $record['context']['logs'] = (string) $this->getBatchFormatter()->formatBatch($logs); } $this->handle($record); } /** * Sets the formatter for the logs generated by handleBatch(). * * @param FormatterInterface $formatter */ public function setBatchFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { $this->batchFormatter = $formatter; } /** * Gets the formatter for the logs generated by handleBatch(). * * @return FormatterInterface */ public function getBatchFormatter() { if (!$this->batchFormatter) { $this->batchFormatter = $this->getDefaultBatchFormatter(); } return $this->batchFormatter; } /** * {@inheritdoc} */ protected function write(array $record) { $previousUserContext = \false; $options = array(); $options['level'] = $this->logLevels[$record['level']]; $options['tags'] = array(); if (!empty($record['extra']['tags'])) { $options['tags'] = \array_merge($options['tags'], $record['extra']['tags']); unset($record['extra']['tags']); } if (!empty($record['context']['tags'])) { $options['tags'] = \array_merge($options['tags'], $record['context']['tags']); unset($record['context']['tags']); } if (!empty($record['context']['fingerprint'])) { $options['fingerprint'] = $record['context']['fingerprint']; unset($record['context']['fingerprint']); } if (!empty($record['context']['logger'])) { $options['logger'] = $record['context']['logger']; unset($record['context']['logger']); } else { $options['logger'] = $record['channel']; } foreach ($this->getExtraParameters() as $key) { foreach (array('extra', 'context') as $source) { if (!empty($record[$source][$key])) { $options[$key] = $record[$source][$key]; unset($record[$source][$key]); } } } if (!empty($record['context'])) { $options['extra']['context'] = $record['context']; if (!empty($record['context']['user'])) { $previousUserContext = $this->ravenClient->context->user; $this->ravenClient->user_context($record['context']['user']); unset($options['extra']['context']['user']); } } if (!empty($record['extra'])) { $options['extra']['extra'] = $record['extra']; } if (!empty($this->release) && !isset($options['release'])) { $options['release'] = $this->release; } if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || \PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable)) { $options['message'] = $record['formatted']; $this->ravenClient->captureException($record['context']['exception'], $options); } else { $this->ravenClient->captureMessage($record['formatted'], array(), $options); } if ($previousUserContext !== \false) { $this->ravenClient->user_context($previousUserContext); } } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter('[%channel%] %message%'); } /** * Gets the default formatter for the logs generated by handleBatch(). * * @return FormatterInterface */ protected function getDefaultBatchFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter(); } /** * Gets extra parameters supported by Raven that can be found in "extra" and "context" * * @return array */ protected function getExtraParameters() { return array('contexts', 'checksum', 'release', 'event_id'); } /** * @param string $value * @return self */ public function setRelease($value) { $this->release = $value; return $this; } } monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php000064400000007325150544704730020207 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; use Google\Site_Kit_Dependencies\Monolog\Formatter\ElasticaFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Elastica\Client; use Google\Site_Kit_Dependencies\Elastica\Exception\ExceptionInterface; /** * Elastic Search handler * * Usage example: * * $client = new \Elastica\Client(); * $options = array( * 'index' => 'elastic_index_name', * 'type' => 'elastic_doc_type', * ); * $handler = new ElasticSearchHandler($client, $options); * $log = new Logger('application'); * $log->pushHandler($handler); * * @author Jelle Vink */ class ElasticSearchHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * @var Client */ protected $client; /** * @var array Handler config options */ protected $options = array(); /** * @param Client $client Elastica Client object * @param array $options Handler configuration * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct(\Google\Site_Kit_Dependencies\Elastica\Client $client, array $options = array(), $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); $this->client = $client; $this->options = \array_merge(array( 'index' => 'monolog', // Elastic index name 'type' => 'record', // Elastic document type 'ignore_error' => \false, ), $options); } /** * {@inheritDoc} */ protected function write(array $record) { $this->bulkSend(array($record['formatted'])); } /** * {@inheritdoc} */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { if ($formatter instanceof \Google\Site_Kit_Dependencies\Monolog\Formatter\ElasticaFormatter) { return parent::setFormatter($formatter); } throw new \InvalidArgumentException('ElasticSearchHandler is only compatible with ElasticaFormatter'); } /** * Getter options * @return array */ public function getOptions() { return $this->options; } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\ElasticaFormatter($this->options['index'], $this->options['type']); } /** * {@inheritdoc} */ public function handleBatch(array $records) { $documents = $this->getFormatter()->formatBatch($records); $this->bulkSend($documents); } /** * Use Elasticsearch bulk API to send list of documents * @param array $documents * @throws \RuntimeException */ protected function bulkSend(array $documents) { try { $this->client->addDocuments($documents); } catch (\Google\Site_Kit_Dependencies\Elastica\Exception\ExceptionInterface $e) { if (!$this->options['ignore_error']) { throw new \RuntimeException("Error sending messages to Elasticsearch", 0, $e); } } } } monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php000064400000016453150544704730020445 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; /** * Handler sending logs to browser's javascript console with no browser extension required * * @author Olivier Poitrey */ class BrowserConsoleHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { protected static $initialized = \false; protected static $records = array(); /** * {@inheritDoc} * * Formatted output may contain some formatting markers to be transferred to `console.log` using the %c format. * * Example of formatted string: * * You can do [[blue text]]{color: blue} or [[green background]]{background-color: green; color: white} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter('[[%channel%]]{macro: autolabel} [[%level_name%]]{font-weight: bold} %message%'); } /** * {@inheritDoc} */ protected function write(array $record) { // Accumulate records static::$records[] = $record; // Register shutdown handler if not already done if (!static::$initialized) { static::$initialized = \true; $this->registerShutdownFunction(); } } /** * Convert records to javascript console commands and send it to the browser. * This method is automatically called on PHP shutdown if output is HTML or Javascript. */ public static function send() { $format = static::getResponseFormat(); if ($format === 'unknown') { return; } if (\count(static::$records)) { if ($format === 'html') { static::writeOutput(''); } elseif ($format === 'js') { static::writeOutput(static::generateScript()); } static::resetStatic(); } } public function close() { self::resetStatic(); } public function reset() { self::resetStatic(); } /** * Forget all logged records */ public static function resetStatic() { static::$records = array(); } /** * Wrapper for register_shutdown_function to allow overriding */ protected function registerShutdownFunction() { if (\PHP_SAPI !== 'cli') { \register_shutdown_function(array('Monolog\\Handler\\BrowserConsoleHandler', 'send')); } } /** * Wrapper for echo to allow overriding * * @param string $str */ protected static function writeOutput($str) { echo $str; } /** * Checks the format of the response * * If Content-Type is set to application/javascript or text/javascript -> js * If Content-Type is set to text/html, or is unset -> html * If Content-Type is anything else -> unknown * * @return string One of 'js', 'html' or 'unknown' */ protected static function getResponseFormat() { // Check content type foreach (\headers_list() as $header) { if (\stripos($header, 'content-type:') === 0) { // This handler only works with HTML and javascript outputs // text/javascript is obsolete in favour of application/javascript, but still used if (\stripos($header, 'application/javascript') !== \false || \stripos($header, 'text/javascript') !== \false) { return 'js'; } if (\stripos($header, 'text/html') === \false) { return 'unknown'; } break; } } return 'html'; } private static function generateScript() { $script = array(); foreach (static::$records as $record) { $context = static::dump('Context', $record['context']); $extra = static::dump('Extra', $record['extra']); if (empty($context) && empty($extra)) { $script[] = static::call_array('log', static::handleStyles($record['formatted'])); } else { $script = \array_merge($script, array(static::call_array('groupCollapsed', static::handleStyles($record['formatted']))), $context, $extra, array(static::call('groupEnd'))); } } return "(function (c) {if (c && c.groupCollapsed) {\n" . \implode("\n", $script) . "\n}})(console);"; } private static function handleStyles($formatted) { $args = array(); $format = '%c' . $formatted; \preg_match_all('/\\[\\[(.*?)\\]\\]\\{([^}]*)\\}/s', $format, $matches, \PREG_OFFSET_CAPTURE | \PREG_SET_ORDER); foreach (\array_reverse($matches) as $match) { $args[] = '"font-weight: normal"'; $args[] = static::quote(static::handleCustomStyles($match[2][0], $match[1][0])); $pos = $match[0][1]; $format = \substr($format, 0, $pos) . '%c' . $match[1][0] . '%c' . \substr($format, $pos + \strlen($match[0][0])); } $args[] = static::quote('font-weight: normal'); $args[] = static::quote($format); return \array_reverse($args); } private static function handleCustomStyles($style, $string) { static $colors = array('blue', 'green', 'red', 'magenta', 'orange', 'black', 'grey'); static $labels = array(); return \preg_replace_callback('/macro\\s*:(.*?)(?:;|$)/', function ($m) use($string, &$colors, &$labels) { if (\trim($m[1]) === 'autolabel') { // Format the string as a label with consistent auto assigned background color if (!isset($labels[$string])) { $labels[$string] = $colors[\count($labels) % \count($colors)]; } $color = $labels[$string]; return "background-color: {$color}; color: white; border-radius: 3px; padding: 0 2px 0 2px"; } return $m[1]; }, $style); } private static function dump($title, array $dict) { $script = array(); $dict = \array_filter($dict); if (empty($dict)) { return $script; } $script[] = static::call('log', static::quote('%c%s'), static::quote('font-weight: bold'), static::quote($title)); foreach ($dict as $key => $value) { $value = \json_encode($value); if (empty($value)) { $value = static::quote(''); } $script[] = static::call('log', static::quote('%s: %o'), static::quote($key), $value); } return $script; } private static function quote($arg) { return '"' . \addcslashes($arg, "\"\n\\") . '"'; } private static function call() { $args = \func_get_args(); $method = \array_shift($args); return static::call_array($method, $args); } private static function call_array($method, array $args) { return 'c.' . $method . '(' . \implode(', ', $args) . ');'; } } monolog/monolog/src/Monolog/Handler/HipChatHandler.php000064400000025335150544704730017016 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Sends notifications through the hipchat api to a hipchat room * * Notes: * API token - HipChat API token * Room - HipChat Room Id or name, where messages are sent * Name - Name used to send the message (from) * notify - Should the message trigger a notification in the clients * version - The API version to use (HipChatHandler::API_V1 | HipChatHandler::API_V2) * * @author Rafael Dohms * @see https://www.hipchat.com/docs/api */ class HipChatHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\SocketHandler { /** * Use API version 1 */ const API_V1 = 'v1'; /** * Use API version v2 */ const API_V2 = 'v2'; /** * The maximum allowed length for the name used in the "from" field. */ const MAXIMUM_NAME_LENGTH = 15; /** * The maximum allowed length for the message. */ const MAXIMUM_MESSAGE_LENGTH = 9500; /** * @var string */ private $token; /** * @var string */ private $room; /** * @var string */ private $name; /** * @var bool */ private $notify; /** * @var string */ private $format; /** * @var string */ private $host; /** * @var string */ private $version; /** * @param string $token HipChat API Token * @param string $room The room that should be alerted of the message (Id or Name) * @param string $name Name used in the "from" field. * @param bool $notify Trigger a notification in clients or not * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param bool $useSSL Whether to connect via SSL. * @param string $format The format of the messages (default to text, can be set to html if you have html in the messages) * @param string $host The HipChat server hostname. * @param string $version The HipChat API version (default HipChatHandler::API_V1) */ public function __construct($token, $room, $name = 'Monolog', $notify = \false, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL, $bubble = \true, $useSSL = \true, $format = 'text', $host = 'api.hipchat.com', $version = self::API_V1) { @\trigger_error('The Monolog\\Handler\\HipChatHandler class is deprecated. You should migrate to Slack and the SlackWebhookHandler / SlackbotHandler, see https://www.atlassian.com/partnerships/slack', \E_USER_DEPRECATED); if ($version == self::API_V1 && !$this->validateStringLength($name, static::MAXIMUM_NAME_LENGTH)) { throw new \InvalidArgumentException('The supplied name is too long. HipChat\'s v1 API supports names up to 15 UTF-8 characters.'); } $connectionString = $useSSL ? 'ssl://' . $host . ':443' : $host . ':80'; parent::__construct($connectionString, $level, $bubble); $this->token = $token; $this->name = $name; $this->notify = $notify; $this->room = $room; $this->format = $format; $this->host = $host; $this->version = $version; } /** * {@inheritdoc} * * @param array $record * @return string */ protected function generateDataStream($record) { $content = $this->buildContent($record); return $this->buildHeader($content) . $content; } /** * Builds the body of API call * * @param array $record * @return string */ private function buildContent($record) { $dataArray = array('notify' => $this->version == self::API_V1 ? $this->notify ? 1 : 0 : ($this->notify ? 'true' : 'false'), 'message' => $record['formatted'], 'message_format' => $this->format, 'color' => $this->getAlertColor($record['level'])); if (!$this->validateStringLength($dataArray['message'], static::MAXIMUM_MESSAGE_LENGTH)) { if (\function_exists('mb_substr')) { $dataArray['message'] = \mb_substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH) . ' [truncated]'; } else { $dataArray['message'] = \substr($dataArray['message'], 0, static::MAXIMUM_MESSAGE_LENGTH) . ' [truncated]'; } } // if we are using the legacy API then we need to send some additional information if ($this->version == self::API_V1) { $dataArray['room_id'] = $this->room; } // append the sender name if it is set // always append it if we use the v1 api (it is required in v1) if ($this->version == self::API_V1 || $this->name !== null) { $dataArray['from'] = (string) $this->name; } return \http_build_query($dataArray); } /** * Builds the header of the API Call * * @param string $content * @return string */ private function buildHeader($content) { if ($this->version == self::API_V1) { $header = "POST /v1/rooms/message?format=json&auth_token={$this->token} HTTP/1.1\r\n"; } else { // needed for rooms with special (spaces, etc) characters in the name $room = \rawurlencode($this->room); $header = "POST /v2/room/{$room}/notification?auth_token={$this->token} HTTP/1.1\r\n"; } $header .= "Host: {$this->host}\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; return $header; } /** * Assigns a color to each level of log records. * * @param int $level * @return string */ protected function getAlertColor($level) { switch (\true) { case $level >= \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR: return 'red'; case $level >= \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING: return 'yellow'; case $level >= \Google\Site_Kit_Dependencies\Monolog\Logger::INFO: return 'green'; case $level == \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG: return 'gray'; default: return 'yellow'; } } /** * {@inheritdoc} * * @param array $record */ protected function write(array $record) { parent::write($record); $this->finalizeWrite(); } /** * Finalizes the request by reading some bytes and then closing the socket * * If we do not read some but close the socket too early, hipchat sometimes * drops the request entirely. */ protected function finalizeWrite() { $res = $this->getResource(); if (\is_resource($res)) { @\fread($res, 2048); } $this->closeSocket(); } /** * {@inheritdoc} */ public function handleBatch(array $records) { if (\count($records) == 0) { return \true; } $batchRecords = $this->combineRecords($records); $handled = \false; foreach ($batchRecords as $batchRecord) { if ($this->isHandling($batchRecord)) { $this->write($batchRecord); $handled = \true; } } if (!$handled) { return \false; } return \false === $this->bubble; } /** * Combines multiple records into one. Error level of the combined record * will be the highest level from the given records. Datetime will be taken * from the first record. * * @param array $records * @return array */ private function combineRecords(array $records) { $batchRecord = null; $batchRecords = array(); $messages = array(); $formattedMessages = array(); $level = 0; $levelName = null; $datetime = null; foreach ($records as $record) { $record = $this->processRecord($record); if ($record['level'] > $level) { $level = $record['level']; $levelName = $record['level_name']; } if (null === $datetime) { $datetime = $record['datetime']; } $messages[] = $record['message']; $messageStr = \implode(\PHP_EOL, $messages); $formattedMessages[] = $this->getFormatter()->format($record); $formattedMessageStr = \implode('', $formattedMessages); $batchRecord = array('message' => $messageStr, 'formatted' => $formattedMessageStr, 'context' => array(), 'extra' => array()); if (!$this->validateStringLength($batchRecord['formatted'], static::MAXIMUM_MESSAGE_LENGTH)) { // Pop the last message and implode the remaining messages $lastMessage = \array_pop($messages); $lastFormattedMessage = \array_pop($formattedMessages); $batchRecord['message'] = \implode(\PHP_EOL, $messages); $batchRecord['formatted'] = \implode('', $formattedMessages); $batchRecords[] = $batchRecord; $messages = array($lastMessage); $formattedMessages = array($lastFormattedMessage); $batchRecord = null; } } if (null !== $batchRecord) { $batchRecords[] = $batchRecord; } // Set the max level and datetime for all records foreach ($batchRecords as &$batchRecord) { $batchRecord = \array_merge($batchRecord, array('level' => $level, 'level_name' => $levelName, 'datetime' => $datetime)); } return $batchRecords; } /** * Validates the length of a string. * * If the `mb_strlen()` function is available, it will use that, as HipChat * allows UTF-8 characters. Otherwise, it will fall back to `strlen()`. * * Note that this might cause false failures in the specific case of using * a valid name with less than 16 characters, but 16 or more bytes, on a * system where `mb_strlen()` is unavailable. * * @param string $str * @param int $length * * @return bool */ private function validateStringLength($str, $length) { if (\function_exists('mb_strlen')) { return \mb_strlen($str) <= $length; } return \strlen($str) <= $length; } } monolog/monolog/src/Monolog/Handler/SocketHandler.php000064400000023345150544704730016725 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Stores to any socket - uses fsockopen() or pfsockopen(). * * @author Pablo de Leon Belloc * @see http://php.net/manual/en/function.fsockopen.php */ class SocketHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { private $connectionString; private $connectionTimeout; private $resource; private $timeout = 0; private $writingTimeout = 10; private $lastSentBytes = null; private $chunkSize = null; private $persistent = \false; private $errno; private $errstr; private $lastWritingAt; /** * @param string $connectionString Socket connection string * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($connectionString, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); $this->connectionString = $connectionString; $this->connectionTimeout = (float) \ini_get('default_socket_timeout'); } /** * Connect (if necessary) and write to the socket * * @param array $record * * @throws \UnexpectedValueException * @throws \RuntimeException */ protected function write(array $record) { $this->connectIfNotConnected(); $data = $this->generateDataStream($record); $this->writeToSocket($data); } /** * We will not close a PersistentSocket instance so it can be reused in other requests. */ public function close() { if (!$this->isPersistent()) { $this->closeSocket(); } } /** * Close socket, if open */ public function closeSocket() { if (\is_resource($this->resource)) { \fclose($this->resource); $this->resource = null; } } /** * Set socket connection to nbe persistent. It only has effect before the connection is initiated. * * @param bool $persistent */ public function setPersistent($persistent) { $this->persistent = (bool) $persistent; } /** * Set connection timeout. Only has effect before we connect. * * @param float $seconds * * @see http://php.net/manual/en/function.fsockopen.php */ public function setConnectionTimeout($seconds) { $this->validateTimeout($seconds); $this->connectionTimeout = (float) $seconds; } /** * Set write timeout. Only has effect before we connect. * * @param float $seconds * * @see http://php.net/manual/en/function.stream-set-timeout.php */ public function setTimeout($seconds) { $this->validateTimeout($seconds); $this->timeout = (float) $seconds; } /** * Set writing timeout. Only has effect during connection in the writing cycle. * * @param float $seconds 0 for no timeout */ public function setWritingTimeout($seconds) { $this->validateTimeout($seconds); $this->writingTimeout = (float) $seconds; } /** * Set chunk size. Only has effect during connection in the writing cycle. * * @param float $bytes */ public function setChunkSize($bytes) { $this->chunkSize = $bytes; } /** * Get current connection string * * @return string */ public function getConnectionString() { return $this->connectionString; } /** * Get persistent setting * * @return bool */ public function isPersistent() { return $this->persistent; } /** * Get current connection timeout setting * * @return float */ public function getConnectionTimeout() { return $this->connectionTimeout; } /** * Get current in-transfer timeout * * @return float */ public function getTimeout() { return $this->timeout; } /** * Get current local writing timeout * * @return float */ public function getWritingTimeout() { return $this->writingTimeout; } /** * Get current chunk size * * @return float */ public function getChunkSize() { return $this->chunkSize; } /** * Check to see if the socket is currently available. * * UDP might appear to be connected but might fail when writing. See http://php.net/fsockopen for details. * * @return bool */ public function isConnected() { return \is_resource($this->resource) && !\feof($this->resource); // on TCP - other party can close connection. } /** * Wrapper to allow mocking */ protected function pfsockopen() { return @\pfsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); } /** * Wrapper to allow mocking */ protected function fsockopen() { return @\fsockopen($this->connectionString, -1, $this->errno, $this->errstr, $this->connectionTimeout); } /** * Wrapper to allow mocking * * @see http://php.net/manual/en/function.stream-set-timeout.php */ protected function streamSetTimeout() { $seconds = \floor($this->timeout); $microseconds = \round(($this->timeout - $seconds) * 1000000.0); return \stream_set_timeout($this->resource, $seconds, $microseconds); } /** * Wrapper to allow mocking * * @see http://php.net/manual/en/function.stream-set-chunk-size.php */ protected function streamSetChunkSize() { return \stream_set_chunk_size($this->resource, $this->chunkSize); } /** * Wrapper to allow mocking */ protected function fwrite($data) { return @\fwrite($this->resource, $data); } /** * Wrapper to allow mocking */ protected function streamGetMetadata() { return \stream_get_meta_data($this->resource); } private function validateTimeout($value) { $ok = \filter_var($value, \FILTER_VALIDATE_FLOAT); if ($ok === \false || $value < 0) { throw new \InvalidArgumentException("Timeout must be 0 or a positive float (got {$value})"); } } private function connectIfNotConnected() { if ($this->isConnected()) { return; } $this->connect(); } protected function generateDataStream($record) { return (string) $record['formatted']; } /** * @return resource|null */ protected function getResource() { return $this->resource; } private function connect() { $this->createSocketResource(); $this->setSocketTimeout(); $this->setStreamChunkSize(); } private function createSocketResource() { if ($this->isPersistent()) { $resource = $this->pfsockopen(); } else { $resource = $this->fsockopen(); } if (!$resource) { throw new \UnexpectedValueException("Failed connecting to {$this->connectionString} ({$this->errno}: {$this->errstr})"); } $this->resource = $resource; } private function setSocketTimeout() { if (!$this->streamSetTimeout()) { throw new \UnexpectedValueException("Failed setting timeout with stream_set_timeout()"); } } private function setStreamChunkSize() { if ($this->chunkSize && !$this->streamSetChunkSize()) { throw new \UnexpectedValueException("Failed setting chunk size with stream_set_chunk_size()"); } } private function writeToSocket($data) { $length = \strlen($data); $sent = 0; $this->lastSentBytes = $sent; while ($this->isConnected() && $sent < $length) { if (0 == $sent) { $chunk = $this->fwrite($data); } else { $chunk = $this->fwrite(\substr($data, $sent)); } if ($chunk === \false) { throw new \RuntimeException("Could not write to socket"); } $sent += $chunk; $socketInfo = $this->streamGetMetadata(); if ($socketInfo['timed_out']) { throw new \RuntimeException("Write timed-out"); } if ($this->writingIsTimedOut($sent)) { throw new \RuntimeException("Write timed-out, no data sent for `{$this->writingTimeout}` seconds, probably we got disconnected (sent {$sent} of {$length})"); } } if (!$this->isConnected() && $sent < $length) { throw new \RuntimeException("End-of-file reached, probably we got disconnected (sent {$sent} of {$length})"); } } private function writingIsTimedOut($sent) { $writingTimeout = (int) \floor($this->writingTimeout); if (0 === $writingTimeout) { return \false; } if ($sent !== $this->lastSentBytes) { $this->lastWritingAt = \time(); $this->lastSentBytes = $sent; return \false; } else { \usleep(100); } if (\time() - $this->lastWritingAt >= $writingTimeout) { $this->closeSocket(); return \true; } return \false; } } monolog/monolog/src/Monolog/Handler/AmqpHandler.php000064400000007544150544704730016376 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Formatter\JsonFormatter; use Google\Site_Kit_Dependencies\PhpAmqpLib\Message\AMQPMessage; use Google\Site_Kit_Dependencies\PhpAmqpLib\Channel\AMQPChannel; use AMQPExchange; class AmqpHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * @var AMQPExchange|AMQPChannel $exchange */ protected $exchange; /** * @var string */ protected $exchangeName; /** * @param AMQPExchange|AMQPChannel $exchange AMQPExchange (php AMQP ext) or PHP AMQP lib channel, ready for use * @param string $exchangeName * @param int $level * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($exchange, $exchangeName = 'log', $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { if ($exchange instanceof \AMQPExchange) { $exchange->setName($exchangeName); } elseif ($exchange instanceof \Google\Site_Kit_Dependencies\PhpAmqpLib\Channel\AMQPChannel) { $this->exchangeName = $exchangeName; } else { throw new \InvalidArgumentException('PhpAmqpLib\\Channel\\AMQPChannel or AMQPExchange instance required'); } $this->exchange = $exchange; parent::__construct($level, $bubble); } /** * {@inheritDoc} */ protected function write(array $record) { $data = $record["formatted"]; $routingKey = $this->getRoutingKey($record); if ($this->exchange instanceof \AMQPExchange) { $this->exchange->publish($data, $routingKey, 0, array('delivery_mode' => 2, 'content_type' => 'application/json')); } else { $this->exchange->basic_publish($this->createAmqpMessage($data), $this->exchangeName, $routingKey); } } /** * {@inheritDoc} */ public function handleBatch(array $records) { if ($this->exchange instanceof \AMQPExchange) { parent::handleBatch($records); return; } foreach ($records as $record) { if (!$this->isHandling($record)) { continue; } $record = $this->processRecord($record); $data = $this->getFormatter()->format($record); $this->exchange->batch_basic_publish($this->createAmqpMessage($data), $this->exchangeName, $this->getRoutingKey($record)); } $this->exchange->publish_batch(); } /** * Gets the routing key for the AMQP exchange * * @param array $record * @return string */ protected function getRoutingKey(array $record) { $routingKey = \sprintf( '%s.%s', // TODO 2.0 remove substr call \substr($record['level_name'], 0, 4), $record['channel'] ); return \strtolower($routingKey); } /** * @param string $data * @return AMQPMessage */ private function createAmqpMessage($data) { return new \Google\Site_Kit_Dependencies\PhpAmqpLib\Message\AMQPMessage((string) $data, array('delivery_mode' => 2, 'content_type' => 'application/json')); } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\JsonFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\JsonFormatter::BATCH_MODE_JSON, \false); } } monolog/monolog/src/Monolog/Handler/FormattableHandlerTrait.php000064400000003264150544704730020737 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; /** * Helper trait for implementing FormattableInterface * * This trait is present in monolog 1.x to ease forward compatibility. * * @author Jordi Boggiano */ trait FormattableHandlerTrait { /** * @var FormatterInterface */ protected $formatter; /** * {@inheritdoc} * @suppress PhanTypeMismatchReturn */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) : \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface { $this->formatter = $formatter; return $this; } /** * {@inheritdoc} */ public function getFormatter() : \Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface { if (!$this->formatter) { $this->formatter = $this->getDefaultFormatter(); } return $this->formatter; } /** * Gets the default formatter. * * Overwrite this if the LineFormatter is not a good default for your handler. */ protected function getDefaultFormatter() : \Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter(); } } monolog/monolog/src/Monolog/Handler/SyslogHandler.php000064400000003711150544704730016750 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Logs to syslog service. * * usage example: * * $log = new Logger('application'); * $syslog = new SyslogHandler('myfacility', 'local6'); * $formatter = new LineFormatter("%channel%.%level_name%: %message% %extra%"); * $syslog->setFormatter($formatter); * $log->pushHandler($syslog); * * @author Sven Paulus */ class SyslogHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractSyslogHandler { protected $ident; protected $logopts; /** * @param string $ident * @param mixed $facility * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param int $logopts Option flags for the openlog() call, defaults to LOG_PID */ public function __construct($ident, $facility = \LOG_USER, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true, $logopts = \LOG_PID) { parent::__construct($facility, $level, $bubble); $this->ident = $ident; $this->logopts = $logopts; } /** * {@inheritdoc} */ public function close() { \closelog(); } /** * {@inheritdoc} */ protected function write(array $record) { if (!\openlog($this->ident, $this->logopts, $this->facility)) { throw new \LogicException('Can\'t open syslog for ident "' . $this->ident . '" and facility "' . $this->facility . '"'); } \syslog($this->logLevels[$record['level']], (string) $record['formatted']); } } monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php000064400000003136150544704730021271 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\ResettableInterface; /** * Base Handler class providing the Handler structure * * Classes extending it should (in most cases) only implement write($record) * * @author Jordi Boggiano * @author Christophe Coevoet */ abstract class AbstractProcessingHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler { /** * {@inheritdoc} */ public function handle(array $record) { if (!$this->isHandling($record)) { return \false; } $record = $this->processRecord($record); $record['formatted'] = $this->getFormatter()->format($record); $this->write($record); return \false === $this->bubble; } /** * Writes the record down to the log of the implementing handler * * @param array $record * @return void */ protected abstract function write(array $record); /** * Processes a record. * * @param array $record * @return array */ protected function processRecord(array $record) { if ($this->processors) { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } } return $record; } } monolog/monolog/src/Monolog/Handler/MongoDBHandler.php000064400000003526150544704730016761 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter; /** * Logs to a MongoDB database. * * usage example: * * $log = new Logger('application'); * $mongodb = new MongoDBHandler(new \Mongo("mongodb://localhost:27017"), "logs", "prod"); * $log->pushHandler($mongodb); * * @author Thomas Tourlourat */ class MongoDBHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { protected $mongoCollection; public function __construct($mongo, $database, $collection, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { if (!($mongo instanceof \MongoClient || $mongo instanceof \Mongo || $mongo instanceof \Google\Site_Kit_Dependencies\MongoDB\Client)) { throw new \InvalidArgumentException('MongoClient, Mongo or MongoDB\\Client instance required'); } $this->mongoCollection = $mongo->selectCollection($database, $collection); parent::__construct($level, $bubble); } protected function write(array $record) { if ($this->mongoCollection instanceof \Google\Site_Kit_Dependencies\MongoDB\Collection) { $this->mongoCollection->insertOne($record["formatted"]); } else { $this->mongoCollection->save($record["formatted"]); } } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter(); } } monolog/monolog/src/Monolog/Handler/DynamoDbHandler.php000064400000005470150544704730017171 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Aws\Sdk; use Google\Site_Kit_Dependencies\Aws\DynamoDb\DynamoDbClient; use Google\Site_Kit_Dependencies\Aws\DynamoDb\Marshaler; use Google\Site_Kit_Dependencies\Monolog\Formatter\ScalarFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Amazon DynamoDB handler (http://aws.amazon.com/dynamodb/) * * @link https://github.com/aws/aws-sdk-php/ * @author Andrew Lawson */ class DynamoDbHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { const DATE_FORMAT = 'Y-m-d\\TH:i:s.uO'; /** * @var DynamoDbClient */ protected $client; /** * @var string */ protected $table; /** * @var int */ protected $version; /** * @var Marshaler */ protected $marshaler; /** * @param DynamoDbClient $client * @param string $table * @param int $level * @param bool $bubble */ public function __construct(\Google\Site_Kit_Dependencies\Aws\DynamoDb\DynamoDbClient $client, $table, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { if (\defined('Aws\\Sdk::VERSION') && \version_compare(\Google\Site_Kit_Dependencies\Aws\Sdk::VERSION, '3.0', '>=')) { $this->version = 3; $this->marshaler = new \Google\Site_Kit_Dependencies\Aws\DynamoDb\Marshaler(); } else { $this->version = 2; } $this->client = $client; $this->table = $table; parent::__construct($level, $bubble); } /** * {@inheritdoc} */ protected function write(array $record) { $filtered = $this->filterEmptyFields($record['formatted']); if ($this->version === 3) { $formatted = $this->marshaler->marshalItem($filtered); } else { /** @phpstan-ignore-next-line */ $formatted = $this->client->formatAttributes($filtered); } $this->client->putItem(array('TableName' => $this->table, 'Item' => $formatted)); } /** * @param array $record * @return array */ protected function filterEmptyFields(array $record) { return \array_filter($record, function ($value) { return !empty($value) || \false === $value || 0 === $value; }); } /** * {@inheritdoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\ScalarFormatter(self::DATE_FORMAT); } } monolog/monolog/src/Monolog/Handler/SyslogUdpHandler.php000064400000006356150544704730017431 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Handler\SyslogUdp\UdpSocket; /** * A Handler for logging to a remote syslogd server. * * @author Jesper Skovgaard Nielsen * @author Dominik Kukacka */ class SyslogUdpHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractSyslogHandler { const RFC3164 = 0; const RFC5424 = 1; private $dateFormats = array(self::RFC3164 => 'M d H:i:s', self::RFC5424 => \DateTime::RFC3339); protected $socket; protected $ident; protected $rfc; /** * @param string $host * @param int $port * @param mixed $facility * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param string $ident Program name or tag for each log message. * @param int $rfc RFC to format the message for. */ public function __construct($host, $port = 514, $facility = \LOG_USER, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true, $ident = 'php', $rfc = self::RFC5424) { parent::__construct($facility, $level, $bubble); $this->ident = $ident; $this->rfc = $rfc; $this->socket = new \Google\Site_Kit_Dependencies\Monolog\Handler\SyslogUdp\UdpSocket($host, $port ?: 514); } protected function write(array $record) { $lines = $this->splitMessageIntoLines($record['formatted']); $header = $this->makeCommonSyslogHeader($this->logLevels[$record['level']]); foreach ($lines as $line) { $this->socket->write($line, $header); } } public function close() { $this->socket->close(); } private function splitMessageIntoLines($message) { if (\is_array($message)) { $message = \implode("\n", $message); } return \preg_split('/$\\R?^/m', $message, -1, \PREG_SPLIT_NO_EMPTY); } /** * Make common syslog header (see rfc5424 or rfc3164) */ protected function makeCommonSyslogHeader($severity) { $priority = $severity + $this->facility; if (!($pid = \getmypid())) { $pid = '-'; } if (!($hostname = \gethostname())) { $hostname = '-'; } $date = $this->getDateTime(); if ($this->rfc === self::RFC3164) { return "<{$priority}>" . $date . " " . $hostname . " " . $this->ident . "[" . $pid . "]: "; } else { return "<{$priority}>1 " . $date . " " . $hostname . " " . $this->ident . " " . $pid . " - - "; } } protected function getDateTime() { return \date($this->dateFormats[$this->rfc]); } /** * Inject your own socket, mainly used for testing */ public function setSocket($socket) { $this->socket = $socket; } } monolog/monolog/src/Monolog/Handler/FingersCrossed/ChannelLevelActivationStrategy.php000064400000004047150544704730025222 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Channel and Error level based monolog activation strategy. Allows to trigger activation * based on level per channel. e.g. trigger activation on level 'ERROR' by default, except * for records of the 'sql' channel; those should trigger activation on level 'WARN'. * * Example: * * * $activationStrategy = new ChannelLevelActivationStrategy( * Logger::CRITICAL, * array( * 'request' => Logger::ALERT, * 'sensitive' => Logger::ERROR, * ) * ); * $handler = new FingersCrossedHandler(new StreamHandler('php://stderr'), $activationStrategy); * * * @author Mike Meessen */ class ChannelLevelActivationStrategy implements \Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed\ActivationStrategyInterface { private $defaultActionLevel; private $channelToActionLevel; /** * @param int $defaultActionLevel The default action level to be used if the record's category doesn't match any * @param array $channelToActionLevel An array that maps channel names to action levels. */ public function __construct($defaultActionLevel, $channelToActionLevel = array()) { $this->defaultActionLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($defaultActionLevel); $this->channelToActionLevel = \array_map('Monolog\\Logger::toMonologLevel', $channelToActionLevel); } public function isHandlerActivated(array $record) { if (isset($this->channelToActionLevel[$record['channel']])) { return $record['level'] >= $this->channelToActionLevel[$record['channel']]; } return $record['level'] >= $this->defaultActionLevel; } } monolog/monolog/src/Monolog/Handler/FingersCrossed/ErrorLevelActivationStrategy.php000064400000001620150544704730024735 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Error level based activation strategy. * * @author Johannes M. Schmitt */ class ErrorLevelActivationStrategy implements \Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed\ActivationStrategyInterface { private $actionLevel; public function __construct($actionLevel) { $this->actionLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($actionLevel); } public function isHandlerActivated(array $record) { return $record['level'] >= $this->actionLevel; } } monolog/monolog/src/Monolog/Handler/FingersCrossed/ActivationStrategyInterface.php000064400000001244150544704730024556 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler\FingersCrossed; /** * Interface for activation strategies for the FingersCrossedHandler. * * @author Johannes M. Schmitt */ interface ActivationStrategyInterface { /** * Returns whether the given record activates the handler. * * @param array $record * @return bool */ public function isHandlerActivated(array $record); } monolog/monolog/src/Monolog/Handler/PsrHandler.php000064400000003147150544704730016237 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface; /** * Proxies log messages to an existing PSR-3 compliant logger. * * @author Michael Moussa */ class PsrHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler { /** * PSR-3 compliant logger * * @var LoggerInterface */ protected $logger; /** * @param LoggerInterface $logger The underlying PSR-3 compliant logger to which messages will be proxied * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct(\Google\Site_Kit_Dependencies\Psr\Log\LoggerInterface $logger, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); $this->logger = $logger; } /** * {@inheritDoc} */ public function handle(array $record) { if (!$this->isHandling($record)) { return \false; } $this->logger->log(\strtolower($record['level_name']), $record['message'], $record['context']); return \false === $this->bubble; } } monolog/monolog/src/Monolog/Handler/PushoverHandler.php000064400000015060150544704730017303 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Sends notifications through the pushover api to mobile phones * * @author Sebastian Göttschkes * @see https://www.pushover.net/api */ class PushoverHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\SocketHandler { private $token; private $users; private $title; private $user; private $retry; private $expire; private $highPriorityLevel; private $emergencyLevel; private $useFormattedMessage = \false; /** * All parameters that can be sent to Pushover * @see https://pushover.net/api * @var array */ private $parameterNames = array('token' => \true, 'user' => \true, 'message' => \true, 'device' => \true, 'title' => \true, 'url' => \true, 'url_title' => \true, 'priority' => \true, 'timestamp' => \true, 'sound' => \true, 'retry' => \true, 'expire' => \true, 'callback' => \true); /** * Sounds the api supports by default * @see https://pushover.net/api#sounds * @var array */ private $sounds = array('pushover', 'bike', 'bugle', 'cashregister', 'classical', 'cosmic', 'falling', 'gamelan', 'incoming', 'intermission', 'magic', 'mechanical', 'pianobar', 'siren', 'spacealarm', 'tugboat', 'alien', 'climb', 'persistent', 'echo', 'updown', 'none'); /** * @param string $token Pushover api token * @param string|array $users Pushover user id or array of ids the message will be sent to * @param string $title Title sent to the Pushover API * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param bool $useSSL Whether to connect via SSL. Required when pushing messages to users that are not * the pushover.net app owner. OpenSSL is required for this option. * @param int $highPriorityLevel The minimum logging level at which this handler will start * sending "high priority" requests to the Pushover API * @param int $emergencyLevel The minimum logging level at which this handler will start * sending "emergency" requests to the Pushover API * @param int $retry The retry parameter specifies how often (in seconds) the Pushover servers will send the same notification to the user. * @param int $expire The expire parameter specifies how many seconds your notification will continue to be retried for (every retry seconds). */ public function __construct($token, $users, $title = null, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL, $bubble = \true, $useSSL = \true, $highPriorityLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL, $emergencyLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY, $retry = 30, $expire = 25200) { $connectionString = $useSSL ? 'ssl://api.pushover.net:443' : 'api.pushover.net:80'; parent::__construct($connectionString, $level, $bubble); $this->token = $token; $this->users = (array) $users; $this->title = $title ?: \gethostname(); $this->highPriorityLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($highPriorityLevel); $this->emergencyLevel = \Google\Site_Kit_Dependencies\Monolog\Logger::toMonologLevel($emergencyLevel); $this->retry = $retry; $this->expire = $expire; } protected function generateDataStream($record) { $content = $this->buildContent($record); return $this->buildHeader($content) . $content; } private function buildContent($record) { // Pushover has a limit of 512 characters on title and message combined. $maxMessageLength = 512 - \strlen($this->title); $message = $this->useFormattedMessage ? $record['formatted'] : $record['message']; $message = \substr($message, 0, $maxMessageLength); $timestamp = $record['datetime']->getTimestamp(); $dataArray = array('token' => $this->token, 'user' => $this->user, 'message' => $message, 'title' => $this->title, 'timestamp' => $timestamp); if (isset($record['level']) && $record['level'] >= $this->emergencyLevel) { $dataArray['priority'] = 2; $dataArray['retry'] = $this->retry; $dataArray['expire'] = $this->expire; } elseif (isset($record['level']) && $record['level'] >= $this->highPriorityLevel) { $dataArray['priority'] = 1; } // First determine the available parameters $context = \array_intersect_key($record['context'], $this->parameterNames); $extra = \array_intersect_key($record['extra'], $this->parameterNames); // Least important info should be merged with subsequent info $dataArray = \array_merge($extra, $context, $dataArray); // Only pass sounds that are supported by the API if (isset($dataArray['sound']) && !\in_array($dataArray['sound'], $this->sounds)) { unset($dataArray['sound']); } return \http_build_query($dataArray); } private function buildHeader($content) { $header = "POST /1/messages.json HTTP/1.1\r\n"; $header .= "Host: api.pushover.net\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; return $header; } protected function write(array $record) { foreach ($this->users as $user) { $this->user = $user; parent::write($record); $this->closeSocket(); } $this->user = null; } public function setHighPriorityLevel($value) { $this->highPriorityLevel = $value; } public function setEmergencyLevel($value) { $this->emergencyLevel = $value; } /** * Use the formatted message? * @param bool $value */ public function useFormattedMessage($value) { $this->useFormattedMessage = (bool) $value; } } monolog/monolog/src/Monolog/Handler/SamplingHandler.php000064400000006764150544704730017255 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; /** * Sampling handler * * A sampled event stream can be useful for logging high frequency events in * a production environment where you only need an idea of what is happening * and are not concerned with capturing every occurrence. Since the decision to * handle or not handle a particular event is determined randomly, the * resulting sampled log is not guaranteed to contain 1/N of the events that * occurred in the application, but based on the Law of large numbers, it will * tend to be close to this ratio with a large number of attempts. * * @author Bryan Davis * @author Kunal Mehta */ class SamplingHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler { /** * @var callable|HandlerInterface $handler */ protected $handler; /** * @var int $factor */ protected $factor; /** * @param callable|HandlerInterface $handler Handler or factory callable($record|null, $samplingHandler). * @param int $factor Sample factor */ public function __construct($handler, $factor) { parent::__construct(); $this->handler = $handler; $this->factor = $factor; if (!$this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface && !\is_callable($this->handler)) { throw new \RuntimeException("The given handler (" . \json_encode($this->handler) . ") is not a callable nor a Monolog\\Handler\\HandlerInterface object"); } } public function isHandling(array $record) { return $this->getHandler($record)->isHandling($record); } public function handle(array $record) { if ($this->isHandling($record) && \mt_rand(1, $this->factor) === 1) { if ($this->processors) { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } } $this->getHandler($record)->handle($record); } return \false === $this->bubble; } /** * Return the nested handler * * If the handler was provided as a factory callable, this will trigger the handler's instantiation. * * @return HandlerInterface */ public function getHandler(array $record = null) { if (!$this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface) { $this->handler = \call_user_func($this->handler, $record, $this); if (!$this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface) { throw new \RuntimeException("The factory callable should return a HandlerInterface"); } } return $this->handler; } /** * {@inheritdoc} */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { $this->getHandler()->setFormatter($formatter); return $this; } /** * {@inheritdoc} */ public function getFormatter() { return $this->getHandler()->getFormatter(); } } monolog/monolog/src/Monolog/Handler/NewRelicHandler.php000064400000014573150544704730017210 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; use Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter; /** * Class to record a log on a NewRelic application. * Enabling New Relic High Security mode may prevent capture of useful information. * * This handler requires a NormalizerFormatter to function and expects an array in $record['formatted'] * * @see https://docs.newrelic.com/docs/agents/php-agent * @see https://docs.newrelic.com/docs/accounts-partnerships/accounts/security/high-security */ class NewRelicHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * Name of the New Relic application that will receive logs from this handler. * * @var string */ protected $appName; /** * Name of the current transaction * * @var string */ protected $transactionName; /** * Some context and extra data is passed into the handler as arrays of values. Do we send them as is * (useful if we are using the API), or explode them for display on the NewRelic RPM website? * * @var bool */ protected $explodeArrays; /** * {@inheritDoc} * * @param string $appName * @param bool $explodeArrays * @param string $transactionName */ public function __construct($level = \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR, $bubble = \true, $appName = null, $explodeArrays = \false, $transactionName = null) { parent::__construct($level, $bubble); $this->appName = $appName; $this->explodeArrays = $explodeArrays; $this->transactionName = $transactionName; } /** * {@inheritDoc} */ protected function write(array $record) { if (!$this->isNewRelicEnabled()) { throw new \Google\Site_Kit_Dependencies\Monolog\Handler\MissingExtensionException('The newrelic PHP extension is required to use the NewRelicHandler'); } if ($appName = $this->getAppName($record['context'])) { $this->setNewRelicAppName($appName); } if ($transactionName = $this->getTransactionName($record['context'])) { $this->setNewRelicTransactionName($transactionName); unset($record['formatted']['context']['transaction_name']); } if (isset($record['context']['exception']) && ($record['context']['exception'] instanceof \Exception || \PHP_VERSION_ID >= 70000 && $record['context']['exception'] instanceof \Throwable)) { \newrelic_notice_error($record['message'], $record['context']['exception']); unset($record['formatted']['context']['exception']); } else { \newrelic_notice_error($record['message']); } if (isset($record['formatted']['context']) && \is_array($record['formatted']['context'])) { foreach ($record['formatted']['context'] as $key => $parameter) { if (\is_array($parameter) && $this->explodeArrays) { foreach ($parameter as $paramKey => $paramValue) { $this->setNewRelicParameter('context_' . $key . '_' . $paramKey, $paramValue); } } else { $this->setNewRelicParameter('context_' . $key, $parameter); } } } if (isset($record['formatted']['extra']) && \is_array($record['formatted']['extra'])) { foreach ($record['formatted']['extra'] as $key => $parameter) { if (\is_array($parameter) && $this->explodeArrays) { foreach ($parameter as $paramKey => $paramValue) { $this->setNewRelicParameter('extra_' . $key . '_' . $paramKey, $paramValue); } } else { $this->setNewRelicParameter('extra_' . $key, $parameter); } } } } /** * Checks whether the NewRelic extension is enabled in the system. * * @return bool */ protected function isNewRelicEnabled() { return \extension_loaded('newrelic'); } /** * Returns the appname where this log should be sent. Each log can override the default appname, set in this * handler's constructor, by providing the appname in it's context. * * @param array $context * @return null|string */ protected function getAppName(array $context) { if (isset($context['appname'])) { return $context['appname']; } return $this->appName; } /** * Returns the name of the current transaction. Each log can override the default transaction name, set in this * handler's constructor, by providing the transaction_name in it's context * * @param array $context * * @return null|string */ protected function getTransactionName(array $context) { if (isset($context['transaction_name'])) { return $context['transaction_name']; } return $this->transactionName; } /** * Sets the NewRelic application that should receive this log. * * @param string $appName */ protected function setNewRelicAppName($appName) { \newrelic_set_appname($appName); } /** * Overwrites the name of the current transaction * * @param string $transactionName */ protected function setNewRelicTransactionName($transactionName) { \newrelic_name_transaction($transactionName); } /** * @param string $key * @param mixed $value */ protected function setNewRelicParameter($key, $value) { if (null === $value || \is_scalar($value)) { \newrelic_add_custom_parameter($key, $value); } else { \newrelic_add_custom_parameter($key, \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($value, null, \true)); } } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter(); } } monolog/monolog/src/Monolog/Handler/GroupHandler.php000064400000005751150544704730016572 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; use Google\Site_Kit_Dependencies\Monolog\ResettableInterface; /** * Forwards records to multiple handlers * * @author Lenar Lõhmus */ class GroupHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler { protected $handlers; /** * @param array $handlers Array of Handlers. * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct(array $handlers, $bubble = \true) { foreach ($handlers as $handler) { if (!$handler instanceof \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface) { throw new \InvalidArgumentException('The first argument of the GroupHandler must be an array of HandlerInterface instances.'); } } $this->handlers = $handlers; $this->bubble = $bubble; } /** * {@inheritdoc} */ public function isHandling(array $record) { foreach ($this->handlers as $handler) { if ($handler->isHandling($record)) { return \true; } } return \false; } /** * {@inheritdoc} */ public function handle(array $record) { if ($this->processors) { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } } foreach ($this->handlers as $handler) { $handler->handle($record); } return \false === $this->bubble; } /** * {@inheritdoc} */ public function handleBatch(array $records) { if ($this->processors) { $processed = array(); foreach ($records as $record) { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } $processed[] = $record; } $records = $processed; } foreach ($this->handlers as $handler) { $handler->handleBatch($records); } } public function reset() { parent::reset(); foreach ($this->handlers as $handler) { if ($handler instanceof \Google\Site_Kit_Dependencies\Monolog\ResettableInterface) { $handler->reset(); } } } /** * {@inheritdoc} */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { foreach ($this->handlers as $handler) { $handler->setFormatter($formatter); } return $this; } } monolog/monolog/src/Monolog/Handler/ChromePHPHandler.php000064400000013464150544704730017263 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\ChromePHPFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Handler sending logs to the ChromePHP extension (http://www.chromephp.com/) * * This also works out of the box with Firefox 43+ * * @author Christophe Coevoet */ class ChromePHPHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * Version of the extension */ const VERSION = '4.0'; /** * Header name */ const HEADER_NAME = 'X-ChromeLogger-Data'; /** * Regular expression to detect supported browsers (matches any Chrome, or Firefox 43+) */ const USER_AGENT_REGEX = '{\\b(?:Chrome/\\d+(?:\\.\\d+)*|HeadlessChrome|Firefox/(?:4[3-9]|[5-9]\\d|\\d{3,})(?:\\.\\d)*)\\b}'; protected static $initialized = \false; /** * Tracks whether we sent too much data * * Chrome limits the headers to 4KB, so when we sent 3KB we stop sending * * @var bool */ protected static $overflowed = \false; protected static $json = array('version' => self::VERSION, 'columns' => array('label', 'log', 'backtrace', 'type'), 'rows' => array()); protected static $sendHeaders = \true; /** * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); if (!\function_exists('json_encode')) { throw new \RuntimeException('PHP\'s json extension is required to use Monolog\'s ChromePHPHandler'); } } /** * {@inheritdoc} */ public function handleBatch(array $records) { $messages = array(); foreach ($records as $record) { if ($record['level'] < $this->level) { continue; } $messages[] = $this->processRecord($record); } if (!empty($messages)) { $messages = $this->getFormatter()->formatBatch($messages); self::$json['rows'] = \array_merge(self::$json['rows'], $messages); $this->send(); } } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\ChromePHPFormatter(); } /** * Creates & sends header for a record * * @see sendHeader() * @see send() * @param array $record */ protected function write(array $record) { self::$json['rows'][] = $record['formatted']; $this->send(); } /** * Sends the log header * * @see sendHeader() */ protected function send() { if (self::$overflowed || !self::$sendHeaders) { return; } if (!self::$initialized) { self::$initialized = \true; self::$sendHeaders = $this->headersAccepted(); if (!self::$sendHeaders) { return; } self::$json['request_uri'] = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ''; } $json = \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode(self::$json, null, \true); $data = \base64_encode(\utf8_encode($json)); if (\strlen($data) > 3 * 1024) { self::$overflowed = \true; $record = array('message' => 'Incomplete logs, chrome header size limit reached', 'context' => array(), 'level' => \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING, 'level_name' => \Google\Site_Kit_Dependencies\Monolog\Logger::getLevelName(\Google\Site_Kit_Dependencies\Monolog\Logger::WARNING), 'channel' => 'monolog', 'datetime' => new \DateTime(), 'extra' => array()); self::$json['rows'][\count(self::$json['rows']) - 1] = $this->getFormatter()->format($record); $json = \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode(self::$json, null, \true); $data = \base64_encode(\utf8_encode($json)); } if (\trim($data) !== '') { $this->sendHeader(self::HEADER_NAME, $data); } } /** * Send header string to the client * * @param string $header * @param string $content */ protected function sendHeader($header, $content) { if (!\headers_sent() && self::$sendHeaders) { \header(\sprintf('%s: %s', $header, $content)); } } /** * Verifies if the headers are accepted by the current user agent * * @return bool */ protected function headersAccepted() { if (empty($_SERVER['HTTP_USER_AGENT'])) { return \false; } return \preg_match(self::USER_AGENT_REGEX, $_SERVER['HTTP_USER_AGENT']); } /** * BC getter for the sendHeaders property that has been made static */ public function __get($property) { if ('sendHeaders' !== $property) { throw new \InvalidArgumentException('Undefined property ' . $property); } return static::$sendHeaders; } /** * BC setter for the sendHeaders property that has been made static */ public function __set($property, $value) { if ('sendHeaders' !== $property) { throw new \InvalidArgumentException('Undefined property ' . $property); } static::$sendHeaders = $value; } } monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php000064400000004773150544704730017234 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Stores to PHP error_log() handler. * * @author Elan Ruusamäe */ class ErrorLogHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { const OPERATING_SYSTEM = 0; const SAPI = 4; protected $messageType; protected $expandNewlines; /** * @param int $messageType Says where the error should go. * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param bool $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries */ public function __construct($messageType = self::OPERATING_SYSTEM, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true, $expandNewlines = \false) { parent::__construct($level, $bubble); if (\false === \in_array($messageType, self::getAvailableTypes())) { $message = \sprintf('The given message type "%s" is not supported', \print_r($messageType, \true)); throw new \InvalidArgumentException($message); } $this->messageType = $messageType; $this->expandNewlines = $expandNewlines; } /** * @return array With all available types */ public static function getAvailableTypes() { return array(self::OPERATING_SYSTEM, self::SAPI); } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter('[%datetime%] %channel%.%level_name%: %message% %context% %extra%'); } /** * {@inheritdoc} */ protected function write(array $record) { if ($this->expandNewlines) { $lines = \preg_split('{[\\r\\n]+}', (string) $record['formatted']); foreach ($lines as $line) { \error_log($line, $this->messageType); } } else { \error_log((string) $record['formatted'], $this->messageType); } } } monolog/monolog/src/Monolog/Handler/FormattableHandlerInterface.php000064400000002143150544704730021547 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; /** * Interface to describe loggers that have a formatter * * This interface is present in monolog 1.x to ease forward compatibility. * * @author Jordi Boggiano */ interface FormattableHandlerInterface { /** * Sets the formatter. * * @param FormatterInterface $formatter * @return HandlerInterface self */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) : \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface; /** * Gets the formatter. * * @return FormatterInterface */ public function getFormatter() : \Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; } monolog/monolog/src/Monolog/Handler/ProcessableHandlerInterface.php000064400000002141150544704730021547 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Processor\ProcessorInterface; /** * Interface to describe loggers that have processors * * This interface is present in monolog 1.x to ease forward compatibility. * * @author Jordi Boggiano */ interface ProcessableHandlerInterface { /** * Adds a processor in the stack. * * @param ProcessorInterface|callable $callback * @return HandlerInterface self */ public function pushProcessor($callback) : \Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface; /** * Removes the processor on top of the stack and returns it. * * @throws \LogicException In case the processor stack is empty * @return callable */ public function popProcessor() : callable; } monolog/monolog/src/Monolog/Handler/StreamHandler.php000064400000012655150544704730016732 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Stores to any stream resource * * Can be used to store into php://stderr, remote and local files, etc. * * @author Jordi Boggiano */ class StreamHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { protected $stream; protected $url; private $errorMessage; protected $filePermission; protected $useLocking; private $dirCreated; /** * @param resource|string $stream * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param int|null $filePermission Optional file permissions (default (0644) are only for owner read/write) * @param bool $useLocking Try to lock log file before doing any writes * * @throws \Exception If a missing directory is not buildable * @throws \InvalidArgumentException If stream is not a resource or string */ public function __construct($stream, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true, $filePermission = null, $useLocking = \false) { parent::__construct($level, $bubble); if (\is_resource($stream)) { $this->stream = $stream; } elseif (\is_string($stream)) { $this->url = \Google\Site_Kit_Dependencies\Monolog\Utils::canonicalizePath($stream); } else { throw new \InvalidArgumentException('A stream must either be a resource or a string.'); } $this->filePermission = $filePermission; $this->useLocking = $useLocking; } /** * {@inheritdoc} */ public function close() { if ($this->url && \is_resource($this->stream)) { \fclose($this->stream); } $this->stream = null; $this->dirCreated = null; } /** * Return the currently active stream if it is open * * @return resource|null */ public function getStream() { return $this->stream; } /** * Return the stream URL if it was configured with a URL and not an active resource * * @return string|null */ public function getUrl() { return $this->url; } /** * {@inheritdoc} */ protected function write(array $record) { if (!\is_resource($this->stream)) { if (null === $this->url || '' === $this->url) { throw new \LogicException('Missing stream url, the stream can not be opened. This may be caused by a premature call to close().'); } $this->createDir(); $this->errorMessage = null; \set_error_handler(array($this, 'customErrorHandler')); $this->stream = \fopen($this->url, 'a'); if ($this->filePermission !== null) { @\chmod($this->url, $this->filePermission); } \restore_error_handler(); if (!\is_resource($this->stream)) { $this->stream = null; throw new \UnexpectedValueException(\sprintf('The stream or file "%s" could not be opened in append mode: ' . $this->errorMessage, $this->url)); } } if ($this->useLocking) { // ignoring errors here, there's not much we can do about them \flock($this->stream, \LOCK_EX); } $this->streamWrite($this->stream, $record); if ($this->useLocking) { \flock($this->stream, \LOCK_UN); } } /** * Write to stream * @param resource $stream * @param array $record */ protected function streamWrite($stream, array $record) { \fwrite($stream, (string) $record['formatted']); } private function customErrorHandler($code, $msg) { $this->errorMessage = \preg_replace('{^(fopen|mkdir)\\(.*?\\): }', '', $msg); } /** * @param string $stream * * @return null|string */ private function getDirFromStream($stream) { $pos = \strpos($stream, '://'); if ($pos === \false) { return \dirname($stream); } if ('file://' === \substr($stream, 0, 7)) { return \dirname(\substr($stream, 7)); } return null; } private function createDir() { // Do not try to create dir if it has already been tried. if ($this->dirCreated) { return; } $dir = $this->getDirFromStream($this->url); if (null !== $dir && !\is_dir($dir)) { $this->errorMessage = null; \set_error_handler(array($this, 'customErrorHandler')); $status = \mkdir($dir, 0777, \true); \restore_error_handler(); if (\false === $status && !\is_dir($dir)) { throw new \UnexpectedValueException(\sprintf('There is no existing directory at "%s" and its not buildable: ' . $this->errorMessage, $dir)); } } $this->dirCreated = \true; } } monolog/monolog/src/Monolog/Handler/GelfHandler.php000064400000004543150544704730016351 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Gelf\IMessagePublisher; use Google\Site_Kit_Dependencies\Gelf\PublisherInterface; use Google\Site_Kit_Dependencies\Gelf\Publisher; use InvalidArgumentException; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Formatter\GelfMessageFormatter; /** * Handler to send messages to a Graylog2 (http://www.graylog2.org) server * * @author Matt Lehner * @author Benjamin Zikarsky */ class GelfHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * @var Publisher|PublisherInterface|IMessagePublisher the publisher object that sends the message to the server */ protected $publisher; /** * @param PublisherInterface|IMessagePublisher|Publisher $publisher a publisher object * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($publisher, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { parent::__construct($level, $bubble); if (!$publisher instanceof \Google\Site_Kit_Dependencies\Gelf\Publisher && !$publisher instanceof \Google\Site_Kit_Dependencies\Gelf\IMessagePublisher && !$publisher instanceof \Google\Site_Kit_Dependencies\Gelf\PublisherInterface) { throw new \InvalidArgumentException('Invalid publisher, expected a Gelf\\Publisher, Gelf\\IMessagePublisher or Gelf\\PublisherInterface instance'); } $this->publisher = $publisher; } /** * {@inheritdoc} */ protected function write(array $record) { $this->publisher->publish($record['formatted']); } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\GelfMessageFormatter(); } } monolog/monolog/src/Monolog/Handler/DoctrineCouchDBHandler.php000064400000002415150544704730020427 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter; use Google\Site_Kit_Dependencies\Doctrine\CouchDB\CouchDBClient; /** * CouchDB handler for Doctrine CouchDB ODM * * @author Markus Bachmann */ class DoctrineCouchDBHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { private $client; public function __construct(\Google\Site_Kit_Dependencies\Doctrine\CouchDB\CouchDBClient $client, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { $this->client = $client; parent::__construct($level, $bubble); } /** * {@inheritDoc} */ protected function write(array $record) { $this->client->postDocument($record['formatted']); } protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter(); } } monolog/monolog/src/Monolog/Handler/WhatFailureGroupHandler.php000064400000003572150544704730020725 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; /** * Forwards records to multiple handlers suppressing failures of each handler * and continuing through to give every handler a chance to succeed. * * @author Craig D'Amelio */ class WhatFailureGroupHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\GroupHandler { /** * {@inheritdoc} */ public function handle(array $record) { if ($this->processors) { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } } foreach ($this->handlers as $handler) { try { $handler->handle($record); } catch (\Exception $e) { // What failure? } catch (\Throwable $e) { // What failure? } } return \false === $this->bubble; } /** * {@inheritdoc} */ public function handleBatch(array $records) { if ($this->processors) { $processed = array(); foreach ($records as $record) { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } $processed[] = $record; } $records = $processed; } foreach ($this->handlers as $handler) { try { $handler->handleBatch($records); } catch (\Exception $e) { // What failure? } catch (\Throwable $e) { // What failure? } } } } monolog/monolog/src/Monolog/Handler/SyslogUdp/UdpSocket.php000064400000002641150544704730020025 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler\SyslogUdp; class UdpSocket { const DATAGRAM_MAX_LENGTH = 65023; protected $ip; protected $port; protected $socket; public function __construct($ip, $port = 514) { $this->ip = $ip; $this->port = $port; $this->socket = \socket_create(\AF_INET, \SOCK_DGRAM, \SOL_UDP); } public function write($line, $header = "") { $this->send($this->assembleMessage($line, $header)); } public function close() { if (\is_resource($this->socket)) { \socket_close($this->socket); $this->socket = null; } } protected function send($chunk) { if (!\is_resource($this->socket)) { throw new \LogicException('The UdpSocket to ' . $this->ip . ':' . $this->port . ' has been closed and can not be written to anymore'); } \socket_sendto($this->socket, $chunk, \strlen($chunk), $flags = 0, $this->ip, $this->port); } protected function assembleMessage($line, $header) { $chunkSize = self::DATAGRAM_MAX_LENGTH - \strlen($header); return $header . \substr($line, 0, $chunkSize); } } monolog/monolog/src/Monolog/Handler/FlowdockHandler.php000064400000007310150544704730017237 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; use Google\Site_Kit_Dependencies\Monolog\Formatter\FlowdockFormatter; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; /** * Sends notifications through the Flowdock push API * * This must be configured with a FlowdockFormatter instance via setFormatter() * * Notes: * API token - Flowdock API token * * @author Dominik Liebler * @see https://www.flowdock.com/api/push */ class FlowdockHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\SocketHandler { /** * @var string */ protected $apiToken; /** * @param string $apiToken * @param bool|int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * * @throws MissingExtensionException if OpenSSL is missing */ public function __construct($apiToken, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { if (!\extension_loaded('openssl')) { throw new \Google\Site_Kit_Dependencies\Monolog\Handler\MissingExtensionException('The OpenSSL PHP extension is required to use the FlowdockHandler'); } parent::__construct('ssl://api.flowdock.com:443', $level, $bubble); $this->apiToken = $apiToken; } /** * {@inheritdoc} */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { if (!$formatter instanceof \Google\Site_Kit_Dependencies\Monolog\Formatter\FlowdockFormatter) { throw new \InvalidArgumentException('The FlowdockHandler requires an instance of Monolog\\Formatter\\FlowdockFormatter to function correctly'); } return parent::setFormatter($formatter); } /** * Gets the default formatter. * * @return FormatterInterface */ protected function getDefaultFormatter() { throw new \InvalidArgumentException('The FlowdockHandler must be configured (via setFormatter) with an instance of Monolog\\Formatter\\FlowdockFormatter to function correctly'); } /** * {@inheritdoc} * * @param array $record */ protected function write(array $record) { parent::write($record); $this->closeSocket(); } /** * {@inheritdoc} * * @param array $record * @return string */ protected function generateDataStream($record) { $content = $this->buildContent($record); return $this->buildHeader($content) . $content; } /** * Builds the body of API call * * @param array $record * @return string */ private function buildContent($record) { return \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($record['formatted']['flowdock']); } /** * Builds the header of the API Call * * @param string $content * @return string */ private function buildHeader($content) { $header = "POST /v1/messages/team_inbox/" . $this->apiToken . " HTTP/1.1\r\n"; $header .= "Host: api.flowdock.com\r\n"; $header .= "Content-Type: application/json\r\n"; $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; return $header; } } monolog/monolog/src/Monolog/Handler/FleepHookHandler.php000064400000007014150544704730017344 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Sends logs to Fleep.io using Webhook integrations * * You'll need a Fleep.io account to use this handler. * * @see https://fleep.io/integrations/webhooks/ Fleep Webhooks Documentation * @author Ando Roots */ class FleepHookHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\SocketHandler { const FLEEP_HOST = 'fleep.io'; const FLEEP_HOOK_URI = '/hook/'; /** * @var string Webhook token (specifies the conversation where logs are sent) */ protected $token; /** * Construct a new Fleep.io Handler. * * For instructions on how to create a new web hook in your conversations * see https://fleep.io/integrations/webhooks/ * * @param string $token Webhook token * @param bool|int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @throws MissingExtensionException */ public function __construct($token, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { if (!\extension_loaded('openssl')) { throw new \Google\Site_Kit_Dependencies\Monolog\Handler\MissingExtensionException('The OpenSSL PHP extension is required to use the FleepHookHandler'); } $this->token = $token; $connectionString = 'ssl://' . self::FLEEP_HOST . ':443'; parent::__construct($connectionString, $level, $bubble); } /** * Returns the default formatter to use with this handler * * Overloaded to remove empty context and extra arrays from the end of the log message. * * @return LineFormatter */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter(null, null, \true, \true); } /** * Handles a log record * * @param array $record */ public function write(array $record) { parent::write($record); $this->closeSocket(); } /** * {@inheritdoc} * * @param array $record * @return string */ protected function generateDataStream($record) { $content = $this->buildContent($record); return $this->buildHeader($content) . $content; } /** * Builds the header of the API Call * * @param string $content * @return string */ private function buildHeader($content) { $header = "POST " . self::FLEEP_HOOK_URI . $this->token . " HTTP/1.1\r\n"; $header .= "Host: " . self::FLEEP_HOST . "\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . \strlen($content) . "\r\n"; $header .= "\r\n"; return $header; } /** * Builds the body of API call * * @param array $record * @return string */ private function buildContent($record) { $dataArray = array('message' => $record['formatted']); return \http_build_query($dataArray); } } monolog/monolog/src/Monolog/Handler/LogEntriesHandler.php000064400000003411150544704730017540 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * @author Robert Kaufmann III */ class LogEntriesHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\SocketHandler { /** * @var string */ protected $logToken; /** * @param string $token Log token supplied by LogEntries * @param bool $useSSL Whether or not SSL encryption should be used. * @param int $level The minimum logging level to trigger this handler * @param bool $bubble Whether or not messages that are handled should bubble up the stack. * * @throws MissingExtensionException If SSL encryption is set to true and OpenSSL is missing */ public function __construct($token, $useSSL = \true, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true, $host = 'data.logentries.com') { if ($useSSL && !\extension_loaded('openssl')) { throw new \Google\Site_Kit_Dependencies\Monolog\Handler\MissingExtensionException('The OpenSSL PHP plugin is required to use SSL encrypted connection for LogEntriesHandler'); } $endpoint = $useSSL ? 'ssl://' . $host . ':443' : $host . ':80'; parent::__construct($endpoint, $level, $bubble); $this->logToken = $token; } /** * {@inheritdoc} * * @param array $record * @return string */ protected function generateDataStream($record) { return $this->logToken . ' ' . $record['formatted']; } } monolog/monolog/src/Monolog/Handler/CubeHandler.php000064400000011531150544704730016345 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; /** * Logs to Cube. * * @link http://square.github.com/cube/ * @author Wan Chen */ class CubeHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { private $udpConnection; private $httpConnection; private $scheme; private $host; private $port; private $acceptedSchemes = array('http', 'udp'); /** * Create a Cube handler * * @throws \UnexpectedValueException when given url is not a valid url. * A valid url must consist of three parts : protocol://host:port * Only valid protocols used by Cube are http and udp */ public function __construct($url, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { $urlInfo = \parse_url($url); if (!isset($urlInfo['scheme'], $urlInfo['host'], $urlInfo['port'])) { throw new \UnexpectedValueException('URL "' . $url . '" is not valid'); } if (!\in_array($urlInfo['scheme'], $this->acceptedSchemes)) { throw new \UnexpectedValueException('Invalid protocol (' . $urlInfo['scheme'] . ').' . ' Valid options are ' . \implode(', ', $this->acceptedSchemes)); } $this->scheme = $urlInfo['scheme']; $this->host = $urlInfo['host']; $this->port = $urlInfo['port']; parent::__construct($level, $bubble); } /** * Establish a connection to an UDP socket * * @throws \LogicException when unable to connect to the socket * @throws MissingExtensionException when there is no socket extension */ protected function connectUdp() { if (!\extension_loaded('sockets')) { throw new \Google\Site_Kit_Dependencies\Monolog\Handler\MissingExtensionException('The sockets extension is required to use udp URLs with the CubeHandler'); } $this->udpConnection = \socket_create(\AF_INET, \SOCK_DGRAM, 0); if (!$this->udpConnection) { throw new \LogicException('Unable to create a socket'); } if (!\socket_connect($this->udpConnection, $this->host, $this->port)) { throw new \LogicException('Unable to connect to the socket at ' . $this->host . ':' . $this->port); } } /** * Establish a connection to a http server * @throws \LogicException when no curl extension */ protected function connectHttp() { if (!\extension_loaded('curl')) { throw new \LogicException('The curl extension is needed to use http URLs with the CubeHandler'); } $this->httpConnection = \curl_init('http://' . $this->host . ':' . $this->port . '/1.0/event/put'); if (!$this->httpConnection) { throw new \LogicException('Unable to connect to ' . $this->host . ':' . $this->port); } \curl_setopt($this->httpConnection, \CURLOPT_CUSTOMREQUEST, "POST"); \curl_setopt($this->httpConnection, \CURLOPT_RETURNTRANSFER, \true); } /** * {@inheritdoc} */ protected function write(array $record) { $date = $record['datetime']; $data = array('time' => $date->format('Y-m-d\\TH:i:s.uO')); unset($record['datetime']); if (isset($record['context']['type'])) { $data['type'] = $record['context']['type']; unset($record['context']['type']); } else { $data['type'] = $record['channel']; } $data['data'] = $record['context']; $data['data']['level'] = $record['level']; if ($this->scheme === 'http') { $this->writeHttp(\Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($data)); } else { $this->writeUdp(\Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($data)); } } private function writeUdp($data) { if (!$this->udpConnection) { $this->connectUdp(); } \socket_send($this->udpConnection, $data, \strlen($data), 0); } private function writeHttp($data) { if (!$this->httpConnection) { $this->connectHttp(); } \curl_setopt($this->httpConnection, \CURLOPT_POSTFIELDS, '[' . $data . ']'); \curl_setopt($this->httpConnection, \CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Content-Length: ' . \strlen('[' . $data . ']'))); \Google\Site_Kit_Dependencies\Monolog\Handler\Curl\Util::execute($this->httpConnection, 5, \false); } } monolog/monolog/src/Monolog/Handler/SlackbotHandler.php000064400000004724150544704730017237 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Sends notifications through Slack's Slackbot * * @author Haralan Dobrev * @see https://slack.com/apps/A0F81R8ET-slackbot * @deprecated According to Slack the API used on this handler it is deprecated. * Therefore this handler will be removed on 2.x * Slack suggests to use webhooks instead. Please contact slack for more information. */ class SlackbotHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * The slug of the Slack team * @var string */ private $slackTeam; /** * Slackbot token * @var string */ private $token; /** * Slack channel name * @var string */ private $channel; /** * @param string $slackTeam Slack team slug * @param string $token Slackbot token * @param string $channel Slack channel (encoded ID or name) * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not */ public function __construct($slackTeam, $token, $channel, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL, $bubble = \true) { @\trigger_error('SlackbotHandler is deprecated and will be removed on 2.x', \E_USER_DEPRECATED); parent::__construct($level, $bubble); $this->slackTeam = $slackTeam; $this->token = $token; $this->channel = $channel; } /** * {@inheritdoc} * * @param array $record */ protected function write(array $record) { $slackbotUrl = \sprintf('https://%s.slack.com/services/hooks/slackbot?token=%s&channel=%s', $this->slackTeam, $this->token, $this->channel); $ch = \curl_init(); \curl_setopt($ch, \CURLOPT_URL, $slackbotUrl); \curl_setopt($ch, \CURLOPT_POST, \true); \curl_setopt($ch, \CURLOPT_RETURNTRANSFER, \true); \curl_setopt($ch, \CURLOPT_POSTFIELDS, $record['message']); \Google\Site_Kit_Dependencies\Monolog\Handler\Curl\Util::execute($ch); } } monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php000064400000007102150544704730017736 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Handler sending logs to Zend Monitor * * @author Christian Bergau * @author Jason Davis */ class ZendMonitorHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { /** * Monolog level / ZendMonitor Custom Event priority map * * @var array */ protected $levelMap = array(); /** * Construct * * @param int $level * @param bool $bubble * @throws MissingExtensionException */ public function __construct($level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { if (!\function_exists('Google\\Site_Kit_Dependencies\\zend_monitor_custom_event')) { throw new \Google\Site_Kit_Dependencies\Monolog\Handler\MissingExtensionException('You must have Zend Server installed with Zend Monitor enabled in order to use this handler'); } //zend monitor constants are not defined if zend monitor is not enabled. $this->levelMap = array(\Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG => \Google\Site_Kit_Dependencies\ZEND_MONITOR_EVENT_SEVERITY_INFO, \Google\Site_Kit_Dependencies\Monolog\Logger::INFO => \Google\Site_Kit_Dependencies\ZEND_MONITOR_EVENT_SEVERITY_INFO, \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE => \Google\Site_Kit_Dependencies\ZEND_MONITOR_EVENT_SEVERITY_INFO, \Google\Site_Kit_Dependencies\Monolog\Logger::WARNING => \Google\Site_Kit_Dependencies\ZEND_MONITOR_EVENT_SEVERITY_WARNING, \Google\Site_Kit_Dependencies\Monolog\Logger::ERROR => \Google\Site_Kit_Dependencies\ZEND_MONITOR_EVENT_SEVERITY_ERROR, \Google\Site_Kit_Dependencies\Monolog\Logger::CRITICAL => \Google\Site_Kit_Dependencies\ZEND_MONITOR_EVENT_SEVERITY_ERROR, \Google\Site_Kit_Dependencies\Monolog\Logger::ALERT => \Google\Site_Kit_Dependencies\ZEND_MONITOR_EVENT_SEVERITY_ERROR, \Google\Site_Kit_Dependencies\Monolog\Logger::EMERGENCY => \Google\Site_Kit_Dependencies\ZEND_MONITOR_EVENT_SEVERITY_ERROR); parent::__construct($level, $bubble); } /** * {@inheritdoc} */ protected function write(array $record) { $this->writeZendMonitorCustomEvent(\Google\Site_Kit_Dependencies\Monolog\Logger::getLevelName($record['level']), $record['message'], $record['formatted'], $this->levelMap[$record['level']]); } /** * Write to Zend Monitor Events * @param string $type Text displayed in "Class Name (custom)" field * @param string $message Text displayed in "Error String" * @param mixed $formatted Displayed in Custom Variables tab * @param int $severity Set the event severity level (-1,0,1) */ protected function writeZendMonitorCustomEvent($type, $message, $formatted, $severity) { zend_monitor_custom_event($type, $message, $formatted, $severity); } /** * {@inheritdoc} */ public function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\NormalizerFormatter(); } /** * Get the level map * * @return array */ public function getLevelMap() { return $this->levelMap; } } monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php000064400000024766150544704730017457 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Exception; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\Utils; use Google\Site_Kit_Dependencies\PhpConsole\Connector; use Google\Site_Kit_Dependencies\PhpConsole\Handler; use Google\Site_Kit_Dependencies\PhpConsole\Helper; /** * Monolog handler for Google Chrome extension "PHP Console" * * Display PHP error/debug log messages in Google Chrome console and notification popups, executes PHP code remotely * * Usage: * 1. Install Google Chrome extension https://chrome.google.com/webstore/detail/php-console/nfhmhhlpfleoednkpnnnkolmclajemef * 2. See overview https://github.com/barbushin/php-console#overview * 3. Install PHP Console library https://github.com/barbushin/php-console#installation * 4. Example (result will looks like http://i.hizliresim.com/vg3Pz4.png) * * $logger = new \Monolog\Logger('all', array(new \Monolog\Handler\PHPConsoleHandler())); * \Monolog\ErrorHandler::register($logger); * echo $undefinedVar; * $logger->addDebug('SELECT * FROM users', array('db', 'time' => 0.012)); * PC::debug($_SERVER); // PHP Console debugger for any type of vars * * @author Sergey Barbushin https://www.linkedin.com/in/barbushin */ class PHPConsoleHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { private $options = array( 'enabled' => \true, // bool Is PHP Console server enabled 'classesPartialsTraceIgnore' => array('Monolog\\'), // array Hide calls of classes started with... 'debugTagsKeysInContext' => array(0, 'tag'), // bool Is PHP Console server enabled 'useOwnErrorsHandler' => \false, // bool Enable errors handling 'useOwnExceptionsHandler' => \false, // bool Enable exceptions handling 'sourcesBasePath' => null, // string Base path of all project sources to strip in errors source paths 'registerHelper' => \true, // bool Register PhpConsole\Helper that allows short debug calls like PC::debug($var, 'ta.g.s') 'serverEncoding' => null, // string|null Server internal encoding 'headersLimit' => null, // int|null Set headers size limit for your web-server 'password' => null, // string|null Protect PHP Console connection by password 'enableSslOnlyMode' => \false, // bool Force connection by SSL for clients with PHP Console installed 'ipMasks' => array(), // array Set IP masks of clients that will be allowed to connect to PHP Console: array('192.168.*.*', '127.0.0.1') 'enableEvalListener' => \false, // bool Enable eval request to be handled by eval dispatcher(if enabled, 'password' option is also required) 'dumperDetectCallbacks' => \false, // bool Convert callback items in dumper vars to (callback SomeClass::someMethod) strings 'dumperLevelLimit' => 5, // int Maximum dumped vars array or object nested dump level 'dumperItemsCountLimit' => 100, // int Maximum dumped var same level array items or object properties number 'dumperItemSizeLimit' => 5000, // int Maximum length of any string or dumped array item 'dumperDumpSizeLimit' => 500000, // int Maximum approximate size of dumped vars result formatted in JSON 'detectDumpTraceAndSource' => \false, // bool Autodetect and append trace data to debug 'dataStorage' => null, ); /** @var Connector */ private $connector; /** * @param array $options See \Monolog\Handler\PHPConsoleHandler::$options for more details * @param Connector|null $connector Instance of \PhpConsole\Connector class (optional) * @param int $level * @param bool $bubble * @throws Exception */ public function __construct(array $options = array(), \Google\Site_Kit_Dependencies\PhpConsole\Connector $connector = null, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true) { if (!\class_exists('Google\\Site_Kit_Dependencies\\PhpConsole\\Connector')) { throw new \Exception('PHP Console library not found. See https://github.com/barbushin/php-console#installation'); } parent::__construct($level, $bubble); $this->options = $this->initOptions($options); $this->connector = $this->initConnector($connector); } private function initOptions(array $options) { $wrongOptions = \array_diff(\array_keys($options), \array_keys($this->options)); if ($wrongOptions) { throw new \Exception('Unknown options: ' . \implode(', ', $wrongOptions)); } return \array_replace($this->options, $options); } private function initConnector(\Google\Site_Kit_Dependencies\PhpConsole\Connector $connector = null) { if (!$connector) { if ($this->options['dataStorage']) { \Google\Site_Kit_Dependencies\PhpConsole\Connector::setPostponeStorage($this->options['dataStorage']); } $connector = \Google\Site_Kit_Dependencies\PhpConsole\Connector::getInstance(); } if ($this->options['registerHelper'] && !\Google\Site_Kit_Dependencies\PhpConsole\Helper::isRegistered()) { \Google\Site_Kit_Dependencies\PhpConsole\Helper::register(); } if ($this->options['enabled'] && $connector->isActiveClient()) { if ($this->options['useOwnErrorsHandler'] || $this->options['useOwnExceptionsHandler']) { $handler = \Google\Site_Kit_Dependencies\PhpConsole\Handler::getInstance(); $handler->setHandleErrors($this->options['useOwnErrorsHandler']); $handler->setHandleExceptions($this->options['useOwnExceptionsHandler']); $handler->start(); } if ($this->options['sourcesBasePath']) { $connector->setSourcesBasePath($this->options['sourcesBasePath']); } if ($this->options['serverEncoding']) { $connector->setServerEncoding($this->options['serverEncoding']); } if ($this->options['password']) { $connector->setPassword($this->options['password']); } if ($this->options['enableSslOnlyMode']) { $connector->enableSslOnlyMode(); } if ($this->options['ipMasks']) { $connector->setAllowedIpMasks($this->options['ipMasks']); } if ($this->options['headersLimit']) { $connector->setHeadersLimit($this->options['headersLimit']); } if ($this->options['detectDumpTraceAndSource']) { $connector->getDebugDispatcher()->detectTraceAndSource = \true; } $dumper = $connector->getDumper(); $dumper->levelLimit = $this->options['dumperLevelLimit']; $dumper->itemsCountLimit = $this->options['dumperItemsCountLimit']; $dumper->itemSizeLimit = $this->options['dumperItemSizeLimit']; $dumper->dumpSizeLimit = $this->options['dumperDumpSizeLimit']; $dumper->detectCallbacks = $this->options['dumperDetectCallbacks']; if ($this->options['enableEvalListener']) { $connector->startEvalRequestsListener(); } } return $connector; } public function getConnector() { return $this->connector; } public function getOptions() { return $this->options; } public function handle(array $record) { if ($this->options['enabled'] && $this->connector->isActiveClient()) { return parent::handle($record); } return !$this->bubble; } /** * Writes the record down to the log of the implementing handler * * @param array $record * @return void */ protected function write(array $record) { if ($record['level'] < \Google\Site_Kit_Dependencies\Monolog\Logger::NOTICE) { $this->handleDebugRecord($record); } elseif (isset($record['context']['exception']) && $record['context']['exception'] instanceof \Exception) { $this->handleExceptionRecord($record); } else { $this->handleErrorRecord($record); } } private function handleDebugRecord(array $record) { $tags = $this->getRecordTags($record); $message = $record['message']; if ($record['context']) { $message .= ' ' . \Google\Site_Kit_Dependencies\Monolog\Utils::jsonEncode($this->connector->getDumper()->dump(\array_filter($record['context'])), null, \true); } $this->connector->getDebugDispatcher()->dispatchDebug($message, $tags, $this->options['classesPartialsTraceIgnore']); } private function handleExceptionRecord(array $record) { $this->connector->getErrorsDispatcher()->dispatchException($record['context']['exception']); } private function handleErrorRecord(array $record) { $context = $record['context']; $this->connector->getErrorsDispatcher()->dispatchError(isset($context['code']) ? $context['code'] : null, isset($context['message']) ? $context['message'] : $record['message'], isset($context['file']) ? $context['file'] : null, isset($context['line']) ? $context['line'] : null, $this->options['classesPartialsTraceIgnore']); } private function getRecordTags(array &$record) { $tags = null; if (!empty($record['context'])) { $context =& $record['context']; foreach ($this->options['debugTagsKeysInContext'] as $key) { if (!empty($context[$key])) { $tags = $context[$key]; if ($key === 0) { \array_shift($context); } else { unset($context[$key]); } break; } } } return $tags ?: \strtolower($record['level_name']); } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter('%message%'); } } monolog/monolog/src/Monolog/Handler/TestHandler.php000064400000012512150544704730016406 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; /** * Used for testing purposes. * * It records all records and gives you access to them for verification. * * @author Jordi Boggiano * * @method bool hasEmergency($record) * @method bool hasAlert($record) * @method bool hasCritical($record) * @method bool hasError($record) * @method bool hasWarning($record) * @method bool hasNotice($record) * @method bool hasInfo($record) * @method bool hasDebug($record) * * @method bool hasEmergencyRecords() * @method bool hasAlertRecords() * @method bool hasCriticalRecords() * @method bool hasErrorRecords() * @method bool hasWarningRecords() * @method bool hasNoticeRecords() * @method bool hasInfoRecords() * @method bool hasDebugRecords() * * @method bool hasEmergencyThatContains($message) * @method bool hasAlertThatContains($message) * @method bool hasCriticalThatContains($message) * @method bool hasErrorThatContains($message) * @method bool hasWarningThatContains($message) * @method bool hasNoticeThatContains($message) * @method bool hasInfoThatContains($message) * @method bool hasDebugThatContains($message) * * @method bool hasEmergencyThatMatches($message) * @method bool hasAlertThatMatches($message) * @method bool hasCriticalThatMatches($message) * @method bool hasErrorThatMatches($message) * @method bool hasWarningThatMatches($message) * @method bool hasNoticeThatMatches($message) * @method bool hasInfoThatMatches($message) * @method bool hasDebugThatMatches($message) * * @method bool hasEmergencyThatPasses($message) * @method bool hasAlertThatPasses($message) * @method bool hasCriticalThatPasses($message) * @method bool hasErrorThatPasses($message) * @method bool hasWarningThatPasses($message) * @method bool hasNoticeThatPasses($message) * @method bool hasInfoThatPasses($message) * @method bool hasDebugThatPasses($message) */ class TestHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { protected $records = array(); protected $recordsByLevel = array(); private $skipReset = \false; public function getRecords() { return $this->records; } public function clear() { $this->records = array(); $this->recordsByLevel = array(); } public function reset() { if (!$this->skipReset) { $this->clear(); } } public function setSkipReset($skipReset) { $this->skipReset = $skipReset; } public function hasRecords($level) { return isset($this->recordsByLevel[$level]); } /** * @param string|array $record Either a message string or an array containing message and optionally context keys that will be checked against all records * @param int $level Logger::LEVEL constant value */ public function hasRecord($record, $level) { if (\is_string($record)) { $record = array('message' => $record); } return $this->hasRecordThatPasses(function ($rec) use($record) { if ($rec['message'] !== $record['message']) { return \false; } if (isset($record['context']) && $rec['context'] !== $record['context']) { return \false; } return \true; }, $level); } public function hasRecordThatContains($message, $level) { return $this->hasRecordThatPasses(function ($rec) use($message) { return \strpos($rec['message'], $message) !== \false; }, $level); } public function hasRecordThatMatches($regex, $level) { return $this->hasRecordThatPasses(function ($rec) use($regex) { return \preg_match($regex, $rec['message']) > 0; }, $level); } public function hasRecordThatPasses($predicate, $level) { if (!\is_callable($predicate)) { throw new \InvalidArgumentException("Expected a callable for hasRecordThatSucceeds"); } if (!isset($this->recordsByLevel[$level])) { return \false; } foreach ($this->recordsByLevel[$level] as $i => $rec) { if (\call_user_func($predicate, $rec, $i)) { return \true; } } return \false; } /** * {@inheritdoc} */ protected function write(array $record) { $this->recordsByLevel[$record['level']][] = $record; $this->records[] = $record; } public function __call($method, $args) { if (\preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) { $genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3]; $level = \constant('Monolog\\Logger::' . \strtoupper($matches[2])); if (\method_exists($this, $genericMethod)) { $args[] = $level; return \call_user_func_array(array($this, $genericMethod), $args); } } throw new \BadMethodCallException('Call to undefined method ' . \get_class($this) . '::' . $method . '()'); } } monolog/monolog/src/Monolog/Handler/RedisHandler.php000064400000006115150544704730016537 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter; use Google\Site_Kit_Dependencies\Monolog\Logger; /** * Logs to a Redis key using rpush * * usage example: * * $log = new Logger('application'); * $redis = new RedisHandler(new Predis\Client("tcp://localhost:6379"), "logs", "prod"); * $log->pushHandler($redis); * * @author Thomas Tourlourat */ class RedisHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractProcessingHandler { private $redisClient; private $redisKey; protected $capSize; /** * @param \Predis\Client|\Redis $redis The redis instance * @param string $key The key name to push records to * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param int|false $capSize Number of entries to limit list size to */ public function __construct($redis, $key, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true, $capSize = \false) { if (!($redis instanceof \Google\Site_Kit_Dependencies\Predis\Client || $redis instanceof \Redis)) { throw new \InvalidArgumentException('Predis\\Client or Redis instance required'); } $this->redisClient = $redis; $this->redisKey = $key; $this->capSize = $capSize; parent::__construct($level, $bubble); } /** * {@inheritDoc} */ protected function write(array $record) { if ($this->capSize) { $this->writeCapped($record); } else { $this->redisClient->rpush($this->redisKey, $record["formatted"]); } } /** * Write and cap the collection * Writes the record to the redis list and caps its * * @param array $record associative record array * @return void */ protected function writeCapped(array $record) { if ($this->redisClient instanceof \Redis) { $mode = \defined('\\Redis::MULTI') ? \Redis::MULTI : 1; $this->redisClient->multi($mode)->rpush($this->redisKey, $record["formatted"])->ltrim($this->redisKey, -$this->capSize, -1)->exec(); } else { $redisKey = $this->redisKey; $capSize = $this->capSize; $this->redisClient->transaction(function ($tx) use($record, $redisKey, $capSize) { $tx->rpush($redisKey, $record["formatted"]); $tx->ltrim($redisKey, -$capSize, -1); }); } } /** * {@inheritDoc} */ protected function getDefaultFormatter() { return new \Google\Site_Kit_Dependencies\Monolog\Formatter\LineFormatter(); } } monolog/monolog/src/Monolog/Handler/BufferHandler.php000064400000010377150544704730016707 0ustar00 * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Google\Site_Kit_Dependencies\Monolog\Handler; use Google\Site_Kit_Dependencies\Monolog\Logger; use Google\Site_Kit_Dependencies\Monolog\ResettableInterface; use Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface; /** * Buffers all records until closing the handler and then pass them as batch. * * This is useful for a MailHandler to send only one mail per request instead of * sending one per log message. * * @author Christophe Coevoet */ class BufferHandler extends \Google\Site_Kit_Dependencies\Monolog\Handler\AbstractHandler { protected $handler; protected $bufferSize = 0; protected $bufferLimit; protected $flushOnOverflow; protected $buffer = array(); protected $initialized = \false; /** * @param HandlerInterface $handler Handler. * @param int $bufferLimit How many entries should be buffered at most, beyond that the oldest items are removed from the buffer. * @param int $level The minimum logging level at which this handler will be triggered * @param bool $bubble Whether the messages that are handled can bubble up the stack or not * @param bool $flushOnOverflow If true, the buffer is flushed when the max size has been reached, by default oldest entries are discarded */ public function __construct(\Google\Site_Kit_Dependencies\Monolog\Handler\HandlerInterface $handler, $bufferLimit = 0, $level = \Google\Site_Kit_Dependencies\Monolog\Logger::DEBUG, $bubble = \true, $flushOnOverflow = \false) { parent::__construct($level, $bubble); $this->handler = $handler; $this->bufferLimit = (int) $bufferLimit; $this->flushOnOverflow = $flushOnOverflow; } /** * {@inheritdoc} */ public function handle(array $record) { if ($record['level'] < $this->level) { return \false; } if (!$this->initialized) { // __destructor() doesn't get called on Fatal errors \register_shutdown_function(array($this, 'close')); $this->initialized = \true; } if ($this->bufferLimit > 0 && $this->bufferSize === $this->bufferLimit) { if ($this->flushOnOverflow) { $this->flush(); } else { \array_shift($this->buffer); $this->bufferSize--; } } if ($this->processors) { foreach ($this->processors as $processor) { $record = \call_user_func($processor, $record); } } $this->buffer[] = $record; $this->bufferSize++; return \false === $this->bubble; } public function flush() { if ($this->bufferSize === 0) { return; } $this->handler->handleBatch($this->buffer); $this->clear(); } public function __destruct() { // suppress the parent behavior since we already have register_shutdown_function() // to call close(), and the reference contained there will prevent this from being // GC'd until the end of the request } /** * {@inheritdoc} */ public function close() { $this->flush(); } /** * Clears the buffer without flushing any messages down to the wrapped handler. */ public function clear() { $this->bufferSize = 0; $this->buffer = array(); } public function reset() { $this->flush(); parent::reset(); if ($this->handler instanceof \Google\Site_Kit_Dependencies\Monolog\ResettableInterface) { $this->handler->reset(); } } /** * {@inheritdoc} */ public function setFormatter(\Google\Site_Kit_Dependencies\Monolog\Formatter\FormatterInterface $formatter) { $this->handler->setFormatter($formatter); return $this; } /** * {@inheritdoc} */ public function getFormatter() { return $this->handler->getFormatter(); } } ralouphie/getallheaders/src/getallheaders.php000064400000003150150544704730015454 0ustar00 'Content-Type', 'CONTENT_LENGTH' => 'Content-Length', 'CONTENT_MD5' => 'Content-Md5', ); foreach ($_SERVER as $key => $value) { if (substr($key, 0, 5) === 'HTTP_') { $key = substr($key, 5); if (!isset($copy_server[$key]) || !isset($_SERVER[$key])) { $key = str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', $key)))); $headers[$key] = $value; } } elseif (isset($copy_server[$key])) { $headers[$copy_server[$key]] = $value; } } if (!isset($headers['Authorization'])) { if (isset($_SERVER['REDIRECT_HTTP_AUTHORIZATION'])) { $headers['Authorization'] = $_SERVER['REDIRECT_HTTP_AUTHORIZATION']; } elseif (isset($_SERVER['PHP_AUTH_USER'])) { $basic_pass = isset($_SERVER['PHP_AUTH_PW']) ? $_SERVER['PHP_AUTH_PW'] : ''; $headers['Authorization'] = 'Basic ' . base64_encode($_SERVER['PHP_AUTH_USER'] . ':' . $basic_pass); } elseif (isset($_SERVER['PHP_AUTH_DIGEST'])) { $headers['Authorization'] = $_SERVER['PHP_AUTH_DIGEST']; } } return $headers; } } react/promise/src/Promise.php000064400000021355150544704730012255 0ustar00canceller = $canceller; // Explicitly overwrite arguments with null values before invoking // resolver function. This ensure that these arguments do not show up // in the stack trace in PHP 7+ only. $cb = $resolver; $resolver = $canceller = null; $this->call($cb); } public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { if (null !== $this->result) { return $this->result->then($onFulfilled, $onRejected, $onProgress); } if (null === $this->canceller) { return new static($this->resolver($onFulfilled, $onRejected, $onProgress)); } // This promise has a canceller, so we create a new child promise which // has a canceller that invokes the parent canceller if all other // followers are also cancelled. We keep a reference to this promise // instance for the static canceller function and clear this to avoid // keeping a cyclic reference between parent and follower. $parent = $this; ++$parent->requiredCancelRequests; return new static($this->resolver($onFulfilled, $onRejected, $onProgress), static function () use(&$parent) { if (++$parent->cancelRequests >= $parent->requiredCancelRequests) { $parent->cancel(); } $parent = null; }); } public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { if (null !== $this->result) { return $this->result->done($onFulfilled, $onRejected, $onProgress); } $this->handlers[] = static function (\Google\Site_Kit_Dependencies\React\Promise\ExtendedPromiseInterface $promise) use($onFulfilled, $onRejected) { $promise->done($onFulfilled, $onRejected); }; if ($onProgress) { $this->progressHandlers[] = $onProgress; } } public function otherwise(callable $onRejected) { return $this->then(null, static function ($reason) use($onRejected) { if (!_checkTypehint($onRejected, $reason)) { return new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($reason); } return $onRejected($reason); }); } public function always(callable $onFulfilledOrRejected) { return $this->then(static function ($value) use($onFulfilledOrRejected) { return resolve($onFulfilledOrRejected())->then(function () use($value) { return $value; }); }, static function ($reason) use($onFulfilledOrRejected) { return resolve($onFulfilledOrRejected())->then(function () use($reason) { return new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($reason); }); }); } public function progress(callable $onProgress) { return $this->then(null, null, $onProgress); } public function cancel() { if (null === $this->canceller || null !== $this->result) { return; } $canceller = $this->canceller; $this->canceller = null; $this->call($canceller); } private function resolver(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { return function ($resolve, $reject, $notify) use($onFulfilled, $onRejected, $onProgress) { if ($onProgress) { $progressHandler = static function ($update) use($notify, $onProgress) { try { $notify($onProgress($update)); } catch (\Throwable $e) { $notify($e); } catch (\Exception $e) { $notify($e); } }; } else { $progressHandler = $notify; } $this->handlers[] = static function (\Google\Site_Kit_Dependencies\React\Promise\ExtendedPromiseInterface $promise) use($onFulfilled, $onRejected, $resolve, $reject, $progressHandler) { $promise->then($onFulfilled, $onRejected)->done($resolve, $reject, $progressHandler); }; $this->progressHandlers[] = $progressHandler; }; } private function reject($reason = null) { if (null !== $this->result) { return; } $this->settle(reject($reason)); } private function settle(\Google\Site_Kit_Dependencies\React\Promise\ExtendedPromiseInterface $promise) { $promise = $this->unwrap($promise); if ($promise === $this) { $promise = new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise(new \LogicException('Cannot resolve a promise with itself.')); } $handlers = $this->handlers; $this->progressHandlers = $this->handlers = []; $this->result = $promise; $this->canceller = null; foreach ($handlers as $handler) { $handler($promise); } } private function unwrap($promise) { $promise = $this->extract($promise); while ($promise instanceof self && null !== $promise->result) { $promise = $this->extract($promise->result); } return $promise; } private function extract($promise) { if ($promise instanceof \Google\Site_Kit_Dependencies\React\Promise\LazyPromise) { $promise = $promise->promise(); } return $promise; } private function call(callable $cb) { // Explicitly overwrite argument with null value. This ensure that this // argument does not show up in the stack trace in PHP 7+ only. $callback = $cb; $cb = null; // Use reflection to inspect number of arguments expected by this callback. // We did some careful benchmarking here: Using reflection to avoid unneeded // function arguments is actually faster than blindly passing them. // Also, this helps avoiding unnecessary function arguments in the call stack // if the callback creates an Exception (creating garbage cycles). if (\is_array($callback)) { $ref = new \ReflectionMethod($callback[0], $callback[1]); } elseif (\is_object($callback) && !$callback instanceof \Closure) { $ref = new \ReflectionMethod($callback, '__invoke'); } else { $ref = new \ReflectionFunction($callback); } $args = $ref->getNumberOfParameters(); try { if ($args === 0) { $callback(); } else { // Keep references to this promise instance for the static resolve/reject functions. // By using static callbacks that are not bound to this instance // and passing the target promise instance by reference, we can // still execute its resolving logic and still clear this // reference when settling the promise. This helps avoiding // garbage cycles if any callback creates an Exception. // These assumptions are covered by the test suite, so if you ever feel like // refactoring this, go ahead, any alternative suggestions are welcome! $target =& $this; $progressHandlers =& $this->progressHandlers; $callback(static function ($value = null) use(&$target) { if ($target !== null) { $target->settle(resolve($value)); $target = null; } }, static function ($reason = null) use(&$target) { if ($target !== null) { $target->reject($reason); $target = null; } }, static function ($update = null) use(&$progressHandlers) { foreach ($progressHandlers as $handler) { $handler($update); } }); } } catch (\Throwable $e) { $target = null; $this->reject($e); } catch (\Exception $e) { $target = null; $this->reject($e); } } } react/promise/src/CancellablePromiseInterface.php000064400000000777150544704730016211 0ustar00value = $value; } public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { if (null === $onFulfilled) { return $this; } try { return resolve($onFulfilled($this->value)); } catch (\Throwable $exception) { return new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($exception); } catch (\Exception $exception) { return new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($exception); } } public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { if (null === $onFulfilled) { return; } $result = $onFulfilled($this->value); if ($result instanceof \Google\Site_Kit_Dependencies\React\Promise\ExtendedPromiseInterface) { $result->done(); } } public function otherwise(callable $onRejected) { return $this; } public function always(callable $onFulfilledOrRejected) { return $this->then(function ($value) use($onFulfilledOrRejected) { return resolve($onFulfilledOrRejected())->then(function () use($value) { return $value; }); }); } public function progress(callable $onProgress) { return $this; } public function cancel() { } } react/promise/src/LazyPromise.php000064400000003623150544704730013113 0ustar00factory = $factory; } public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { return $this->promise()->then($onFulfilled, $onRejected, $onProgress); } public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { return $this->promise()->done($onFulfilled, $onRejected, $onProgress); } public function otherwise(callable $onRejected) { return $this->promise()->otherwise($onRejected); } public function always(callable $onFulfilledOrRejected) { return $this->promise()->always($onFulfilledOrRejected); } public function progress(callable $onProgress) { return $this->promise()->progress($onProgress); } public function cancel() { return $this->promise()->cancel(); } /** * @internal * @see Promise::settle() */ public function promise() { if (null === $this->promise) { try { $this->promise = resolve(\call_user_func($this->factory)); } catch (\Throwable $exception) { $this->promise = new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($exception); } catch (\Exception $exception) { $this->promise = new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($exception); } } return $this->promise; } } react/promise/src/PromisorInterface.php000064400000000340150544704730014261 0ustar00started) { return; } $this->started = \true; $this->drain(); } public function enqueue($cancellable) { if (!\is_object($cancellable) || !\method_exists($cancellable, 'then') || !\method_exists($cancellable, 'cancel')) { return; } $length = \array_push($this->queue, $cancellable); if ($this->started && 1 === $length) { $this->drain(); } } private function drain() { for ($i = \key($this->queue); isset($this->queue[$i]); $i++) { $cancellable = $this->queue[$i]; $exception = null; try { $cancellable->cancel(); } catch (\Throwable $exception) { } catch (\Exception $exception) { } unset($this->queue[$i]); if ($exception) { throw $exception; } } $this->queue = []; } } react/promise/src/Deferred.php000064400000003045150544704730012353 0ustar00canceller = $canceller; } public function promise() { if (null === $this->promise) { $this->promise = new \Google\Site_Kit_Dependencies\React\Promise\Promise(function ($resolve, $reject, $notify) { $this->resolveCallback = $resolve; $this->rejectCallback = $reject; $this->notifyCallback = $notify; }, $this->canceller); $this->canceller = null; } return $this->promise; } public function resolve($value = null) { $this->promise(); \call_user_func($this->resolveCallback, $value); } public function reject($reason = null) { $this->promise(); \call_user_func($this->rejectCallback, $reason); } /** * @deprecated 2.6.0 Progress support is deprecated and should not be used anymore. * @param mixed $update */ public function notify($update = null) { $this->promise(); \call_user_func($this->notifyCallback, $update); } /** * @deprecated 2.2.0 * @see Deferred::notify() */ public function progress($update = null) { $this->notify($update); } } react/promise/src/RejectedPromise.php000064400000005077150544704730013726 0ustar00reason = $reason; } public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { if (null === $onRejected) { return $this; } try { return resolve($onRejected($this->reason)); } catch (\Throwable $exception) { return new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($exception); } catch (\Exception $exception) { return new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($exception); } } public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { if (null === $onRejected) { throw \Google\Site_Kit_Dependencies\React\Promise\UnhandledRejectionException::resolve($this->reason); } $result = $onRejected($this->reason); if ($result instanceof self) { throw \Google\Site_Kit_Dependencies\React\Promise\UnhandledRejectionException::resolve($result->reason); } if ($result instanceof \Google\Site_Kit_Dependencies\React\Promise\ExtendedPromiseInterface) { $result->done(); } } public function otherwise(callable $onRejected) { if (!_checkTypehint($onRejected, $this->reason)) { return $this; } return $this->then(null, $onRejected); } public function always(callable $onFulfilledOrRejected) { return $this->then(null, function ($reason) use($onFulfilledOrRejected) { return resolve($onFulfilledOrRejected())->then(function () use($reason) { return new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($reason); }); }); } public function progress(callable $onProgress) { return $this; } public function cancel() { } } react/promise/src/functions_include.php000064400000000255150544704730014346 0ustar00then(null, $onRejected); * ``` * * Additionally, you can type hint the `$reason` argument of `$onRejected` to catch * only specific errors. * * @param callable $onRejected * @return ExtendedPromiseInterface */ public function otherwise(callable $onRejected); /** * Allows you to execute "cleanup" type tasks in a promise chain. * * It arranges for `$onFulfilledOrRejected` to be called, with no arguments, * when the promise is either fulfilled or rejected. * * * If `$promise` fulfills, and `$onFulfilledOrRejected` returns successfully, * `$newPromise` will fulfill with the same value as `$promise`. * * If `$promise` fulfills, and `$onFulfilledOrRejected` throws or returns a * rejected promise, `$newPromise` will reject with the thrown exception or * rejected promise's reason. * * If `$promise` rejects, and `$onFulfilledOrRejected` returns successfully, * `$newPromise` will reject with the same reason as `$promise`. * * If `$promise` rejects, and `$onFulfilledOrRejected` throws or returns a * rejected promise, `$newPromise` will reject with the thrown exception or * rejected promise's reason. * * `always()` behaves similarly to the synchronous finally statement. When combined * with `otherwise()`, `always()` allows you to write code that is similar to the familiar * synchronous catch/finally pair. * * Consider the following synchronous code: * * ```php * try { * return doSomething(); * } catch(\Exception $e) { * return handleError($e); * } finally { * cleanup(); * } * ``` * * Similar asynchronous code (with `doSomething()` that returns a promise) can be * written: * * ```php * return doSomething() * ->otherwise('handleError') * ->always('cleanup'); * ``` * * @param callable $onFulfilledOrRejected * @return ExtendedPromiseInterface */ public function always(callable $onFulfilledOrRejected); /** * Registers a handler for progress updates from promise. It is a shortcut for: * * ```php * $promise->then(null, null, $onProgress); * ``` * * @param callable $onProgress * @return ExtendedPromiseInterface * @deprecated 2.6.0 Progress support is deprecated and should not be used anymore. */ public function progress(callable $onProgress); } react/promise/src/functions.php000064400000033071150544704730012645 0ustar00then($resolve, $reject, $notify); }, $canceller); } return new \Google\Site_Kit_Dependencies\React\Promise\FulfilledPromise($promiseOrValue); } /** * Creates a rejected promise for the supplied `$promiseOrValue`. * * If `$promiseOrValue` is a value, it will be the rejection value of the * returned promise. * * If `$promiseOrValue` is a promise, its completion value will be the rejected * value of the returned promise. * * This can be useful in situations where you need to reject a promise without * throwing an exception. For example, it allows you to propagate a rejection with * the value of another promise. * * @param mixed $promiseOrValue * @return PromiseInterface */ function reject($promiseOrValue = null) { if ($promiseOrValue instanceof \Google\Site_Kit_Dependencies\React\Promise\PromiseInterface) { return resolve($promiseOrValue)->then(function ($value) { return new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($value); }); } return new \Google\Site_Kit_Dependencies\React\Promise\RejectedPromise($promiseOrValue); } /** * Returns a promise that will resolve only once all the items in * `$promisesOrValues` have resolved. The resolution value of the returned promise * will be an array containing the resolution values of each of the items in * `$promisesOrValues`. * * @param array $promisesOrValues * @return PromiseInterface */ function all($promisesOrValues) { return map($promisesOrValues, function ($val) { return $val; }); } /** * Initiates a competitive race that allows one winner. Returns a promise which is * resolved in the same way the first settled promise resolves. * * The returned promise will become **infinitely pending** if `$promisesOrValues` * contains 0 items. * * @param array $promisesOrValues * @return PromiseInterface */ function race($promisesOrValues) { $cancellationQueue = new \Google\Site_Kit_Dependencies\React\Promise\CancellationQueue(); $cancellationQueue->enqueue($promisesOrValues); return new \Google\Site_Kit_Dependencies\React\Promise\Promise(function ($resolve, $reject, $notify) use($promisesOrValues, $cancellationQueue) { resolve($promisesOrValues)->done(function ($array) use($cancellationQueue, $resolve, $reject, $notify) { if (!\is_array($array) || !$array) { $resolve(); return; } foreach ($array as $promiseOrValue) { $cancellationQueue->enqueue($promiseOrValue); resolve($promiseOrValue)->done($resolve, $reject, $notify); } }, $reject, $notify); }, $cancellationQueue); } /** * Returns a promise that will resolve when any one of the items in * `$promisesOrValues` resolves. The resolution value of the returned promise * will be the resolution value of the triggering item. * * The returned promise will only reject if *all* items in `$promisesOrValues` are * rejected. The rejection value will be an array of all rejection reasons. * * The returned promise will also reject with a `React\Promise\Exception\LengthException` * if `$promisesOrValues` contains 0 items. * * @param array $promisesOrValues * @return PromiseInterface */ function any($promisesOrValues) { return some($promisesOrValues, 1)->then(function ($val) { return \array_shift($val); }); } /** * Returns a promise that will resolve when `$howMany` of the supplied items in * `$promisesOrValues` resolve. The resolution value of the returned promise * will be an array of length `$howMany` containing the resolution values of the * triggering items. * * The returned promise will reject if it becomes impossible for `$howMany` items * to resolve (that is, when `(count($promisesOrValues) - $howMany) + 1` items * reject). The rejection value will be an array of * `(count($promisesOrValues) - $howMany) + 1` rejection reasons. * * The returned promise will also reject with a `React\Promise\Exception\LengthException` * if `$promisesOrValues` contains less items than `$howMany`. * * @param array $promisesOrValues * @param int $howMany * @return PromiseInterface */ function some($promisesOrValues, $howMany) { $cancellationQueue = new \Google\Site_Kit_Dependencies\React\Promise\CancellationQueue(); $cancellationQueue->enqueue($promisesOrValues); return new \Google\Site_Kit_Dependencies\React\Promise\Promise(function ($resolve, $reject, $notify) use($promisesOrValues, $howMany, $cancellationQueue) { resolve($promisesOrValues)->done(function ($array) use($howMany, $cancellationQueue, $resolve, $reject, $notify) { if (!\is_array($array) || $howMany < 1) { $resolve([]); return; } $len = \count($array); if ($len < $howMany) { throw new \Google\Site_Kit_Dependencies\React\Promise\Exception\LengthException(\sprintf('Input array must contain at least %d item%s but contains only %s item%s.', $howMany, 1 === $howMany ? '' : 's', $len, 1 === $len ? '' : 's')); } $toResolve = $howMany; $toReject = $len - $toResolve + 1; $values = []; $reasons = []; foreach ($array as $i => $promiseOrValue) { $fulfiller = function ($val) use($i, &$values, &$toResolve, $toReject, $resolve) { if ($toResolve < 1 || $toReject < 1) { return; } $values[$i] = $val; if (0 === --$toResolve) { $resolve($values); } }; $rejecter = function ($reason) use($i, &$reasons, &$toReject, $toResolve, $reject) { if ($toResolve < 1 || $toReject < 1) { return; } $reasons[$i] = $reason; if (0 === --$toReject) { $reject($reasons); } }; $cancellationQueue->enqueue($promiseOrValue); resolve($promiseOrValue)->done($fulfiller, $rejecter, $notify); } }, $reject, $notify); }, $cancellationQueue); } /** * Traditional map function, similar to `array_map()`, but allows input to contain * promises and/or values, and `$mapFunc` may return either a value or a promise. * * The map function receives each item as argument, where item is a fully resolved * value of a promise or value in `$promisesOrValues`. * * @param array $promisesOrValues * @param callable $mapFunc * @return PromiseInterface */ function map($promisesOrValues, callable $mapFunc) { $cancellationQueue = new \Google\Site_Kit_Dependencies\React\Promise\CancellationQueue(); $cancellationQueue->enqueue($promisesOrValues); return new \Google\Site_Kit_Dependencies\React\Promise\Promise(function ($resolve, $reject, $notify) use($promisesOrValues, $mapFunc, $cancellationQueue) { resolve($promisesOrValues)->done(function ($array) use($mapFunc, $cancellationQueue, $resolve, $reject, $notify) { if (!\is_array($array) || !$array) { $resolve([]); return; } $toResolve = \count($array); $values = []; foreach ($array as $i => $promiseOrValue) { $cancellationQueue->enqueue($promiseOrValue); $values[$i] = null; resolve($promiseOrValue)->then($mapFunc)->done(function ($mapped) use($i, &$values, &$toResolve, $resolve) { $values[$i] = $mapped; if (0 === --$toResolve) { $resolve($values); } }, $reject, $notify); } }, $reject, $notify); }, $cancellationQueue); } /** * Traditional reduce function, similar to `array_reduce()`, but input may contain * promises and/or values, and `$reduceFunc` may return either a value or a * promise, *and* `$initialValue` may be a promise or a value for the starting * value. * * @param array $promisesOrValues * @param callable $reduceFunc * @param mixed $initialValue * @return PromiseInterface */ function reduce($promisesOrValues, callable $reduceFunc, $initialValue = null) { $cancellationQueue = new \Google\Site_Kit_Dependencies\React\Promise\CancellationQueue(); $cancellationQueue->enqueue($promisesOrValues); return new \Google\Site_Kit_Dependencies\React\Promise\Promise(function ($resolve, $reject, $notify) use($promisesOrValues, $reduceFunc, $initialValue, $cancellationQueue) { resolve($promisesOrValues)->done(function ($array) use($reduceFunc, $initialValue, $cancellationQueue, $resolve, $reject, $notify) { if (!\is_array($array)) { $array = []; } $total = \count($array); $i = 0; // Wrap the supplied $reduceFunc with one that handles promises and then // delegates to the supplied. $wrappedReduceFunc = function ($current, $val) use($reduceFunc, $cancellationQueue, $total, &$i) { $cancellationQueue->enqueue($val); return $current->then(function ($c) use($reduceFunc, $total, &$i, $val) { return resolve($val)->then(function ($value) use($reduceFunc, $total, &$i, $c) { return $reduceFunc($c, $value, $i++, $total); }); }); }; $cancellationQueue->enqueue($initialValue); \array_reduce($array, $wrappedReduceFunc, resolve($initialValue))->done($resolve, $reject, $notify); }, $reject, $notify); }, $cancellationQueue); } /** * @internal */ function _checkTypehint(callable $callback, $object) { if (!\is_object($object)) { return \true; } if (\is_array($callback)) { $callbackReflection = new \ReflectionMethod($callback[0], $callback[1]); } elseif (\is_object($callback) && !$callback instanceof \Closure) { $callbackReflection = new \ReflectionMethod($callback, '__invoke'); } else { $callbackReflection = new \ReflectionFunction($callback); } $parameters = $callbackReflection->getParameters(); if (!isset($parameters[0])) { return \true; } $expectedException = $parameters[0]; // PHP before v8 used an easy API: if (\PHP_VERSION_ID < 70100 || \defined('Google\\Site_Kit_Dependencies\\HHVM_VERSION')) { if (!$expectedException->getClass()) { return \true; } return $expectedException->getClass()->isInstance($object); } // Extract the type of the argument and handle different possibilities $type = $expectedException->getType(); $isTypeUnion = \true; $types = []; switch (\true) { case $type === null: break; case $type instanceof \ReflectionNamedType: $types = [$type]; break; case $type instanceof \Google\Site_Kit_Dependencies\ReflectionIntersectionType: $isTypeUnion = \false; case $type instanceof \ReflectionUnionType: $types = $type->getTypes(); break; default: throw new \LogicException('Unexpected return value of ReflectionParameter::getType'); } // If there is no type restriction, it matches if (empty($types)) { return \true; } foreach ($types as $type) { if (!$type instanceof \ReflectionNamedType) { throw new \LogicException('This implementation does not support groups of intersection or union types'); } // A named-type can be either a class-name or a built-in type like string, int, array, etc. $matches = $type->isBuiltin() && \gettype($object) === $type->getName() || (new \ReflectionClass($type->getName()))->isInstance($object); // If we look for a single match (union), we can return early on match // If we look for a full match (intersection), we can return early on mismatch if ($matches) { if ($isTypeUnion) { return \true; } } else { if (!$isTypeUnion) { return \false; } } } // If we look for a single match (union) and did not return early, we matched no type and are false // If we look for a full match (intersection) and did not return early, we matched all types and are true return $isTypeUnion ? \false : \true; } react/promise/src/Exception/LengthException.php000064400000000173150544704730015670 0ustar00reason = $reason; $message = \sprintf('Unhandled Rejection: %s', \json_encode($reason)); parent::__construct($message, 0); } public function getReason() { return $this->reason; } } psr/cache/src/CacheException.php000064400000000254150544704730012607 0ustar00 * [user-info@]host[:port] * * * If the port component is not set or is the standard port for the current * scheme, it SHOULD NOT be included. * * @see https://tools.ietf.org/html/rfc3986#section-3.2 * @return string The URI authority, in "[user-info@]host[:port]" format. */ public function getAuthority(); /** * Retrieve the user information component of the URI. * * If no user information is present, this method MUST return an empty * string. * * If a user is present in the URI, this will return that value; * additionally, if the password is also present, it will be appended to the * user value, with a colon (":") separating the values. * * The trailing "@" character is not part of the user information and MUST * NOT be added. * * @return string The URI user information, in "username[:password]" format. */ public function getUserInfo(); /** * Retrieve the host component of the URI. * * If no host is present, this method MUST return an empty string. * * The value returned MUST be normalized to lowercase, per RFC 3986 * Section 3.2.2. * * @see http://tools.ietf.org/html/rfc3986#section-3.2.2 * @return string The URI host. */ public function getHost(); /** * Retrieve the port component of the URI. * * If a port is present, and it is non-standard for the current scheme, * this method MUST return it as an integer. If the port is the standard port * used with the current scheme, this method SHOULD return null. * * If no port is present, and no scheme is present, this method MUST return * a null value. * * If no port is present, but a scheme is present, this method MAY return * the standard port for that scheme, but SHOULD return null. * * @return null|int The URI port. */ public function getPort(); /** * Retrieve the path component of the URI. * * The path can either be empty or absolute (starting with a slash) or * rootless (not starting with a slash). Implementations MUST support all * three syntaxes. * * Normally, the empty path "" and absolute path "/" are considered equal as * defined in RFC 7230 Section 2.7.3. But this method MUST NOT automatically * do this normalization because in contexts with a trimmed base path, e.g. * the front controller, this difference becomes significant. It's the task * of the user to handle both "" and "/". * * The value returned MUST be percent-encoded, but MUST NOT double-encode * any characters. To determine what characters to encode, please refer to * RFC 3986, Sections 2 and 3.3. * * As an example, if the value should include a slash ("/") not intended as * delimiter between path segments, that value MUST be passed in encoded * form (e.g., "%2F") to the instance. * * @see https://tools.ietf.org/html/rfc3986#section-2 * @see https://tools.ietf.org/html/rfc3986#section-3.3 * @return string The URI path. */ public function getPath(); /** * Retrieve the query string of the URI. * * If no query string is present, this method MUST return an empty string. * * The leading "?" character is not part of the query and MUST NOT be * added. * * The value returned MUST be percent-encoded, but MUST NOT double-encode * any characters. To determine what characters to encode, please refer to * RFC 3986, Sections 2 and 3.4. * * As an example, if a value in a key/value pair of the query string should * include an ampersand ("&") not intended as a delimiter between values, * that value MUST be passed in encoded form (e.g., "%26") to the instance. * * @see https://tools.ietf.org/html/rfc3986#section-2 * @see https://tools.ietf.org/html/rfc3986#section-3.4 * @return string The URI query string. */ public function getQuery(); /** * Retrieve the fragment component of the URI. * * If no fragment is present, this method MUST return an empty string. * * The leading "#" character is not part of the fragment and MUST NOT be * added. * * The value returned MUST be percent-encoded, but MUST NOT double-encode * any characters. To determine what characters to encode, please refer to * RFC 3986, Sections 2 and 3.5. * * @see https://tools.ietf.org/html/rfc3986#section-2 * @see https://tools.ietf.org/html/rfc3986#section-3.5 * @return string The URI fragment. */ public function getFragment(); /** * Return an instance with the specified scheme. * * This method MUST retain the state of the current instance, and return * an instance that contains the specified scheme. * * Implementations MUST support the schemes "http" and "https" case * insensitively, and MAY accommodate other schemes if required. * * An empty scheme is equivalent to removing the scheme. * * @param string $scheme The scheme to use with the new instance. * @return static A new instance with the specified scheme. * @throws \InvalidArgumentException for invalid or unsupported schemes. */ public function withScheme($scheme); /** * Return an instance with the specified user information. * * This method MUST retain the state of the current instance, and return * an instance that contains the specified user information. * * Password is optional, but the user information MUST include the * user; an empty string for the user is equivalent to removing user * information. * * @param string $user The user name to use for authority. * @param null|string $password The password associated with $user. * @return static A new instance with the specified user information. */ public function withUserInfo($user, $password = null); /** * Return an instance with the specified host. * * This method MUST retain the state of the current instance, and return * an instance that contains the specified host. * * An empty host value is equivalent to removing the host. * * @param string $host The hostname to use with the new instance. * @return static A new instance with the specified host. * @throws \InvalidArgumentException for invalid hostnames. */ public function withHost($host); /** * Return an instance with the specified port. * * This method MUST retain the state of the current instance, and return * an instance that contains the specified port. * * Implementations MUST raise an exception for ports outside the * established TCP and UDP port ranges. * * A null value provided for the port is equivalent to removing the port * information. * * @param null|int $port The port to use with the new instance; a null value * removes the port information. * @return static A new instance with the specified port. * @throws \InvalidArgumentException for invalid ports. */ public function withPort($port); /** * Return an instance with the specified path. * * This method MUST retain the state of the current instance, and return * an instance that contains the specified path. * * The path can either be empty or absolute (starting with a slash) or * rootless (not starting with a slash). Implementations MUST support all * three syntaxes. * * If the path is intended to be domain-relative rather than path relative then * it must begin with a slash ("/"). Paths not starting with a slash ("/") * are assumed to be relative to some base path known to the application or * consumer. * * Users can provide both encoded and decoded path characters. * Implementations ensure the correct encoding as outlined in getPath(). * * @param string $path The path to use with the new instance. * @return static A new instance with the specified path. * @throws \InvalidArgumentException for invalid paths. */ public function withPath($path); /** * Return an instance with the specified query string. * * This method MUST retain the state of the current instance, and return * an instance that contains the specified query string. * * Users can provide both encoded and decoded query characters. * Implementations ensure the correct encoding as outlined in getQuery(). * * An empty query string value is equivalent to removing the query string. * * @param string $query The query string to use with the new instance. * @return static A new instance with the specified query string. * @throws \InvalidArgumentException for invalid query strings. */ public function withQuery($query); /** * Return an instance with the specified URI fragment. * * This method MUST retain the state of the current instance, and return * an instance that contains the specified URI fragment. * * Users can provide both encoded and decoded fragment characters. * Implementations ensure the correct encoding as outlined in getFragment(). * * An empty fragment value is equivalent to removing the fragment. * * @param string $fragment The fragment to use with the new instance. * @return static A new instance with the specified fragment. */ public function withFragment($fragment); /** * Return the string representation as a URI reference. * * Depending on which components of the URI are present, the resulting * string is either a full URI or relative reference according to RFC 3986, * Section 4.1. The method concatenates the various components of the URI, * using the appropriate delimiters: * * - If a scheme is present, it MUST be suffixed by ":". * - If an authority is present, it MUST be prefixed by "//". * - The path can be concatenated without delimiters. But there are two * cases where the path has to be adjusted to make the URI reference * valid as PHP does not allow to throw an exception in __toString(): * - If the path is rootless and an authority is present, the path MUST * be prefixed by "/". * - If the path is starting with more than one "/" and no authority is * present, the starting slashes MUST be reduced to one. * - If a query is present, it MUST be prefixed by "?". * - If a fragment is present, it MUST be prefixed by "#". * * @see http://tools.ietf.org/html/rfc3986#section-4.1 * @return string */ public function __toString(); } psr/http-message/src/ServerRequestInterface.php000064400000023662150544704730015733 0ustar00getQuery()` * or from the `QUERY_STRING` server param. * * @return array */ public function getQueryParams(); /** * Return an instance with the specified query string arguments. * * These values SHOULD remain immutable over the course of the incoming * request. They MAY be injected during instantiation, such as from PHP's * $_GET superglobal, or MAY be derived from some other value such as the * URI. In cases where the arguments are parsed from the URI, the data * MUST be compatible with what PHP's parse_str() would return for * purposes of how duplicate query parameters are handled, and how nested * sets are handled. * * Setting query string arguments MUST NOT change the URI stored by the * request, nor the values in the server params. * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return an instance that has the * updated query string arguments. * * @param array $query Array of query string arguments, typically from * $_GET. * @return static */ public function withQueryParams(array $query); /** * Retrieve normalized file upload data. * * This method returns upload metadata in a normalized tree, with each leaf * an instance of Psr\Http\Message\UploadedFileInterface. * * These values MAY be prepared from $_FILES or the message body during * instantiation, or MAY be injected via withUploadedFiles(). * * @return array An array tree of UploadedFileInterface instances; an empty * array MUST be returned if no data is present. */ public function getUploadedFiles(); /** * Create a new instance with the specified uploaded files. * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return an instance that has the * updated body parameters. * * @param array $uploadedFiles An array tree of UploadedFileInterface instances. * @return static * @throws \InvalidArgumentException if an invalid structure is provided. */ public function withUploadedFiles(array $uploadedFiles); /** * Retrieve any parameters provided in the request body. * * If the request Content-Type is either application/x-www-form-urlencoded * or multipart/form-data, and the request method is POST, this method MUST * return the contents of $_POST. * * Otherwise, this method may return any results of deserializing * the request body content; as parsing returns structured content, the * potential types MUST be arrays or objects only. A null value indicates * the absence of body content. * * @return null|array|object The deserialized body parameters, if any. * These will typically be an array or object. */ public function getParsedBody(); /** * Return an instance with the specified body parameters. * * These MAY be injected during instantiation. * * If the request Content-Type is either application/x-www-form-urlencoded * or multipart/form-data, and the request method is POST, use this method * ONLY to inject the contents of $_POST. * * The data IS NOT REQUIRED to come from $_POST, but MUST be the results of * deserializing the request body content. Deserialization/parsing returns * structured data, and, as such, this method ONLY accepts arrays or objects, * or a null value if nothing was available to parse. * * As an example, if content negotiation determines that the request data * is a JSON payload, this method could be used to create a request * instance with the deserialized parameters. * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return an instance that has the * updated body parameters. * * @param null|array|object $data The deserialized body data. This will * typically be in an array or object. * @return static * @throws \InvalidArgumentException if an unsupported argument type is * provided. */ public function withParsedBody($data); /** * Retrieve attributes derived from the request. * * The request "attributes" may be used to allow injection of any * parameters derived from the request: e.g., the results of path * match operations; the results of decrypting cookies; the results of * deserializing non-form-encoded message bodies; etc. Attributes * will be application and request specific, and CAN be mutable. * * @return array Attributes derived from the request. */ public function getAttributes(); /** * Retrieve a single derived request attribute. * * Retrieves a single derived request attribute as described in * getAttributes(). If the attribute has not been previously set, returns * the default value as provided. * * This method obviates the need for a hasAttribute() method, as it allows * specifying a default value to return if the attribute is not found. * * @see getAttributes() * @param string $name The attribute name. * @param mixed $default Default value to return if the attribute does not exist. * @return mixed */ public function getAttribute($name, $default = null); /** * Return an instance with the specified derived request attribute. * * This method allows setting a single derived request attribute as * described in getAttributes(). * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return an instance that has the * updated attribute. * * @see getAttributes() * @param string $name The attribute name. * @param mixed $value The value of the attribute. * @return static */ public function withAttribute($name, $value); /** * Return an instance that removes the specified derived request attribute. * * This method allows removing a single derived request attribute as * described in getAttributes(). * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return an instance that removes * the attribute. * * @see getAttributes() * @param string $name The attribute name. * @return static */ public function withoutAttribute($name); } psr/http-message/src/RequestInterface.php000064400000011505150544704730014535 0ustar00getHeaders() as $name => $values) { * echo $name . ": " . implode(", ", $values); * } * * // Emit headers iteratively: * foreach ($message->getHeaders() as $name => $values) { * foreach ($values as $value) { * header(sprintf('%s: %s', $name, $value), false); * } * } * * While header names are not case-sensitive, getHeaders() will preserve the * exact case in which headers were originally specified. * * @return string[][] Returns an associative array of the message's headers. Each * key MUST be a header name, and each value MUST be an array of strings * for that header. */ public function getHeaders(); /** * Checks if a header exists by the given case-insensitive name. * * @param string $name Case-insensitive header field name. * @return bool Returns true if any header names match the given header * name using a case-insensitive string comparison. Returns false if * no matching header name is found in the message. */ public function hasHeader($name); /** * Retrieves a message header value by the given case-insensitive name. * * This method returns an array of all the header values of the given * case-insensitive header name. * * If the header does not appear in the message, this method MUST return an * empty array. * * @param string $name Case-insensitive header field name. * @return string[] An array of string values as provided for the given * header. If the header does not appear in the message, this method MUST * return an empty array. */ public function getHeader($name); /** * Retrieves a comma-separated string of the values for a single header. * * This method returns all of the header values of the given * case-insensitive header name as a string concatenated together using * a comma. * * NOTE: Not all header values may be appropriately represented using * comma concatenation. For such headers, use getHeader() instead * and supply your own delimiter when concatenating. * * If the header does not appear in the message, this method MUST return * an empty string. * * @param string $name Case-insensitive header field name. * @return string A string of values as provided for the given header * concatenated together using a comma. If the header does not appear in * the message, this method MUST return an empty string. */ public function getHeaderLine($name); /** * Return an instance with the provided value replacing the specified header. * * While header names are case-insensitive, the casing of the header will * be preserved by this function, and returned from getHeaders(). * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return an instance that has the * new and/or updated header and value. * * @param string $name Case-insensitive header field name. * @param string|string[] $value Header value(s). * @return static * @throws \InvalidArgumentException for invalid header names or values. */ public function withHeader($name, $value); /** * Return an instance with the specified header appended with the given value. * * Existing values for the specified header will be maintained. The new * value(s) will be appended to the existing list. If the header did not * exist previously, it will be added. * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return an instance that has the * new header and/or value. * * @param string $name Case-insensitive header field name to add. * @param string|string[] $value Header value(s). * @return static * @throws \InvalidArgumentException for invalid header names or values. */ public function withAddedHeader($name, $value); /** * Return an instance without the specified header. * * Header resolution MUST be done without case-sensitivity. * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return an instance that removes * the named header. * * @param string $name Case-insensitive header field name to remove. * @return static */ public function withoutHeader($name); /** * Gets the body of the message. * * @return StreamInterface Returns the body as a stream. */ public function getBody(); /** * Return an instance with the specified message body. * * The body MUST be a StreamInterface object. * * This method MUST be implemented in such a way as to retain the * immutability of the message, and MUST return a new instance that has the * new body stream. * * @param StreamInterface $body Body. * @return static * @throws \InvalidArgumentException When the body is not valid. */ public function withBody(\Google\Site_Kit_Dependencies\Psr\Http\Message\StreamInterface $body); } psr/log/Psr/Log/NullLogger.php000064400000001406150544704730012213 0ustar00logger) { }` * blocks. */ class NullLogger extends \Google\Site_Kit_Dependencies\Psr\Log\AbstractLogger { /** * Logs with an arbitrary level. * * @param mixed $level * @param string $message * @param array $context * * @return void * * @throws \Psr\Log\InvalidArgumentException */ public function log($level, $message, array $context = array()) { // noop } } psr/log/Psr/Log/AbstractLogger.php000064400000006614150544704730013052 0ustar00log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::EMERGENCY, $message, $context); } /** * Action must be taken immediately. * * Example: Entire website down, database unavailable, etc. This should * trigger the SMS alerts and wake you up. * * @param string $message * @param mixed[] $context * * @return void */ public function alert($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ALERT, $message, $context); } /** * Critical conditions. * * Example: Application component unavailable, unexpected exception. * * @param string $message * @param mixed[] $context * * @return void */ public function critical($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::CRITICAL, $message, $context); } /** * Runtime errors that do not require immediate action but should typically * be logged and monitored. * * @param string $message * @param mixed[] $context * * @return void */ public function error($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ERROR, $message, $context); } /** * Exceptional occurrences that are not errors. * * Example: Use of deprecated APIs, poor use of an API, undesirable things * that are not necessarily wrong. * * @param string $message * @param mixed[] $context * * @return void */ public function warning($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::WARNING, $message, $context); } /** * Normal but significant events. * * @param string $message * @param mixed[] $context * * @return void */ public function notice($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::NOTICE, $message, $context); } /** * Interesting events. * * Example: User logs in, SQL logs. * * @param string $message * @param mixed[] $context * * @return void */ public function info($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::INFO, $message, $context); } /** * Detailed debug information. * * @param string $message * @param mixed[] $context * * @return void */ public function debug($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::DEBUG, $message, $context); } } psr/log/Psr/Log/LogLevel.php000064400000000526150544704730011654 0ustar00log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::EMERGENCY, $message, $context); } /** * Action must be taken immediately. * * Example: Entire website down, database unavailable, etc. This should * trigger the SMS alerts and wake you up. * * @param string $message * @param array $context * * @return void */ public function alert($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ALERT, $message, $context); } /** * Critical conditions. * * Example: Application component unavailable, unexpected exception. * * @param string $message * @param array $context * * @return void */ public function critical($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::CRITICAL, $message, $context); } /** * Runtime errors that do not require immediate action but should typically * be logged and monitored. * * @param string $message * @param array $context * * @return void */ public function error($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ERROR, $message, $context); } /** * Exceptional occurrences that are not errors. * * Example: Use of deprecated APIs, poor use of an API, undesirable things * that are not necessarily wrong. * * @param string $message * @param array $context * * @return void */ public function warning($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::WARNING, $message, $context); } /** * Normal but significant events. * * @param string $message * @param array $context * * @return void */ public function notice($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::NOTICE, $message, $context); } /** * Interesting events. * * Example: User logs in, SQL logs. * * @param string $message * @param array $context * * @return void */ public function info($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::INFO, $message, $context); } /** * Detailed debug information. * * @param string $message * @param array $context * * @return void */ public function debug($message, array $context = array()) { $this->log(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::DEBUG, $message, $context); } /** * Logs with an arbitrary level. * * @param mixed $level * @param string $message * @param array $context * * @return void * * @throws \Psr\Log\InvalidArgumentException */ public abstract function log($level, $message, array $context = array()); } psr/log/Psr/Log/LoggerAwareInterface.php000064400000000554150544704730014164 0ustar00 ". * * Example ->error('Foo') would yield "error Foo". * * @return string[] */ public abstract function getLogs(); public function testImplements() { $this->assertInstanceOf('Google\\Site_Kit_Dependencies\\Psr\\Log\\LoggerInterface', $this->getLogger()); } /** * @dataProvider provideLevelsAndMessages */ public function testLogsAtAllLevels($level, $message) { $logger = $this->getLogger(); $logger->{$level}($message, array('user' => 'Bob')); $logger->log($level, $message, array('user' => 'Bob')); $expected = array($level . ' message of level ' . $level . ' with context: Bob', $level . ' message of level ' . $level . ' with context: Bob'); $this->assertEquals($expected, $this->getLogs()); } public function provideLevelsAndMessages() { return array(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::EMERGENCY => array(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::EMERGENCY, 'message of level emergency with context: {user}'), \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ALERT => array(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ALERT, 'message of level alert with context: {user}'), \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::CRITICAL => array(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::CRITICAL, 'message of level critical with context: {user}'), \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ERROR => array(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::ERROR, 'message of level error with context: {user}'), \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::WARNING => array(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::WARNING, 'message of level warning with context: {user}'), \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::NOTICE => array(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::NOTICE, 'message of level notice with context: {user}'), \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::INFO => array(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::INFO, 'message of level info with context: {user}'), \Google\Site_Kit_Dependencies\Psr\Log\LogLevel::DEBUG => array(\Google\Site_Kit_Dependencies\Psr\Log\LogLevel::DEBUG, 'message of level debug with context: {user}')); } /** * @expectedException \Psr\Log\InvalidArgumentException */ public function testThrowsOnInvalidLevel() { $logger = $this->getLogger(); $logger->log('invalid level', 'Foo'); } public function testContextReplacement() { $logger = $this->getLogger(); $logger->info('{Message {nothing} {user} {foo.bar} a}', array('user' => 'Bob', 'foo.bar' => 'Bar')); $expected = array('info {Message {nothing} Bob Bar a}'); $this->assertEquals($expected, $this->getLogs()); } public function testObjectCastToString() { if (\method_exists($this, 'createPartialMock')) { $dummy = $this->createPartialMock('Google\\Site_Kit_Dependencies\\Psr\\Log\\Test\\DummyTest', array('__toString')); } else { $dummy = $this->getMock('Google\\Site_Kit_Dependencies\\Psr\\Log\\Test\\DummyTest', array('__toString')); } $dummy->expects($this->once())->method('__toString')->will($this->returnValue('DUMMY')); $this->getLogger()->warning($dummy); $expected = array('warning DUMMY'); $this->assertEquals($expected, $this->getLogs()); } public function testContextCanContainAnything() { $closed = \fopen('php://memory', 'r'); \fclose($closed); $context = array('bool' => \true, 'null' => null, 'string' => 'Foo', 'int' => 0, 'float' => 0.5, 'nested' => array('with object' => new \Google\Site_Kit_Dependencies\Psr\Log\Test\DummyTest()), 'object' => new \DateTime(), 'resource' => \fopen('php://memory', 'r'), 'closed' => $closed); $this->getLogger()->warning('Crazy context data', $context); $expected = array('warning Crazy context data'); $this->assertEquals($expected, $this->getLogs()); } public function testContextExceptionKeyCanBeExceptionOrOtherValues() { $logger = $this->getLogger(); $logger->warning('Random message', array('exception' => 'oops')); $logger->critical('Uncaught Exception!', array('exception' => new \LogicException('Fail'))); $expected = array('warning Random message', 'critical Uncaught Exception!'); $this->assertEquals($expected, $this->getLogs()); } } psr/log/Psr/Log/Test/TestLogger.php000064400000010742150544704730013142 0ustar00 $level, 'message' => $message, 'context' => $context]; $this->recordsByLevel[$record['level']][] = $record; $this->records[] = $record; } public function hasRecords($level) { return isset($this->recordsByLevel[$level]); } public function hasRecord($record, $level) { if (\is_string($record)) { $record = ['message' => $record]; } return $this->hasRecordThatPasses(function ($rec) use($record) { if ($rec['message'] !== $record['message']) { return \false; } if (isset($record['context']) && $rec['context'] !== $record['context']) { return \false; } return \true; }, $level); } public function hasRecordThatContains($message, $level) { return $this->hasRecordThatPasses(function ($rec) use($message) { return \strpos($rec['message'], $message) !== \false; }, $level); } public function hasRecordThatMatches($regex, $level) { return $this->hasRecordThatPasses(function ($rec) use($regex) { return \preg_match($regex, $rec['message']) > 0; }, $level); } public function hasRecordThatPasses(callable $predicate, $level) { if (!isset($this->recordsByLevel[$level])) { return \false; } foreach ($this->recordsByLevel[$level] as $i => $rec) { if (\call_user_func($predicate, $rec, $i)) { return \true; } } return \false; } public function __call($method, $args) { if (\preg_match('/(.*)(Debug|Info|Notice|Warning|Error|Critical|Alert|Emergency)(.*)/', $method, $matches) > 0) { $genericMethod = $matches[1] . ('Records' !== $matches[3] ? 'Record' : '') . $matches[3]; $level = \strtolower($matches[2]); if (\method_exists($this, $genericMethod)) { $args[] = $level; return \call_user_func_array([$this, $genericMethod], $args); } } throw new \BadMethodCallException('Call to undefined method ' . \get_class($this) . '::' . $method . '()'); } public function reset() { $this->records = []; $this->recordsByLevel = []; } } psr/log/Psr/Log/Test/DummyTest.php000064400000000430150544704730013007 0ustar00logger = $logger; } }