Skip to content

Commit cbce0e4

Browse files
feat: turns on self-signed JWT feature flag (#542)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 392067151 Source-Link: googleapis/googleapis@06345f7 Source-Link: googleapis/googleapis-gen@95882b3
1 parent fa2e458 commit cbce0e4

File tree

5 files changed

+32
-0
lines changed

5 files changed

+32
-0
lines changed

packages/google-cloud-asset/src/v1/asset_service_client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class AssetServiceClient {
133133
// Save the auth object to the client, for use by other methods.
134134
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
135135

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+
136142
// Set the default scopes in auth client if needed.
137143
if (servicePath === staticMembers.servicePath) {
138144
this.auth.defaultScopes = staticMembers.scopes;
@@ -3112,6 +3118,7 @@ export class AssetServiceClient {
31123118
return this.assetServiceStub!.then(stub => {
31133119
this._terminated = true;
31143120
stub.close();
3121+
this.operationsClient.close();
31153122
});
31163123
}
31173124
return Promise.resolve();

packages/google-cloud-asset/src/v1p1beta1/asset_service_client.ts

+6
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ export class AssetServiceClient {
130130
// Save the auth object to the client, for use by other methods.
131131
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
132132

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+
133139
// Set the default scopes in auth client if needed.
134140
if (servicePath === staticMembers.servicePath) {
135141
this.auth.defaultScopes = staticMembers.scopes;

packages/google-cloud-asset/src/v1p2beta1/asset_service_client.ts

+6
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,12 @@ export class AssetServiceClient {
122122
// Save the auth object to the client, for use by other methods.
123123
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
124124

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+
125131
// Set the default scopes in auth client if needed.
126132
if (servicePath === staticMembers.servicePath) {
127133
this.auth.defaultScopes = staticMembers.scopes;

packages/google-cloud-asset/src/v1p4beta1/asset_service_client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ export class AssetServiceClient {
128128
// Save the auth object to the client, for use by other methods.
129129
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
130130

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+
131137
// Set the default scopes in auth client if needed.
132138
if (servicePath === staticMembers.servicePath) {
133139
this.auth.defaultScopes = staticMembers.scopes;
@@ -576,6 +582,7 @@ export class AssetServiceClient {
576582
return this.assetServiceStub!.then(stub => {
577583
this._terminated = true;
578584
stub.close();
585+
this.operationsClient.close();
579586
});
580587
}
581588
return Promise.resolve();

packages/google-cloud-asset/src/v1p5beta1/asset_service_client.ts

+6
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class AssetServiceClient {
131131
// Save the auth object to the client, for use by other methods.
132132
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
133133

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+
134140
// Set the default scopes in auth client if needed.
135141
if (servicePath === staticMembers.servicePath) {
136142
this.auth.defaultScopes = staticMembers.scopes;

0 commit comments

Comments
 (0)