Skip to content

Commit 0f71ac4

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

8 files changed

+54
-0
lines changed

packages/google-cloud-dataproc/src/v1/autoscaling_policy_service_client.ts

+6
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class AutoscalingPolicyServiceClient {
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;

packages/google-cloud-dataproc/src/v1/cluster_controller_client.ts

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

137+
// Set useJWTAccessWithScope on the auth object.
138+
this.auth.useJWTAccessWithScope = true;
139+
140+
// Set defaultServicePath on the auth object.
141+
this.auth.defaultServicePath = staticMembers.servicePath;
142+
137143
// Set the default scopes in auth client if needed.
138144
if (servicePath === staticMembers.servicePath) {
139145
this.auth.defaultScopes = staticMembers.scopes;
@@ -2117,6 +2123,7 @@ export class ClusterControllerClient {
21172123
return this.clusterControllerStub!.then(stub => {
21182124
this._terminated = true;
21192125
stub.close();
2126+
this.operationsClient.close();
21202127
});
21212128
}
21222129
return Promise.resolve();

packages/google-cloud-dataproc/src/v1/job_controller_client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class JobControllerClient {
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;
@@ -1531,6 +1537,7 @@ export class JobControllerClient {
15311537
return this.jobControllerStub!.then(stub => {
15321538
this._terminated = true;
15331539
stub.close();
1540+
this.operationsClient.close();
15341541
});
15351542
}
15361543
return Promise.resolve();

packages/google-cloud-dataproc/src/v1/workflow_template_service_client.ts

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

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+
138144
// Set the default scopes in auth client if needed.
139145
if (servicePath === staticMembers.servicePath) {
140146
this.auth.defaultScopes = staticMembers.scopes;
@@ -1771,6 +1777,7 @@ export class WorkflowTemplateServiceClient {
17711777
return this.workflowTemplateServiceStub!.then(stub => {
17721778
this._terminated = true;
17731779
stub.close();
1780+
this.operationsClient.close();
17741781
});
17751782
}
17761783
return Promise.resolve();

packages/google-cloud-dataproc/src/v1beta2/autoscaling_policy_service_client.ts

+6
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class AutoscalingPolicyServiceClient {
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;

packages/google-cloud-dataproc/src/v1beta2/cluster_controller_client.ts

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

137+
// Set useJWTAccessWithScope on the auth object.
138+
this.auth.useJWTAccessWithScope = true;
139+
140+
// Set defaultServicePath on the auth object.
141+
this.auth.defaultServicePath = staticMembers.servicePath;
142+
137143
// Set the default scopes in auth client if needed.
138144
if (servicePath === staticMembers.servicePath) {
139145
this.auth.defaultScopes = staticMembers.scopes;
@@ -1741,6 +1747,7 @@ export class ClusterControllerClient {
17411747
return this.clusterControllerStub!.then(stub => {
17421748
this._terminated = true;
17431749
stub.close();
1750+
this.operationsClient.close();
17441751
});
17451752
}
17461753
return Promise.resolve();

packages/google-cloud-dataproc/src/v1beta2/job_controller_client.ts

+7
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class JobControllerClient {
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;
@@ -1541,6 +1547,7 @@ export class JobControllerClient {
15411547
return this.jobControllerStub!.then(stub => {
15421548
this._terminated = true;
15431549
stub.close();
1550+
this.operationsClient.close();
15441551
});
15451552
}
15461553
return Promise.resolve();

packages/google-cloud-dataproc/src/v1beta2/workflow_template_service_client.ts

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

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+
138144
// Set the default scopes in auth client if needed.
139145
if (servicePath === staticMembers.servicePath) {
140146
this.auth.defaultScopes = staticMembers.scopes;
@@ -1781,6 +1787,7 @@ export class WorkflowTemplateServiceClient {
17811787
return this.workflowTemplateServiceStub!.then(stub => {
17821788
this._terminated = true;
17831789
stub.close();
1790+
this.operationsClient.close();
17841791
});
17851792
}
17861793
return Promise.resolve();

0 commit comments

Comments
 (0)