@google-cloud/bigquery-storage
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -119,2 +119,17 @@ import * as gax from 'google-gax'; | ||
/** | ||
* Return a fully-qualified project resource name string. | ||
* | ||
* @param {string} project | ||
* @returns {string} Resource name string. | ||
*/ | ||
projectPath(project: string): string; | ||
/** | ||
* Parse the project from Project resource. | ||
* | ||
* @param {string} projectName | ||
* A fully-qualified path representing Project resource. | ||
* @returns {string} A string representing the project. | ||
*/ | ||
matchProjectFromProjectName(projectName: string): string | number; | ||
/** | ||
* Return a fully-qualified readSession resource name string. | ||
@@ -121,0 +136,0 @@ * |
@@ -125,2 +125,3 @@ "use strict"; | ||
this.pathTemplates = { | ||
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'), | ||
readSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sessions/{session}'), | ||
@@ -379,2 +380,23 @@ readStreamPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sessions/{session}/streams/{stream}'), | ||
/** | ||
* Return a fully-qualified project resource name string. | ||
* | ||
* @param {string} project | ||
* @returns {string} Resource name string. | ||
*/ | ||
projectPath(project) { | ||
return this.pathTemplates.projectPathTemplate.render({ | ||
project: project, | ||
}); | ||
} | ||
/** | ||
* Parse the project from Project resource. | ||
* | ||
* @param {string} projectName | ||
* A fully-qualified path representing Project resource. | ||
* @returns {string} A string representing the project. | ||
*/ | ||
matchProjectFromProjectName(projectName) { | ||
return this.pathTemplates.projectPathTemplate.match(projectName).project; | ||
} | ||
/** | ||
* Return a fully-qualified readSession resource name string. | ||
@@ -381,0 +403,0 @@ * |
@@ -125,2 +125,17 @@ import * as gax from 'google-gax'; | ||
/** | ||
* Return a fully-qualified project resource name string. | ||
* | ||
* @param {string} project | ||
* @returns {string} Resource name string. | ||
*/ | ||
projectPath(project: string): string; | ||
/** | ||
* Parse the project from Project resource. | ||
* | ||
* @param {string} projectName | ||
* A fully-qualified path representing Project resource. | ||
* @returns {string} A string representing the project. | ||
*/ | ||
matchProjectFromProjectName(projectName: string): string | number; | ||
/** | ||
* Return a fully-qualified readSession resource name string. | ||
@@ -127,0 +142,0 @@ * |
@@ -125,2 +125,3 @@ "use strict"; | ||
this.pathTemplates = { | ||
projectPathTemplate: new this._gaxModule.PathTemplate('projects/{project}'), | ||
readSessionPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/sessions/{session}'), | ||
@@ -470,2 +471,23 @@ streamPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/streams/{stream}'), | ||
/** | ||
* Return a fully-qualified project resource name string. | ||
* | ||
* @param {string} project | ||
* @returns {string} Resource name string. | ||
*/ | ||
projectPath(project) { | ||
return this.pathTemplates.projectPathTemplate.render({ | ||
project: project, | ||
}); | ||
} | ||
/** | ||
* Parse the project from Project resource. | ||
* | ||
* @param {string} projectName | ||
* A fully-qualified path representing Project resource. | ||
* @returns {string} A string representing the project. | ||
*/ | ||
matchProjectFromProjectName(projectName) { | ||
return this.pathTemplates.projectPathTemplate.match(projectName).project; | ||
} | ||
/** | ||
* Return a fully-qualified readSession resource name string. | ||
@@ -472,0 +494,0 @@ * |
# Changelog | ||
### [2.2.1](https://www.github.com/googleapis/nodejs-bigquery-storage/compare/v2.2.0...v2.2.1) (2020-07-09) | ||
### Bug Fixes | ||
* typeo in nodejs .gitattribute ([#84](https://www.github.com/googleapis/nodejs-bigquery-storage/issues/84)) ([ab36886](https://www.github.com/googleapis/nodejs-bigquery-storage/commit/ab36886171cc6d94f66587f715d23e8cd4603f32)) | ||
## [2.2.0](https://www.github.com/googleapis/nodejs-bigquery-storage/compare/v2.1.0...v2.2.0) (2020-06-19) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@google-cloud/bigquery-storage", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Client for the BigQuery Storage API", | ||
@@ -5,0 +5,0 @@ "repository": "googleapis/nodejs-bigquery-storage", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1847047
28552