Skip to content

Commit ed93f9d

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

18 files changed

+158
-111
lines changed

packages/google-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.create_data_exchange.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, dataExchangeId, dataExchange) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_CreateDataExchange_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.create_listing.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent, listingId, listing) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_CreateListing_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.delete_data_exchange.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_DeleteDataExchange_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.delete_listing.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_DeleteListing_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.get_data_exchange.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_GetDataExchange_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.get_iam_policy.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(resource) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_GetIamPolicy_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.get_listing.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_GetListing_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.list_data_exchanges.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_ListDataExchanges_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.list_listings.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_ListListings_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.list_org_data_exchanges.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(organization) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_ListOrgDataExchanges_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.set_iam_policy.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(resource, policy) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_SetIamPolicy_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.subscribe_listing.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_SubscribeListing_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.test_iam_permissions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(resource, permissions) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_TestIamPermissions_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.update_data_exchange.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(updateMask, dataExchange) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_UpdateDataExchange_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/analytics_hub_service.update_listing.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(updateMask, listing) {
2424
// [START analyticshub_v1beta1_generated_AnalyticsHubService_UpdateListing_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-cloud-bigquery-dataexchange/samples/generated/v1beta1/snippet_metadata.google.cloud.bigquery.dataexchange.v1beta1.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 63,
25+
"end": 66,
2626
"type": "FULL"
2727
}
2828
],
@@ -70,7 +70,7 @@
7070
"segments": [
7171
{
7272
"start": 25,
73-
"end": 63,
73+
"end": 66,
7474
"type": "FULL"
7575
}
7676
],
@@ -118,7 +118,7 @@
118118
"segments": [
119119
{
120120
"start": 25,
121-
"end": 51,
121+
"end": 54,
122122
"type": "FULL"
123123
}
124124
],
@@ -158,7 +158,7 @@
158158
"segments": [
159159
{
160160
"start": 25,
161-
"end": 65,
161+
"end": 68,
162162
"type": "FULL"
163163
}
164164
],
@@ -206,7 +206,7 @@
206206
"segments": [
207207
{
208208
"start": 25,
209-
"end": 58,
209+
"end": 61,
210210
"type": "FULL"
211211
}
212212
],
@@ -250,7 +250,7 @@
250250
"segments": [
251251
{
252252
"start": 25,
253-
"end": 51,
253+
"end": 54,
254254
"type": "FULL"
255255
}
256256
],
@@ -290,7 +290,7 @@
290290
"segments": [
291291
{
292292
"start": 25,
293-
"end": 63,
293+
"end": 66,
294294
"type": "FULL"
295295
}
296296
],
@@ -338,7 +338,7 @@
338338
"segments": [
339339
{
340340
"start": 25,
341-
"end": 51,
341+
"end": 54,
342342
"type": "FULL"
343343
}
344344
],
@@ -378,7 +378,7 @@
378378
"segments": [
379379
{
380380
"start": 25,
381-
"end": 65,
381+
"end": 68,
382382
"type": "FULL"
383383
}
384384
],
@@ -426,7 +426,7 @@
426426
"segments": [
427427
{
428428
"start": 25,
429-
"end": 58,
429+
"end": 61,
430430
"type": "FULL"
431431
}
432432
],
@@ -470,7 +470,7 @@
470470
"segments": [
471471
{
472472
"start": 25,
473-
"end": 51,
473+
"end": 54,
474474
"type": "FULL"
475475
}
476476
],
@@ -510,7 +510,7 @@
510510
"segments": [
511511
{
512512
"start": 25,
513-
"end": 55,
513+
"end": 58,
514514
"type": "FULL"
515515
}
516516
],
@@ -554,7 +554,7 @@
554554
"segments": [
555555
{
556556
"start": 25,
557-
"end": 56,
557+
"end": 59,
558558
"type": "FULL"
559559
}
560560
],
@@ -598,7 +598,7 @@
598598
"segments": [
599599
{
600600
"start": 25,
601-
"end": 66,
601+
"end": 69,
602602
"type": "FULL"
603603
}
604604
],
@@ -646,7 +646,7 @@
646646
"segments": [
647647
{
648648
"start": 25,
649-
"end": 59,
649+
"end": 62,
650650
"type": "FULL"
651651
}
652652
],

