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: introduce next generation PHP client surface #612

Merged
merged 38 commits into from
May 1, 2023
Merged

feat: introduce next generation PHP client surface #612

merged 38 commits into from
May 1, 2023

Conversation

noahdietz
Copy link
Collaborator

@noahdietz noahdietz commented Apr 17, 2023

This merges all of the work staged in v2-dev. This includes the following:

  • new, @experimental client surface generated into the .../{Version}/Client and ../{Version}/Client/BaseClient directories
  • generation and injection of request builder fragments for Protobuf messages
  • the concept of PHP-based PostProcessors that can augment the generated tarball & its contents
  • increased request message tree search depth for resources-to-generate (fixes Generate resource name helpers for resources referenced at any level of request messages #453)
  • added descriptors in descriptor config including:
    • callType
    • responseType
    • headerParams
    • templateMap
  • temporary migration_mode attribute with four values:
    • PRE_MIGRATION_SURFACE_ONLY: the current default, only generates the "v1" surface
    • MIGRATION_MODE_UNSPECIFIED: the future default, generates both, but snippets target "v1" surface
    • MIGRATING: generates both, but snippets target "v2" surface
    • NEW_SURFACE_ONLY: the default post-major version bump, only generates the "v2" surface
  • Bumps required gax-php version to 1.19.1 for GAPICs
  • Bumps version of PHP in WORKSPACE to 8.1.13
  • Bumps min version of PHP for generator to 8.1

noahdietz and others added 30 commits August 15, 2022 11:02
Removes some dead code that should've been removed in #510.
* feat: introduce v2 client with new method signatures

* allow fluent methods in fake message

* update goldens
* feat: magic async methods

* update integration goldens

* use trigger_error, simplify call impl

* switch to array_unshift/call_user_func_array

* get rid of extra lines in method doc

* use relative types for method docs
@noahdietz noahdietz marked this pull request as ready for review April 27, 2023 17:55
@noahdietz noahdietz requested review from a team as code owners April 27, 2023 17:55
.github/workflows/bazel_example.yml Outdated Show resolved Hide resolved
src/Ast/AST.php Outdated Show resolved Hide resolved
.github/workflows/phpunit.yml Outdated Show resolved Hide resolved
noahdietz and others added 2 commits May 1, 2023 10:24
Co-authored-by: Brent Shaffer <betterbrent@google.com>
@noahdietz noahdietz merged commit c675c3d into main May 1, 2023
5 checks passed
@noahdietz noahdietz deleted the v2-dev branch May 1, 2023 17:45
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.

Generate resource name helpers for resources referenced at any level of request messages
4 participants