googleapis / googleapis/gapic-generator-php
LongRunningOperationProviderInterface for LRO Clients
- Dominant language
- PHP
- Stars
- 14
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
similar to https://github.com/googleapis/gapic-generator-php/issues/679
See also https://github.com/googleapis/google-cloud-php/pull/7841#discussion_r2418109145
Clients which perform long running operations have a few methods in common, and so we could implement a `LongRunningOperationProviderInterface` (or something along those lines) which has the following methods:
- `public function resumeOperation($operationName, $methodName = null): OperationResponse`
- `public function getOperationsClient(): OperationsClient`
**NOTE**: We should also add return types for the above methods, and for `createOperationsClient`, while we're at it
Contributor guide
Assessment
This issue has not been assessed yet.