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

Commit ae434ed

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

File tree

60 files changed

+660
-358
lines changed

Some content is hidden

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

60 files changed

+660
-358
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,10 @@ def __init__(
343343
client_cert_source_for_mtls=client_cert_source_func,
344344
quota_project_id=client_options.quota_project_id,
345345
client_info=client_info,
346+
always_use_jwt_access=(
347+
Transport == type(self).get_transport_class("grpc")
348+
or Transport == type(self).get_transport_class("grpc_asyncio")
349+
),
346350
)
347351

348352
def get_agent(

google/cloud/dialogflow_v2/services/answer_records/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ def __init__(
345345
client_cert_source_for_mtls=client_cert_source_func,
346346
quota_project_id=client_options.quota_project_id,
347347
client_info=client_info,
348+
always_use_jwt_access=(
349+
Transport == type(self).get_transport_class("grpc")
350+
or Transport == type(self).get_transport_class("grpc_asyncio")
351+
),
348352
)
349353

350354
def list_answer_records(

google/cloud/dialogflow_v2/services/contexts/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,10 @@ def __init__(
345345
client_cert_source_for_mtls=client_cert_source_func,
346346
quota_project_id=client_options.quota_project_id,
347347
client_info=client_info,
348+
always_use_jwt_access=(
349+
Transport == type(self).get_transport_class("grpc")
350+
or Transport == type(self).get_transport_class("grpc_asyncio")
351+
),
348352
)
349353

350354
def list_contexts(

google/cloud/dialogflow_v2/services/conversation_profiles/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,10 @@ def __init__(
414414
client_cert_source_for_mtls=client_cert_source_func,
415415
quota_project_id=client_options.quota_project_id,
416416
client_info=client_info,
417+
always_use_jwt_access=(
418+
Transport == type(self).get_transport_class("grpc")
419+
or Transport == type(self).get_transport_class("grpc_asyncio")
420+
),
417421
)
418422

419423
def list_conversation_profiles(

google/cloud/dialogflow_v2/services/conversations/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,10 @@ def __init__(
378378
client_cert_source_for_mtls=client_cert_source_func,
379379
quota_project_id=client_options.quota_project_id,
380380
client_info=client_info,
381+
always_use_jwt_access=(
382+
Transport == type(self).get_transport_class("grpc")
383+
or Transport == type(self).get_transport_class("grpc_asyncio")
384+
),
381385
)
382386

383387
def create_conversation(

google/cloud/dialogflow_v2/services/documents/client.py

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

354358
def list_documents(

google/cloud/dialogflow_v2/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/dialogflow_v2/services/environments/client.py

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

376380
def list_environments(

google/cloud/dialogflow_v2/services/fulfillments/client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ def __init__(
340340
client_cert_source_for_mtls=client_cert_source_func,
341341
quota_project_id=client_options.quota_project_id,
342342
client_info=client_info,
343+
always_use_jwt_access=(
344+
Transport == type(self).get_transport_class("grpc")
345+
or Transport == type(self).get_transport_class("grpc_asyncio")
346+
),
343347
)
344348

345349
def get_fulfillment(

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,10 @@ def __init__(
362362
client_cert_source_for_mtls=client_cert_source_func,
363363
quota_project_id=client_options.quota_project_id,
364364
client_info=client_info,
365+
always_use_jwt_access=(
366+
Transport == type(self).get_transport_class("grpc")
367+
or Transport == type(self).get_transport_class("grpc_asyncio")
368+
),
365369
)
366370

367371
def list_intents(

0 commit comments

Comments
 (0)