-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
googleapis/gapic-generator-typescript
#71Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
// This API contains "path templates"; forward-slash-separated
// identifiers to uniquely identify resources within the API.
// Create useful helper objects for these.
this._pathTemplates = {
locationPathTemplate: new gaxModule.PathTemplate(
'projects/{project}/locations/{location}'
),
};
/**
* Return a fully-qualified location resource name string.
*
* @param {String} project
* @param {String} location
* @returns {String}
*/
locationPath(project, location) {
return this._pathTemplates.locationPathTemplate.render({
project: project,
location: location,
});
}
/**
* Parse the glossaryName from a glossary resource.
*
* @param {String} glossaryName
* A fully-qualified path representing a glossary resources.
* @returns {String} - A string representing the location.
*/
matchLocationFromGlossaryName(glossaryName) {
return this._pathTemplates.glossaryPathTemplate.match(glossaryName)
.location;
}
Metadata
Metadata
Assignees
Labels
type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.‘Nice-to-have’ improvement, new feature or different behavior or design.