getOperation() public method

public getOperation ( array $args = [] ) : array
$args array
return array
Beispiel #1
0
 /**
  * Triggers a network request to reload the operation's details.
  *
  * Example:
  * ```
  * $operation->reload();
  * $info = $operation->info();
  * print_r($info['response']);
  * ```
  *
  * @codingStandardsIgnoreStart
  * @see https://cloud.google.com/speech/reference/rest/v1beta1/operations/get Operations get API documentation.
  * @see https://cloud.google.com/speech/reference/rest/v1beta1/operations#Operation Operation resource documentation.
  * @codingStandardsIgnoreEnd
  *
  * @param array $options [optional] Configuration Options.
  * @return array
  */
 public function reload(array $options = [])
 {
     return $this->info = $this->connection->getOperation($options + ['name' => $this->name]);
 }