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

Commit 51f7055

Browse files
chore: use gapic-generator-python 0.51.2 (#115)
- [ ] Regenerate this pull request now. fix: add 'dict' annotation type to 'request' Committer: @busunkim96 PiperOrigin-RevId: 398509016 Source-Link: googleapis/googleapis@b224dfa Source-Link: https://github.com/googleapis/googleapis-gen/commit/63a1db7a38d74b9639592f521ed1daaf7299ad9a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjNhMWRiN2EzOGQ3NGI5NjM5NTkyZjUyMWVkMWRhYWY3Mjk5YWQ5YSJ9
1 parent 36083b1 commit 51f7055

8 files changed

Lines changed: 40 additions & 40 deletions

File tree

‎google/cloud/billing_v1/services/cloud_billing/client.py‎

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

2323
from 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):

‎google/cloud/billing_v1/services/cloud_billing/transports/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def __init__(
117117
**scopes_kwargs, quota_project_id=quota_project_id
118118
)
119119

120-
# If the credentials is service account credentials, then always try to use self signed JWT.
120+
# If the credentials are service account credentials, then always try to use self signed JWT.
121121
if (
122122
always_use_jwt_access
123123
and isinstance(credentials, service_account.Credentials)

‎google/cloud/billing_v1/services/cloud_billing/transports/grpc.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ def __init__(
8383
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8484
If provided, it overrides the ``host`` argument and tries to create
8585
a mutual TLS channel with client SSL credentials from
86-
``client_cert_source`` or applicatin default SSL credentials.
86+
``client_cert_source`` or application default SSL credentials.
8787
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8888
Deprecated. A callback to provide client SSL certificate bytes and
8989
private key bytes, both in PEM format. It is ignored if
9090
``api_mtls_endpoint`` is None.
9191
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
92-
for grpc channel. It is ignored if ``channel`` is provided.
92+
for the grpc channel. It is ignored if ``channel`` is provided.
9393
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9494
A callback to provide client certificate bytes and private key bytes,
95-
both in PEM format. It is used to configure mutual TLS channel. It is
95+
both in PEM format. It is used to configure a mutual TLS channel. It is
9696
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9797
quota_project_id (Optional[str]): An optional project to use for billing
9898
and quota.

‎google/cloud/billing_v1/services/cloud_billing/transports/grpc_asyncio.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,16 @@ def __init__(
130130
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
131131
If provided, it overrides the ``host`` argument and tries to create
132132
a mutual TLS channel with client SSL credentials from
133-
``client_cert_source`` or applicatin default SSL credentials.
133+
``client_cert_source`` or application default SSL credentials.
134134
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
135135
Deprecated. A callback to provide client SSL certificate bytes and
136136
private key bytes, both in PEM format. It is ignored if
137137
``api_mtls_endpoint`` is None.
138138
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
139-
for grpc channel. It is ignored if ``channel`` is provided.
139+
for the grpc channel. It is ignored if ``channel`` is provided.
140140
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
141141
A callback to provide client certificate bytes and private key bytes,
142-
both in PEM format. It is used to configure mutual TLS channel. It is
142+
both in PEM format. It is used to configure a mutual TLS channel. It is
143143
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
144144
quota_project_id (Optional[str]): An optional project to use for billing
145145
and quota.

‎google/cloud/billing_v1/services/cloud_catalog/client.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from distutils import util
1818
import os
1919
import re
20-
from typing import Callable, Dict, Optional, Sequence, Tuple, Type, Union
20+
from typing import Dict, Optional, Sequence, Tuple, Type, Union
2121
import pkg_resources
2222

2323
from google.api_core import client_options as client_options_lib # type: ignore
@@ -359,7 +359,7 @@ def __init__(
359359

360360
def list_services(
361361
self,
362-
request: cloud_catalog.ListServicesRequest = None,
362+
request: Union[cloud_catalog.ListServicesRequest, dict] = None,
363363
*,
364364
retry: retries.Retry = gapic_v1.method.DEFAULT,
365365
timeout: float = None,
@@ -368,7 +368,7 @@ def list_services(
368368
r"""Lists all public cloud services.
369369
370370
Args:
371-
request (google.cloud.billing_v1.types.ListServicesRequest):
371+
request (Union[google.cloud.billing_v1.types.ListServicesRequest, dict]):
372372
The request object. Request message for `ListServices`.
373373
retry (google.api_core.retry.Retry): Designation of what errors, if any,
374374
should be retried.
@@ -410,7 +410,7 @@ def list_services(
410410

411411
def list_skus(
412412
self,
413-
request: cloud_catalog.ListSkusRequest = None,
413+
request: Union[cloud_catalog.ListSkusRequest, dict] = None,
414414
*,
415415
parent: str = None,
416416
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -421,7 +421,7 @@ def list_skus(
421421
service.
422422
423423
Args:
424-
request (google.cloud.billing_v1.types.ListSkusRequest):
424+
request (Union[google.cloud.billing_v1.types.ListSkusRequest, dict]):
425425
The request object. Request message for `ListSkus`.
426426
parent (str):
427427
Required. The name of the service.

‎google/cloud/billing_v1/services/cloud_catalog/transports/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def __init__(
115115
**scopes_kwargs, quota_project_id=quota_project_id
116116
)
117117

118-
# If the credentials is service account credentials, then always try to use self signed JWT.
118+
# If the credentials are service account credentials, then always try to use self signed JWT.
119119
if (
120120
always_use_jwt_access
121121
and isinstance(credentials, service_account.Credentials)

‎google/cloud/billing_v1/services/cloud_catalog/transports/grpc.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,16 @@ def __init__(
8282
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
8383
If provided, it overrides the ``host`` argument and tries to create
8484
a mutual TLS channel with client SSL credentials from
85-
``client_cert_source`` or applicatin default SSL credentials.
85+
``client_cert_source`` or application default SSL credentials.
8686
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
8787
Deprecated. A callback to provide client SSL certificate bytes and
8888
private key bytes, both in PEM format. It is ignored if
8989
``api_mtls_endpoint`` is None.
9090
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
91-
for grpc channel. It is ignored if ``channel`` is provided.
91+
for the grpc channel. It is ignored if ``channel`` is provided.
9292
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
9393
A callback to provide client certificate bytes and private key bytes,
94-
both in PEM format. It is used to configure mutual TLS channel. It is
94+
both in PEM format. It is used to configure a mutual TLS channel. It is
9595
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
9696
quota_project_id (Optional[str]): An optional project to use for billing
9797
and quota.

‎google/cloud/billing_v1/services/cloud_catalog/transports/grpc_asyncio.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,16 @@ def __init__(
129129
api_mtls_endpoint (Optional[str]): Deprecated. The mutual TLS endpoint.
130130
If provided, it overrides the ``host`` argument and tries to create
131131
a mutual TLS channel with client SSL credentials from
132-
``client_cert_source`` or applicatin default SSL credentials.
132+
``client_cert_source`` or application default SSL credentials.
133133
client_cert_source (Optional[Callable[[], Tuple[bytes, bytes]]]):
134134
Deprecated. A callback to provide client SSL certificate bytes and
135135
private key bytes, both in PEM format. It is ignored if
136136
``api_mtls_endpoint`` is None.
137137
ssl_channel_credentials (grpc.ChannelCredentials): SSL credentials
138-
for grpc channel. It is ignored if ``channel`` is provided.
138+
for the grpc channel. It is ignored if ``channel`` is provided.
139139
client_cert_source_for_mtls (Optional[Callable[[], Tuple[bytes, bytes]]]):
140140
A callback to provide client certificate bytes and private key bytes,
141-
both in PEM format. It is used to configure mutual TLS channel. It is
141+
both in PEM format. It is used to configure a mutual TLS channel. It is
142142
ignored if ``channel`` or ``ssl_channel_credentials`` is provided.
143143
quota_project_id (Optional[str]): An optional project to use for billing
144144
and quota.

0 commit comments

Comments
 (0)