17
17
from distutils import util
18
18
import os
19
19
import re
20
- from typing import Callable , Dict , Optional , Sequence , Tuple , Type , Union
20
+ from typing import Dict , Optional , Sequence , Tuple , Type , Union
21
21
import pkg_resources
22
22
23
23
from google .api_core import client_options as client_options_lib # type: ignore
@@ -358,7 +358,7 @@ def __init__(
358
358
359
359
def search_domains (
360
360
self ,
361
- request : domains .SearchDomainsRequest = None ,
361
+ request : Union [ domains .SearchDomainsRequest , dict ] = None ,
362
362
* ,
363
363
location : str = None ,
364
364
query : str = None ,
@@ -374,7 +374,7 @@ def search_domains(
374
374
confirm availability.
375
375
376
376
Args:
377
- request (google.cloud.domains_v1beta1.types.SearchDomainsRequest):
377
+ request (Union[ google.cloud.domains_v1beta1.types.SearchDomainsRequest, dict] ):
378
378
The request object. Request for the `SearchDomains`
379
379
method.
380
380
location (str):
@@ -442,7 +442,7 @@ def search_domains(
442
442
443
443
def retrieve_register_parameters (
444
444
self ,
445
- request : domains .RetrieveRegisterParametersRequest = None ,
445
+ request : Union [ domains .RetrieveRegisterParametersRequest , dict ] = None ,
446
446
* ,
447
447
location : str = None ,
448
448
domain_name : str = None ,
@@ -455,7 +455,7 @@ def retrieve_register_parameters(
455
455
call ``RegisterDomain``.
456
456
457
457
Args:
458
- request (google.cloud.domains_v1beta1.types.RetrieveRegisterParametersRequest):
458
+ request (Union[ google.cloud.domains_v1beta1.types.RetrieveRegisterParametersRequest, dict] ):
459
459
The request object. Request for the
460
460
`RetrieveRegisterParameters` method.
461
461
location (str):
@@ -526,7 +526,7 @@ def retrieve_register_parameters(
526
526
527
527
def register_domain (
528
528
self ,
529
- request : domains .RegisterDomainRequest = None ,
529
+ request : Union [ domains .RegisterDomainRequest , dict ] = None ,
530
530
* ,
531
531
parent : str = None ,
532
532
registration : domains .Registration = None ,
@@ -551,7 +551,7 @@ def register_domain(
551
551
and retry registration.
552
552
553
553
Args:
554
- request (google.cloud.domains_v1beta1.types.RegisterDomainRequest):
554
+ request (Union[ google.cloud.domains_v1beta1.types.RegisterDomainRequest, dict] ):
555
555
The request object. Request for the `RegisterDomain`
556
556
method.
557
557
parent (str):
@@ -651,7 +651,7 @@ def register_domain(
651
651
652
652
def list_registrations (
653
653
self ,
654
- request : domains .ListRegistrationsRequest = None ,
654
+ request : Union [ domains .ListRegistrationsRequest , dict ] = None ,
655
655
* ,
656
656
parent : str = None ,
657
657
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -661,7 +661,7 @@ def list_registrations(
661
661
r"""Lists the ``Registration`` resources in a project.
662
662
663
663
Args:
664
- request (google.cloud.domains_v1beta1.types.ListRegistrationsRequest):
664
+ request (Union[ google.cloud.domains_v1beta1.types.ListRegistrationsRequest, dict] ):
665
665
The request object. Request for the `ListRegistrations`
666
666
method.
667
667
parent (str):
@@ -731,7 +731,7 @@ def list_registrations(
731
731
732
732
def get_registration (
733
733
self ,
734
- request : domains .GetRegistrationRequest = None ,
734
+ request : Union [ domains .GetRegistrationRequest , dict ] = None ,
735
735
* ,
736
736
name : str = None ,
737
737
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -741,7 +741,7 @@ def get_registration(
741
741
r"""Gets the details of a ``Registration`` resource.
742
742
743
743
Args:
744
- request (google.cloud.domains_v1beta1.types.GetRegistrationRequest):
744
+ request (Union[ google.cloud.domains_v1beta1.types.GetRegistrationRequest, dict] ):
745
745
The request object. Request for the `GetRegistration`
746
746
method.
747
747
name (str):
@@ -810,7 +810,7 @@ def get_registration(
810
810
811
811
def update_registration (
812
812
self ,
813
- request : domains .UpdateRegistrationRequest = None ,
813
+ request : Union [ domains .UpdateRegistrationRequest , dict ] = None ,
814
814
* ,
815
815
registration : domains .Registration = None ,
816
816
update_mask : field_mask_pb2 .FieldMask = None ,
@@ -829,7 +829,7 @@ def update_registration(
829
829
``ConfigureContactSettings``
830
830
831
831
Args:
832
- request (google.cloud.domains_v1beta1.types.UpdateRegistrationRequest):
832
+ request (Union[ google.cloud.domains_v1beta1.types.UpdateRegistrationRequest, dict] ):
833
833
The request object. Request for the `UpdateRegistration`
834
834
method.
835
835
registration (google.cloud.domains_v1beta1.types.Registration):
@@ -919,7 +919,7 @@ def update_registration(
919
919
920
920
def configure_management_settings (
921
921
self ,
922
- request : domains .ConfigureManagementSettingsRequest = None ,
922
+ request : Union [ domains .ConfigureManagementSettingsRequest , dict ] = None ,
923
923
* ,
924
924
registration : str = None ,
925
925
management_settings : domains .ManagementSettings = None ,
@@ -931,7 +931,7 @@ def configure_management_settings(
931
931
r"""Updates a ``Registration``'s management settings.
932
932
933
933
Args:
934
- request (google.cloud.domains_v1beta1.types.ConfigureManagementSettingsRequest):
934
+ request (Union[ google.cloud.domains_v1beta1.types.ConfigureManagementSettingsRequest, dict] ):
935
935
The request object. Request for the
936
936
`ConfigureManagementSettings` method.
937
937
registration (str):
@@ -1033,7 +1033,7 @@ def configure_management_settings(
1033
1033
1034
1034
def configure_dns_settings (
1035
1035
self ,
1036
- request : domains .ConfigureDnsSettingsRequest = None ,
1036
+ request : Union [ domains .ConfigureDnsSettingsRequest , dict ] = None ,
1037
1037
* ,
1038
1038
registration : str = None ,
1039
1039
dns_settings : domains .DnsSettings = None ,
@@ -1045,7 +1045,7 @@ def configure_dns_settings(
1045
1045
r"""Updates a ``Registration``'s DNS settings.
1046
1046
1047
1047
Args:
1048
- request (google.cloud.domains_v1beta1.types.ConfigureDnsSettingsRequest):
1048
+ request (Union[ google.cloud.domains_v1beta1.types.ConfigureDnsSettingsRequest, dict] ):
1049
1049
The request object. Request for the
1050
1050
`ConfigureDnsSettings` method.
1051
1051
registration (str):
@@ -1152,7 +1152,7 @@ def configure_dns_settings(
1152
1152
1153
1153
def configure_contact_settings (
1154
1154
self ,
1155
- request : domains .ConfigureContactSettingsRequest = None ,
1155
+ request : Union [ domains .ConfigureContactSettingsRequest , dict ] = None ,
1156
1156
* ,
1157
1157
registration : str = None ,
1158
1158
contact_settings : domains .ContactSettings = None ,
@@ -1165,7 +1165,7 @@ def configure_contact_settings(
1165
1165
require confirmation by the domain's registrant contact .
1166
1166
1167
1167
Args:
1168
- request (google.cloud.domains_v1beta1.types.ConfigureContactSettingsRequest):
1168
+ request (Union[ google.cloud.domains_v1beta1.types.ConfigureContactSettingsRequest, dict] ):
1169
1169
The request object. Request for the
1170
1170
`ConfigureContactSettings` method.
1171
1171
registration (str):
@@ -1267,7 +1267,7 @@ def configure_contact_settings(
1267
1267
1268
1268
def export_registration (
1269
1269
self ,
1270
- request : domains .ExportRegistrationRequest = None ,
1270
+ request : Union [ domains .ExportRegistrationRequest , dict ] = None ,
1271
1271
* ,
1272
1272
name : str = None ,
1273
1273
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -1290,7 +1290,7 @@ def export_registration(
1290
1290
Domains to renew the domain if needed.
1291
1291
1292
1292
Args:
1293
- request (google.cloud.domains_v1beta1.types.ExportRegistrationRequest):
1293
+ request (Union[ google.cloud.domains_v1beta1.types.ExportRegistrationRequest, dict] ):
1294
1294
The request object. Request for the `ExportRegistration`
1295
1295
method.
1296
1296
name (str):
@@ -1369,7 +1369,7 @@ def export_registration(
1369
1369
1370
1370
def delete_registration (
1371
1371
self ,
1372
- request : domains .DeleteRegistrationRequest = None ,
1372
+ request : Union [ domains .DeleteRegistrationRequest , dict ] = None ,
1373
1373
* ,
1374
1374
name : str = None ,
1375
1375
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -1385,7 +1385,7 @@ def delete_registration(
1385
1385
- ``state`` is ``REGISTRATION_FAILED``
1386
1386
1387
1387
Args:
1388
- request (google.cloud.domains_v1beta1.types.DeleteRegistrationRequest):
1388
+ request (Union[ google.cloud.domains_v1beta1.types.DeleteRegistrationRequest, dict] ):
1389
1389
The request object. Request for the `DeleteRegistration`
1390
1390
method.
1391
1391
name (str):
@@ -1467,7 +1467,7 @@ def delete_registration(
1467
1467
1468
1468
def retrieve_authorization_code (
1469
1469
self ,
1470
- request : domains .RetrieveAuthorizationCodeRequest = None ,
1470
+ request : Union [ domains .RetrieveAuthorizationCodeRequest , dict ] = None ,
1471
1471
* ,
1472
1472
registration : str = None ,
1473
1473
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -1481,7 +1481,7 @@ def retrieve_authorization_code(
1481
1481
the initial domain registration.
1482
1482
1483
1483
Args:
1484
- request (google.cloud.domains_v1beta1.types.RetrieveAuthorizationCodeRequest):
1484
+ request (Union[ google.cloud.domains_v1beta1.types.RetrieveAuthorizationCodeRequest, dict] ):
1485
1485
The request object. Request for the
1486
1486
`RetrieveAuthorizationCode` method.
1487
1487
registration (str):
@@ -1545,7 +1545,7 @@ def retrieve_authorization_code(
1545
1545
1546
1546
def reset_authorization_code (
1547
1547
self ,
1548
- request : domains .ResetAuthorizationCodeRequest = None ,
1548
+ request : Union [ domains .ResetAuthorizationCodeRequest , dict ] = None ,
1549
1549
* ,
1550
1550
registration : str = None ,
1551
1551
retry : retries .Retry = gapic_v1 .method .DEFAULT ,
@@ -1559,7 +1559,7 @@ def reset_authorization_code(
1559
1559
the initial domain registration.
1560
1560
1561
1561
Args:
1562
- request (google.cloud.domains_v1beta1.types.ResetAuthorizationCodeRequest):
1562
+ request (Union[ google.cloud.domains_v1beta1.types.ResetAuthorizationCodeRequest, dict] ):
1563
1563
The request object. Request for the
1564
1564
`ResetAuthorizationCode` method.
1565
1565
registration (str):
0 commit comments