    # File lib/fog/hp/models/storage/directory.rb, line 107
            def cdn_public_url
              requires :key
              @cdn_public_url ||= begin
                # return the CDN public url from the appropriate uri from the header
                begin response = connection.cdn.head_container(key)
                  if response.headers['X-Cdn-Enabled'] == 'True'
                    if connection.hp_cdn_ssl == true
                      response.headers.fetch('X-Cdn-Ssl-Uri', nil)
                    else
                      response.headers.fetch('X-Cdn-Uri', nil)
                    end
                  end
                rescue Fog::CDN::HP::NotFound => err
                  nil
                end
              end
            end