File tree 3 files changed +20
-0
lines changed
packages/google-cloud-node/src
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,12 @@ export class SpeechClient {
128
128
// Save the auth object to the client, for use by other methods.
129
129
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
130
130
131
+ // Set useJWTAccessWithScope on the auth object.
132
+ this . auth . useJWTAccessWithScope = true ;
133
+
134
+ // Set defaultServicePath on the auth object.
135
+ this . auth . defaultServicePath = staticMembers . servicePath ;
136
+
131
137
// Set the default scopes in auth client if needed.
132
138
if ( servicePath === staticMembers . servicePath ) {
133
139
this . auth . defaultScopes = staticMembers . scopes ;
@@ -587,6 +593,7 @@ export class SpeechClient {
587
593
return this . speechStub ! . then ( stub => {
588
594
this . _terminated = true ;
589
595
stub . close ( ) ;
596
+ this . operationsClient . close ( ) ;
590
597
} ) ;
591
598
}
592
599
return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -131,6 +131,12 @@ export class AdaptationClient {
131
131
// Save the auth object to the client, for use by other methods.
132
132
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
133
133
134
+ // Set useJWTAccessWithScope on the auth object.
135
+ this . auth . useJWTAccessWithScope = true ;
136
+
137
+ // Set defaultServicePath on the auth object.
138
+ this . auth . defaultServicePath = staticMembers . servicePath ;
139
+
134
140
// Set the default scopes in auth client if needed.
135
141
if ( servicePath === staticMembers . servicePath ) {
136
142
this . auth . defaultScopes = staticMembers . scopes ;
Original file line number Diff line number Diff line change @@ -129,6 +129,12 @@ export class SpeechClient {
129
129
// Save the auth object to the client, for use by other methods.
130
130
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
131
131
132
+ // Set useJWTAccessWithScope on the auth object.
133
+ this . auth . useJWTAccessWithScope = true ;
134
+
135
+ // Set defaultServicePath on the auth object.
136
+ this . auth . defaultServicePath = staticMembers . servicePath ;
137
+
132
138
// Set the default scopes in auth client if needed.
133
139
if ( servicePath === staticMembers . servicePath ) {
134
140
this . auth . defaultScopes = staticMembers . scopes ;
@@ -711,6 +717,7 @@ export class SpeechClient {
711
717
return this . speechStub ! . then ( stub => {
712
718
this . _terminated = true ;
713
719
stub . close ( ) ;
720
+ this . operationsClient . close ( ) ;
714
721
} ) ;
715
722
}
716
723
return Promise . resolve ( ) ;
You can’t perform that action at this time.
0 commit comments