File tree 5 files changed +32
-0
lines changed
packages/google-cloud-asset/src
5 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,12 @@ export class AssetServiceClient {
133
133
// Save the auth object to the client, for use by other methods.
134
134
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
135
135
136
+ // Set useJWTAccessWithScope on the auth object.
137
+ this . auth . useJWTAccessWithScope = true ;
138
+
139
+ // Set defaultServicePath on the auth object.
140
+ this . auth . defaultServicePath = staticMembers . servicePath ;
141
+
136
142
// Set the default scopes in auth client if needed.
137
143
if ( servicePath === staticMembers . servicePath ) {
138
144
this . auth . defaultScopes = staticMembers . scopes ;
@@ -3112,6 +3118,7 @@ export class AssetServiceClient {
3112
3118
return this . assetServiceStub ! . then ( stub => {
3113
3119
this . _terminated = true ;
3114
3120
stub . close ( ) ;
3121
+ this . operationsClient . close ( ) ;
3115
3122
} ) ;
3116
3123
}
3117
3124
return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -130,6 +130,12 @@ export class AssetServiceClient {
130
130
// Save the auth object to the client, for use by other methods.
131
131
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
132
132
133
+ // Set useJWTAccessWithScope on the auth object.
134
+ this . auth . useJWTAccessWithScope = true ;
135
+
136
+ // Set defaultServicePath on the auth object.
137
+ this . auth . defaultServicePath = staticMembers . servicePath ;
138
+
133
139
// Set the default scopes in auth client if needed.
134
140
if ( servicePath === staticMembers . servicePath ) {
135
141
this . auth . defaultScopes = staticMembers . scopes ;
Original file line number Diff line number Diff line change @@ -122,6 +122,12 @@ export class AssetServiceClient {
122
122
// Save the auth object to the client, for use by other methods.
123
123
this . auth = this . _gaxGrpc . auth as gax . GoogleAuth ;
124
124
125
+ // Set useJWTAccessWithScope on the auth object.
126
+ this . auth . useJWTAccessWithScope = true ;
127
+
128
+ // Set defaultServicePath on the auth object.
129
+ this . auth . defaultServicePath = staticMembers . servicePath ;
130
+
125
131
// Set the default scopes in auth client if needed.
126
132
if ( servicePath === staticMembers . servicePath ) {
127
133
this . auth . defaultScopes = staticMembers . scopes ;
Original file line number Diff line number Diff line change @@ -128,6 +128,12 @@ export class AssetServiceClient {
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 ;
@@ -576,6 +582,7 @@ export class AssetServiceClient {
576
582
return this . assetServiceStub ! . then ( stub => {
577
583
this . _terminated = true ;
578
584
stub . close ( ) ;
585
+ this . operationsClient . close ( ) ;
579
586
} ) ;
580
587
}
581
588
return Promise . resolve ( ) ;
Original file line number Diff line number Diff line change @@ -131,6 +131,12 @@ export class AssetServiceClient {
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 ;
You can’t perform that action at this time.
0 commit comments