NodeGroups.fromApiKey constructor
NodeGroups.fromApiKey([
- String? apiKey
Creates a NodeGroups that does authentication through an API key.
If called without arguments, the API key is taken from these environment variables:
GOOGLE_API_KEY
Throws ConfigurationException if called without arguments and none of the above environment variables are set. On the web, always throws ConfigurationException if called without arguments.
See API Keys Overview.
Implementation
factory NodeGroups.fromApiKey([String? apiKey]) =>
NodeGroups(client: httpClientFromApiKey(apiKey, _apiKeys));