Copied!

Represents an absolute resource template, meaning that it will always contain a leading slash, and may contain a trailing verb (":").

Examples: /projects /projects/{project} /foo/{bar=**}/fizz/*:action

Templates use the syntax of the API platform; see https://github.com/googleapis/api-common-protos/blob/master/google/api/http.proto for details. A template consists of a sequence of literals, wildcards, and variable bindings, where each binding can have a sub-path. A string representation can be parsed into an instance of AbsoluteResourceTemplate, which can then be used to perform matching and instantiation.

  • internal
CloneableInstantiable
Methods
public __construct(string $path)
 

AbsoluteResourceTemplate constructor.

  • param string $path
  • throws \ValidationException
public __toString() : string
 
    public match(string $path)
     
      public matches(string $path)
       
        public render(array $bindings)
         
          Properties
          private Google\ApiCore\ResourceTemplate\RelativeResourceTemplate $resourceTemplate
          private $verb = NULL
           
          • var string|bool
          Methods
          private matchException(string $path, string $reason)
          private renderVerb()
          private verbSeparatorPos(string $path)
          © 2025 Bruce Wells