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 is designed for representing and managing resource names, utilizing `PathTemplate` to define the structure and variable assignments within the name."],["This class allows for the creation of new resource names based on a provided template and either a matching path or a set of variable-value pairs, and it will return a null value if the path does not match the provided template."],["`TemplatedResourceName` functions as an unmodifiable map interface, enabling access to variable assignments, and it provides methods to produce the string representation of the resource name and determine its parent name."],["The class offers static methods for creating instances, including `create`, `createFromFullName`, and `registerResourceNameResolver`, alongside instance methods for manipulating and analyzing the resource name."],["The `resolve` method allows for the resolution of a resource name into an actual resource, utilizing an associated API, with the ability to specify a version for API calls, and the latest version available is 2.46.1."]]],[]]