Skip to content

feat: move GAX into monorepo with rebase#9253

Open
bshaffer wants to merge 490 commits into
mainfrom
move-gax-replay-commits-rebase
Open

feat: move GAX into monorepo with rebase#9253
bshaffer wants to merge 490 commits into
mainfrom
move-gax-replay-commits-rebase

Conversation

@bshaffer

Copy link
Copy Markdown
Contributor

Same as #9252, but rebases origin/main to remove our merge commit (which is blocked by the org admin)

bshaffer and others added 30 commits June 12, 2026 11:13
…/gax-php#325)

 - Adds client option `clientCertSource` 
 - Adds support for client certs to all three transports
 - Verified calls to mTLS endpoint works locally

**Usage**

```php
use Google\Cloud\PubSub\V1\PublisherClient;

$projectId = 'YOUR_PROJECT_ID';
$pubsub = new PublisherClient([
    'apiEndpoint' => 'pubsub.mtls.googleapis.com',
    'clientCertSource' => function () { 
         return file_get_contents(__DIR__ . '/cert.pem');
    },
]);

$topics = $pubsub->listTopics('projects/' . $projectId);
```

**TODO**
 - [x] Add support for checking the existence and loading the default client cert (from `~/.secureConnect/context_aware_metadata.json`) (done in googleapis/google-auth-library-phphttps://github.com/googleapis/gax-php/issues/353)
 - [x] Add support for `GOOGLE_API_USE_MTLS_ENDPOINT` and `GOOGLE_API_USE_CLIENT_CERTIFICATE`
 - [x] Add support to automatically use mTLS endpoint for `apiEndpoint`
 - [x] Tests
* Removed references to GuzzleHttp/Psr7 deprecated methods and used the alternatives instead

* Bumped version for google/auth and guzzlehttp/psr7 to support 2.x branch for psr7
* feat: add REST server streaming support

* refactor & fix premature closing/cancelation

* refactor to Status

* set all fields of MockStatus in MockServerStreamingCall

* support streaming request exceptions

* check if index 0 exists in exception body

* skip newlines that break up items

* add more tests for weird streams

Co-authored-by: Lucas Michot <lmichot@gmail.com>
Co-authored-by: Brent Shaffer <betterbrent@google.com>
…essage (googleapis/gax-php#354)

* feat: testing purposes

* updating ApiException

* updating REST transport

* update RPC status and tests

* update for RpcStatus and to return null instead of empty string

* refactor methods

* fix formatting

* changing null coalesce

* fix interceptor test

* interceptor test

* Revert "interceptor test"

This reverts commit e735996a278553994ddc10f83ad53f858a47e366.

* Revert "fix interceptor test"

This reverts commit 4ac0c50230bb7ef338e8bfff1d6ea21ebdd80d73.

* fix: convert RepeatedField metadata into array (googleapis/gax-php#365)

* update tests and decodeMetadataErrorInfo fn

* update decodeMetadataErrorInfo

* update containsErrorInfo

* update php docs and tests

* refactor

* refactor methods

* add newline

Co-authored-by: Noah Dietz <noahdietz@users.noreply.github.com>
release-please Bot and others added 26 commits June 12, 2026 11:14
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
@bshaffer bshaffer requested a review from a team as a code owner June 12, 2026 18:16
@bshaffer bshaffer enabled auto-merge (rebase) June 12, 2026 18:18
auto-merge was automatically disabled June 12, 2026 19:38

Rebase failed

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.