Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit dcb970d

Browse files
feat: turns on self-signed JWT feature flag (#271)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 392067151 Source-Link: googleapis/googleapis@06345f7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/95882b37970e41e4cd51b22fa507cfd46dc7c4b6
1 parent 21dc8d7 commit dcb970d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/v1/cloud_build_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ export class CloudBuildClient {
140140
// Save the auth object to the client, for use by other methods.
141141
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
142142

143+
// Set useJWTAccessWithScope on the auth object.
144+
this.auth.useJWTAccessWithScope = true;
145+
146+
// Set defaultServicePath on the auth object.
147+
this.auth.defaultServicePath = staticMembers.servicePath;
148+
143149
// Set the default scopes in auth client if needed.
144150
if (servicePath === staticMembers.servicePath) {
145151
this.auth.defaultScopes = staticMembers.scopes;
@@ -3555,6 +3561,7 @@ export class CloudBuildClient {
35553561
return this.cloudBuildStub!.then(stub => {
35563562
this._terminated = true;
35573563
stub.close();
3564+
this.operationsClient.close();
35583565
});
35593566
}
35603567
return Promise.resolve();

0 commit comments

Comments
 (0)