class Fastly::BelongsToServiceAndVersion

def self.path_escape(path)

URI escape (including spaces) the path and return it
def self.path_escape(path)
  @uri_parser ||= URI::Parser.new
  # the leading space in the escape character set is intentional
  @uri_parser.escape(path, ' !*\'();:@&=+$,/?#[]')
end