@google-cloud/secret-manager
Advanced tools
Comparing version 4.0.0 to 4.1.0
@@ -42,3 +42,3 @@ /// <reference types="node" /> | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -66,7 +66,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean} [options.fallback] - Use HTTP fallback mode. | ||
* In fallback mode, a special browser-compatible transport implementation is used | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -73,0 +72,0 @@ constructor(opts?: ClientOptions); |
@@ -48,3 +48,3 @@ "use strict"; | ||
* The options accepted by the constructor are described in detail | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). | ||
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). | ||
* The common options are: | ||
@@ -72,7 +72,6 @@ * @param {object} [options.credentials] - Credentials object. | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean} [options.fallback] - Use HTTP fallback mode. | ||
* In fallback mode, a special browser-compatible transport implementation is used | ||
* instead of gRPC transport. In browser context (if the `window` object is defined) | ||
* the fallback mode is enabled automatically; set `options.fallback` to `false` | ||
* if you need to override this behavior. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* For more information, please check the | ||
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
*/ | ||
@@ -213,3 +212,3 @@ constructor(opts) { | ||
const descriptor = this.descriptors.page[methodName] || undefined; | ||
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor); | ||
const apiCall = this._gaxModule.createApiCall(callPromise, this._defaults[methodName], descriptor, this._opts.fallback); | ||
this.innerApiCalls[methodName] = apiCall; | ||
@@ -216,0 +215,0 @@ } |
# Changelog | ||
## [4.1.0](https://github.com/googleapis/nodejs-secret-manager/compare/v4.0.1...v4.1.0) (2022-08-23) | ||
### Features | ||
* add code samples for secret manager access by alias ([#373](https://github.com/googleapis/nodejs-secret-manager/issues/373)) ([afe8dbe](https://github.com/googleapis/nodejs-secret-manager/commit/afe8dbe289396bd2b57425f7e78a44f38281fac6)) | ||
### Bug Fixes | ||
* better support for fallback mode ([#392](https://github.com/googleapis/nodejs-secret-manager/issues/392)) ([2a3374a](https://github.com/googleapis/nodejs-secret-manager/commit/2a3374acb91c5054d737edff4017432a7dbb04f3)) | ||
* change import long to require ([#394](https://github.com/googleapis/nodejs-secret-manager/issues/394)) ([d0b73ed](https://github.com/googleapis/nodejs-secret-manager/commit/d0b73eddf039449a2761e92639b061bab21742d1)) | ||
## [4.0.1](https://github.com/googleapis/nodejs-secret-manager/compare/v4.0.0...v4.0.1) (2022-06-30) | ||
### Bug Fixes | ||
* **docs:** describe fallback rest option ([#379](https://github.com/googleapis/nodejs-secret-manager/issues/379)) ([368cff5](https://github.com/googleapis/nodejs-secret-manager/commit/368cff507737eba4e57fe154d748e0756aaf83d3)) | ||
## [4.0.0](https://github.com/googleapis/nodejs-secret-manager/compare/v3.12.0...v4.0.0) (2022-05-20) | ||
@@ -4,0 +24,0 @@ |
{ | ||
"name": "@google-cloud/secret-manager", | ||
"version": "4.0.0", | ||
"version": "4.1.0", | ||
"description": "Secrets client for Node.js", | ||
@@ -48,5 +48,5 @@ "repository": "googleapis/nodejs-secret-manager", | ||
"jsdoc": "^3.5.5", | ||
"jsdoc-fresh": "^1.0.1", | ||
"jsdoc-region-tag": "^1.0.2", | ||
"linkinator": "^2.0.0", | ||
"jsdoc-fresh": "^2.0.0", | ||
"jsdoc-region-tag": "^2.0.0", | ||
"linkinator": "^4.0.0", | ||
"mocha": "^9.2.2", | ||
@@ -53,0 +53,0 @@ "null-loader": "^4.0.0", |
@@ -119,2 +119,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
| Create Secret | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/createSecret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/createSecret.js,samples/README.md) | | ||
| Create Ummr Secret | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/createUmmrSecret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/createUmmrSecret.js,samples/README.md) | | ||
| Delete Secret | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/deleteSecret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/deleteSecret.js,samples/README.md) | | ||
@@ -132,2 +133,3 @@ | Destroy Secret Version | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/destroySecretVersion.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/destroySecretVersion.js,samples/README.md) | | ||
| Update Secret | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/updateSecret.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/updateSecret.js,samples/README.md) | | ||
| Update Secret With Alias | [source code](https://github.com/googleapis/nodejs-secret-manager/blob/main/samples/updateSecretWithAlias.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/nodejs-secret-manager&page=editor&open_in_editor=samples/updateSecretWithAlias.js,samples/README.md) | | ||
@@ -134,0 +136,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2790137
44211
203