PHP Трейт Google\Cloud\RequestWrapperTrait

Показать файл Открыть проект

Открытые методы

Метод Описание
getCredentialsFetcher ( ) : Google\Auth\FetchAuthTokenInterface Gets the credentials fetcher and sets up caching. Precedence begins with user supplied credentials fetcher instance, followed by a reference to a key file stream, and finally the application default credentials.
setCommonDefaults ( array $config ) Sets common defaults between request wrappers.

Описание методов

getCredentialsFetcher() публичный Метод

Gets the credentials fetcher and sets up caching. Precedence begins with user supplied credentials fetcher instance, followed by a reference to a key file stream, and finally the application default credentials.
public getCredentialsFetcher ( ) : Google\Auth\FetchAuthTokenInterface
Результат Google\Auth\FetchAuthTokenInterface

setCommonDefaults() публичный Метод

Sets common defaults between request wrappers.
public setCommonDefaults ( array $config )
$config array { Configuration options. @type CacheItemPoolInterface $authCache A cache for storing access tokens. **Defaults to** a simple in memory implementation. @type array $authCacheOptions Cache configuration options. @type FetchAuthTokenInterface $credentialsFetcher A credentials fetcher instance. @type string $keyFile The contents of the service account credentials .json file retrieved from the Google Developers Console. @type int $retries Number of retries for a failed request. **Defaults to** `3`. @type array $scopes Scopes to be used for the request. }