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-17 UTC."],[[["The webpage provides documentation for the `TemplatedResourceName` class in the Google API Common library, detailing its functionality for representing and manipulating resource names."],["`TemplatedResourceName` implements the `Map` interface, allowing it to store and access variable assignments from a `PathTemplate`, as well as being able to reproduce a resource's string representation."],["There are several static `create` methods provided to instantiate `TemplatedResourceName` objects based on different inputs, such as a `PathTemplate` and a path string or a `Map` of variable values."],["The class contains methods to resolve a resource name to a resource object, check for the presence of an endpoint, retrieve parent names, check if the resource name starts with a provided parent, and set an endpoint."],["This page lists numerous versions of the `TemplatedResourceName` class, with the latest version being 2.46.1, and version 2.32.0 is the version whose documentation is being presented."]]],[]]