Skip to content

Commit

Permalink
fix: better support for fallback mode (#558)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 468790263

Source-Link: googleapis/googleapis@873ab45

Source-Link: googleapis/googleapis-gen@cb6f37a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Aug 23, 2022
1 parent 1c34cc8 commit 068a4e9
Show file tree
Hide file tree
Showing 18 changed files with 163 additions and 103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_CheckValidCreds_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent, transferConfig) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_CreateTransferConfig_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferConfig_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_DeleteTransferRun_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main() {
// [START bigquerydatatransfer_v1_generated_DataTransferService_EnrollDataSources_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_GetDataSource_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_GetTransferConfig_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(name) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_GetTransferRun_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_ListDataSources_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_ListTransferConfigs_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_ListTransferLogs_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_ListTransferRuns_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(parent, startTime, endTime) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_ScheduleTransferRuns_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main() {
// [START bigquerydatatransfer_v1_generated_DataTransferService_StartManualTransferRuns_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
function main(transferConfig, updateMask) {
// [START bigquerydatatransfer_v1_generated_DataTransferService_UpdateTransferConfig_async]
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"segments": [
{
"start": 25,
"end": 52,
"end": 55,
"type": "FULL"
}
],
Expand Down Expand Up @@ -62,7 +62,7 @@
"segments": [
{
"start": 25,
"end": 66,
"end": 69,
"type": "FULL"
}
],
Expand Down Expand Up @@ -110,7 +110,7 @@
"segments": [
{
"start": 25,
"end": 92,
"end": 95,
"type": "FULL"
}
],
Expand Down Expand Up @@ -166,7 +166,7 @@
"segments": [
{
"start": 25,
"end": 90,
"end": 93,
"type": "FULL"
}
],
Expand Down Expand Up @@ -222,7 +222,7 @@
"segments": [
{
"start": 25,
"end": 52,
"end": 55,
"type": "FULL"
}
],
Expand Down Expand Up @@ -262,7 +262,7 @@
"segments": [
{
"start": 25,
"end": 52,
"end": 55,
"type": "FULL"
}
],
Expand Down Expand Up @@ -302,7 +302,7 @@
"segments": [
{
"start": 25,
"end": 70,
"end": 73,
"type": "FULL"
}
],
Expand Down Expand Up @@ -354,7 +354,7 @@
"segments": [
{
"start": 25,
"end": 64,
"end": 67,
"type": "FULL"
}
],
Expand Down Expand Up @@ -402,7 +402,7 @@
"segments": [
{
"start": 25,
"end": 60,
"end": 63,
"type": "FULL"
}
],
Expand Down Expand Up @@ -450,7 +450,7 @@
"segments": [
{
"start": 25,
"end": 52,
"end": 55,
"type": "FULL"
}
],
Expand Down Expand Up @@ -490,7 +490,7 @@
"segments": [
{
"start": 25,
"end": 52,
"end": 55,
"type": "FULL"
}
],
Expand Down Expand Up @@ -530,7 +530,7 @@
"segments": [
{
"start": 25,
"end": 75,
"end": 78,
"type": "FULL"
}
],
Expand Down Expand Up @@ -586,7 +586,7 @@
"segments": [
{
"start": 25,
"end": 71,
"end": 74,
"type": "FULL"
}
],
Expand Down Expand Up @@ -638,7 +638,7 @@
"segments": [
{
"start": 25,
"end": 52,
"end": 55,
"type": "FULL"
}
],
Expand Down Expand Up @@ -678,7 +678,7 @@
"segments": [
{
"start": 25,
"end": 55,
"end": 58,
"type": "FULL"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
} from 'google-gax';

import {Transform} from 'stream';
import {RequestType} from 'google-gax/build/src/apitypes';
import * as protos from '../../protos/protos';
import jsonProtos = require('../../protos/protos.json');
/**
Expand Down Expand Up @@ -300,7 +299,8 @@ export class DataTransferServiceClient {
const apiCall = this._gaxModule.createApiCall(
callPromise,
this._defaults[methodName],
descriptor
descriptor,
this._opts.fallback
);

this.innerApiCalls[methodName] = apiCall;
Expand Down Expand Up @@ -1701,7 +1701,7 @@ export class DataTransferServiceClient {
const callSettings = defaultCallSettings.merge(options);
this.initialize();
return this.descriptors.page.listDataSources.createStream(
this.innerApiCalls.listDataSources as gax.GaxCall,
this.innerApiCalls.listDataSources as GaxCall,
request,
callSettings
);
Expand Down Expand Up @@ -1755,7 +1755,7 @@ export class DataTransferServiceClient {
this.initialize();
return this.descriptors.page.listDataSources.asyncIterate(
this.innerApiCalls['listDataSources'] as GaxCall,
request as unknown as RequestType,
request as {},
callSettings
) as AsyncIterable<protos.google.cloud.bigquery.datatransfer.v1.IDataSource>;
}
Expand Down Expand Up @@ -1913,7 +1913,7 @@ export class DataTransferServiceClient {
const callSettings = defaultCallSettings.merge(options);
this.initialize();
return this.descriptors.page.listTransferConfigs.createStream(
this.innerApiCalls.listTransferConfigs as gax.GaxCall,
this.innerApiCalls.listTransferConfigs as GaxCall,
request,
callSettings
);
Expand Down Expand Up @@ -1969,7 +1969,7 @@ export class DataTransferServiceClient {
this.initialize();
return this.descriptors.page.listTransferConfigs.asyncIterate(
this.innerApiCalls['listTransferConfigs'] as GaxCall,
request as unknown as RequestType,
request as {},
callSettings
) as AsyncIterable<protos.google.cloud.bigquery.datatransfer.v1.ITransferConfig>;
}
Expand Down Expand Up @@ -2132,7 +2132,7 @@ export class DataTransferServiceClient {
const callSettings = defaultCallSettings.merge(options);
this.initialize();
return this.descriptors.page.listTransferRuns.createStream(
this.innerApiCalls.listTransferRuns as gax.GaxCall,
this.innerApiCalls.listTransferRuns as GaxCall,
request,
callSettings
);
Expand Down Expand Up @@ -2191,7 +2191,7 @@ export class DataTransferServiceClient {
this.initialize();
return this.descriptors.page.listTransferRuns.asyncIterate(
this.innerApiCalls['listTransferRuns'] as GaxCall,
request as unknown as RequestType,
request as {},
callSettings
) as AsyncIterable<protos.google.cloud.bigquery.datatransfer.v1.ITransferRun>;
}
Expand Down Expand Up @@ -2350,7 +2350,7 @@ export class DataTransferServiceClient {
const callSettings = defaultCallSettings.merge(options);
this.initialize();
return this.descriptors.page.listTransferLogs.createStream(
this.innerApiCalls.listTransferLogs as gax.GaxCall,
this.innerApiCalls.listTransferLogs as GaxCall,
request,
callSettings
);
Expand Down Expand Up @@ -2407,7 +2407,7 @@ export class DataTransferServiceClient {
this.initialize();
return this.descriptors.page.listTransferLogs.asyncIterate(
this.innerApiCalls['listTransferLogs'] as GaxCall,
request as unknown as RequestType,
request as {},
callSettings
) as AsyncIterable<protos.google.cloud.bigquery.datatransfer.v1.ITransferMessage>;
}
Expand Down
Loading

0 comments on commit 068a4e9

Please sign in to comment.