gapic-generator/lib/gapic/presenters/method_rest_presenter.rb
##
# Performs a limited version of grpc transcoding to create a string that will interpolate
# the values from the request object to create a request URI at runtime.
# Currently only supports "value" into "request_object.value"
# @param [String] request_obj_name the name of the request object for the interpolation
#   defaults to "request_pb"
# @return [String] A string to interpolate values from the request object into URI
#
Performs a limited version of grpc transcoding to create a string that will interpolate
the values from the request object to create a request URI at runtime.
Currently only supports "value" into "request_object.value"
Performs a limited version of grpc transcoding to create a string that will interpolate the values from the request object to create a request URI at runtime . Currently only supports " value " into " request_object . value "
def uri_interpolated request_obj_name = "request_pb"
        return path unless routing_params?
        routing_params.reduce path do |uri, param|
          param_esc = Regexp.escape param
          uri.gsub(/{#{param_esc}[^}]*}/, "\#{#{request_obj_name}.#{param}}")
        end
      end
def uri_interpolated request_obj_name = "request_pb" return path unless routing_params? routing_params . reduce path do | uri , param | param_esc = Regexp . escape param uri . gsub ( / { #{ param_esc } [^}]*} / , "\#{#{request_obj_name}.#{param}}" ) end end
Performs a limited version of grpc transcoding to create a string that will interpolate
the values from the request object to create a request URI at runtime.
Performs a limited version of grpc transcoding to create a string that will interpolate the values from the request object to create a request URI at runtime .
A string to interpolate values from the request object into URI
A string to interpolate values from the request object into URI
String
request_obj_name
request_obj_name the name of the request object for the interpolation defaults to "request_pb"
request_obj_name the name of the request object for the interpolation defaults to " request_pb "
"request_pb"