googleapis / googleapis/gapic-generator-php

LongRunningOperationProviderInterface for LRO Clients

Open
#783 0 comments 0 reactions 0 assignees View on GitHub
priority: p3 type: feature request
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.