Skip to content

Commit 45b0e18

Browse files
fix: better support for fallback mode (#150)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: googleapis/googleapis@873ab45 Source-Link: googleapis/googleapis-gen@cb6f37a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9
1 parent 60e5afe commit 45b0e18

13 files changed

+269
-245
lines changed

packages/google-api-servicecontrol/samples/generated/v1/quota_controller.allocate_quota.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START servicecontrol_v1_generated_QuotaController_AllocateQuota_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-api-servicecontrol/samples/generated/v1/service_controller.check.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START servicecontrol_v1_generated_ServiceController_Check_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-api-servicecontrol/samples/generated/v1/service_controller.report.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START servicecontrol_v1_generated_ServiceController_Report_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-api-servicecontrol/samples/generated/v1/snippet_metadata.google.api.servicecontrol.v1.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 61,
25+
"end": 64,
2626
"type": "FULL"
2727
}
2828
],
@@ -70,7 +70,7 @@
7070
"segments": [
7171
{
7272
"start": 25,
73-
"end": 64,
73+
"end": 67,
7474
"type": "FULL"
7575
}
7676
],
@@ -118,7 +118,7 @@
118118
"segments": [
119119
{
120120
"start": 25,
121-
"end": 72,
121+
"end": 75,
122122
"type": "FULL"
123123
}
124124
],

packages/google-api-servicecontrol/samples/generated/v2/service_controller.check.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START servicecontrol_v2_generated_ServiceController_Check_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-api-servicecontrol/samples/generated/v2/service_controller.report.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START servicecontrol_v2_generated_ServiceController_Report_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-api-servicecontrol/samples/generated/v2/snippet_metadata.google.api.servicecontrol.v2.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 71,
25+
"end": 74,
2626
"type": "FULL"
2727
}
2828
],
@@ -78,7 +78,7 @@
7878
"segments": [
7979
{
8080
"start": 25,
81-
"end": 65,
81+
"end": 68,
8282
"type": "FULL"
8383
}
8484
],

packages/google-api-servicecontrol/src/v1/quota_controller_client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ export class QuotaControllerClient {
221221
const apiCall = this._gaxModule.createApiCall(
222222
callPromise,
223223
this._defaults[methodName],
224-
descriptor
224+
descriptor,
225+
this._opts.fallback
225226
);
226227

227228
this.innerApiCalls[methodName] = apiCall;

packages/google-api-servicecontrol/src/v1/service_controller_client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ export class ServiceControllerClient {
221221
const apiCall = this._gaxModule.createApiCall(
222222
callPromise,
223223
this._defaults[methodName],
224-
descriptor
224+
descriptor,
225+
this._opts.fallback
225226
);
226227

227228
this.innerApiCalls[methodName] = apiCall;

packages/google-api-servicecontrol/src/v2/service_controller_client.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ export class ServiceControllerClient {
225225
const apiCall = this._gaxModule.createApiCall(
226226
callPromise,
227227
this._defaults[methodName],
228-
descriptor
228+
descriptor,
229+
this._opts.fallback
229230
);
230231

231232
this.innerApiCalls[methodName] = apiCall;

0 commit comments

Comments
 (0)