From 705fb47283c97576b86b9ccb950e2d3548afed2c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 14:32:18 -0700 Subject: [PATCH] chore: use gapic-generator-python 0.63.2 (#108) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.2 docs: add generated snippets PiperOrigin-RevId: 427792504 Source-Link: https://github.com/googleapis/googleapis/commit/55b9e1e0b3106c850d13958352bc0751147b6b15 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf4e86b753f42cb0edb1fd51fbe840d7da0a1cde Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../services/domains/async_client.py | 353 +++++ .../domains_v1/services/domains/client.py | 368 +++++ .../services/domains/async_client.py | 353 +++++ .../services/domains/client.py | 368 +++++ ...omains_configure_contact_settings_async.py | 49 + ...domains_configure_contact_settings_sync.py | 49 + ...v1_domains_configure_dns_settings_async.py | 49 + ..._v1_domains_configure_dns_settings_sync.py | 49 + ...ins_configure_management_settings_async.py | 49 + ...ains_configure_management_settings_sync.py | 49 + ...ns_v1_domains_delete_registration_async.py | 49 + ...ins_v1_domains_delete_registration_sync.py | 49 + ...ns_v1_domains_export_registration_async.py | 49 + ...ins_v1_domains_export_registration_sync.py | 49 + ...mains_v1_domains_get_registration_async.py | 45 + ...omains_v1_domains_get_registration_sync.py | 45 + ...ins_v1_domains_list_registrations_async.py | 46 + ...ains_v1_domains_list_registrations_sync.py | 46 + ...omains_v1_domains_register_domain_async.py | 60 + ...domains_v1_domains_register_domain_sync.py | 60 + ..._domains_reset_authorization_code_async.py | 45 + ...1_domains_reset_authorization_code_sync.py | 45 + ...mains_retrieve_authorization_code_async.py | 45 + ...omains_retrieve_authorization_code_sync.py | 45 + ...ains_retrieve_register_parameters_async.py | 46 + ...mains_retrieve_register_parameters_sync.py | 46 + ...ains_retrieve_transfer_parameters_async.py | 46 + ...mains_retrieve_transfer_parameters_sync.py | 46 + ...domains_v1_domains_search_domains_async.py | 46 + ..._domains_v1_domains_search_domains_sync.py | 46 + ...omains_v1_domains_transfer_domain_async.py | 60 + ...domains_v1_domains_transfer_domain_sync.py | 60 + ...ns_v1_domains_update_registration_async.py | 48 + ...ins_v1_domains_update_registration_sync.py | 48 + ...omains_configure_contact_settings_async.py | 49 + ...domains_configure_contact_settings_sync.py | 49 + ...a1_domains_configure_dns_settings_async.py | 49 + ...ta1_domains_configure_dns_settings_sync.py | 49 + ...ins_configure_management_settings_async.py | 49 + ...ains_configure_management_settings_sync.py | 49 + ...beta1_domains_delete_registration_async.py | 49 + ...1beta1_domains_delete_registration_sync.py | 49 + ...beta1_domains_export_registration_async.py | 49 + ...1beta1_domains_export_registration_sync.py | 49 + ..._v1beta1_domains_get_registration_async.py | 45 + ...s_v1beta1_domains_get_registration_sync.py | 45 + ...1beta1_domains_list_registrations_async.py | 46 + ...v1beta1_domains_list_registrations_sync.py | 46 + ...s_v1beta1_domains_register_domain_async.py | 60 + ...ns_v1beta1_domains_register_domain_sync.py | 60 + ..._domains_reset_authorization_code_async.py | 45 + ...1_domains_reset_authorization_code_sync.py | 45 + ...mains_retrieve_authorization_code_async.py | 45 + ...omains_retrieve_authorization_code_sync.py | 45 + ...ains_retrieve_register_parameters_async.py | 46 + ...mains_retrieve_register_parameters_sync.py | 46 + ...ains_retrieve_transfer_parameters_async.py | 46 + ...mains_retrieve_transfer_parameters_sync.py | 46 + ...ns_v1beta1_domains_search_domains_async.py | 46 + ...ins_v1beta1_domains_search_domains_sync.py | 46 + ...s_v1beta1_domains_transfer_domain_async.py | 60 + ...ns_v1beta1_domains_transfer_domain_sync.py | 60 + ...beta1_domains_update_registration_async.py | 48 + ...1beta1_domains_update_registration_sync.py | 48 + .../snippet_metadata_domains_v1.json | 1339 +++++++++++++++++ .../snippet_metadata_domains_v1beta1.json | 1339 +++++++++++++++++ 66 files changed, 7048 insertions(+) create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_contact_settings_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_contact_settings_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_management_settings_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_management_settings_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_delete_registration_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_delete_registration_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_export_registration_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_export_registration_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_get_registration_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_get_registration_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_list_registrations_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_list_registrations_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_register_domain_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_register_domain_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_reset_authorization_code_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_reset_authorization_code_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_authorization_code_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_authorization_code_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_register_parameters_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_register_parameters_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_transfer_parameters_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_transfer_parameters_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_search_domains_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_search_domains_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_transfer_domain_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_transfer_domain_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_update_registration_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_update_registration_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_contact_settings_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_contact_settings_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_dns_settings_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_dns_settings_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_management_settings_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_management_settings_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_delete_registration_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_delete_registration_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_export_registration_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_export_registration_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_get_registration_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_get_registration_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_list_registrations_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_list_registrations_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_register_domain_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_register_domain_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_reset_authorization_code_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_reset_authorization_code_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_authorization_code_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_authorization_code_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_register_parameters_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_register_parameters_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_search_domains_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_search_domains_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_transfer_domain_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_transfer_domain_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_update_registration_async.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_update_registration_sync.py create mode 100644 packages/google-cloud-domains/samples/generated_samples/snippet_metadata_domains_v1.json create mode 100644 packages/google-cloud-domains/samples/generated_samples/snippet_metadata_domains_v1beta1.json diff --git a/packages/google-cloud-domains/google/cloud/domains_v1/services/domains/async_client.py b/packages/google-cloud-domains/google/cloud/domains_v1/services/domains/async_client.py index 00493859aa36..f565109053ae 100644 --- a/packages/google-cloud-domains/google/cloud/domains_v1/services/domains/async_client.py +++ b/packages/google-cloud-domains/google/cloud/domains_v1/services/domains/async_client.py @@ -219,6 +219,27 @@ async def search_domains( ``RetrieveRegisterParameters`` on a domain before registering to confirm availability. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_search_domains(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.SearchDomainsRequest( + query="query_value", + location="location_value", + ) + + # Make the request + response = client.search_domains(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.SearchDomainsRequest, dict]): The request object. Request for the `SearchDomains` @@ -300,6 +321,27 @@ async def retrieve_register_parameters( price and up-to-date availability. Use the returned values to call ``RegisterDomain``. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_retrieve_register_parameters(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveRegisterParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_register_parameters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.RetrieveRegisterParametersRequest, dict]): The request object. Request for the @@ -394,6 +436,41 @@ async def register_domain( registered successfully, and you can safely delete the resource and retry registration. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_register_domain(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1.RegisterDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.register_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.RegisterDomainRequest, dict]): The request object. Request for the `RegisterDomain` @@ -521,6 +598,27 @@ async def retrieve_transfer_parameters( Use the returned values to call ``TransferDomain``. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_retrieve_transfer_parameters(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveTransferParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_transfer_parameters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.RetrieveTransferParametersRequest, dict]): The request object. Request for the @@ -626,6 +724,41 @@ async def transfer_domain( ``TRANSFER_FAILED``. If transfer fails, you can safely delete the resource and retry the transfer. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_transfer_domain(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1.TransferDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.transfer_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.TransferDomainRequest, dict]): The request object. Request for the `TransferDomain` @@ -766,6 +899,26 @@ async def list_registrations( ) -> pagers.ListRegistrationsAsyncPager: r"""Lists the ``Registration`` resources in a project. + .. code-block:: + + from google.cloud import domains_v1 + + def sample_list_registrations(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ListRegistrationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_registrations(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.domains_v1.types.ListRegistrationsRequest, dict]): The request object. Request for the `ListRegistrations` @@ -846,6 +999,25 @@ async def get_registration( ) -> domains.Registration: r"""Gets the details of a ``Registration`` resource. + .. code-block:: + + from google.cloud import domains_v1 + + def sample_get_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.GetRegistrationRequest( + name="name_value", + ) + + # Make the request + response = client.get_registration(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.GetRegistrationRequest, dict]): The request object. Request for the `GetRegistration` @@ -946,6 +1118,29 @@ async def update_registration( - To update contact information, see ``ConfigureContactSettings`` + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_update_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.UpdateRegistrationRequest( + ) + + # Make the request + operation = client.update_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.UpdateRegistrationRequest, dict]): The request object. Request for the `UpdateRegistration` @@ -1060,6 +1255,29 @@ async def configure_management_settings( ) -> operation_async.AsyncOperation: r"""Updates a ``Registration``'s management settings. + .. code-block:: + + from google.cloud import domains_v1 + + def sample_configure_management_settings(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureManagementSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_management_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ConfigureManagementSettingsRequest, dict]): The request object. Request for the @@ -1184,6 +1402,29 @@ async def configure_dns_settings( ) -> operation_async.AsyncOperation: r"""Updates a ``Registration``'s DNS settings. + .. code-block:: + + from google.cloud import domains_v1 + + def sample_configure_dns_settings(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureDnsSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_dns_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ConfigureDnsSettingsRequest, dict]): The request object. Request for the @@ -1316,6 +1557,30 @@ async def configure_contact_settings( r"""Updates a ``Registration``'s contact settings. Some changes require confirmation by the domain's registrant contact . + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_configure_contact_settings(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureContactSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_contact_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ConfigureContactSettingsRequest, dict]): The request object. Request for the @@ -1447,6 +1712,30 @@ async def export_registration( The domain does not renew automatically unless the new owner sets up billing in Google Domains. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_export_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ExportRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.export_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ExportRegistrationRequest, dict]): The request object. Request for the `ExportRegistration` @@ -1569,6 +1858,30 @@ async def delete_registration( The domain does not renew automatically unless the new owner sets up billing in Google Domains. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_delete_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.DeleteRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.DeleteRegistrationRequest, dict]): The request object. Request for the `DeleteRegistration` @@ -1665,6 +1978,26 @@ async def retrieve_authorization_code( You can call this method only after 60 days have elapsed since the initial domain registration. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_retrieve_authorization_code(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.retrieve_authorization_code(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.RetrieveAuthorizationCodeRequest, dict]): The request object. Request for the @@ -1741,6 +2074,26 @@ async def reset_authorization_code( You can call this method only after 60 days have elapsed since the initial domain registration. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_reset_authorization_code(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ResetAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.reset_authorization_code(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ResetAuthorizationCodeRequest, dict]): The request object. Request for the diff --git a/packages/google-cloud-domains/google/cloud/domains_v1/services/domains/client.py b/packages/google-cloud-domains/google/cloud/domains_v1/services/domains/client.py index 5779d1111d75..90effe348dc7 100644 --- a/packages/google-cloud-domains/google/cloud/domains_v1/services/domains/client.py +++ b/packages/google-cloud-domains/google/cloud/domains_v1/services/domains/client.py @@ -422,6 +422,28 @@ def search_domains( ``RetrieveRegisterParameters`` on a domain before registering to confirm availability. + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_search_domains(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.SearchDomainsRequest( + query="query_value", + location="location_value", + ) + + # Make the request + response = client.search_domains(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.SearchDomainsRequest, dict]): The request object. Request for the `SearchDomains` @@ -503,6 +525,28 @@ def retrieve_register_parameters( price and up-to-date availability. Use the returned values to call ``RegisterDomain``. + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_retrieve_register_parameters(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveRegisterParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_register_parameters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.RetrieveRegisterParametersRequest, dict]): The request object. Request for the @@ -599,6 +643,42 @@ def register_domain( registered successfully, and you can safely delete the resource and retry registration. + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_register_domain(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1.RegisterDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.register_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.RegisterDomainRequest, dict]): The request object. Request for the `RegisterDomain` @@ -726,6 +806,28 @@ def retrieve_transfer_parameters( Use the returned values to call ``TransferDomain``. + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_retrieve_transfer_parameters(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveTransferParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_transfer_parameters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.RetrieveTransferParametersRequest, dict]): The request object. Request for the @@ -833,6 +935,42 @@ def transfer_domain( ``TRANSFER_FAILED``. If transfer fails, you can safely delete the resource and retry the transfer. + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_transfer_domain(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1.TransferDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.transfer_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.TransferDomainRequest, dict]): The request object. Request for the `TransferDomain` @@ -973,6 +1111,27 @@ def list_registrations( ) -> pagers.ListRegistrationsPager: r"""Lists the ``Registration`` resources in a project. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_list_registrations(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ListRegistrationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_registrations(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.domains_v1.types.ListRegistrationsRequest, dict]): The request object. Request for the `ListRegistrations` @@ -1053,6 +1212,26 @@ def get_registration( ) -> domains.Registration: r"""Gets the details of a ``Registration`` resource. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_get_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.GetRegistrationRequest( + name="name_value", + ) + + # Make the request + response = client.get_registration(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.GetRegistrationRequest, dict]): The request object. Request for the `GetRegistration` @@ -1153,6 +1332,30 @@ def update_registration( - To update contact information, see ``ConfigureContactSettings`` + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_update_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.UpdateRegistrationRequest( + ) + + # Make the request + operation = client.update_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.UpdateRegistrationRequest, dict]): The request object. Request for the `UpdateRegistration` @@ -1267,6 +1470,30 @@ def configure_management_settings( ) -> operation.Operation: r"""Updates a ``Registration``'s management settings. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_configure_management_settings(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureManagementSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_management_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ConfigureManagementSettingsRequest, dict]): The request object. Request for the @@ -1393,6 +1620,30 @@ def configure_dns_settings( ) -> operation.Operation: r"""Updates a ``Registration``'s DNS settings. + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_configure_dns_settings(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureDnsSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_dns_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ConfigureDnsSettingsRequest, dict]): The request object. Request for the @@ -1525,6 +1776,31 @@ def configure_contact_settings( r"""Updates a ``Registration``'s contact settings. Some changes require confirmation by the domain's registrant contact . + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_configure_contact_settings(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureContactSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_contact_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ConfigureContactSettingsRequest, dict]): The request object. Request for the @@ -1658,6 +1934,31 @@ def export_registration( The domain does not renew automatically unless the new owner sets up billing in Google Domains. + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_export_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ExportRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.export_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ExportRegistrationRequest, dict]): The request object. Request for the `ExportRegistration` @@ -1780,6 +2081,31 @@ def delete_registration( The domain does not renew automatically unless the new owner sets up billing in Google Domains. + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_delete_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.DeleteRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.DeleteRegistrationRequest, dict]): The request object. Request for the `DeleteRegistration` @@ -1876,6 +2202,27 @@ def retrieve_authorization_code( You can call this method only after 60 days have elapsed since the initial domain registration. + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_retrieve_authorization_code(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.retrieve_authorization_code(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.RetrieveAuthorizationCodeRequest, dict]): The request object. Request for the @@ -1954,6 +2301,27 @@ def reset_authorization_code( You can call this method only after 60 days have elapsed since the initial domain registration. + + + .. code-block:: + + from google.cloud import domains_v1 + + def sample_reset_authorization_code(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ResetAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.reset_authorization_code(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1.types.ResetAuthorizationCodeRequest, dict]): The request object. Request for the diff --git a/packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/async_client.py b/packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/async_client.py index 76998a2a1f2a..5b5700fb1552 100644 --- a/packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/async_client.py +++ b/packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/async_client.py @@ -219,6 +219,27 @@ async def search_domains( ``RetrieveRegisterParameters`` on a domain before registering to confirm availability. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_search_domains(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.SearchDomainsRequest( + query="query_value", + location="location_value", + ) + + # Make the request + response = client.search_domains(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.SearchDomainsRequest, dict]): The request object. Request for the `SearchDomains` @@ -300,6 +321,27 @@ async def retrieve_register_parameters( price and up-to-date availability. Use the returned values to call ``RegisterDomain``. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_retrieve_register_parameters(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveRegisterParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_register_parameters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.RetrieveRegisterParametersRequest, dict]): The request object. Request for the @@ -394,6 +436,41 @@ async def register_domain( registered successfully, and you can safely delete the resource and retry registration. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_register_domain(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1beta1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1beta1.RegisterDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.register_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.RegisterDomainRequest, dict]): The request object. Request for the `RegisterDomain` @@ -521,6 +598,27 @@ async def retrieve_transfer_parameters( Use the returned values to call ``TransferDomain``. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_retrieve_transfer_parameters(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveTransferParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_transfer_parameters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.RetrieveTransferParametersRequest, dict]): The request object. Request for the @@ -626,6 +724,41 @@ async def transfer_domain( ``TRANSFER_FAILED``. If transfer fails, you can safely delete the resource and retry the transfer. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_transfer_domain(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1beta1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1beta1.TransferDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.transfer_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.TransferDomainRequest, dict]): The request object. Request for the `TransferDomain` @@ -766,6 +899,26 @@ async def list_registrations( ) -> pagers.ListRegistrationsAsyncPager: r"""Lists the ``Registration`` resources in a project. + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_list_registrations(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ListRegistrationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_registrations(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ListRegistrationsRequest, dict]): The request object. Request for the `ListRegistrations` @@ -846,6 +999,25 @@ async def get_registration( ) -> domains.Registration: r"""Gets the details of a ``Registration`` resource. + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_get_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.GetRegistrationRequest( + name="name_value", + ) + + # Make the request + response = client.get_registration(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.GetRegistrationRequest, dict]): The request object. Request for the `GetRegistration` @@ -946,6 +1118,29 @@ async def update_registration( - To update contact information, see ``ConfigureContactSettings`` + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_update_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.UpdateRegistrationRequest( + ) + + # Make the request + operation = client.update_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.UpdateRegistrationRequest, dict]): The request object. Request for the `UpdateRegistration` @@ -1060,6 +1255,29 @@ async def configure_management_settings( ) -> operation_async.AsyncOperation: r"""Updates a ``Registration``'s management settings. + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_configure_management_settings(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureManagementSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_management_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ConfigureManagementSettingsRequest, dict]): The request object. Request for the @@ -1184,6 +1402,29 @@ async def configure_dns_settings( ) -> operation_async.AsyncOperation: r"""Updates a ``Registration``'s DNS settings. + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_configure_dns_settings(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureDnsSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_dns_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ConfigureDnsSettingsRequest, dict]): The request object. Request for the @@ -1316,6 +1557,30 @@ async def configure_contact_settings( r"""Updates a ``Registration``'s contact settings. Some changes require confirmation by the domain's registrant contact . + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_configure_contact_settings(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureContactSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_contact_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ConfigureContactSettingsRequest, dict]): The request object. Request for the @@ -1447,6 +1712,30 @@ async def export_registration( The domain does not renew automatically unless the new owner sets up billing in Google Domains. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_export_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ExportRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.export_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ExportRegistrationRequest, dict]): The request object. Request for the `ExportRegistration` @@ -1569,6 +1858,30 @@ async def delete_registration( The domain does not renew automatically unless the new owner sets up billing in Google Domains. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_delete_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.DeleteRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.DeleteRegistrationRequest, dict]): The request object. Request for the `DeleteRegistration` @@ -1665,6 +1978,26 @@ async def retrieve_authorization_code( You can call this method only after 60 days have elapsed since the initial domain registration. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_retrieve_authorization_code(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.retrieve_authorization_code(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.RetrieveAuthorizationCodeRequest, dict]): The request object. Request for the @@ -1741,6 +2074,26 @@ async def reset_authorization_code( You can call this method only after 60 days have elapsed since the initial domain registration. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_reset_authorization_code(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ResetAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.reset_authorization_code(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ResetAuthorizationCodeRequest, dict]): The request object. Request for the diff --git a/packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/client.py b/packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/client.py index 2c892a44c786..0715d88aa96e 100644 --- a/packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/client.py +++ b/packages/google-cloud-domains/google/cloud/domains_v1beta1/services/domains/client.py @@ -422,6 +422,28 @@ def search_domains( ``RetrieveRegisterParameters`` on a domain before registering to confirm availability. + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_search_domains(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.SearchDomainsRequest( + query="query_value", + location="location_value", + ) + + # Make the request + response = client.search_domains(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.SearchDomainsRequest, dict]): The request object. Request for the `SearchDomains` @@ -503,6 +525,28 @@ def retrieve_register_parameters( price and up-to-date availability. Use the returned values to call ``RegisterDomain``. + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_retrieve_register_parameters(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveRegisterParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_register_parameters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.RetrieveRegisterParametersRequest, dict]): The request object. Request for the @@ -599,6 +643,42 @@ def register_domain( registered successfully, and you can safely delete the resource and retry registration. + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_register_domain(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1beta1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1beta1.RegisterDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.register_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.RegisterDomainRequest, dict]): The request object. Request for the `RegisterDomain` @@ -726,6 +806,28 @@ def retrieve_transfer_parameters( Use the returned values to call ``TransferDomain``. + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_retrieve_transfer_parameters(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveTransferParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_transfer_parameters(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.RetrieveTransferParametersRequest, dict]): The request object. Request for the @@ -833,6 +935,42 @@ def transfer_domain( ``TRANSFER_FAILED``. If transfer fails, you can safely delete the resource and retry the transfer. + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_transfer_domain(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1beta1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1beta1.TransferDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.transfer_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.TransferDomainRequest, dict]): The request object. Request for the `TransferDomain` @@ -973,6 +1111,27 @@ def list_registrations( ) -> pagers.ListRegistrationsPager: r"""Lists the ``Registration`` resources in a project. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_list_registrations(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ListRegistrationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_registrations(request=request) + + # Handle the response + for response in page_result: + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ListRegistrationsRequest, dict]): The request object. Request for the `ListRegistrations` @@ -1053,6 +1212,26 @@ def get_registration( ) -> domains.Registration: r"""Gets the details of a ``Registration`` resource. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_get_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.GetRegistrationRequest( + name="name_value", + ) + + # Make the request + response = client.get_registration(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.GetRegistrationRequest, dict]): The request object. Request for the `GetRegistration` @@ -1153,6 +1332,30 @@ def update_registration( - To update contact information, see ``ConfigureContactSettings`` + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_update_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.UpdateRegistrationRequest( + ) + + # Make the request + operation = client.update_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.UpdateRegistrationRequest, dict]): The request object. Request for the `UpdateRegistration` @@ -1267,6 +1470,30 @@ def configure_management_settings( ) -> operation.Operation: r"""Updates a ``Registration``'s management settings. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_configure_management_settings(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureManagementSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_management_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ConfigureManagementSettingsRequest, dict]): The request object. Request for the @@ -1393,6 +1620,30 @@ def configure_dns_settings( ) -> operation.Operation: r"""Updates a ``Registration``'s DNS settings. + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_configure_dns_settings(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureDnsSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_dns_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ConfigureDnsSettingsRequest, dict]): The request object. Request for the @@ -1525,6 +1776,31 @@ def configure_contact_settings( r"""Updates a ``Registration``'s contact settings. Some changes require confirmation by the domain's registrant contact . + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_configure_contact_settings(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureContactSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_contact_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ConfigureContactSettingsRequest, dict]): The request object. Request for the @@ -1658,6 +1934,31 @@ def export_registration( The domain does not renew automatically unless the new owner sets up billing in Google Domains. + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_export_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ExportRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.export_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ExportRegistrationRequest, dict]): The request object. Request for the `ExportRegistration` @@ -1780,6 +2081,31 @@ def delete_registration( The domain does not renew automatically unless the new owner sets up billing in Google Domains. + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_delete_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.DeleteRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.DeleteRegistrationRequest, dict]): The request object. Request for the `DeleteRegistration` @@ -1876,6 +2202,27 @@ def retrieve_authorization_code( You can call this method only after 60 days have elapsed since the initial domain registration. + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_retrieve_authorization_code(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.retrieve_authorization_code(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.RetrieveAuthorizationCodeRequest, dict]): The request object. Request for the @@ -1954,6 +2301,27 @@ def reset_authorization_code( You can call this method only after 60 days have elapsed since the initial domain registration. + + + .. code-block:: + + from google.cloud import domains_v1beta1 + + def sample_reset_authorization_code(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ResetAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.reset_authorization_code(request=request) + + # Handle the response + print(response) + Args: request (Union[google.cloud.domains_v1beta1.types.ResetAuthorizationCodeRequest, dict]): The request object. Request for the diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_contact_settings_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_contact_settings_async.py new file mode 100644 index 000000000000..eeade236193f --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_contact_settings_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureContactSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ConfigureContactSettings_async] +from google.cloud import domains_v1 + + +async def sample_configure_contact_settings(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureContactSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_contact_settings(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ConfigureContactSettings_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_contact_settings_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_contact_settings_sync.py new file mode 100644 index 000000000000..2829ac87b2cf --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_contact_settings_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureContactSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ConfigureContactSettings_sync] +from google.cloud import domains_v1 + + +def sample_configure_contact_settings(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureContactSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_contact_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ConfigureContactSettings_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_async.py new file mode 100644 index 000000000000..03f1a96b52c4 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureDnsSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ConfigureDnsSettings_async] +from google.cloud import domains_v1 + + +async def sample_configure_dns_settings(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureDnsSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_dns_settings(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ConfigureDnsSettings_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_sync.py new file mode 100644 index 000000000000..17e856cb27bd --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_dns_settings_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureDnsSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ConfigureDnsSettings_sync] +from google.cloud import domains_v1 + + +def sample_configure_dns_settings(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureDnsSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_dns_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ConfigureDnsSettings_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_management_settings_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_management_settings_async.py new file mode 100644 index 000000000000..e5329cb6bffd --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_management_settings_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureManagementSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ConfigureManagementSettings_async] +from google.cloud import domains_v1 + + +async def sample_configure_management_settings(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureManagementSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_management_settings(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ConfigureManagementSettings_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_management_settings_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_management_settings_sync.py new file mode 100644 index 000000000000..72b3a4a8e332 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_configure_management_settings_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureManagementSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ConfigureManagementSettings_sync] +from google.cloud import domains_v1 + + +def sample_configure_management_settings(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ConfigureManagementSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_management_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ConfigureManagementSettings_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_delete_registration_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_delete_registration_async.py new file mode 100644 index 000000000000..6c9ab192e2e3 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_delete_registration_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_DeleteRegistration_async] +from google.cloud import domains_v1 + + +async def sample_delete_registration(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.DeleteRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_registration(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_DeleteRegistration_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_delete_registration_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_delete_registration_sync.py new file mode 100644 index 000000000000..786476e5e5f6 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_delete_registration_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_DeleteRegistration_sync] +from google.cloud import domains_v1 + + +def sample_delete_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.DeleteRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_DeleteRegistration_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_export_registration_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_export_registration_async.py new file mode 100644 index 000000000000..a5133762e99d --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_export_registration_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ExportRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ExportRegistration_async] +from google.cloud import domains_v1 + + +async def sample_export_registration(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.ExportRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.export_registration(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ExportRegistration_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_export_registration_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_export_registration_sync.py new file mode 100644 index 000000000000..48ab5cd159ad --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_export_registration_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ExportRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ExportRegistration_sync] +from google.cloud import domains_v1 + + +def sample_export_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ExportRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.export_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ExportRegistration_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_get_registration_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_get_registration_async.py new file mode 100644 index 000000000000..e3309349e83d --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_get_registration_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_GetRegistration_async] +from google.cloud import domains_v1 + + +async def sample_get_registration(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.GetRegistrationRequest( + name="name_value", + ) + + # Make the request + response = await client.get_registration(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_GetRegistration_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_get_registration_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_get_registration_sync.py new file mode 100644 index 000000000000..de024fefc592 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_get_registration_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_GetRegistration_sync] +from google.cloud import domains_v1 + + +def sample_get_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.GetRegistrationRequest( + name="name_value", + ) + + # Make the request + response = client.get_registration(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_GetRegistration_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_list_registrations_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_list_registrations_async.py new file mode 100644 index 000000000000..ea8d5410094b --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_list_registrations_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListRegistrations +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ListRegistrations_async] +from google.cloud import domains_v1 + + +async def sample_list_registrations(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.ListRegistrationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_registrations(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END domains_generated_domains_v1_Domains_ListRegistrations_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_list_registrations_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_list_registrations_sync.py new file mode 100644 index 000000000000..bc5737470d09 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_list_registrations_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListRegistrations +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ListRegistrations_sync] +from google.cloud import domains_v1 + + +def sample_list_registrations(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ListRegistrationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_registrations(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END domains_generated_domains_v1_Domains_ListRegistrations_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_register_domain_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_register_domain_async.py new file mode 100644 index 000000000000..dec8b3b735d0 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_register_domain_async.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RegisterDomain +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_RegisterDomain_async] +from google.cloud import domains_v1 + + +async def sample_register_domain(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + registration = domains_v1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1.RegisterDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.register_domain(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_RegisterDomain_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_register_domain_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_register_domain_sync.py new file mode 100644 index 000000000000..b33d19b50f0e --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_register_domain_sync.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RegisterDomain +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_RegisterDomain_sync] +from google.cloud import domains_v1 + + +def sample_register_domain(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1.RegisterDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.register_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_RegisterDomain_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_reset_authorization_code_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_reset_authorization_code_async.py new file mode 100644 index 000000000000..ba1da9fe5233 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_reset_authorization_code_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ResetAuthorizationCode +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ResetAuthorizationCode_async] +from google.cloud import domains_v1 + + +async def sample_reset_authorization_code(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.ResetAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = await client.reset_authorization_code(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ResetAuthorizationCode_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_reset_authorization_code_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_reset_authorization_code_sync.py new file mode 100644 index 000000000000..5e25683e4e2f --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_reset_authorization_code_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ResetAuthorizationCode +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_ResetAuthorizationCode_sync] +from google.cloud import domains_v1 + + +def sample_reset_authorization_code(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.ResetAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.reset_authorization_code(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_ResetAuthorizationCode_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_authorization_code_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_authorization_code_async.py new file mode 100644 index 000000000000..8e9ecd154ac0 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_authorization_code_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveAuthorizationCode +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_RetrieveAuthorizationCode_async] +from google.cloud import domains_v1 + + +async def sample_retrieve_authorization_code(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = await client.retrieve_authorization_code(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_RetrieveAuthorizationCode_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_authorization_code_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_authorization_code_sync.py new file mode 100644 index 000000000000..85311087d3d6 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_authorization_code_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveAuthorizationCode +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_RetrieveAuthorizationCode_sync] +from google.cloud import domains_v1 + + +def sample_retrieve_authorization_code(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.retrieve_authorization_code(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_RetrieveAuthorizationCode_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_register_parameters_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_register_parameters_async.py new file mode 100644 index 000000000000..139783c0c8e1 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_register_parameters_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveRegisterParameters +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_RetrieveRegisterParameters_async] +from google.cloud import domains_v1 + + +async def sample_retrieve_register_parameters(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveRegisterParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = await client.retrieve_register_parameters(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_RetrieveRegisterParameters_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_register_parameters_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_register_parameters_sync.py new file mode 100644 index 000000000000..46ffeefffeb8 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_register_parameters_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveRegisterParameters +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_RetrieveRegisterParameters_sync] +from google.cloud import domains_v1 + + +def sample_retrieve_register_parameters(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveRegisterParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_register_parameters(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_RetrieveRegisterParameters_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_transfer_parameters_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_transfer_parameters_async.py new file mode 100644 index 000000000000..771e7aab2fdc --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_transfer_parameters_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveTransferParameters +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_RetrieveTransferParameters_async] +from google.cloud import domains_v1 + + +async def sample_retrieve_transfer_parameters(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveTransferParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = await client.retrieve_transfer_parameters(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_RetrieveTransferParameters_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_transfer_parameters_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_transfer_parameters_sync.py new file mode 100644 index 000000000000..b8f1d00dc10b --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_retrieve_transfer_parameters_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveTransferParameters +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_RetrieveTransferParameters_sync] +from google.cloud import domains_v1 + + +def sample_retrieve_transfer_parameters(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.RetrieveTransferParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_transfer_parameters(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_RetrieveTransferParameters_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_search_domains_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_search_domains_async.py new file mode 100644 index 000000000000..0e1e814e26fb --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_search_domains_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SearchDomains +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_SearchDomains_async] +from google.cloud import domains_v1 + + +async def sample_search_domains(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.SearchDomainsRequest( + query="query_value", + location="location_value", + ) + + # Make the request + response = await client.search_domains(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_SearchDomains_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_search_domains_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_search_domains_sync.py new file mode 100644 index 000000000000..884e2d3fdfef --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_search_domains_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SearchDomains +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_SearchDomains_sync] +from google.cloud import domains_v1 + + +def sample_search_domains(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.SearchDomainsRequest( + query="query_value", + location="location_value", + ) + + # Make the request + response = client.search_domains(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_SearchDomains_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_transfer_domain_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_transfer_domain_async.py new file mode 100644 index 000000000000..b16e5eddf44f --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_transfer_domain_async.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TransferDomain +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_TransferDomain_async] +from google.cloud import domains_v1 + + +async def sample_transfer_domain(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + registration = domains_v1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1.TransferDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.transfer_domain(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_TransferDomain_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_transfer_domain_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_transfer_domain_sync.py new file mode 100644 index 000000000000..5b4590a650e8 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_transfer_domain_sync.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TransferDomain +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_TransferDomain_sync] +from google.cloud import domains_v1 + + +def sample_transfer_domain(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1.TransferDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.transfer_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_TransferDomain_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_update_registration_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_update_registration_async.py new file mode 100644 index 000000000000..ddd9b6674600 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_update_registration_async.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_UpdateRegistration_async] +from google.cloud import domains_v1 + + +async def sample_update_registration(): + # Create a client + client = domains_v1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1.UpdateRegistrationRequest( + ) + + # Make the request + operation = client.update_registration(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_UpdateRegistration_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_update_registration_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_update_registration_sync.py new file mode 100644 index 000000000000..cacec1431543 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1_domains_update_registration_sync.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1_Domains_UpdateRegistration_sync] +from google.cloud import domains_v1 + + +def sample_update_registration(): + # Create a client + client = domains_v1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1.UpdateRegistrationRequest( + ) + + # Make the request + operation = client.update_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1_Domains_UpdateRegistration_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_contact_settings_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_contact_settings_async.py new file mode 100644 index 000000000000..af42c96f5a1d --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_contact_settings_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureContactSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ConfigureContactSettings_async] +from google.cloud import domains_v1beta1 + + +async def sample_configure_contact_settings(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureContactSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_contact_settings(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ConfigureContactSettings_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_contact_settings_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_contact_settings_sync.py new file mode 100644 index 000000000000..7819a3bde572 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_contact_settings_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureContactSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ConfigureContactSettings_sync] +from google.cloud import domains_v1beta1 + + +def sample_configure_contact_settings(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureContactSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_contact_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ConfigureContactSettings_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_dns_settings_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_dns_settings_async.py new file mode 100644 index 000000000000..cb6c871aa5f2 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_dns_settings_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureDnsSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ConfigureDnsSettings_async] +from google.cloud import domains_v1beta1 + + +async def sample_configure_dns_settings(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureDnsSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_dns_settings(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ConfigureDnsSettings_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_dns_settings_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_dns_settings_sync.py new file mode 100644 index 000000000000..0b455bdc8778 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_dns_settings_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureDnsSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ConfigureDnsSettings_sync] +from google.cloud import domains_v1beta1 + + +def sample_configure_dns_settings(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureDnsSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_dns_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ConfigureDnsSettings_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_management_settings_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_management_settings_async.py new file mode 100644 index 000000000000..0b15015c9d78 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_management_settings_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureManagementSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ConfigureManagementSettings_async] +from google.cloud import domains_v1beta1 + + +async def sample_configure_management_settings(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureManagementSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_management_settings(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ConfigureManagementSettings_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_management_settings_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_management_settings_sync.py new file mode 100644 index 000000000000..74e197821b72 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_configure_management_settings_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ConfigureManagementSettings +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ConfigureManagementSettings_sync] +from google.cloud import domains_v1beta1 + + +def sample_configure_management_settings(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ConfigureManagementSettingsRequest( + registration="registration_value", + ) + + # Make the request + operation = client.configure_management_settings(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ConfigureManagementSettings_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_delete_registration_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_delete_registration_async.py new file mode 100644 index 000000000000..ef479b80360f --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_delete_registration_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_DeleteRegistration_async] +from google.cloud import domains_v1beta1 + + +async def sample_delete_registration(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.DeleteRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_registration(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_DeleteRegistration_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_delete_registration_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_delete_registration_sync.py new file mode 100644 index 000000000000..f1f2661ddc29 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_delete_registration_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for DeleteRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_DeleteRegistration_sync] +from google.cloud import domains_v1beta1 + + +def sample_delete_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.DeleteRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.delete_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_DeleteRegistration_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_export_registration_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_export_registration_async.py new file mode 100644 index 000000000000..b43a7f8d354c --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_export_registration_async.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ExportRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ExportRegistration_async] +from google.cloud import domains_v1beta1 + + +async def sample_export_registration(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.ExportRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.export_registration(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ExportRegistration_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_export_registration_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_export_registration_sync.py new file mode 100644 index 000000000000..d1cc7d07dc21 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_export_registration_sync.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ExportRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ExportRegistration_sync] +from google.cloud import domains_v1beta1 + + +def sample_export_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ExportRegistrationRequest( + name="name_value", + ) + + # Make the request + operation = client.export_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ExportRegistration_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_get_registration_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_get_registration_async.py new file mode 100644 index 000000000000..d9e8569a9b6b --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_get_registration_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_GetRegistration_async] +from google.cloud import domains_v1beta1 + + +async def sample_get_registration(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.GetRegistrationRequest( + name="name_value", + ) + + # Make the request + response = await client.get_registration(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_GetRegistration_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_get_registration_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_get_registration_sync.py new file mode 100644 index 000000000000..82e0592f4b71 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_get_registration_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for GetRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_GetRegistration_sync] +from google.cloud import domains_v1beta1 + + +def sample_get_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.GetRegistrationRequest( + name="name_value", + ) + + # Make the request + response = client.get_registration(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_GetRegistration_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_list_registrations_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_list_registrations_async.py new file mode 100644 index 000000000000..28d2ee243d77 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_list_registrations_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListRegistrations +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ListRegistrations_async] +from google.cloud import domains_v1beta1 + + +async def sample_list_registrations(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.ListRegistrationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_registrations(request=request) + + # Handle the response + async for response in page_result: + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ListRegistrations_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_list_registrations_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_list_registrations_sync.py new file mode 100644 index 000000000000..9a728d301bec --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_list_registrations_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ListRegistrations +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ListRegistrations_sync] +from google.cloud import domains_v1beta1 + + +def sample_list_registrations(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ListRegistrationsRequest( + parent="parent_value", + ) + + # Make the request + page_result = client.list_registrations(request=request) + + # Handle the response + for response in page_result: + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ListRegistrations_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_register_domain_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_register_domain_async.py new file mode 100644 index 000000000000..3df9a8eb585a --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_register_domain_async.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RegisterDomain +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_RegisterDomain_async] +from google.cloud import domains_v1beta1 + + +async def sample_register_domain(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + registration = domains_v1beta1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1beta1.RegisterDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.register_domain(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_RegisterDomain_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_register_domain_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_register_domain_sync.py new file mode 100644 index 000000000000..0561e0f976ca --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_register_domain_sync.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RegisterDomain +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_RegisterDomain_sync] +from google.cloud import domains_v1beta1 + + +def sample_register_domain(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1beta1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1beta1.RegisterDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.register_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_RegisterDomain_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_reset_authorization_code_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_reset_authorization_code_async.py new file mode 100644 index 000000000000..b71ed403f9a6 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_reset_authorization_code_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ResetAuthorizationCode +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ResetAuthorizationCode_async] +from google.cloud import domains_v1beta1 + + +async def sample_reset_authorization_code(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.ResetAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = await client.reset_authorization_code(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ResetAuthorizationCode_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_reset_authorization_code_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_reset_authorization_code_sync.py new file mode 100644 index 000000000000..5d00d3274fff --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_reset_authorization_code_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for ResetAuthorizationCode +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_ResetAuthorizationCode_sync] +from google.cloud import domains_v1beta1 + + +def sample_reset_authorization_code(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.ResetAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.reset_authorization_code(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_ResetAuthorizationCode_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_authorization_code_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_authorization_code_async.py new file mode 100644 index 000000000000..5f70ea60f44b --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_authorization_code_async.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveAuthorizationCode +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_RetrieveAuthorizationCode_async] +from google.cloud import domains_v1beta1 + + +async def sample_retrieve_authorization_code(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = await client.retrieve_authorization_code(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_RetrieveAuthorizationCode_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_authorization_code_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_authorization_code_sync.py new file mode 100644 index 000000000000..aec0d80c4f39 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_authorization_code_sync.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveAuthorizationCode +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_RetrieveAuthorizationCode_sync] +from google.cloud import domains_v1beta1 + + +def sample_retrieve_authorization_code(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveAuthorizationCodeRequest( + registration="registration_value", + ) + + # Make the request + response = client.retrieve_authorization_code(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_RetrieveAuthorizationCode_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_register_parameters_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_register_parameters_async.py new file mode 100644 index 000000000000..08fdc2f974b8 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_register_parameters_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveRegisterParameters +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_RetrieveRegisterParameters_async] +from google.cloud import domains_v1beta1 + + +async def sample_retrieve_register_parameters(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveRegisterParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = await client.retrieve_register_parameters(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_RetrieveRegisterParameters_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_register_parameters_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_register_parameters_sync.py new file mode 100644 index 000000000000..6842abb81e9a --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_register_parameters_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveRegisterParameters +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_RetrieveRegisterParameters_sync] +from google.cloud import domains_v1beta1 + + +def sample_retrieve_register_parameters(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveRegisterParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_register_parameters(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_RetrieveRegisterParameters_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_async.py new file mode 100644 index 000000000000..b6a85572c551 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveTransferParameters +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_RetrieveTransferParameters_async] +from google.cloud import domains_v1beta1 + + +async def sample_retrieve_transfer_parameters(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveTransferParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = await client.retrieve_transfer_parameters(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_RetrieveTransferParameters_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_sync.py new file mode 100644 index 000000000000..fa35d7b76c5a --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for RetrieveTransferParameters +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_RetrieveTransferParameters_sync] +from google.cloud import domains_v1beta1 + + +def sample_retrieve_transfer_parameters(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.RetrieveTransferParametersRequest( + domain_name="domain_name_value", + location="location_value", + ) + + # Make the request + response = client.retrieve_transfer_parameters(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_RetrieveTransferParameters_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_search_domains_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_search_domains_async.py new file mode 100644 index 000000000000..850a781cd71e --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_search_domains_async.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SearchDomains +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_SearchDomains_async] +from google.cloud import domains_v1beta1 + + +async def sample_search_domains(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.SearchDomainsRequest( + query="query_value", + location="location_value", + ) + + # Make the request + response = await client.search_domains(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_SearchDomains_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_search_domains_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_search_domains_sync.py new file mode 100644 index 000000000000..f5523ee95ba7 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_search_domains_sync.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for SearchDomains +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_SearchDomains_sync] +from google.cloud import domains_v1beta1 + + +def sample_search_domains(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.SearchDomainsRequest( + query="query_value", + location="location_value", + ) + + # Make the request + response = client.search_domains(request=request) + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_SearchDomains_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_transfer_domain_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_transfer_domain_async.py new file mode 100644 index 000000000000..645a2c625162 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_transfer_domain_async.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TransferDomain +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_TransferDomain_async] +from google.cloud import domains_v1beta1 + + +async def sample_transfer_domain(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + registration = domains_v1beta1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1beta1.TransferDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.transfer_domain(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_TransferDomain_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_transfer_domain_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_transfer_domain_sync.py new file mode 100644 index 000000000000..c79d63525f1d --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_transfer_domain_sync.py @@ -0,0 +1,60 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for TransferDomain +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_TransferDomain_sync] +from google.cloud import domains_v1beta1 + + +def sample_transfer_domain(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + registration = domains_v1beta1.Registration() + registration.domain_name = "domain_name_value" + registration.contact_settings.privacy = "REDACTED_CONTACT_DATA" + registration.contact_settings.registrant_contact.email = "email_value" + registration.contact_settings.registrant_contact.phone_number = "phone_number_value" + registration.contact_settings.admin_contact.email = "email_value" + registration.contact_settings.admin_contact.phone_number = "phone_number_value" + registration.contact_settings.technical_contact.email = "email_value" + registration.contact_settings.technical_contact.phone_number = "phone_number_value" + + request = domains_v1beta1.TransferDomainRequest( + parent="parent_value", + registration=registration, + ) + + # Make the request + operation = client.transfer_domain(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_TransferDomain_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_update_registration_async.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_update_registration_async.py new file mode 100644 index 000000000000..654333089793 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_update_registration_async.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_UpdateRegistration_async] +from google.cloud import domains_v1beta1 + + +async def sample_update_registration(): + # Create a client + client = domains_v1beta1.DomainsAsyncClient() + + # Initialize request argument(s) + request = domains_v1beta1.UpdateRegistrationRequest( + ) + + # Make the request + operation = client.update_registration(request=request) + + print("Waiting for operation to complete...") + + response = await operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_UpdateRegistration_async] diff --git a/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_update_registration_sync.py b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_update_registration_sync.py new file mode 100644 index 000000000000..aab23af3493b --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/domains_generated_domains_v1beta1_domains_update_registration_sync.py @@ -0,0 +1,48 @@ +# -*- coding: utf-8 -*- +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Generated code. DO NOT EDIT! +# +# Snippet for UpdateRegistration +# NOTE: This snippet has been automatically generated for illustrative purposes only. +# It may require modifications to work in your environment. + +# To install the latest published package dependency, execute the following: +# python3 -m pip install google-cloud-domains + + +# [START domains_generated_domains_v1beta1_Domains_UpdateRegistration_sync] +from google.cloud import domains_v1beta1 + + +def sample_update_registration(): + # Create a client + client = domains_v1beta1.DomainsClient() + + # Initialize request argument(s) + request = domains_v1beta1.UpdateRegistrationRequest( + ) + + # Make the request + operation = client.update_registration(request=request) + + print("Waiting for operation to complete...") + + response = operation.result() + + # Handle the response + print(response) + +# [END domains_generated_domains_v1beta1_Domains_UpdateRegistration_sync] diff --git a/packages/google-cloud-domains/samples/generated_samples/snippet_metadata_domains_v1.json b/packages/google-cloud-domains/samples/generated_samples/snippet_metadata_domains_v1.json new file mode 100644 index 000000000000..f49fae629ca9 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/snippet_metadata_domains_v1.json @@ -0,0 +1,1339 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureContactSettings" + } + }, + "file": "domains_generated_domains_v1_domains_configure_contact_settings_async.py", + "regionTag": "domains_generated_domains_v1_Domains_ConfigureContactSettings_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureContactSettings" + } + }, + "file": "domains_generated_domains_v1_domains_configure_contact_settings_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_ConfigureContactSettings_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureDnsSettings" + } + }, + "file": "domains_generated_domains_v1_domains_configure_dns_settings_async.py", + "regionTag": "domains_generated_domains_v1_Domains_ConfigureDnsSettings_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureDnsSettings" + } + }, + "file": "domains_generated_domains_v1_domains_configure_dns_settings_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_ConfigureDnsSettings_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureManagementSettings" + } + }, + "file": "domains_generated_domains_v1_domains_configure_management_settings_async.py", + "regionTag": "domains_generated_domains_v1_Domains_ConfigureManagementSettings_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureManagementSettings" + } + }, + "file": "domains_generated_domains_v1_domains_configure_management_settings_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_ConfigureManagementSettings_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "DeleteRegistration" + } + }, + "file": "domains_generated_domains_v1_domains_delete_registration_async.py", + "regionTag": "domains_generated_domains_v1_Domains_DeleteRegistration_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "DeleteRegistration" + } + }, + "file": "domains_generated_domains_v1_domains_delete_registration_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_DeleteRegistration_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ExportRegistration" + } + }, + "file": "domains_generated_domains_v1_domains_export_registration_async.py", + "regionTag": "domains_generated_domains_v1_Domains_ExportRegistration_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ExportRegistration" + } + }, + "file": "domains_generated_domains_v1_domains_export_registration_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_ExportRegistration_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "GetRegistration" + } + }, + "file": "domains_generated_domains_v1_domains_get_registration_async.py", + "regionTag": "domains_generated_domains_v1_Domains_GetRegistration_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "GetRegistration" + } + }, + "file": "domains_generated_domains_v1_domains_get_registration_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_GetRegistration_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ListRegistrations" + } + }, + "file": "domains_generated_domains_v1_domains_list_registrations_async.py", + "regionTag": "domains_generated_domains_v1_Domains_ListRegistrations_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ListRegistrations" + } + }, + "file": "domains_generated_domains_v1_domains_list_registrations_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_ListRegistrations_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RegisterDomain" + } + }, + "file": "domains_generated_domains_v1_domains_register_domain_async.py", + "regionTag": "domains_generated_domains_v1_Domains_RegisterDomain_async", + "segments": [ + { + "end": 59, + "start": 27, + "type": "FULL" + }, + { + "end": 59, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 56, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 60, + "start": 57, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RegisterDomain" + } + }, + "file": "domains_generated_domains_v1_domains_register_domain_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_RegisterDomain_sync", + "segments": [ + { + "end": 59, + "start": 27, + "type": "FULL" + }, + { + "end": 59, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 56, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 60, + "start": 57, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ResetAuthorizationCode" + } + }, + "file": "domains_generated_domains_v1_domains_reset_authorization_code_async.py", + "regionTag": "domains_generated_domains_v1_Domains_ResetAuthorizationCode_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ResetAuthorizationCode" + } + }, + "file": "domains_generated_domains_v1_domains_reset_authorization_code_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_ResetAuthorizationCode_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveAuthorizationCode" + } + }, + "file": "domains_generated_domains_v1_domains_retrieve_authorization_code_async.py", + "regionTag": "domains_generated_domains_v1_Domains_RetrieveAuthorizationCode_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveAuthorizationCode" + } + }, + "file": "domains_generated_domains_v1_domains_retrieve_authorization_code_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_RetrieveAuthorizationCode_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveRegisterParameters" + } + }, + "file": "domains_generated_domains_v1_domains_retrieve_register_parameters_async.py", + "regionTag": "domains_generated_domains_v1_Domains_RetrieveRegisterParameters_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveRegisterParameters" + } + }, + "file": "domains_generated_domains_v1_domains_retrieve_register_parameters_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_RetrieveRegisterParameters_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveTransferParameters" + } + }, + "file": "domains_generated_domains_v1_domains_retrieve_transfer_parameters_async.py", + "regionTag": "domains_generated_domains_v1_Domains_RetrieveTransferParameters_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveTransferParameters" + } + }, + "file": "domains_generated_domains_v1_domains_retrieve_transfer_parameters_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_RetrieveTransferParameters_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "SearchDomains" + } + }, + "file": "domains_generated_domains_v1_domains_search_domains_async.py", + "regionTag": "domains_generated_domains_v1_Domains_SearchDomains_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "SearchDomains" + } + }, + "file": "domains_generated_domains_v1_domains_search_domains_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_SearchDomains_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "TransferDomain" + } + }, + "file": "domains_generated_domains_v1_domains_transfer_domain_async.py", + "regionTag": "domains_generated_domains_v1_Domains_TransferDomain_async", + "segments": [ + { + "end": 59, + "start": 27, + "type": "FULL" + }, + { + "end": 59, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 56, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 60, + "start": 57, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "TransferDomain" + } + }, + "file": "domains_generated_domains_v1_domains_transfer_domain_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_TransferDomain_sync", + "segments": [ + { + "end": 59, + "start": 27, + "type": "FULL" + }, + { + "end": 59, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 56, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 60, + "start": 57, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "UpdateRegistration" + } + }, + "file": "domains_generated_domains_v1_domains_update_registration_async.py", + "regionTag": "domains_generated_domains_v1_Domains_UpdateRegistration_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "UpdateRegistration" + } + }, + "file": "domains_generated_domains_v1_domains_update_registration_sync.py", + "regionTag": "domains_generated_domains_v1_Domains_UpdateRegistration_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +} diff --git a/packages/google-cloud-domains/samples/generated_samples/snippet_metadata_domains_v1beta1.json b/packages/google-cloud-domains/samples/generated_samples/snippet_metadata_domains_v1beta1.json new file mode 100644 index 000000000000..44a9521317c3 --- /dev/null +++ b/packages/google-cloud-domains/samples/generated_samples/snippet_metadata_domains_v1beta1.json @@ -0,0 +1,1339 @@ +{ + "snippets": [ + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureContactSettings" + } + }, + "file": "domains_generated_domains_v1beta1_domains_configure_contact_settings_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ConfigureContactSettings_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureContactSettings" + } + }, + "file": "domains_generated_domains_v1beta1_domains_configure_contact_settings_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ConfigureContactSettings_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureDnsSettings" + } + }, + "file": "domains_generated_domains_v1beta1_domains_configure_dns_settings_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ConfigureDnsSettings_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureDnsSettings" + } + }, + "file": "domains_generated_domains_v1beta1_domains_configure_dns_settings_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ConfigureDnsSettings_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureManagementSettings" + } + }, + "file": "domains_generated_domains_v1beta1_domains_configure_management_settings_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ConfigureManagementSettings_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ConfigureManagementSettings" + } + }, + "file": "domains_generated_domains_v1beta1_domains_configure_management_settings_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ConfigureManagementSettings_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "DeleteRegistration" + } + }, + "file": "domains_generated_domains_v1beta1_domains_delete_registration_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_DeleteRegistration_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "DeleteRegistration" + } + }, + "file": "domains_generated_domains_v1beta1_domains_delete_registration_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_DeleteRegistration_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ExportRegistration" + } + }, + "file": "domains_generated_domains_v1beta1_domains_export_registration_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ExportRegistration_async", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ExportRegistration" + } + }, + "file": "domains_generated_domains_v1beta1_domains_export_registration_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ExportRegistration_sync", + "segments": [ + { + "end": 48, + "start": 27, + "type": "FULL" + }, + { + "end": 48, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 45, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 49, + "start": 46, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "GetRegistration" + } + }, + "file": "domains_generated_domains_v1beta1_domains_get_registration_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_GetRegistration_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "GetRegistration" + } + }, + "file": "domains_generated_domains_v1beta1_domains_get_registration_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_GetRegistration_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ListRegistrations" + } + }, + "file": "domains_generated_domains_v1beta1_domains_list_registrations_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ListRegistrations_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ListRegistrations" + } + }, + "file": "domains_generated_domains_v1beta1_domains_list_registrations_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ListRegistrations_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RegisterDomain" + } + }, + "file": "domains_generated_domains_v1beta1_domains_register_domain_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_RegisterDomain_async", + "segments": [ + { + "end": 59, + "start": 27, + "type": "FULL" + }, + { + "end": 59, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 56, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 60, + "start": 57, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RegisterDomain" + } + }, + "file": "domains_generated_domains_v1beta1_domains_register_domain_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_RegisterDomain_sync", + "segments": [ + { + "end": 59, + "start": 27, + "type": "FULL" + }, + { + "end": 59, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 56, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 60, + "start": 57, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ResetAuthorizationCode" + } + }, + "file": "domains_generated_domains_v1beta1_domains_reset_authorization_code_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ResetAuthorizationCode_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "ResetAuthorizationCode" + } + }, + "file": "domains_generated_domains_v1beta1_domains_reset_authorization_code_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_ResetAuthorizationCode_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveAuthorizationCode" + } + }, + "file": "domains_generated_domains_v1beta1_domains_retrieve_authorization_code_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_RetrieveAuthorizationCode_async", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveAuthorizationCode" + } + }, + "file": "domains_generated_domains_v1beta1_domains_retrieve_authorization_code_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_RetrieveAuthorizationCode_sync", + "segments": [ + { + "end": 44, + "start": 27, + "type": "FULL" + }, + { + "end": 44, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 38, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 41, + "start": 39, + "type": "REQUEST_EXECUTION" + }, + { + "end": 45, + "start": 42, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveRegisterParameters" + } + }, + "file": "domains_generated_domains_v1beta1_domains_retrieve_register_parameters_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_RetrieveRegisterParameters_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveRegisterParameters" + } + }, + "file": "domains_generated_domains_v1beta1_domains_retrieve_register_parameters_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_RetrieveRegisterParameters_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveTransferParameters" + } + }, + "file": "domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_RetrieveTransferParameters_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "RetrieveTransferParameters" + } + }, + "file": "domains_generated_domains_v1beta1_domains_retrieve_transfer_parameters_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_RetrieveTransferParameters_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "SearchDomains" + } + }, + "file": "domains_generated_domains_v1beta1_domains_search_domains_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_SearchDomains_async", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "SearchDomains" + } + }, + "file": "domains_generated_domains_v1beta1_domains_search_domains_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_SearchDomains_sync", + "segments": [ + { + "end": 45, + "start": 27, + "type": "FULL" + }, + { + "end": 45, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 39, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 42, + "start": 40, + "type": "REQUEST_EXECUTION" + }, + { + "end": 46, + "start": 43, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "TransferDomain" + } + }, + "file": "domains_generated_domains_v1beta1_domains_transfer_domain_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_TransferDomain_async", + "segments": [ + { + "end": 59, + "start": 27, + "type": "FULL" + }, + { + "end": 59, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 56, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 60, + "start": 57, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "TransferDomain" + } + }, + "file": "domains_generated_domains_v1beta1_domains_transfer_domain_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_TransferDomain_sync", + "segments": [ + { + "end": 59, + "start": 27, + "type": "FULL" + }, + { + "end": 59, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 49, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 56, + "start": 50, + "type": "REQUEST_EXECUTION" + }, + { + "end": 60, + "start": 57, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "async": true, + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "UpdateRegistration" + } + }, + "file": "domains_generated_domains_v1beta1_domains_update_registration_async.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_UpdateRegistration_async", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + }, + { + "clientMethod": { + "method": { + "service": { + "shortName": "Domains" + }, + "shortName": "UpdateRegistration" + } + }, + "file": "domains_generated_domains_v1beta1_domains_update_registration_sync.py", + "regionTag": "domains_generated_domains_v1beta1_Domains_UpdateRegistration_sync", + "segments": [ + { + "end": 47, + "start": 27, + "type": "FULL" + }, + { + "end": 47, + "start": 27, + "type": "SHORT" + }, + { + "end": 33, + "start": 31, + "type": "CLIENT_INITIALIZATION" + }, + { + "end": 37, + "start": 34, + "type": "REQUEST_INITIALIZATION" + }, + { + "end": 44, + "start": 38, + "type": "REQUEST_EXECUTION" + }, + { + "end": 48, + "start": 45, + "type": "RESPONSE_HANDLING" + } + ] + } + ] +}