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."],[[["The `TemplatedResourceName` class in the Java API Common library is used to represent and manipulate resource names, which are based on `PathTemplate` and variable assignments."],["This class implements the `Map` interface, allowing it to handle variable assignments, and it also provides methods for reproducing the string representation of the name."],["The latest version of the API available is 2.46.1, and the page provides a list of links to the API documentation for several previous versions, going back to 2.1.2."],["`TemplatedResourceName` can be used to create new names, resolve names into resources, and find the parent resource name, and it also supports the inclusion of an endpoint within the resource name."],["The class offers both static and instance methods for creating and managing resource names, including methods to check for endpoints, templates, and parent-child relationships between names."]]],[]]