gapic-generator/lib/gapic/path_pattern/segment.rb
##
# Returns a segment's pattern filled with dummy values
#   names of the values are generated starting from the index provided
# @param start_index [Integer] a starting index for dummy value generation
# @return [String] a pattern filled with dummy values
Returns a segment's pattern filled with dummy values
names of the values are generated starting from the index provided
Returns a segment ' s pattern filled with dummy values names of the values are generated starting from the index provided
def expected_path_for_dummy_values start_index
        return "value#{start_index}" if type == :simple_resource_id
        resource_names.each_with_index.reduce pattern do |exp_path, (res_name, index)|
          exp_path.sub "{#{res_name}}", "value#{start_index + index}"
        end
      end
def expected_path_for_dummy_values start_index return "value#{start_index}" if type == :simple_resource_id resource_names . each_with_index . reduce pattern do | exp_path , ( res_name , index ) | exp_path . sub "{#{res_name}}" , "value#{start_index + index}" end end
Returns a segment's pattern filled with dummy values
names of the values are generated starting from the index provided
Returns a segment ' s pattern filled with dummy values names of the values are generated starting from the index provided
a pattern filled with dummy values
a pattern filled with dummy values
String
start_index
a starting index for dummy value generation
a starting index for dummy value generation