Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 5e42bd0

Browse files
fix: enable self signed jwt for grpc (#134)
PiperOrigin-RevId: 386504689 Source-Link: googleapis/googleapis@762094a Source-Link: https://github.com/googleapis/googleapis-gen/commit/6bfc480e1a161d5de121c2bcc3745885d33b265a
1 parent 93a7aed commit 5e42bd0

File tree

56 files changed

+616
-336
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+616
-336
lines changed

google/cloud/dialogflowcx_v3/services/agents/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@ def __init__(
435435
client_cert_source_for_mtls=client_cert_source_func,
436436
quota_project_id=client_options.quota_project_id,
437437
client_info=client_info,
438+
always_use_jwt_access=(
439+
Transport == type(self).get_transport_class("grpc")
440+
or Transport == type(self).get_transport_class("grpc_asyncio")
441+
),
438442
)
439443

440444
def list_agents(

google/cloud/dialogflowcx_v3/services/entity_types/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,10 @@ def __init__(
348348
client_cert_source_for_mtls=client_cert_source_func,
349349
quota_project_id=client_options.quota_project_id,
350350
client_info=client_info,
351+
always_use_jwt_access=(
352+
Transport == type(self).get_transport_class("grpc")
353+
or Transport == type(self).get_transport_class("grpc_asyncio")
354+
),
351355
)
352356

353357
def list_entity_types(

google/cloud/dialogflowcx_v3/services/environments/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,10 @@ def __init__(
418418
client_cert_source_for_mtls=client_cert_source_func,
419419
quota_project_id=client_options.quota_project_id,
420420
client_info=client_info,
421+
always_use_jwt_access=(
422+
Transport == type(self).get_transport_class("grpc")
423+
or Transport == type(self).get_transport_class("grpc_asyncio")
424+
),
421425
)
422426

423427
def list_environments(

google/cloud/dialogflowcx_v3/services/experiments/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ def __init__(
372372
client_cert_source_for_mtls=client_cert_source_func,
373373
quota_project_id=client_options.quota_project_id,
374374
client_info=client_info,
375+
always_use_jwt_access=(
376+
Transport == type(self).get_transport_class("grpc")
377+
or Transport == type(self).get_transport_class("grpc_asyncio")
378+
),
375379
)
376380

377381
def list_experiments(

google/cloud/dialogflowcx_v3/services/flows/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ def __init__(
441441
client_cert_source_for_mtls=client_cert_source_func,
442442
quota_project_id=client_options.quota_project_id,
443443
client_info=client_info,
444+
always_use_jwt_access=(
445+
Transport == type(self).get_transport_class("grpc")
446+
or Transport == type(self).get_transport_class("grpc_asyncio")
447+
),
444448
)
445449

446450
def create_flow(

google/cloud/dialogflowcx_v3/services/intents/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ def __init__(
364364
client_cert_source_for_mtls=client_cert_source_func,
365365
quota_project_id=client_options.quota_project_id,
366366
client_info=client_info,
367+
always_use_jwt_access=(
368+
Transport == type(self).get_transport_class("grpc")
369+
or Transport == type(self).get_transport_class("grpc_asyncio")
370+
),
367371
)
368372

369373
def list_intents(

google/cloud/dialogflowcx_v3/services/pages/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,10 @@ def __init__(
435435
client_cert_source_for_mtls=client_cert_source_func,
436436
quota_project_id=client_options.quota_project_id,
437437
client_info=client_info,
438+
always_use_jwt_access=(
439+
Transport == type(self).get_transport_class("grpc")
440+
or Transport == type(self).get_transport_class("grpc_asyncio")
441+
),
438442
)
439443

440444
def list_pages(

google/cloud/dialogflowcx_v3/services/security_settings_service/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,10 @@ def __init__(
352352
client_cert_source_for_mtls=client_cert_source_func,
353353
quota_project_id=client_options.quota_project_id,
354354
client_info=client_info,
355+
always_use_jwt_access=(
356+
Transport == type(self).get_transport_class("grpc")
357+
or Transport == type(self).get_transport_class("grpc_asyncio")
358+
),
355359
)
356360

357361
def create_security_settings(

google/cloud/dialogflowcx_v3/services/session_entity_types/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,10 @@ def __init__(
359359
client_cert_source_for_mtls=client_cert_source_func,
360360
quota_project_id=client_options.quota_project_id,
361361
client_info=client_info,
362+
always_use_jwt_access=(
363+
Transport == type(self).get_transport_class("grpc")
364+
or Transport == type(self).get_transport_class("grpc_asyncio")
365+
),
362366
)
363367

364368
def list_session_entity_types(

google/cloud/dialogflowcx_v3/services/sessions/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ def __init__(
485485
client_cert_source_for_mtls=client_cert_source_func,
486486
quota_project_id=client_options.quota_project_id,
487487
client_info=client_info,
488+
always_use_jwt_access=(
489+
Transport == type(self).get_transport_class("grpc")
490+
or Transport == type(self).get_transport_class("grpc_asyncio")
491+
),
488492
)
489493

490494
def detect_intent(

0 commit comments

Comments
 (0)