Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support new surface operations clients #569

Merged
merged 14 commits into from
May 29, 2024

Conversation

bshaffer
Copy link
Contributor

@bshaffer bshaffer commented May 17, 2024

See googleapis/gapic-generator-php#712. Adds 3 options to the OperationsResponse class:

  • $getOperationRequest
  • $cancelOperationRequest
  • $deleteOperationRequest

These are used to form the request to the V2 Operations client

Pros

  • Does not use ReflectionMethod to determine first argument Request class, which is a hack

Cons

  • Requires a change to the existing longRunning descriptors

Alternatives Considered
We could add a ReflectionMethod to determine the request class of the Operation methods (see #570)

@bshaffer bshaffer requested a review from noahdietz May 20, 2024 21:48
@bshaffer bshaffer marked this pull request as ready for review May 20, 2024 21:48
@bshaffer bshaffer requested review from a team as code owners May 20, 2024 21:48
Copy link
Contributor

@noahdietz noahdietz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM

src/OperationResponse.php Outdated Show resolved Hide resolved
src/OperationResponse.php Outdated Show resolved Hide resolved
@bshaffer bshaffer merged commit fa06e73 into main May 29, 2024
13 checks passed
@bshaffer bshaffer deleted the support-operations-for-compute-v2 branch May 29, 2024 22:33
@bshaffer bshaffer changed the title feat: add support for new surface custom operations clients feat: feat: support new surface operations clients May 29, 2024
@bshaffer bshaffer changed the title feat: feat: support new surface operations clients feat: support new surface operations clients May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants