Sha256: beb59c38cf1160c0f6e6997c28460e2a0017c210f5c2fc0f1bfc364f50a8f181

Contents?: true

Size: 1.1 KB

Versions: 26

Compression:

Stored size: 1.1 KB

Contents

# frozen_string_literal: true

# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require "gapic/path_pattern/parser"

module Gapic
  # TODO: Enter docs
  # Dooooooooocs!!!
  module PathPattern
    # Parse a URI path pattern.
    #
    # @see https://google.aip.dev/122 AIP-122 Resource names
    # @see https://google.aip.dev/123 AIP-123 Resource types
    #
    # @param path_pattern [String] The URI path template to be parsed.
    #
    # @return [PathPattern::Pattern] The parsed pattern
    #   path template.
    def self.parse path_pattern
      Parser.parse path_pattern
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
gapic-generator-0.11.0 lib/gapic/path_pattern.rb
gapic-generator-0.10.1 lib/gapic/path_pattern.rb
gapic-generator-0.10.0 lib/gapic/path_pattern.rb
gapic-generator-0.9.1 lib/gapic/path_pattern.rb
gapic-generator-0.9.0 lib/gapic/path_pattern.rb
gapic-generator-0.8.0 lib/gapic/path_pattern.rb
gapic-generator-0.7.5 lib/gapic/path_pattern.rb
gapic-generator-0.7.4 lib/gapic/path_pattern.rb
gapic-generator-0.7.2 lib/gapic/path_pattern.rb
gapic-generator-0.7.1 lib/gapic/path_pattern.rb
gapic-generator-0.7.0 lib/gapic/path_pattern.rb
gapic-generator-0.6.15 lib/gapic/path_pattern.rb
gapic-generator-0.6.14 lib/gapic/path_pattern.rb
gapic-generator-0.6.13 lib/gapic/path_pattern.rb
gapic-generator-0.6.12 lib/gapic/path_pattern.rb
gapic-generator-0.6.11 lib/gapic/path_pattern.rb
gapic-generator-0.6.10 lib/gapic/path_pattern.rb
gapic-generator-0.6.9 lib/gapic/path_pattern.rb
gapic-generator-0.6.8 lib/gapic/path_pattern.rb
gapic-generator-0.6.7 lib/gapic/path_pattern.rb