Skip to content

Commit bac83cc

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

28 files changed

+178
-0
lines changed

packages/google-cloud-dialogflow-cx/src/v3/agents_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class AgentsClient {
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;
@@ -2967,6 +2973,7 @@ export class AgentsClient {
29672973
return this.agentsStub!.then(stub => {
29682974
this._terminated = true;
29692975
stub.close();
2976+
this.operationsClient.close();
29702977
});
29712978
}
29722979
return Promise.resolve();

packages/google-cloud-dialogflow-cx/src/v3/entity_types_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class EntityTypesClient {
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;

packages/google-cloud-dialogflow-cx/src/v3/environments_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class EnvironmentsClient {
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;
@@ -3134,6 +3140,7 @@ export class EnvironmentsClient {
31343140
return this.environmentsStub!.then(stub => {
31353141
this._terminated = true;
31363142
stub.close();
3143+
this.operationsClient.close();
31373144
});
31383145
}
31393146
return Promise.resolve();

packages/google-cloud-dialogflow-cx/src/v3/experiments_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class ExperimentsClient {
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;

packages/google-cloud-dialogflow-cx/src/v3/flows_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class FlowsClient {
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;
@@ -3221,6 +3227,7 @@ export class FlowsClient {
32213227
return this.flowsStub!.then(stub => {
32223228
this._terminated = true;
32233229
stub.close();
3230+
this.operationsClient.close();
32243231
});
32253232
}
32263233
return Promise.resolve();

packages/google-cloud-dialogflow-cx/src/v3/intents_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class IntentsClient {
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;

packages/google-cloud-dialogflow-cx/src/v3/pages_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class PagesClient {
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;

packages/google-cloud-dialogflow-cx/src/v3/security_settings_service_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ export class SecuritySettingsServiceClient {
132132
// Save the auth object to the client, for use by other methods.
133133
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
134134

135+
// Set useJWTAccessWithScope on the auth object.
136+
this.auth.useJWTAccessWithScope = true;
137+
138+
// Set defaultServicePath on the auth object.
139+
this.auth.defaultServicePath = staticMembers.servicePath;
140+
135141
// Set the default scopes in auth client if needed.
136142
if (servicePath === staticMembers.servicePath) {
137143
this.auth.defaultScopes = staticMembers.scopes;

packages/google-cloud-dialogflow-cx/src/v3/session_entity_types_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class SessionEntityTypesClient {
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;

packages/google-cloud-dialogflow-cx/src/v3/sessions_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ export class SessionsClient {
124124
// Save the auth object to the client, for use by other methods.
125125
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
126126

127+
// Set useJWTAccessWithScope on the auth object.
128+
this.auth.useJWTAccessWithScope = true;
129+
130+
// Set defaultServicePath on the auth object.
131+
this.auth.defaultServicePath = staticMembers.servicePath;
132+
127133
// Set the default scopes in auth client if needed.
128134
if (servicePath === staticMembers.servicePath) {
129135
this.auth.defaultScopes = staticMembers.scopes;

packages/google-cloud-dialogflow-cx/src/v3/test_cases_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ export class TestCasesClient {
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;
@@ -3592,6 +3598,7 @@ export class TestCasesClient {
35923598
return this.testCasesStub!.then(stub => {
35933599
this._terminated = true;
35943600
stub.close();
3601+
this.operationsClient.close();
35953602
});
35963603
}
35973604
return Promise.resolve();

packages/google-cloud-dialogflow-cx/src/v3/transition_route_groups_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ export class TransitionRouteGroupsClient {
132132
// Save the auth object to the client, for use by other methods.
133133
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
134134

135+
// Set useJWTAccessWithScope on the auth object.
136+
this.auth.useJWTAccessWithScope = true;
137+
138+
// Set defaultServicePath on the auth object.
139+
this.auth.defaultServicePath = staticMembers.servicePath;
140+
135141
// Set the default scopes in auth client if needed.
136142
if (servicePath === staticMembers.servicePath) {
137143
this.auth.defaultScopes = staticMembers.scopes;

packages/google-cloud-dialogflow-cx/src/v3/versions_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class VersionsClient {
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;
@@ -2655,6 +2661,7 @@ export class VersionsClient {
26552661
return this.versionsStub!.then(stub => {
26562662
this._terminated = true;
26572663
stub.close();
2664+
this.operationsClient.close();
26582665
});
26592666
}
26602667
return Promise.resolve();

packages/google-cloud-dialogflow-cx/src/v3/webhooks_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class WebhooksClient {
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;

packages/google-cloud-dialogflow-cx/src/v3beta1/agents_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class AgentsClient {
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;
@@ -2978,6 +2984,7 @@ export class AgentsClient {
29782984
return this.agentsStub!.then(stub => {
29792985
this._terminated = true;
29802986
stub.close();
2987+
this.operationsClient.close();
29812988
});
29822989
}
29832990
return Promise.resolve();

packages/google-cloud-dialogflow-cx/src/v3beta1/entity_types_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class EntityTypesClient {
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;

packages/google-cloud-dialogflow-cx/src/v3beta1/environments_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class EnvironmentsClient {
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;
@@ -3140,6 +3146,7 @@ export class EnvironmentsClient {
31403146
return this.environmentsStub!.then(stub => {
31413147
this._terminated = true;
31423148
stub.close();
3149+
this.operationsClient.close();
31433150
});
31443151
}
31453152
return Promise.resolve();

packages/google-cloud-dialogflow-cx/src/v3beta1/experiments_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class ExperimentsClient {
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;

packages/google-cloud-dialogflow-cx/src/v3beta1/flows_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ export class FlowsClient {
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;
@@ -3233,6 +3239,7 @@ export class FlowsClient {
32333239
return this.flowsStub!.then(stub => {
32343240
this._terminated = true;
32353241
stub.close();
3242+
this.operationsClient.close();
32363243
});
32373244
}
32383245
return Promise.resolve();

packages/google-cloud-dialogflow-cx/src/v3beta1/intents_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class IntentsClient {
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;

packages/google-cloud-dialogflow-cx/src/v3beta1/pages_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class PagesClient {
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;

packages/google-cloud-dialogflow-cx/src/v3beta1/security_settings_service_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,12 @@ export class SecuritySettingsServiceClient {
132132
// Save the auth object to the client, for use by other methods.
133133
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
134134

135+
// Set useJWTAccessWithScope on the auth object.
136+
this.auth.useJWTAccessWithScope = true;
137+
138+
// Set defaultServicePath on the auth object.
139+
this.auth.defaultServicePath = staticMembers.servicePath;
140+
135141
// Set the default scopes in auth client if needed.
136142
if (servicePath === staticMembers.servicePath) {
137143
this.auth.defaultScopes = staticMembers.scopes;

packages/google-cloud-dialogflow-cx/src/v3beta1/session_entity_types_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ export class SessionEntityTypesClient {
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;

packages/google-cloud-dialogflow-cx/src/v3beta1/sessions_client.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ export class SessionsClient {
124124
// Save the auth object to the client, for use by other methods.
125125
this.auth = this._gaxGrpc.auth as gax.GoogleAuth;
126126

127+
// Set useJWTAccessWithScope on the auth object.
128+
this.auth.useJWTAccessWithScope = true;
129+
130+
// Set defaultServicePath on the auth object.
131+
this.auth.defaultServicePath = staticMembers.servicePath;
132+
127133
// Set the default scopes in auth client if needed.
128134
if (servicePath === staticMembers.servicePath) {
129135
this.auth.defaultScopes = staticMembers.scopes;

packages/google-cloud-dialogflow-cx/src/v3beta1/test_cases_client.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,12 @@ export class TestCasesClient {
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;
@@ -3604,6 +3610,7 @@ export class TestCasesClient {
36043610
return this.testCasesStub!.then(stub => {
36053611
this._terminated = true;
36063612
stub.close();
3613+
this.operationsClient.close();
36073614
});
36083615
}
36093616
return Promise.resolve();

0 commit comments

Comments
 (0)