File tree 2 files changed +14
-0
lines changed
packages/google-cloud-networkconnectivity/src
2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,12 @@ export class HubServiceClient {
135
135
// Save the auth object to the client, for use by other methods.
136
136
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
137
137
138
+ // Set useJWTAccessWithScope on the auth object.
139
+ this . auth . useJWTAccessWithScope = true ;
140
+
141
+ // Set defaultServicePath on the auth object.
142
+ this . auth . defaultServicePath = staticMembers . servicePath ;
143
+
138
144
// Set the default scopes in auth client if needed.
139
145
if ( servicePath === staticMembers . servicePath ) {
140
146
this . auth . defaultScopes = staticMembers . scopes ;
@@ -2611,6 +2617,7 @@ export class HubServiceClient {
2611
2617
return this . hubServiceStub ! . then ( stub => {
2612
2618
this . _terminated = true ;
2613
2619
stub . close ( ) ;
2620
+ this . operationsClient . close ( ) ;
2614
2621
} ) ;
2615
2622
}
2616
2623
return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -136,6 +136,12 @@ export class HubServiceClient {
136
136
// Save the auth object to the client, for use by other methods.
137
137
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
138
138
139
+ // Set useJWTAccessWithScope on the auth object.
140
+ this . auth . useJWTAccessWithScope = true ;
141
+
142
+ // Set defaultServicePath on the auth object.
143
+ this . auth . defaultServicePath = staticMembers . servicePath ;
144
+
139
145
// Set the default scopes in auth client if needed.
140
146
if ( servicePath === staticMembers . servicePath ) {
141
147
this . auth . defaultScopes = staticMembers . scopes ;
@@ -2280,6 +2286,7 @@ export class HubServiceClient {
2280
2286
return this . hubServiceStub ! . then ( stub => {
2281
2287
this . _terminated = true ;
2282
2288
stub . close ( ) ;
2289
+ this . operationsClient . close ( ) ;
2283
2290
} ) ;
2284
2291
}
2285
2292
return Promise . resolve ( ) ;
You can’t perform that action at this time.
0 commit comments