@google-cloud/secret-manager
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -192,26 +192,35 @@ /// <reference types="node" /> | ||
/** | ||
* Return a fully-qualified secretversion resource name string. | ||
* Return a fully-qualified secretVersion resource name string. | ||
* | ||
* @param {string} project | ||
* @param {string} secret | ||
* @param {string} secret_version | ||
* @returns {string} Resource name string. | ||
*/ | ||
secretVersionPath(project: string, secret: string): string; | ||
secretVersionPath(project: string, secret: string, secretVersion: string): string; | ||
/** | ||
* Parse the project from SecretVersion resource. | ||
* | ||
* @param {string} secretversionName | ||
* @param {string} secretVersionName | ||
* A fully-qualified path representing SecretVersion resource. | ||
* @returns {string} A string representing the project. | ||
*/ | ||
matchProjectFromSecretVersionName(secretversionName: string): string; | ||
matchProjectFromSecretVersionName(secretVersionName: string): string; | ||
/** | ||
* Parse the secret from SecretVersion resource. | ||
* | ||
* @param {string} secretversionName | ||
* @param {string} secretVersionName | ||
* A fully-qualified path representing SecretVersion resource. | ||
* @returns {string} A string representing the secret. | ||
*/ | ||
matchSecretFromSecretVersionName(secretversionName: string): string; | ||
matchSecretFromSecretVersionName(secretVersionName: string): string; | ||
/** | ||
* Parse the secret_version from SecretVersion resource. | ||
* | ||
* @param {string} secretVersionName | ||
* A fully-qualified path representing SecretVersion resource. | ||
* @returns {string} A string representing the secret_version. | ||
*/ | ||
matchSecretVersionFromSecretVersionName(secretVersionName: string): string; | ||
/** | ||
* Terminate the GRPC channel and close the client. | ||
@@ -218,0 +227,0 @@ * |
@@ -869,12 +869,14 @@ "use strict"; | ||
/** | ||
* Return a fully-qualified secretversion resource name string. | ||
* Return a fully-qualified secretVersion resource name string. | ||
* | ||
* @param {string} project | ||
* @param {string} secret | ||
* @param {string} secret_version | ||
* @returns {string} Resource name string. | ||
*/ | ||
secretVersionPath(project, secret) { | ||
return this._pathTemplates.secretversionPathTemplate.render({ | ||
secretVersionPath(project, secret, secretVersion) { | ||
return this._pathTemplates.secretVersionPathTemplate.render({ | ||
project, | ||
secret, | ||
secret_version: secretVersion, | ||
}); | ||
@@ -885,8 +887,8 @@ } | ||
* | ||
* @param {string} secretversionName | ||
* @param {string} secretVersionName | ||
* A fully-qualified path representing SecretVersion resource. | ||
* @returns {string} A string representing the project. | ||
*/ | ||
matchProjectFromSecretVersionName(secretversionName) { | ||
return this._pathTemplates.secretversionPathTemplate.match(secretversionName).project; | ||
matchProjectFromSecretVersionName(secretVersionName) { | ||
return this._pathTemplates.secretVersionPathTemplate.match(secretVersionName).project; | ||
} | ||
@@ -896,10 +898,20 @@ /** | ||
* | ||
* @param {string} secretversionName | ||
* @param {string} secretVersionName | ||
* A fully-qualified path representing SecretVersion resource. | ||
* @returns {string} A string representing the secret. | ||
*/ | ||
matchSecretFromSecretVersionName(secretversionName) { | ||
return this._pathTemplates.secretversionPathTemplate.match(secretversionName).secret; | ||
matchSecretFromSecretVersionName(secretVersionName) { | ||
return this._pathTemplates.secretVersionPathTemplate.match(secretVersionName).secret; | ||
} | ||
/** | ||
* Parse the secret_version from SecretVersion resource. | ||
* | ||
* @param {string} secretVersionName | ||
* A fully-qualified path representing SecretVersion resource. | ||
* @returns {string} A string representing the secret_version. | ||
*/ | ||
matchSecretVersionFromSecretVersionName(secretVersionName) { | ||
return this._pathTemplates.secretVersionPathTemplate.match(secretVersionName).secret_version; | ||
} | ||
/** | ||
* Terminate the GRPC channel and close the client. | ||
@@ -906,0 +918,0 @@ * |
# Changelog | ||
## [1.2.0](https://www.github.com/googleapis/nodejs-secret-manager/compare/v1.1.2...v1.2.0) (2020-01-30) | ||
### Features | ||
* add IAM samples ([#34](https://www.github.com/googleapis/nodejs-secret-manager/issues/34)) ([cd0268f](https://www.github.com/googleapis/nodejs-secret-manager/commit/cd0268f7fb83988798ee9eb19d7aafd6721ea036)) | ||
### Bug Fixes | ||
* make resource helper work; enum, bytes, and Long types now accept strings ([#35](https://www.github.com/googleapis/nodejs-secret-manager/issues/35)) ([3f8d832](https://www.github.com/googleapis/nodejs-secret-manager/commit/3f8d8325b118273f6d07bbdf4353a04ff041a6c6)) | ||
### [1.1.2](https://www.github.com/googleapis/nodejs-secret-manager/compare/v1.1.1...v1.1.2) (2020-01-14) | ||
@@ -4,0 +16,0 @@ |
{ | ||
"name": "@google-cloud/secret-manager", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Secrets client for Node.js", | ||
@@ -5,0 +5,0 @@ "repository": "googleapis/nodejs-secret-manager", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1655054
27285