gapic-generator/lib/gapic/model/method/routing.rb
# Converts path template simplified forms into canonical
# ResourceId representations by adding a field as a Resource Id
# @param template [String]
# @param field [String]
# @return [String]
Converts path template simplified forms into canonical
ResourceId representations by adding a field as a Resource Id
Converts path template simplified forms into canonical ResourceId representations by adding a field as a Resource Id
def infer_template template, field
            if template.nil? || template.empty?
              return "{#{field}=**}"
            end
            if template.strip == "**"
              return "{#{field}=**}"
            end
            if template.strip == "*"
              return "{#{field}=*}"
            end
            template
          end
def infer_template template , field if template . nil? || template . empty? return "{#{field}=**}" end if template . strip == "**" return "{#{field}=**}" end if template . strip == "*" return "{#{field}=*}" end template end
Converts path template simplified forms into canonical
ResourceId representations by adding a field as a Resource Id
Converts path template simplified forms into canonical ResourceId representations by adding a field as a Resource Id
None
String
template
field
None