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 Java represents and manages resource names, which are defined by a `PathTemplate`, variable assignments, and an optional endpoint."],["This class acts as an unmodifiable map, allowing you to work with variable assignments and providing methods to generate string representations, construct new names, and dereference names."],["You can create a `TemplatedResourceName` using static methods like `create` with a template and path, `create` with a template and variable value assignments, or `createFromFullName` for paths that include an endpoint."],["The class can be used to resolve resource names to resources by calling the associated API using the `\u003cT\u003eresolve` method, specifying an optional version to call a specific API version."],["The `TemplatedResourceName` class provides several methods to interact with the resource names, such as retrieving the parent name, checking for the existence of an endpoint, and verifying if a name starts with a specific parent."]]],[]]