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 represents and manages resource names, using `PathTemplate` for pattern matching, variable assignments, and optional endpoints."],["This class functions as an unmodifiable map, allowing access to variable assignments within a resource name, and provides methods for constructing new names and manipulating existing ones."],["`TemplatedResourceName` offers static methods for creating resource names from a `PathTemplate` and either a path or a map of values, with options for paths containing an endpoint."],["The class includes methods for resolving a resource name into a resource by interacting with the associated API, which can be version specific."],["It also provides functionalities for checking for endpoints, determining parent resource names, verifying if a resource name starts with a specific parent, and obtaining the associated `PathTemplate`."]]],[]]