ClientOptions
class ClientOptions implements ArrayAccess (View source)
The ClientOptions class adds typing to the associative array of options passed into each API client constructor. To use this class directly, pass the result of {ClientOptions::toArray} to the client constructor:
use Google\ApiCore\ClientOptions;
use Google\Cloud\SecretManager\Client\SecretManagerClient;
$options = new ClientOptions([
'credentials' => '/path/to/my/credentials.json'
]);
$secretManager = new SecretManagerClient($options->toArray());
Note: It's possible to pass an associative array to the API clients as well, as ClientOptions will still be used internally for validation.
Traits
Trait implemented by any class representing an associative array of PHP options.
Methods
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
bool
offsetExists($offset)
No description
offsetGet($offset)
No description
void
offsetSet($offset, $value)
No description
void
offsetUnset($offset)
No description
array
toArray()
No description
__construct(array $options)
No description
void
setApiEndpoint(string|null $apiEndpoint)
No description
void
setDisableRetries(bool $disableRetries)
No description
void
setClientConfig(string|array $clientConfig)
No description
void
setCredentials(string|array|FetchAuthTokenInterface|CredentialsWrapper|null $credentials)
No description
void
setCredentialsConfig(array $credentialsConfig)
No description
void
setTransport(string|TransportInterface|null $transport)
No description
void
setTransportConfig(TransportOptions $transportConfig)
No description
void
setVersionFile(string|null $versionFile)
No description
void
setServiceName(string|null $serviceName)
No description
void
setLibName(string|null $libName)
No description
void
setLibVersion(string|null $libVersion)
No description
void
setGapicVersion(string|null $gapicVersion)
No description
setClientCertSource(callable|null $clientCertSource)
No description
setUniverseDomain(string|null $universeDomain)
No description