GoogleCloudPlatform / php-docs-samples

A collection of samples that demonstrate how to call Google Cloud services from PHP.
http://cloud.google.com/php
Apache License 2.0
961 stars 1.03k forks source link

feat(storage): Add samples for HNS #2011

Closed vishwarajanand closed 4 months ago

vishwarajanand commented 4 months ago

Added sample for HNS:

➜  storage git:(main) ✗ ../testing/vendor/bin/phpunit -c phpunit.xml.dist --filter="::testCreateBucketHnsEnabled"
PHPUnit 9.6.19 by Sebastian Bergmann and contributors.

Warning:       XDEBUG_MODE=coverage or xdebug.mode=coverage has to be set

.                                                                   1 / 1 (100%)

Time: 00:11.752, Memory: 12.00 MB

OK (1 test, 3 assertions)
➜  storage git:(main) ✗ 

partially addresses https://github.com/googleapis/google-cloud-php/issues/7357

snippet-bot[bot] commented 4 months ago

Here is the summary of changes.

You are about to add 1 region tag. - [storage/src/create_bucket_hierarchical_namespace.php:26](https://github.com/GoogleCloudPlatform/php-docs-samples/blob/9cfe0649eab81729029a372300e093c7a11849ff/storage/src/create_bucket_hierarchical_namespace.php#L26), tag `storage_create_bucket_hierarchical_namespace`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below: