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
@@ -338,7 +338,7 @@ def __init__(
338338
339339 def get_billing_account (
340340 self ,
341- request : cloud_billing .GetBillingAccountRequest = None ,
341+ request : Union [ cloud_billing .GetBillingAccountRequest , dict ] = None ,
342342 * ,
343343 name : str = None ,
344344 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -350,7 +350,7 @@ def get_billing_account(
350350 account <https://cloud.google.com/billing/docs/how-to/billing-access>`__.
351351
352352 Args:
353- request (google.cloud.billing_v1.types.GetBillingAccountRequest):
353+ request (Union[ google.cloud.billing_v1.types.GetBillingAccountRequest, dict] ):
354354 The request object. Request message for
355355 `GetBillingAccount`.
356356 name (str):
@@ -413,7 +413,7 @@ def get_billing_account(
413413
414414 def list_billing_accounts (
415415 self ,
416- request : cloud_billing .ListBillingAccountsRequest = None ,
416+ request : Union [ cloud_billing .ListBillingAccountsRequest , dict ] = None ,
417417 * ,
418418 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
419419 timeout : float = None ,
@@ -424,7 +424,7 @@ def list_billing_accounts(
424424 `view <https://cloud.google.com/billing/docs/how-to/billing-access>`__.
425425
426426 Args:
427- request (google.cloud.billing_v1.types.ListBillingAccountsRequest):
427+ request (Union[ google.cloud.billing_v1.types.ListBillingAccountsRequest, dict] ):
428428 The request object. Request message for
429429 `ListBillingAccounts`.
430430 retry (google.api_core.retry.Retry): Designation of what errors, if any,
@@ -467,7 +467,7 @@ def list_billing_accounts(
467467
468468 def update_billing_account (
469469 self ,
470- request : cloud_billing .UpdateBillingAccountRequest = None ,
470+ request : Union [ cloud_billing .UpdateBillingAccountRequest , dict ] = None ,
471471 * ,
472472 name : str = None ,
473473 account : cloud_billing .BillingAccount = None ,
@@ -483,7 +483,7 @@ def update_billing_account(
483483 of the billing account.
484484
485485 Args:
486- request (google.cloud.billing_v1.types.UpdateBillingAccountRequest):
486+ request (Union[ google.cloud.billing_v1.types.UpdateBillingAccountRequest, dict] ):
487487 The request object. Request message for
488488 `UpdateBillingAccount`.
489489 name (str):
@@ -555,7 +555,7 @@ def update_billing_account(
555555
556556 def create_billing_account (
557557 self ,
558- request : cloud_billing .CreateBillingAccountRequest = None ,
558+ request : Union [ cloud_billing .CreateBillingAccountRequest , dict ] = None ,
559559 * ,
560560 billing_account : cloud_billing .BillingAccount = None ,
561561 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -574,7 +574,7 @@ def create_billing_account(
574574 been provisioned as a reseller account.
575575
576576 Args:
577- request (google.cloud.billing_v1.types.CreateBillingAccountRequest):
577+ request (Union[ google.cloud.billing_v1.types.CreateBillingAccountRequest, dict] ):
578578 The request object. Request message for
579579 `CreateBillingAccount`.
580580 billing_account (google.cloud.billing_v1.types.BillingAccount):
@@ -634,7 +634,7 @@ def create_billing_account(
634634
635635 def list_project_billing_info (
636636 self ,
637- request : cloud_billing .ListProjectBillingInfoRequest = None ,
637+ request : Union [ cloud_billing .ListProjectBillingInfoRequest , dict ] = None ,
638638 * ,
639639 name : str = None ,
640640 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -648,7 +648,7 @@ def list_project_billing_info(
648648 `viewers <https://cloud.google.com/billing/docs/how-to/billing-access>`__.
649649
650650 Args:
651- request (google.cloud.billing_v1.types.ListProjectBillingInfoRequest):
651+ request (Union[ google.cloud.billing_v1.types.ListProjectBillingInfoRequest, dict] ):
652652 The request object. Request message for
653653 `ListProjectBillingInfo`.
654654 name (str):
@@ -720,7 +720,7 @@ def list_project_billing_info(
720720
721721 def get_project_billing_info (
722722 self ,
723- request : cloud_billing .GetProjectBillingInfoRequest = None ,
723+ request : Union [ cloud_billing .GetProjectBillingInfoRequest , dict ] = None ,
724724 * ,
725725 name : str = None ,
726726 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -732,7 +732,7 @@ def get_project_billing_info(
732732 project <https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo>`__.
733733
734734 Args:
735- request (google.cloud.billing_v1.types.GetProjectBillingInfoRequest):
735+ request (Union[ google.cloud.billing_v1.types.GetProjectBillingInfoRequest, dict] ):
736736 The request object. Request message for
737737 `GetProjectBillingInfo`.
738738 name (str):
@@ -797,7 +797,7 @@ def get_project_billing_info(
797797
798798 def update_project_billing_info (
799799 self ,
800- request : cloud_billing .UpdateProjectBillingInfoRequest = None ,
800+ request : Union [ cloud_billing .UpdateProjectBillingInfoRequest , dict ] = None ,
801801 * ,
802802 name : str = None ,
803803 project_billing_info : cloud_billing .ProjectBillingInfo = None ,
@@ -843,7 +843,7 @@ def update_project_billing_info(
843843 account.
844844
845845 Args:
846- request (google.cloud.billing_v1.types.UpdateProjectBillingInfoRequest):
846+ request (Union[ google.cloud.billing_v1.types.UpdateProjectBillingInfoRequest, dict] ):
847847 The request object. Request message for
848848 `UpdateProjectBillingInfo`.
849849 name (str):
@@ -920,7 +920,7 @@ def update_project_billing_info(
920920
921921 def get_iam_policy (
922922 self ,
923- request : iam_policy_pb2 .GetIamPolicyRequest = None ,
923+ request : Union [ iam_policy_pb2 .GetIamPolicyRequest , dict ] = None ,
924924 * ,
925925 resource : str = None ,
926926 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -933,7 +933,7 @@ def get_iam_policy(
933933 `viewers <https://cloud.google.com/billing/docs/how-to/billing-access>`__.
934934
935935 Args:
936- request (google.iam.v1.iam_policy_pb2.GetIamPolicyRequest):
936+ request (Union[ google.iam.v1.iam_policy_pb2.GetIamPolicyRequest, dict] ):
937937 The request object. Request message for `GetIamPolicy`
938938 method.
939939 resource (str):
@@ -1048,7 +1048,7 @@ def get_iam_policy(
10481048
10491049 def set_iam_policy (
10501050 self ,
1051- request : iam_policy_pb2 .SetIamPolicyRequest = None ,
1051+ request : Union [ iam_policy_pb2 .SetIamPolicyRequest , dict ] = None ,
10521052 * ,
10531053 resource : str = None ,
10541054 retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -1062,7 +1062,7 @@ def set_iam_policy(
10621062 `administrators <https://cloud.google.com/billing/docs/how-to/billing-access>`__.
10631063
10641064 Args:
1065- request (google.iam.v1.iam_policy_pb2.SetIamPolicyRequest):
1065+ request (Union[ google.iam.v1.iam_policy_pb2.SetIamPolicyRequest, dict] ):
10661066 The request object. Request message for `SetIamPolicy`
10671067 method.
10681068 resource (str):
@@ -1177,7 +1177,7 @@ def set_iam_policy(
11771177
11781178 def test_iam_permissions (
11791179 self ,
1180- request : iam_policy_pb2 .TestIamPermissionsRequest = None ,
1180+ request : Union [ iam_policy_pb2 .TestIamPermissionsRequest , dict ] = None ,
11811181 * ,
11821182 resource : str = None ,
11831183 permissions : Sequence [str ] = None ,
@@ -1192,7 +1192,7 @@ def test_iam_permissions(
11921192 resource.
11931193
11941194 Args:
1195- request (google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest):
1195+ request (Union[ google.iam.v1.iam_policy_pb2.TestIamPermissionsRequest, dict] ):
11961196 The request object. Request message for
11971197 `TestIamPermissions` method.
11981198 resource (str):
0 commit comments