@@ -238,13 +238,14 @@ export class AuthorizedCertificatesClient {
238
238
] ;
239
239
for ( const methodName of authorizedCertificatesStubMethods ) {
240
240
const callPromise = this . authorizedCertificatesStub . then (
241
- stub => ( ...args : Array < { } > ) => {
242
- if ( this . _terminated ) {
243
- return Promise . reject ( 'The client has already been closed.' ) ;
244
- }
245
- const func = stub [ methodName ] ;
246
- return func . apply ( stub , args ) ;
247
- } ,
241
+ stub =>
242
+ ( ...args : Array < { } > ) => {
243
+ if ( this . _terminated ) {
244
+ return Promise . reject ( 'The client has already been closed.' ) ;
245
+ }
246
+ const func = stub [ methodName ] ;
247
+ return func . apply ( stub , args ) ;
248
+ } ,
248
249
( err : Error | null | undefined ) => ( ) => {
249
250
throw err ;
250
251
}
@@ -407,11 +408,10 @@ export class AuthorizedCertificatesClient {
407
408
options = options || { } ;
408
409
options . otherArgs = options . otherArgs || { } ;
409
410
options . otherArgs . headers = options . otherArgs . headers || { } ;
410
- options . otherArgs . headers [
411
- 'x-goog-request-params'
412
- ] = gax . routingHeader . fromParams ( {
413
- name : request . name || '' ,
414
- } ) ;
411
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
412
+ gax . routingHeader . fromParams ( {
413
+ name : request . name || '' ,
414
+ } ) ;
415
415
this . initialize ( ) ;
416
416
return this . innerApiCalls . getAuthorizedCertificate (
417
417
request ,
@@ -511,11 +511,10 @@ export class AuthorizedCertificatesClient {
511
511
options = options || { } ;
512
512
options . otherArgs = options . otherArgs || { } ;
513
513
options . otherArgs . headers = options . otherArgs . headers || { } ;
514
- options . otherArgs . headers [
515
- 'x-goog-request-params'
516
- ] = gax . routingHeader . fromParams ( {
517
- parent : request . parent || '' ,
518
- } ) ;
514
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
515
+ gax . routingHeader . fromParams ( {
516
+ parent : request . parent || '' ,
517
+ } ) ;
519
518
this . initialize ( ) ;
520
519
return this . innerApiCalls . createAuthorizedCertificate (
521
520
request ,
@@ -624,11 +623,10 @@ export class AuthorizedCertificatesClient {
624
623
options = options || { } ;
625
624
options . otherArgs = options . otherArgs || { } ;
626
625
options . otherArgs . headers = options . otherArgs . headers || { } ;
627
- options . otherArgs . headers [
628
- 'x-goog-request-params'
629
- ] = gax . routingHeader . fromParams ( {
630
- name : request . name || '' ,
631
- } ) ;
626
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
627
+ gax . routingHeader . fromParams ( {
628
+ name : request . name || '' ,
629
+ } ) ;
632
630
this . initialize ( ) ;
633
631
return this . innerApiCalls . updateAuthorizedCertificate (
634
632
request ,
@@ -727,11 +725,10 @@ export class AuthorizedCertificatesClient {
727
725
options = options || { } ;
728
726
options . otherArgs = options . otherArgs || { } ;
729
727
options . otherArgs . headers = options . otherArgs . headers || { } ;
730
- options . otherArgs . headers [
731
- 'x-goog-request-params'
732
- ] = gax . routingHeader . fromParams ( {
733
- name : request . name || '' ,
734
- } ) ;
728
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
729
+ gax . routingHeader . fromParams ( {
730
+ name : request . name || '' ,
731
+ } ) ;
735
732
this . initialize ( ) ;
736
733
return this . innerApiCalls . deleteAuthorizedCertificate (
737
734
request ,
@@ -833,11 +830,10 @@ export class AuthorizedCertificatesClient {
833
830
options = options || { } ;
834
831
options . otherArgs = options . otherArgs || { } ;
835
832
options . otherArgs . headers = options . otherArgs . headers || { } ;
836
- options . otherArgs . headers [
837
- 'x-goog-request-params'
838
- ] = gax . routingHeader . fromParams ( {
839
- parent : request . parent || '' ,
840
- } ) ;
833
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
834
+ gax . routingHeader . fromParams ( {
835
+ parent : request . parent || '' ,
836
+ } ) ;
841
837
this . initialize ( ) ;
842
838
return this . innerApiCalls . listAuthorizedCertificates (
843
839
request ,
@@ -878,11 +874,10 @@ export class AuthorizedCertificatesClient {
878
874
options = options || { } ;
879
875
options . otherArgs = options . otherArgs || { } ;
880
876
options . otherArgs . headers = options . otherArgs . headers || { } ;
881
- options . otherArgs . headers [
882
- 'x-goog-request-params'
883
- ] = gax . routingHeader . fromParams ( {
884
- parent : request . parent || '' ,
885
- } ) ;
877
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
878
+ gax . routingHeader . fromParams ( {
879
+ parent : request . parent || '' ,
880
+ } ) ;
886
881
const callSettings = new gax . CallSettings ( options ) ;
887
882
this . initialize ( ) ;
888
883
return this . descriptors . page . listAuthorizedCertificates . createStream (
@@ -930,17 +925,16 @@ export class AuthorizedCertificatesClient {
930
925
options = options || { } ;
931
926
options . otherArgs = options . otherArgs || { } ;
932
927
options . otherArgs . headers = options . otherArgs . headers || { } ;
933
- options . otherArgs . headers [
934
- 'x-goog-request-params'
935
- ] = gax . routingHeader . fromParams ( {
936
- parent : request . parent || '' ,
937
- } ) ;
928
+ options . otherArgs . headers [ 'x-goog-request-params' ] =
929
+ gax . routingHeader . fromParams ( {
930
+ parent : request . parent || '' ,
931
+ } ) ;
938
932
options = options || { } ;
939
933
const callSettings = new gax . CallSettings ( options ) ;
940
934
this . initialize ( ) ;
941
935
return this . descriptors . page . listAuthorizedCertificates . asyncIterate (
942
936
this . innerApiCalls [ 'listAuthorizedCertificates' ] as GaxCall ,
943
- ( request as unknown ) as RequestType ,
937
+ request as unknown as RequestType ,
944
938
callSettings
945
939
) as AsyncIterable < protos . google . appengine . v1 . IAuthorizedCertificate > ;
946
940
}
0 commit comments