Skip to content

Commit

Permalink
Update ML client constructor docs (#795)
Browse files Browse the repository at this point in the history
* Update LanguageClient constructor docs

* Update other ML clients
  • Loading branch information
jdpedrie authored and dwsupplee committed Dec 14, 2017
1 parent 7fc2a8b commit ac34587
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
6 changes: 4 additions & 2 deletions src/Language/LanguageClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,13 @@ class LanguageClient
/**
* Create a Language client.
*
* Note that when creating a LanguageClient instance, setting
* `$config.projectId` is not supported. To switch between projects, you
* must provide credentials with access to the project.
*
* @param array $config [optional] {
* Configuration Options.
*
* @type string $projectId The project ID from the Google Developer's
* Console.
* @type CacheItemPoolInterface $authCache A cache for storing access
* tokens. **Defaults to** a simple in memory implementation.
* @type array $authCacheOptions Cache configuration options.
Expand Down
6 changes: 4 additions & 2 deletions src/Speech/SpeechClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,13 @@ class SpeechClient
/**
* Create a Speech client.
*
* Note that when creating a SpeechClient instance, setting
* `$config.projectId` is not supported. To switch between projects, you
* must provide credentials with access to the project.
*
* @param array $config [optional] {
* Configuration Options.
*
* @type string $projectId The project ID from the Google Developer's
* Console.
* @type CacheItemPoolInterface $authCache A cache for storing access
* tokens. **Defaults to** a simple in memory implementation.
* @type array $authCacheOptions Cache configuration options.
Expand Down
6 changes: 4 additions & 2 deletions src/Translate/TranslateClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,17 @@ class TranslateClient
/**
* Create a Translate client.
*
* Note that when creating a TranslateClient instance, setting
* `$config.projectId` is not supported. To switch between projects, you
* must provide credentials with access to the project.
*
* @param array $config [optional] {
* Configuration Options.
*
* @type string $key A public API access key.
* @type string $target The target language to assign to the client.
* Must be a valid ISO 639-1 language code. **Defaults to** `"en"`
* (English).
* @type string $projectId The project ID from the Google Developer's
* Console.
* @type CacheItemPoolInterface $authCache A cache used storing access
* tokens. **Defaults to** a simple in memory implementation.
* @type array $authCacheOptions Cache configuration options.
Expand Down
6 changes: 4 additions & 2 deletions src/Vision/VisionClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ class VisionClient
/**
* Create a Vision client.
*
* Note that when creating a VisionClient instance, setting
* `$config.projectId` is not supported. To switch between projects, you
* must provide credentials with access to the project.
*
* @param array $config [optional] {
* Configuration Options.
*
* @type string $projectId The project ID from the Google Developer's
* Console.
* @type CacheItemPoolInterface $authCache A cache for storing access
* tokens. **Defaults to** a simple in memory implementation.
* @type array $authCacheOptions Cache configuration options.
Expand Down

0 comments on commit ac34587

Please sign in to comment.