Cloud Storage Client - Class BucketIterator (1.49.0)

Reference documentation and code samples for the Cloud Storage Client class BucketIterator.

Iterates over a set of buckets.

Use the unreachable() method to get a list of bucket names that could not be retrieved. This is only populated when the returnPartialSuccess is set to true

Namespace

Google \ Cloud \ Storage

Methods

__construct

Parameters
Name Description
iterator Google\Cloud\Core\Iterator\PageIterator
unreachable ArrayObject

unreachable

Get the list of unreachable buckets.

Returns
Type Description
string[]