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 document outlines the `TemplatedResourceName` class in Java, which is designed for representing and managing resource names using path templates."],["The class implements the `Map` interface, allowing it to work with variable assignments within a path template, and it provides methods to create, resolve, and manipulate resource names."],["`TemplatedResourceName` can be constructed using static methods such as `create`, `createFromFullName`, which handle path matching and value assignment, and you can also register a custom resolver for specific resource name resolution."],["The class provides various methods for interacting with resource names, including checking for endpoints (`hasEndpoint`), retrieving parent names (`parentName`), and verifying if a resource name is a child of another (`startsWith`)."],["The document includes a detailed list of versions, ranging from 2.46.1 (latest) down to 2.1.2, which can be used to select the correct `TemplatedResourceName` class, in addition to including a specific version 2.35.0."]]],[]]