Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit fe11f09

Browse files
fix(docs): describe fallback rest option (#387)
* fix(docs): describe fallback rest option Use gapic-generator-typescript v2.15.1. PiperOrigin-RevId: 456946341 Source-Link: googleapis/googleapis@88fd18d Source-Link: https://github.com/googleapis/googleapis-gen/commit/accfa371f667439313335c64042b063c1c53102e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWNjZmEzNzFmNjY3NDM5MzEzMzM1YzY0MDQyYjA2M2MxYzUzMTAyZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 6d8a7d8 commit fe11f09

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

src/v1/recaptcha_enterprise_service_client.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class RecaptchaEnterpriseServiceClient {
7070
*
7171
* @param {object} [options] - The configuration object.
7272
* The options accepted by the constructor are described in detail
73-
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance).
73+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
7474
* The common options are:
7575
* @param {object} [options.credentials] - Credentials object.
7676
* @param {string} [options.credentials.client_email]
@@ -93,11 +93,10 @@ export class RecaptchaEnterpriseServiceClient {
9393
* API remote host.
9494
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
9595
* Follows the structure of {@link gapicConfig}.
96-
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
97-
* In fallback mode, a special browser-compatible transport implementation is used
98-
* instead of gRPC transport. In browser context (if the `window` object is defined)
99-
* the fallback mode is enabled automatically; set `options.fallback` to `false`
100-
* if you need to override this behavior.
96+
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
97+
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
98+
* For more information, please check the
99+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
101100
*/
102101
constructor(opts?: ClientOptions) {
103102
// Ensure that options include all the required fields.

src/v1beta1/recaptcha_enterprise_service_v1_beta1_client.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
6161
*
6262
* @param {object} [options] - The configuration object.
6363
* The options accepted by the constructor are described in detail
64-
* in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance).
64+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
6565
* The common options are:
6666
* @param {object} [options.credentials] - Credentials object.
6767
* @param {string} [options.credentials.client_email]
@@ -84,11 +84,10 @@ export class RecaptchaEnterpriseServiceV1Beta1Client {
8484
* API remote host.
8585
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
8686
* Follows the structure of {@link gapicConfig}.
87-
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
88-
* In fallback mode, a special browser-compatible transport implementation is used
89-
* instead of gRPC transport. In browser context (if the `window` object is defined)
90-
* the fallback mode is enabled automatically; set `options.fallback` to `false`
91-
* if you need to override this behavior.
87+
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
88+
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
89+
* For more information, please check the
90+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
9291
*/
9392
constructor(opts?: ClientOptions) {
9493
// Ensure that options include all the required fields.

0 commit comments

Comments
 (0)