@@ -241,13 +241,14 @@ export class DashboardsServiceClient {
241241 ] ;
242242 for ( const methodName of dashboardsServiceStubMethods ) {
243243 const callPromise = this . dashboardsServiceStub . then (
244- stub => ( ...args : Array < { } > ) => {
245- if ( this . _terminated ) {
246- return Promise . reject ( 'The client has already been closed.' ) ;
247- }
248- const func = stub [ methodName ] ;
249- return func . apply ( stub , args ) ;
250- } ,
244+ stub =>
245+ ( ...args : Array < { } > ) => {
246+ if ( this . _terminated ) {
247+ return Promise . reject ( 'The client has already been closed.' ) ;
248+ }
249+ const func = stub [ methodName ] ;
250+ return func . apply ( stub , args ) ;
251+ } ,
251252 ( err : Error | null | undefined ) => ( ) => {
252253 throw err ;
253254 }
@@ -419,11 +420,10 @@ export class DashboardsServiceClient {
419420 options = options || { } ;
420421 options . otherArgs = options . otherArgs || { } ;
421422 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+ } ) ;
427427 this . initialize ( ) ;
428428 return this . innerApiCalls . createDashboard ( request , options , callback ) ;
429429 }
@@ -519,11 +519,10 @@ export class DashboardsServiceClient {
519519 options = options || { } ;
520520 options . otherArgs = options . otherArgs || { } ;
521521 options . otherArgs . headers = options . otherArgs . headers || { } ;
522- options . otherArgs . headers [
523- 'x-goog-request-params'
524- ] = gax . routingHeader . fromParams ( {
525- name : request . name || '' ,
526- } ) ;
522+ options . otherArgs . headers [ 'x-goog-request-params' ] =
523+ gax . routingHeader . fromParams ( {
524+ name : request . name || '' ,
525+ } ) ;
527526 this . initialize ( ) ;
528527 return this . innerApiCalls . getDashboard ( request , options , callback ) ;
529528 }
@@ -617,11 +616,10 @@ export class DashboardsServiceClient {
617616 options = options || { } ;
618617 options . otherArgs = options . otherArgs || { } ;
619618 options . otherArgs . headers = options . otherArgs . headers || { } ;
620- options . otherArgs . headers [
621- 'x-goog-request-params'
622- ] = gax . routingHeader . fromParams ( {
623- name : request . name || '' ,
624- } ) ;
619+ options . otherArgs . headers [ 'x-goog-request-params' ] =
620+ gax . routingHeader . fromParams ( {
621+ name : request . name || '' ,
622+ } ) ;
625623 this . initialize ( ) ;
626624 return this . innerApiCalls . deleteDashboard ( request , options , callback ) ;
627625 }
@@ -713,11 +711,10 @@ export class DashboardsServiceClient {
713711 options = options || { } ;
714712 options . otherArgs = options . otherArgs || { } ;
715713 options . otherArgs . headers = options . otherArgs . headers || { } ;
716- options . otherArgs . headers [
717- 'x-goog-request-params'
718- ] = gax . routingHeader . fromParams ( {
719- 'dashboard.name' : request . dashboard ! . name || '' ,
720- } ) ;
714+ options . otherArgs . headers [ 'x-goog-request-params' ] =
715+ gax . routingHeader . fromParams ( {
716+ 'dashboard.name' : request . dashboard ! . name || '' ,
717+ } ) ;
721718 this . initialize ( ) ;
722719 return this . innerApiCalls . updateDashboard ( request , options , callback ) ;
723720 }
@@ -822,11 +819,10 @@ export class DashboardsServiceClient {
822819 options = options || { } ;
823820 options . otherArgs = options . otherArgs || { } ;
824821 options . otherArgs . headers = options . otherArgs . headers || { } ;
825- options . otherArgs . headers [
826- 'x-goog-request-params'
827- ] = gax . routingHeader . fromParams ( {
828- parent : request . parent || '' ,
829- } ) ;
822+ options . otherArgs . headers [ 'x-goog-request-params' ] =
823+ gax . routingHeader . fromParams ( {
824+ parent : request . parent || '' ,
825+ } ) ;
830826 this . initialize ( ) ;
831827 return this . innerApiCalls . listDashboards ( request , options , callback ) ;
832828 }
@@ -866,11 +862,10 @@ export class DashboardsServiceClient {
866862 options = options || { } ;
867863 options . otherArgs = options . otherArgs || { } ;
868864 options . otherArgs . headers = options . otherArgs . headers || { } ;
869- options . otherArgs . headers [
870- 'x-goog-request-params'
871- ] = gax . routingHeader . fromParams ( {
872- parent : request . parent || '' ,
873- } ) ;
865+ options . otherArgs . headers [ 'x-goog-request-params' ] =
866+ gax . routingHeader . fromParams ( {
867+ parent : request . parent || '' ,
868+ } ) ;
874869 const callSettings = new gax . CallSettings ( options ) ;
875870 this . initialize ( ) ;
876871 return this . descriptors . page . listDashboards . createStream (
@@ -921,17 +916,16 @@ export class DashboardsServiceClient {
921916 options = options || { } ;
922917 options . otherArgs = options . otherArgs || { } ;
923918 options . otherArgs . headers = options . otherArgs . headers || { } ;
924- options . otherArgs . headers [
925- 'x-goog-request-params'
926- ] = gax . routingHeader . fromParams ( {
927- parent : request . parent || '' ,
928- } ) ;
919+ options . otherArgs . headers [ 'x-goog-request-params' ] =
920+ gax . routingHeader . fromParams ( {
921+ parent : request . parent || '' ,
922+ } ) ;
929923 options = options || { } ;
930924 const callSettings = new gax . CallSettings ( options ) ;
931925 this . initialize ( ) ;
932926 return this . descriptors . page . listDashboards . asyncIterate (
933927 this . innerApiCalls [ 'listDashboards' ] as GaxCall ,
934- ( request as unknown ) as RequestType ,
928+ request as unknown as RequestType ,
935929 callSettings
936930 ) as AsyncIterable < protos . google . monitoring . dashboard . v1 . IDashboard > ;
937931 }
0 commit comments