Skip to content

Conversation

@bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Feb 20, 2024

  • add tests
  • E2E manual test
  • Support for GOOGLE_CLOUD_UNIVERSE_DOMAIN environment variable
  • Support universe domain in Batch

See also googleapis/google-api-php-client-services#4675

The following manual test worked using this branch:

$universeDomain = 'MY_UNIVERSE_DOMAIN';
$projectId = 'MY_PROJECT_ID';

$client = new Google\Client([
    'universe_domain' => $universeDomain,
    'scopes' => ['https://www.googleapis.com/auth/cloud-platform'],
]);
$client->useApplicationDefaultCredentials();
$storage = new Google\Service\Storage($client);

$buckets = $storage->buckets->listBuckets($projectId);

foreach ($buckets as $bucket) {
    echo $bucket->name . PHP_EOL;
}

@bshaffer bshaffer marked this pull request as ready for review February 27, 2024 23:24
@bshaffer bshaffer requested a review from a team as a code owner February 27, 2024 23:24
Co-authored-by: Vishwaraj Anand <[email protected]>
@bshaffer bshaffer merged commit 35895de into main Apr 24, 2024
@bshaffer bshaffer deleted the universe-domain branch April 24, 2024 00:58
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