@@ -243,13 +243,14 @@ export class ConnectionServiceClient {
243
243
] ;
244
244
for ( const methodName of connectionServiceStubMethods ) {
245
245
const callPromise = this . connectionServiceStub . then (
246
- stub => ( ...args : Array < { } > ) => {
247
- if ( this . _terminated ) {
248
- return Promise . reject ( 'The client has already been closed.' ) ;
249
- }
250
- const func = stub [ methodName ] ;
251
- return func . apply ( stub , args ) ;
252
- } ,
246
+ stub =>
247
+ ( ...args : Array < { } > ) => {
248
+ if ( this . _terminated ) {
249
+ return Promise . reject ( 'The client has already been closed.' ) ;
250
+ }
251
+ const func = stub [ methodName ] ;
252
+ return func . apply ( stub , args ) ;
253
+ } ,
253
254
( err : Error | null | undefined ) => ( ) => {
254
255
throw err ;
255
256
}
@@ -419,11 +420,10 @@ export class ConnectionServiceClient {
419
420
options = options || { } ;
420
421
options . otherArgs = options . otherArgs || { } ;
421
422
options . otherArgs . headers = options . otherArgs . headers || { } ;
422
- options . otherArgs . headers [
423
- 'x-goog-request-params'
424
- ] = gax . routingHeader . fromParams ( {
425
- parent : request . parent || '' ,
426
- } ) ;
423
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
424
+ gax . routingHeader . fromParams ( {
425
+ parent : request . parent || '' ,
426
+ } ) ;
427
427
this . initialize ( ) ;
428
428
return this . innerApiCalls . createConnection ( request , options , callback ) ;
429
429
}
@@ -518,11 +518,10 @@ export class ConnectionServiceClient {
518
518
options = options || { } ;
519
519
options . otherArgs = options . otherArgs || { } ;
520
520
options . otherArgs . headers = options . otherArgs . headers || { } ;
521
- options . otherArgs . headers [
522
- 'x-goog-request-params'
523
- ] = gax . routingHeader . fromParams ( {
524
- name : request . name || '' ,
525
- } ) ;
521
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
522
+ gax . routingHeader . fromParams ( {
523
+ name : request . name || '' ,
524
+ } ) ;
526
525
this . initialize ( ) ;
527
526
return this . innerApiCalls . getConnection ( request , options , callback ) ;
528
527
}
@@ -622,11 +621,10 @@ export class ConnectionServiceClient {
622
621
options = options || { } ;
623
622
options . otherArgs = options . otherArgs || { } ;
624
623
options . otherArgs . headers = options . otherArgs . headers || { } ;
625
- options . otherArgs . headers [
626
- 'x-goog-request-params'
627
- ] = gax . routingHeader . fromParams ( {
628
- name : request . name || '' ,
629
- } ) ;
624
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
625
+ gax . routingHeader . fromParams ( {
626
+ name : request . name || '' ,
627
+ } ) ;
630
628
this . initialize ( ) ;
631
629
return this . innerApiCalls . updateConnection ( request , options , callback ) ;
632
630
}
@@ -721,11 +719,10 @@ export class ConnectionServiceClient {
721
719
options = options || { } ;
722
720
options . otherArgs = options . otherArgs || { } ;
723
721
options . otherArgs . headers = options . otherArgs . headers || { } ;
724
- options . otherArgs . headers [
725
- 'x-goog-request-params'
726
- ] = gax . routingHeader . fromParams ( {
727
- name : request . name || '' ,
728
- } ) ;
722
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
723
+ gax . routingHeader . fromParams ( {
724
+ name : request . name || '' ,
725
+ } ) ;
729
726
this . initialize ( ) ;
730
727
return this . innerApiCalls . deleteConnection ( request , options , callback ) ;
731
728
}
@@ -811,11 +808,10 @@ export class ConnectionServiceClient {
811
808
options = options || { } ;
812
809
options . otherArgs = options . otherArgs || { } ;
813
810
options . otherArgs . headers = options . otherArgs . headers || { } ;
814
- options . otherArgs . headers [
815
- 'x-goog-request-params'
816
- ] = gax . routingHeader . fromParams ( {
817
- resource : request . resource || '' ,
818
- } ) ;
811
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
812
+ gax . routingHeader . fromParams ( {
813
+ resource : request . resource || '' ,
814
+ } ) ;
819
815
this . initialize ( ) ;
820
816
return this . innerApiCalls . getIamPolicy ( request , options , callback ) ;
821
817
}
@@ -904,11 +900,10 @@ export class ConnectionServiceClient {
904
900
options = options || { } ;
905
901
options . otherArgs = options . otherArgs || { } ;
906
902
options . otherArgs . headers = options . otherArgs . headers || { } ;
907
- options . otherArgs . headers [
908
- 'x-goog-request-params'
909
- ] = gax . routingHeader . fromParams ( {
910
- resource : request . resource || '' ,
911
- } ) ;
903
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
904
+ gax . routingHeader . fromParams ( {
905
+ resource : request . resource || '' ,
906
+ } ) ;
912
907
this . initialize ( ) ;
913
908
return this . innerApiCalls . setIamPolicy ( request , options , callback ) ;
914
909
}
@@ -1000,11 +995,10 @@ export class ConnectionServiceClient {
1000
995
options = options || { } ;
1001
996
options . otherArgs = options . otherArgs || { } ;
1002
997
options . otherArgs . headers = options . otherArgs . headers || { } ;
1003
- options . otherArgs . headers [
1004
- 'x-goog-request-params'
1005
- ] = gax . routingHeader . fromParams ( {
1006
- resource : request . resource || '' ,
1007
- } ) ;
998
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
999
+ gax . routingHeader . fromParams ( {
1000
+ resource : request . resource || '' ,
1001
+ } ) ;
1008
1002
this . initialize ( ) ;
1009
1003
return this . innerApiCalls . testIamPermissions ( request , options , callback ) ;
1010
1004
}
@@ -1101,11 +1095,10 @@ export class ConnectionServiceClient {
1101
1095
options = options || { } ;
1102
1096
options . otherArgs = options . otherArgs || { } ;
1103
1097
options . otherArgs . headers = options . otherArgs . headers || { } ;
1104
- options . otherArgs . headers [
1105
- 'x-goog-request-params'
1106
- ] = gax . routingHeader . fromParams ( {
1107
- parent : request . parent || '' ,
1108
- } ) ;
1098
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
1099
+ gax . routingHeader . fromParams ( {
1100
+ parent : request . parent || '' ,
1101
+ } ) ;
1109
1102
this . initialize ( ) ;
1110
1103
return this . innerApiCalls . listConnections ( request , options , callback ) ;
1111
1104
}
@@ -1141,11 +1134,10 @@ export class ConnectionServiceClient {
1141
1134
options = options || { } ;
1142
1135
options . otherArgs = options . otherArgs || { } ;
1143
1136
options . otherArgs . headers = options . otherArgs . headers || { } ;
1144
- options . otherArgs . headers [
1145
- 'x-goog-request-params'
1146
- ] = gax . routingHeader . fromParams ( {
1147
- parent : request . parent || '' ,
1148
- } ) ;
1137
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
1138
+ gax . routingHeader . fromParams ( {
1139
+ parent : request . parent || '' ,
1140
+ } ) ;
1149
1141
const callSettings = new gax . CallSettings ( options ) ;
1150
1142
this . initialize ( ) ;
1151
1143
return this . descriptors . page . listConnections . createStream (
@@ -1192,17 +1184,16 @@ export class ConnectionServiceClient {
1192
1184
options = options || { } ;
1193
1185
options . otherArgs = options . otherArgs || { } ;
1194
1186
options . otherArgs . headers = options . otherArgs . headers || { } ;
1195
- options . otherArgs . headers [
1196
- 'x-goog-request-params'
1197
- ] = gax . routingHeader . fromParams ( {
1198
- parent : request . parent || '' ,
1199
- } ) ;
1187
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
1188
+ gax . routingHeader . fromParams ( {
1189
+ parent : request . parent || '' ,
1190
+ } ) ;
1200
1191
options = options || { } ;
1201
1192
const callSettings = new gax . CallSettings ( options ) ;
1202
1193
this . initialize ( ) ;
1203
1194
return this . descriptors . page . listConnections . asyncIterate (
1204
1195
this . innerApiCalls [ 'listConnections' ] as GaxCall ,
1205
- ( request as unknown ) as RequestType ,
1196
+ request as unknown as RequestType ,
1206
1197
callSettings
1207
1198
) as AsyncIterable < protos . google . cloud . bigquery . connection . v1 . IConnection > ;
1208
1199
}
0 commit comments