1717from distutils import util
1818import os
1919import re
20- from typing import Callable , Dict , Optional , Sequence , Tuple , Type , Union
20+ from typing import Dict , Optional , Sequence , Tuple , Type , Union
2121import pkg_resources
2222
2323from google .api_core import client_options as client_options_lib # type: ignore
@@ -378,7 +378,7 @@ def __init__(
378378
379379 def create_assessment (
380380 self ,
381- request : recaptchaenterprise .CreateAssessmentRequest = None ,
381+ request : Union [ recaptchaenterprise .CreateAssessmentRequest , dict ] = None ,
382382 * ,
383383 parent : str = None ,
384384 assessment : recaptchaenterprise .Assessment = None ,
@@ -390,7 +390,7 @@ def create_assessment(
390390 legitimate.
391391
392392 Args:
393- request (google.cloud.recaptchaenterprise_v1.types.CreateAssessmentRequest):
393+ request (Union[ google.cloud.recaptchaenterprise_v1.types.CreateAssessmentRequest, dict] ):
394394 The request object. The create assessment request
395395 message.
396396 parent (str):
@@ -457,7 +457,7 @@ def create_assessment(
457457
458458 def annotate_assessment (
459459 self ,
460- request : recaptchaenterprise .AnnotateAssessmentRequest = None ,
460+ request : Union [ recaptchaenterprise .AnnotateAssessmentRequest , dict ] = None ,
461461 * ,
462462 name : str = None ,
463463 annotation : recaptchaenterprise .AnnotateAssessmentRequest .Annotation = None ,
@@ -470,7 +470,7 @@ def annotate_assessment(
470470 to be authentic or fraudulent.
471471
472472 Args:
473- request (google.cloud.recaptchaenterprise_v1.types.AnnotateAssessmentRequest):
473+ request (Union[ google.cloud.recaptchaenterprise_v1.types.AnnotateAssessmentRequest, dict] ):
474474 The request object. The request message to annotate an
475475 Assessment.
476476 name (str):
@@ -544,7 +544,7 @@ def annotate_assessment(
544544
545545 def create_key (
546546 self ,
547- request : recaptchaenterprise .CreateKeyRequest = None ,
547+ request : Union [ recaptchaenterprise .CreateKeyRequest , dict ] = None ,
548548 * ,
549549 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
550550 timeout : float = None ,
@@ -553,7 +553,7 @@ def create_key(
553553 r"""Creates a new reCAPTCHA Enterprise key.
554554
555555 Args:
556- request (google.cloud.recaptchaenterprise_v1.types.CreateKeyRequest):
556+ request (Union[ google.cloud.recaptchaenterprise_v1.types.CreateKeyRequest, dict] ):
557557 The request object. The create key request message.
558558 retry (google.api_core.retry.Retry): Designation of what errors, if any,
559559 should be retried.
@@ -594,7 +594,7 @@ def create_key(
594594
595595 def list_keys (
596596 self ,
597- request : recaptchaenterprise .ListKeysRequest = None ,
597+ request : Union [ recaptchaenterprise .ListKeysRequest , dict ] = None ,
598598 * ,
599599 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
600600 timeout : float = None ,
@@ -604,7 +604,7 @@ def list_keys(
604604 project.
605605
606606 Args:
607- request (google.cloud.recaptchaenterprise_v1.types.ListKeysRequest):
607+ request (Union[ google.cloud.recaptchaenterprise_v1.types.ListKeysRequest, dict] ):
608608 The request object. The list keys request message.
609609 retry (google.api_core.retry.Retry): Designation of what errors, if any,
610610 should be retried.
@@ -653,7 +653,7 @@ def list_keys(
653653
654654 def get_key (
655655 self ,
656- request : recaptchaenterprise .GetKeyRequest = None ,
656+ request : Union [ recaptchaenterprise .GetKeyRequest , dict ] = None ,
657657 * ,
658658 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
659659 timeout : float = None ,
@@ -662,7 +662,7 @@ def get_key(
662662 r"""Returns the specified key.
663663
664664 Args:
665- request (google.cloud.recaptchaenterprise_v1.types.GetKeyRequest):
665+ request (Union[ google.cloud.recaptchaenterprise_v1.types.GetKeyRequest, dict] ):
666666 The request object. The get key request message.
667667 retry (google.api_core.retry.Retry): Designation of what errors, if any,
668668 should be retried.
@@ -703,7 +703,7 @@ def get_key(
703703
704704 def update_key (
705705 self ,
706- request : recaptchaenterprise .UpdateKeyRequest = None ,
706+ request : Union [ recaptchaenterprise .UpdateKeyRequest , dict ] = None ,
707707 * ,
708708 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
709709 timeout : float = None ,
@@ -712,7 +712,7 @@ def update_key(
712712 r"""Updates the specified key.
713713
714714 Args:
715- request (google.cloud.recaptchaenterprise_v1.types.UpdateKeyRequest):
715+ request (Union[ google.cloud.recaptchaenterprise_v1.types.UpdateKeyRequest, dict] ):
716716 The request object. The update key request message.
717717 retry (google.api_core.retry.Retry): Designation of what errors, if any,
718718 should be retried.
@@ -753,7 +753,7 @@ def update_key(
753753
754754 def delete_key (
755755 self ,
756- request : recaptchaenterprise .DeleteKeyRequest = None ,
756+ request : Union [ recaptchaenterprise .DeleteKeyRequest , dict ] = None ,
757757 * ,
758758 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
759759 timeout : float = None ,
@@ -762,7 +762,7 @@ def delete_key(
762762 r"""Deletes the specified key.
763763
764764 Args:
765- request (google.cloud.recaptchaenterprise_v1.types.DeleteKeyRequest):
765+ request (Union[ google.cloud.recaptchaenterprise_v1.types.DeleteKeyRequest, dict] ):
766766 The request object. The delete key request message.
767767 retry (google.api_core.retry.Retry): Designation of what errors, if any,
768768 should be retried.
@@ -795,7 +795,7 @@ def delete_key(
795795
796796 def migrate_key (
797797 self ,
798- request : recaptchaenterprise .MigrateKeyRequest = None ,
798+ request : Union [ recaptchaenterprise .MigrateKeyRequest , dict ] = None ,
799799 * ,
800800 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
801801 timeout : float = None ,
@@ -810,7 +810,7 @@ def migrate_key(
810810 role in the destination project.
811811
812812 Args:
813- request (google.cloud.recaptchaenterprise_v1.types.MigrateKeyRequest):
813+ request (Union[ google.cloud.recaptchaenterprise_v1.types.MigrateKeyRequest, dict] ):
814814 The request object. The migrate key request message.
815815 retry (google.api_core.retry.Retry): Designation of what errors, if any,
816816 should be retried.
@@ -851,7 +851,7 @@ def migrate_key(
851851
852852 def get_metrics (
853853 self ,
854- request : recaptchaenterprise .GetMetricsRequest = None ,
854+ request : Union [ recaptchaenterprise .GetMetricsRequest , dict ] = None ,
855855 * ,
856856 name : str = None ,
857857 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -862,7 +862,7 @@ def get_metrics(
862862 be used to build dashboards.
863863
864864 Args:
865- request (google.cloud.recaptchaenterprise_v1.types.GetMetricsRequest):
865+ request (Union[ google.cloud.recaptchaenterprise_v1.types.GetMetricsRequest, dict] ):
866866 The request object. The get metrics request message.
867867 name (str):
868868 Required. The name of the requested
0 commit comments