@google-cloud/apikeys 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.1](https://github.com/googleapis/google-cloud-node/compare/apikeys-v1.0.0...apikeys-v1.0.1) (2023-09-06)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* [Many APIs] simplify logic for HTTP/1.1 REST fallback option ([#4583](https://github.com/googleapis/google-cloud-node/issues/4583)) ([c3ddba8](https://github.com/googleapis/google-cloud-node/commit/c3ddba8df9fee6185e36a4e99f7c67b0319f1242))
|
|
9
|
+
|
|
3
10
|
## [1.0.0](https://github.com/googleapis/google-cloud-node/compare/apikeys-v0.2.2...apikeys-v1.0.0) (2023-08-06)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -129,7 +129,7 @@ also contains samples.
|
|
|
129
129
|
|
|
130
130
|
## Supported Node.js Versions
|
|
131
131
|
|
|
132
|
-
Our client libraries follow the [Node.js release schedule](https://
|
|
132
|
+
Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
|
|
133
133
|
Libraries are compatible with all current _active_ and _maintenance_ versions of
|
|
134
134
|
Node.js.
|
|
135
135
|
If you are using an end-of-life version of Node.js, we recommend that you update
|
|
@@ -57,8 +57,7 @@ export declare class ApiKeysClient {
|
|
|
57
57
|
* API remote host.
|
|
58
58
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
59
59
|
* Follows the structure of {@link gapicConfig}.
|
|
60
|
-
* @param {boolean
|
|
61
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
60
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
62
61
|
* For more information, please check the
|
|
63
62
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
64
63
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -66,7 +65,7 @@ export declare class ApiKeysClient {
|
|
|
66
65
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
67
66
|
* ```
|
|
68
67
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
69
|
-
* const client = new ApiKeysClient({fallback:
|
|
68
|
+
* const client = new ApiKeysClient({fallback: true}, gax);
|
|
70
69
|
* ```
|
|
71
70
|
*/
|
|
72
71
|
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
@@ -60,8 +60,7 @@ class ApiKeysClient {
|
|
|
60
60
|
* API remote host.
|
|
61
61
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
62
62
|
* Follows the structure of {@link gapicConfig}.
|
|
63
|
-
* @param {boolean
|
|
64
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
63
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
65
64
|
* For more information, please check the
|
|
66
65
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
67
66
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -69,7 +68,7 @@ class ApiKeysClient {
|
|
|
69
68
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
70
69
|
* ```
|
|
71
70
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
72
|
-
* const client = new ApiKeysClient({fallback:
|
|
71
|
+
* const client = new ApiKeysClient({fallback: true}, gax);
|
|
73
72
|
* ```
|
|
74
73
|
*/
|
|
75
74
|
constructor(opts, gaxInstance) {
|
|
@@ -126,7 +125,7 @@ class ApiKeysClient {
|
|
|
126
125
|
if (!opts.fallback) {
|
|
127
126
|
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
|
|
128
127
|
}
|
|
129
|
-
else
|
|
128
|
+
else {
|
|
130
129
|
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
|
|
131
130
|
}
|
|
132
131
|
if (opts.libName && opts.libVersion) {
|
|
@@ -156,7 +155,7 @@ class ApiKeysClient {
|
|
|
156
155
|
auth: this.auth,
|
|
157
156
|
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
|
158
157
|
};
|
|
159
|
-
if (opts.fallback
|
|
158
|
+
if (opts.fallback) {
|
|
160
159
|
lroOptions.protoJson = protoFilesRoot;
|
|
161
160
|
lroOptions.httpRules = [
|
|
162
161
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/apikeys",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "API Keys API client for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"gapic-tools": "^0.1.8",
|
|
57
57
|
"gts": "^5.0.0",
|
|
58
58
|
"jsdoc": "^4.0.0",
|
|
59
|
-
"jsdoc-fresh": "^
|
|
60
|
-
"jsdoc-region-tag": "^
|
|
59
|
+
"jsdoc-fresh": "^3.0.0",
|
|
60
|
+
"jsdoc-region-tag": "^3.0.0",
|
|
61
61
|
"linkinator": "4.1.2",
|
|
62
62
|
"long": "^5.2.3",
|
|
63
63
|
"mocha": "^9.2.2",
|