Class for representing and working with resource names.
A resource name is represented by PathTemplate, an assignment to variables in the
template, and an optional endpoint. The ResourceName class implements the map interface
(unmodifiable) to work with the variable assignments, and has methods to reproduce the string
representation of the name, to construct new names, and to dereference names into resources.
As a resource name essentially represents a match of a path template against a string, it can
be also used for other purposes than naming resources. However, not all provided methods may make
sense in all applications.
Attempts to resolve a resource name into a resource, by calling the associated API. The
resource name must have an endpoint. An optional version can be specified to determine in which
version of the API to call.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["This webpage provides documentation for the `TemplatedResourceName` class, which is designed for representing and managing resource names in a structured way, and is currently on version 2.41.0."],["The `TemplatedResourceName` class implements the `Map` interface, allowing it to store variable assignments from a path template, and includes methods for creating, comparing, and manipulating resource names."],["The class offers static methods for creating new resource names using a `PathTemplate` and either a path string or a map of variable values, in addition to methods to register a resource name resolver."],["`TemplatedResourceName` allows for the resolution of a resource name into an actual resource, if it has an associated endpoint, and also contains methods for retrieving the parent resource name and checking if it starts with a given parent name."],["The provided documentation list out the various versions of the `TemplatedResourceName`, which has been up to version 2.46.1 (latest) and down to version 2.1.2."]]],[]]