protected function getBucketIdFromName($name)
    {
        $buckets = $this->listBuckets();

        foreach ($buckets as $bucket) {
            if ($bucket->getName() === $name) {
                return $bucket->getId();
            }
        }

        return null;
    }
protected function getBucketIdFromName($name)
    {
        $buckets = $this->listBuckets();

        foreach ($buckets as $bucket) {
            if ($bucket->getName() === $name) {
                return $bucket->getId();
            }
        }

        return null;
    }
protected function getBucketIdFromName ( $ name ) { $ buckets = $ this -> listBuckets ( ) ; foreach ( $ buckets as $ bucket ) { if ( $ bucket -> getName ( ) === $ name ) { return $ bucket -> getId ( ) ; } } return null ; }
Maps the provided bucket name to the appropriate bucket ID.

@param $name
@return null
Maps the provided bucket name to the appropriate bucket ID .