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

Commit fa12c9b

Browse files
chore: use gapic-generator-python 0.51.2 (#64)
- [ ] 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 19a9f2f commit fa12c9b

File tree

5 files changed

+48
-48
lines changed

5 files changed

+48
-48
lines changed

google/cloud/domains_v1beta1/services/domains/client.py

Lines changed: 27 additions & 27 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
@@ -358,7 +358,7 @@ def __init__(
358358

359359
def search_domains(
360360
self,
361-
request: domains.SearchDomainsRequest = None,
361+
request: Union[domains.SearchDomainsRequest, dict] = None,
362362
*,
363363
location: str = None,
364364
query: str = None,
@@ -374,7 +374,7 @@ def search_domains(
374374
confirm availability.
375375
376376
Args:
377-
request (google.cloud.domains_v1beta1.types.SearchDomainsRequest):
377+
request (Union[google.cloud.domains_v1beta1.types.SearchDomainsRequest, dict]):
378378
The request object. Request for the `SearchDomains`
379379
method.
380380
location (str):
@@ -442,7 +442,7 @@ def search_domains(
442442

443443
def retrieve_register_parameters(
444444
self,
445-
request: domains.RetrieveRegisterParametersRequest = None,
445+
request: Union[domains.RetrieveRegisterParametersRequest, dict] = None,
446446
*,
447447
location: str = None,
448448
domain_name: str = None,
@@ -455,7 +455,7 @@ def retrieve_register_parameters(
455455
call ``RegisterDomain``.
456456
457457
Args:
458-
request (google.cloud.domains_v1beta1.types.RetrieveRegisterParametersRequest):
458+
request (Union[google.cloud.domains_v1beta1.types.RetrieveRegisterParametersRequest, dict]):
459459
The request object. Request for the
460460
`RetrieveRegisterParameters` method.
461461
location (str):
@@ -526,7 +526,7 @@ def retrieve_register_parameters(
526526

527527
def register_domain(
528528
self,
529-
request: domains.RegisterDomainRequest = None,
529+
request: Union[domains.RegisterDomainRequest, dict] = None,
530530
*,
531531
parent: str = None,
532532
registration: domains.Registration = None,
@@ -551,7 +551,7 @@ def register_domain(
551551
and retry registration.
552552
553553
Args:
554-
request (google.cloud.domains_v1beta1.types.RegisterDomainRequest):
554+
request (Union[google.cloud.domains_v1beta1.types.RegisterDomainRequest, dict]):
555555
The request object. Request for the `RegisterDomain`
556556
method.
557557
parent (str):
@@ -651,7 +651,7 @@ def register_domain(
651651

652652
def list_registrations(
653653
self,
654-
request: domains.ListRegistrationsRequest = None,
654+
request: Union[domains.ListRegistrationsRequest, dict] = None,
655655
*,
656656
parent: str = None,
657657
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -661,7 +661,7 @@ def list_registrations(
661661
r"""Lists the ``Registration`` resources in a project.
662662
663663
Args:
664-
request (google.cloud.domains_v1beta1.types.ListRegistrationsRequest):
664+
request (Union[google.cloud.domains_v1beta1.types.ListRegistrationsRequest, dict]):
665665
The request object. Request for the `ListRegistrations`
666666
method.
667667
parent (str):
@@ -731,7 +731,7 @@ def list_registrations(
731731

732732
def get_registration(
733733
self,
734-
request: domains.GetRegistrationRequest = None,
734+
request: Union[domains.GetRegistrationRequest, dict] = None,
735735
*,
736736
name: str = None,
737737
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -741,7 +741,7 @@ def get_registration(
741741
r"""Gets the details of a ``Registration`` resource.
742742
743743
Args:
744-
request (google.cloud.domains_v1beta1.types.GetRegistrationRequest):
744+
request (Union[google.cloud.domains_v1beta1.types.GetRegistrationRequest, dict]):
745745
The request object. Request for the `GetRegistration`
746746
method.
747747
name (str):
@@ -810,7 +810,7 @@ def get_registration(
810810

811811
def update_registration(
812812
self,
813-
request: domains.UpdateRegistrationRequest = None,
813+
request: Union[domains.UpdateRegistrationRequest, dict] = None,
814814
*,
815815
registration: domains.Registration = None,
816816
update_mask: field_mask_pb2.FieldMask = None,
@@ -829,7 +829,7 @@ def update_registration(
829829
``ConfigureContactSettings``
830830
831831
Args:
832-
request (google.cloud.domains_v1beta1.types.UpdateRegistrationRequest):
832+
request (Union[google.cloud.domains_v1beta1.types.UpdateRegistrationRequest, dict]):
833833
The request object. Request for the `UpdateRegistration`
834834
method.
835835
registration (google.cloud.domains_v1beta1.types.Registration):
@@ -919,7 +919,7 @@ def update_registration(
919919

920920
def configure_management_settings(
921921
self,
922-
request: domains.ConfigureManagementSettingsRequest = None,
922+
request: Union[domains.ConfigureManagementSettingsRequest, dict] = None,
923923
*,
924924
registration: str = None,
925925
management_settings: domains.ManagementSettings = None,
@@ -931,7 +931,7 @@ def configure_management_settings(
931931
r"""Updates a ``Registration``'s management settings.
932932
933933
Args:
934-
request (google.cloud.domains_v1beta1.types.ConfigureManagementSettingsRequest):
934+
request (Union[google.cloud.domains_v1beta1.types.ConfigureManagementSettingsRequest, dict]):
935935
The request object. Request for the
936936
`ConfigureManagementSettings` method.
937937
registration (str):
@@ -1033,7 +1033,7 @@ def configure_management_settings(
10331033

10341034
def configure_dns_settings(
10351035
self,
1036-
request: domains.ConfigureDnsSettingsRequest = None,
1036+
request: Union[domains.ConfigureDnsSettingsRequest, dict] = None,
10371037
*,
10381038
registration: str = None,
10391039
dns_settings: domains.DnsSettings = None,
@@ -1045,7 +1045,7 @@ def configure_dns_settings(
10451045
r"""Updates a ``Registration``'s DNS settings.
10461046
10471047
Args:
1048-
request (google.cloud.domains_v1beta1.types.ConfigureDnsSettingsRequest):
1048+
request (Union[google.cloud.domains_v1beta1.types.ConfigureDnsSettingsRequest, dict]):
10491049
The request object. Request for the
10501050
`ConfigureDnsSettings` method.
10511051
registration (str):
@@ -1152,7 +1152,7 @@ def configure_dns_settings(
11521152

11531153
def configure_contact_settings(
11541154
self,
1155-
request: domains.ConfigureContactSettingsRequest = None,
1155+
request: Union[domains.ConfigureContactSettingsRequest, dict] = None,
11561156
*,
11571157
registration: str = None,
11581158
contact_settings: domains.ContactSettings = None,
@@ -1165,7 +1165,7 @@ def configure_contact_settings(
11651165
require confirmation by the domain's registrant contact .
11661166
11671167
Args:
1168-
request (google.cloud.domains_v1beta1.types.ConfigureContactSettingsRequest):
1168+
request (Union[google.cloud.domains_v1beta1.types.ConfigureContactSettingsRequest, dict]):
11691169
The request object. Request for the
11701170
`ConfigureContactSettings` method.
11711171
registration (str):
@@ -1267,7 +1267,7 @@ def configure_contact_settings(
12671267

12681268
def export_registration(
12691269
self,
1270-
request: domains.ExportRegistrationRequest = None,
1270+
request: Union[domains.ExportRegistrationRequest, dict] = None,
12711271
*,
12721272
name: str = None,
12731273
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -1290,7 +1290,7 @@ def export_registration(
12901290
Domains to renew the domain if needed.
12911291
12921292
Args:
1293-
request (google.cloud.domains_v1beta1.types.ExportRegistrationRequest):
1293+
request (Union[google.cloud.domains_v1beta1.types.ExportRegistrationRequest, dict]):
12941294
The request object. Request for the `ExportRegistration`
12951295
method.
12961296
name (str):
@@ -1369,7 +1369,7 @@ def export_registration(
13691369

13701370
def delete_registration(
13711371
self,
1372-
request: domains.DeleteRegistrationRequest = None,
1372+
request: Union[domains.DeleteRegistrationRequest, dict] = None,
13731373
*,
13741374
name: str = None,
13751375
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -1385,7 +1385,7 @@ def delete_registration(
13851385
- ``state`` is ``REGISTRATION_FAILED``
13861386
13871387
Args:
1388-
request (google.cloud.domains_v1beta1.types.DeleteRegistrationRequest):
1388+
request (Union[google.cloud.domains_v1beta1.types.DeleteRegistrationRequest, dict]):
13891389
The request object. Request for the `DeleteRegistration`
13901390
method.
13911391
name (str):
@@ -1467,7 +1467,7 @@ def delete_registration(
14671467

14681468
def retrieve_authorization_code(
14691469
self,
1470-
request: domains.RetrieveAuthorizationCodeRequest = None,
1470+
request: Union[domains.RetrieveAuthorizationCodeRequest, dict] = None,
14711471
*,
14721472
registration: str = None,
14731473
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -1481,7 +1481,7 @@ def retrieve_authorization_code(
14811481
the initial domain registration.
14821482
14831483
Args:
1484-
request (google.cloud.domains_v1beta1.types.RetrieveAuthorizationCodeRequest):
1484+
request (Union[google.cloud.domains_v1beta1.types.RetrieveAuthorizationCodeRequest, dict]):
14851485
The request object. Request for the
14861486
`RetrieveAuthorizationCode` method.
14871487
registration (str):
@@ -1545,7 +1545,7 @@ def retrieve_authorization_code(
15451545

15461546
def reset_authorization_code(
15471547
self,
1548-
request: domains.ResetAuthorizationCodeRequest = None,
1548+
request: Union[domains.ResetAuthorizationCodeRequest, dict] = None,
15491549
*,
15501550
registration: str = None,
15511551
retry: retries.Retry = gapic_v1.method.DEFAULT,
@@ -1559,7 +1559,7 @@ def reset_authorization_code(
15591559
the initial domain registration.
15601560
15611561
Args:
1562-
request (google.cloud.domains_v1beta1.types.ResetAuthorizationCodeRequest):
1562+
request (Union[google.cloud.domains_v1beta1.types.ResetAuthorizationCodeRequest, dict]):
15631563
The request object. Request for the
15641564
`ResetAuthorizationCode` method.
15651565
registration (str):

google/cloud/domains_v1beta1/services/domains/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/domains_v1beta1/services/domains/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/domains_v1beta1/services/domains/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.

scripts/fixup_domains_v1beta1_keywords.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,19 @@ def partition(
3939
class domainsCallTransformer(cst.CSTTransformer):
4040
CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata')
4141
METHOD_TO_PARAMS: Dict[str, Tuple[str]] = {
42-
'configure_contact_settings': ('registration', 'update_mask', 'contact_settings', 'contact_notices', 'validate_only', ),
43-
'configure_dns_settings': ('registration', 'update_mask', 'dns_settings', 'validate_only', ),
44-
'configure_management_settings': ('registration', 'update_mask', 'management_settings', ),
45-
'delete_registration': ('name', ),
46-
'export_registration': ('name', ),
47-
'get_registration': ('name', ),
48-
'list_registrations': ('parent', 'page_size', 'page_token', 'filter', ),
49-
'register_domain': ('parent', 'registration', 'yearly_price', 'domain_notices', 'contact_notices', 'validate_only', ),
50-
'reset_authorization_code': ('registration', ),
51-
'retrieve_authorization_code': ('registration', ),
52-
'retrieve_register_parameters': ('domain_name', 'location', ),
53-
'search_domains': ('query', 'location', ),
54-
'update_registration': ('update_mask', 'registration', ),
42+
'configure_contact_settings': ('registration', 'update_mask', 'contact_settings', 'contact_notices', 'validate_only', ),
43+
'configure_dns_settings': ('registration', 'update_mask', 'dns_settings', 'validate_only', ),
44+
'configure_management_settings': ('registration', 'update_mask', 'management_settings', ),
45+
'delete_registration': ('name', ),
46+
'export_registration': ('name', ),
47+
'get_registration': ('name', ),
48+
'list_registrations': ('parent', 'page_size', 'page_token', 'filter', ),
49+
'register_domain': ('parent', 'registration', 'yearly_price', 'domain_notices', 'contact_notices', 'validate_only', ),
50+
'reset_authorization_code': ('registration', ),
51+
'retrieve_authorization_code': ('registration', ),
52+
'retrieve_register_parameters': ('domain_name', 'location', ),
53+
'search_domains': ('query', 'location', ),
54+
'update_registration': ('update_mask', 'registration', ),
5555
}
5656

5757
def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
@@ -70,7 +70,7 @@ def leave_Call(self, original: cst.Call, updated: cst.Call) -> cst.CSTNode:
7070
return updated
7171

7272
kwargs, ctrl_kwargs = partition(
73-
lambda a: not a.keyword.value in self.CTRL_PARAMS,
73+
lambda a: a.keyword.value not in self.CTRL_PARAMS,
7474
kwargs
7575
)
7676

0 commit comments

Comments
 (0)