Core/src/LongRunning/LROTrait.php
public function longRunningOperations(array $options = [])
    {
        if (is_null($this->lroResource)) {
            throw new \BadMethodCallException('This service does list support listing operations.');
        }

        $resultLimit = $this->pluck('resultLimit', $options, false) ?: 0;

        $options['name'] = $this->lroResource .'/operations';

        return new ItemIterator(
            new PageIterator(
                function (array $operation) {
                    return $this->resumeOperation($operation['name'], $operation);
                },
                [$this->lroConnection, 'operations'],
                $options,
                [
                    'itemsKey' => 'operations',
                    'resultLimit' => $resultLimit
                ]
            )
        );
    }
public function longRunningOperations(array $options = [])
    {
        if (is_null($this->lroResource)) {
            throw new \BadMethodCallException('This service does list support listing operations.');
        }

        $resultLimit = $this->pluck('resultLimit', $options, false) ?: 0;

        $options['name'] = $this->lroResource .'/operations';

        return new ItemIterator(
            new PageIterator(
                function (array $operation) {
                    return $this->resumeOperation($operation['name'], $operation);
                },
                [$this->lroConnection, 'operations'],
                $options,
                [
                    'itemsKey' => 'operations',
                    'resultLimit' => $resultLimit
                ]
            )
        );
    }
public function longRunningOperations ( array $ options = [ ] ) { if ( is_null ( $ this -> lroResource ) ) { throw new \ BadMethodCallException ( 'This service does list support listing operations.' ) ; } $ resultLimit = $ this -> pluck ( 'resultLimit' , $ options , false ) ? : 0 ; $ options [ 'name' ] = $ this -> lroResource . '/operations' ; return new ItemIterator ( new PageIterator ( function ( array $ operation ) { return $ this -> resumeOperation ( $ operation [ 'name' ] , $ operation ) ; } , [ $ this -> lroConnection , 'operations' ] , $ options , [ 'itemsKey' => 'operations' , 'resultLimit' => $ resultLimit ] ) ) ; }
List long running operations.

@param array $options [optional] {
Configuration Options.

@type string $name The name of the operation collection.
@type string $filter The standard list filter.
@type int $pageSize Maximum number of results to return per
request.
@type int $resultLimit Limit the number of results returned in total.
**Defaults to** `0` (return all results).
@type string $pageToken A previously-returned page token used to
resume the loading of results from a specific point.
}
@return ItemIterator<InstanceConfiguration>
List long running operations .