@google-cloud/run
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -61,4 +61,3 @@ /// <reference types="node" /> | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -71,3 +70,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new ExecutionsClient({fallback: 'rest'}, gax); | ||
* const client = new ExecutionsClient({fallback: true}, gax); | ||
* ``` | ||
@@ -74,0 +73,0 @@ */ |
@@ -63,4 +63,3 @@ "use strict"; | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -73,3 +72,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new ExecutionsClient({fallback: 'rest'}, gax); | ||
* const client = new ExecutionsClient({fallback: true}, gax); | ||
* ``` | ||
@@ -132,3 +131,3 @@ */ | ||
} | ||
else if (opts.fallback === 'rest') { | ||
else { | ||
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
@@ -167,3 +166,3 @@ } | ||
}; | ||
if (opts.fallback === 'rest') { | ||
if (opts.fallback) { | ||
lroOptions.protoJson = protoFilesRoot; | ||
@@ -170,0 +169,0 @@ lroOptions.httpRules = [ |
@@ -61,4 +61,3 @@ /// <reference types="node" /> | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -71,3 +70,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new JobsClient({fallback: 'rest'}, gax); | ||
* const client = new JobsClient({fallback: true}, gax); | ||
* ``` | ||
@@ -74,0 +73,0 @@ */ |
@@ -63,4 +63,3 @@ "use strict"; | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -73,3 +72,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new JobsClient({fallback: 'rest'}, gax); | ||
* const client = new JobsClient({fallback: true}, gax); | ||
* ``` | ||
@@ -132,3 +131,3 @@ */ | ||
} | ||
else if (opts.fallback === 'rest') { | ||
else { | ||
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
@@ -167,3 +166,3 @@ } | ||
}; | ||
if (opts.fallback === 'rest') { | ||
if (opts.fallback) { | ||
lroOptions.protoJson = protoFilesRoot; | ||
@@ -170,0 +169,0 @@ lroOptions.httpRules = [ |
@@ -61,4 +61,3 @@ /// <reference types="node" /> | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -71,3 +70,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new RevisionsClient({fallback: 'rest'}, gax); | ||
* const client = new RevisionsClient({fallback: true}, gax); | ||
* ``` | ||
@@ -74,0 +73,0 @@ */ |
@@ -63,4 +63,3 @@ "use strict"; | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -73,3 +72,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new RevisionsClient({fallback: 'rest'}, gax); | ||
* const client = new RevisionsClient({fallback: true}, gax); | ||
* ``` | ||
@@ -132,3 +131,3 @@ */ | ||
} | ||
else if (opts.fallback === 'rest') { | ||
else { | ||
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
@@ -168,3 +167,3 @@ } | ||
}; | ||
if (opts.fallback === 'rest') { | ||
if (opts.fallback) { | ||
lroOptions.protoJson = protoFilesRoot; | ||
@@ -171,0 +170,0 @@ lroOptions.httpRules = [ |
@@ -61,4 +61,3 @@ /// <reference types="node" /> | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -71,3 +70,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new ServicesClient({fallback: 'rest'}, gax); | ||
* const client = new ServicesClient({fallback: true}, gax); | ||
* ``` | ||
@@ -74,0 +73,0 @@ */ |
@@ -63,4 +63,3 @@ "use strict"; | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -73,3 +72,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new ServicesClient({fallback: 'rest'}, gax); | ||
* const client = new ServicesClient({fallback: true}, gax); | ||
* ``` | ||
@@ -132,3 +131,3 @@ */ | ||
} | ||
else if (opts.fallback === 'rest') { | ||
else { | ||
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
@@ -167,3 +166,3 @@ } | ||
}; | ||
if (opts.fallback === 'rest') { | ||
if (opts.fallback) { | ||
lroOptions.protoJson = protoFilesRoot; | ||
@@ -170,0 +169,0 @@ lroOptions.httpRules = [ |
@@ -60,4 +60,3 @@ /// <reference types="node" /> | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -70,3 +69,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new TasksClient({fallback: 'rest'}, gax); | ||
* const client = new TasksClient({fallback: true}, gax); | ||
* ``` | ||
@@ -73,0 +72,0 @@ */ |
@@ -63,4 +63,3 @@ "use strict"; | ||
* Follows the structure of {@link gapicConfig}. | ||
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. | ||
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC. | ||
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode. | ||
* For more information, please check the | ||
@@ -73,3 +72,3 @@ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. | ||
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC | ||
* const client = new TasksClient({fallback: 'rest'}, gax); | ||
* const client = new TasksClient({fallback: true}, gax); | ||
* ``` | ||
@@ -132,3 +131,3 @@ */ | ||
} | ||
else if (opts.fallback === 'rest') { | ||
else { | ||
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`); | ||
@@ -135,0 +134,0 @@ } |
# Changelog | ||
## [1.0.1](https://github.com/googleapis/google-cloud-node/compare/run-v1.0.0...run-v1.0.1) (2023-09-06) | ||
### Bug Fixes | ||
* [Many APIs] simplify logic for HTTP/1.1 REST fallback option ([#4587](https://github.com/googleapis/google-cloud-node/issues/4587)) ([e3b1e7e](https://github.com/googleapis/google-cloud-node/commit/e3b1e7e46d666abb4df28c3cd69e97c08b88445a)) | ||
## [1.0.0](https://github.com/googleapis/google-cloud-node/compare/run-v0.6.0...run-v1.0.0) (2023-08-06) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@google-cloud/run", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Cloud Run Admin API", | ||
@@ -54,4 +54,4 @@ "repository": { | ||
"jsdoc": "^4.0.0", | ||
"jsdoc-fresh": "^2.0.0", | ||
"jsdoc-region-tag": "^2.0.0", | ||
"jsdoc-fresh": "^3.0.0", | ||
"jsdoc-region-tag": "^3.0.0", | ||
"linkinator": "4.1.2", | ||
@@ -58,0 +58,0 @@ "long": "^5.2.3", |
@@ -148,3 +148,3 @@ [//]: # "This README.md file is auto-generated, all changes to this file will be lost." | ||
Our client libraries follow the [Node.js release schedule](https://nodejs.org/en/about/releases/). | ||
Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule). | ||
Libraries are compatible with all current _active_ and _maintenance_ versions of | ||
@@ -151,0 +151,0 @@ Node.js. |
4062328
68792