packages/google-cloud-bigquery-dataexchange/src/v1beta1/analytics_hub_service_client.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import {
2828
} from 'google-gax';
2929

3030
import {Transform} from 'stream';
31-
import {RequestType} from 'google-gax/build/src/apitypes';
3231
import * as protos from '../../protos/protos';
3332
import jsonProtos = require('../../protos/protos.json');
3433
/**
@@ -285,7 +284,8 @@ export class AnalyticsHubServiceClient {
285284
const apiCall = this._gaxModule.createApiCall(
286285
callPromise,
287286
this._defaults[methodName],
288-
descriptor
287+
descriptor,
288+
this._opts.fallback
289289
);
290290

291291
this.innerApiCalls[methodName] = apiCall;
@@ -1679,7 +1679,7 @@ export class AnalyticsHubServiceClient {
16791679
const callSettings = defaultCallSettings.merge(options);
16801680
this.initialize();
16811681
return this.descriptors.page.listDataExchanges.createStream(
1682-
this.innerApiCalls.listDataExchanges as gax.GaxCall,
1682+
this.innerApiCalls.listDataExchanges as GaxCall,
16831683
request,
16841684
callSettings
16851685
);
@@ -1730,7 +1730,7 @@ export class AnalyticsHubServiceClient {
17301730
this.initialize();
17311731
return this.descriptors.page.listDataExchanges.asyncIterate(
17321732
this.innerApiCalls['listDataExchanges'] as GaxCall,
1733-
request as unknown as RequestType,
1733+
request as {},
17341734
callSettings
17351735
) as AsyncIterable<protos.google.cloud.bigquery.dataexchange.v1beta1.IDataExchange>;
17361736
}
@@ -1877,7 +1877,7 @@ export class AnalyticsHubServiceClient {
18771877
const callSettings = defaultCallSettings.merge(options);
18781878
this.initialize();
18791879
return this.descriptors.page.listOrgDataExchanges.createStream(
1880-
this.innerApiCalls.listOrgDataExchanges as gax.GaxCall,
1880+
this.innerApiCalls.listOrgDataExchanges as GaxCall,
18811881
request,
18821882
callSettings
18831883
);
@@ -1928,7 +1928,7 @@ export class AnalyticsHubServiceClient {
19281928
this.initialize();
19291929
return this.descriptors.page.listOrgDataExchanges.asyncIterate(
19301930
this.innerApiCalls['listOrgDataExchanges'] as GaxCall,
1931-
request as unknown as RequestType,
1931+
request as {},
19321932
callSettings
19331933
) as AsyncIterable<protos.google.cloud.bigquery.dataexchange.v1beta1.IDataExchange>;
19341934
}
@@ -2075,7 +2075,7 @@ export class AnalyticsHubServiceClient {
20752075
const callSettings = defaultCallSettings.merge(options);
20762076
this.initialize();
20772077
return this.descriptors.page.listListings.createStream(
2078-
this.innerApiCalls.listListings as gax.GaxCall,
2078+
this.innerApiCalls.listListings as GaxCall,
20792079
request,
20802080
callSettings
20812081
);
@@ -2126,7 +2126,7 @@ export class AnalyticsHubServiceClient {
21262126
this.initialize();
21272127
return this.descriptors.page.listListings.asyncIterate(
21282128
this.innerApiCalls['listListings'] as GaxCall,
2129-
request as unknown as RequestType,
2129+
request as {},
21302130
callSettings
21312131
) as AsyncIterable<protos.google.cloud.bigquery.dataexchange.v1beta1.IListing>;
21322132
}

0 commit comments

Comments
 (0)