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

Commit

Permalink
chore: Use gapic-generator-python 0.65.0 (#132)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 440970084

Source-Link: googleapis/googleapis@5e0a3d5

Source-Link: googleapis/googleapis-gen@b0c628a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBjNjI4YTNmYWRlNzY4ZjIyNWQ3Njk5Mjc5MWVhMWJhMmE4ODFiZSJ9

docs: fix type in docstring for map fields
  • Loading branch information
gcf-owl-bot[bot] committed Apr 12, 2022
1 parent b3a5110 commit b12a2cd
Show file tree
Hide file tree
Showing 12 changed files with 148 additions and 88 deletions.
13 changes: 1 addition & 12 deletions google/cloud/domains_v1/services/domains/async_client.py
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -219,7 +219,6 @@ async def search_domains(
``RetrieveRegisterParameters`` on a domain before registering to
confirm availability.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -326,7 +325,6 @@ async def retrieve_register_parameters(
price and up-to-date availability. Use the returned values to
call ``RegisterDomain``.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -446,7 +444,6 @@ async def register_domain(
registered successfully, and you can safely delete the resource
and retry registration.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -613,7 +610,6 @@ async def retrieve_transfer_parameters(
Use the returned values to call ``TransferDomain``.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -744,7 +740,6 @@ async def transfer_domain(
``TRANSFER_FAILED``. If transfer fails, you can safely delete
the resource and retry the transfer.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -1156,7 +1151,6 @@ async def update_registration(
- To update contact information, see
``ConfigureContactSettings``
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -1610,7 +1604,6 @@ async def configure_contact_settings(
r"""Updates a ``Registration``'s contact settings. Some changes
require confirmation by the domain's registrant contact .
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -1770,7 +1763,6 @@ async def export_registration(
The domain does not renew automatically unless the new owner
sets up billing in Google Domains.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -1921,7 +1913,6 @@ async def delete_registration(
The domain does not renew automatically unless the new owner
sets up billing in Google Domains.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -2046,7 +2037,6 @@ async def retrieve_authorization_code(
You can call this method only after 60 days have elapsed since
the initial domain registration.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -2147,7 +2137,6 @@ async def reset_authorization_code(
You can call this method only after 60 days have elapsed since
the initial domain registration.
.. code-block:: python
from google.cloud import domains_v1
Expand Down
13 changes: 1 addition & 12 deletions google/cloud/domains_v1/services/domains/client.py
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -449,7 +449,6 @@ def search_domains(
``RetrieveRegisterParameters`` on a domain before registering to
confirm availability.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -556,7 +555,6 @@ def retrieve_register_parameters(
price and up-to-date availability. Use the returned values to
call ``RegisterDomain``.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -678,7 +676,6 @@ def register_domain(
registered successfully, and you can safely delete the resource
and retry registration.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -845,7 +842,6 @@ def retrieve_transfer_parameters(
Use the returned values to call ``TransferDomain``.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -978,7 +974,6 @@ def transfer_domain(
``TRANSFER_FAILED``. If transfer fails, you can safely delete
the resource and retry the transfer.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -1390,7 +1385,6 @@ def update_registration(
- To update contact information, see
``ConfigureContactSettings``
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -1846,7 +1840,6 @@ def configure_contact_settings(
r"""Updates a ``Registration``'s contact settings. Some changes
require confirmation by the domain's registrant contact .
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -2008,7 +2001,6 @@ def export_registration(
The domain does not renew automatically unless the new owner
sets up billing in Google Domains.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -2159,7 +2151,6 @@ def delete_registration(
The domain does not renew automatically unless the new owner
sets up billing in Google Domains.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -2284,7 +2275,6 @@ def retrieve_authorization_code(
You can call this method only after 60 days have elapsed since
the initial domain registration.
.. code-block:: python
from google.cloud import domains_v1
Expand Down Expand Up @@ -2387,7 +2377,6 @@ def reset_authorization_code(
You can call this method only after 60 days have elapsed since
the initial domain registration.
.. code-block:: python
from google.cloud import domains_v1
Expand Down
5 changes: 5 additions & 0 deletions google/cloud/domains_v1/services/domains/transports/base.py
Expand Up @@ -82,6 +82,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -357,5 +358,9 @@ def reset_authorization_code(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("DomainsTransport",)
4 changes: 4 additions & 0 deletions google/cloud/domains_v1/services/domains/transports/grpc.py
Expand Up @@ -746,5 +746,9 @@ def reset_authorization_code(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("DomainsGrpcTransport",)
2 changes: 1 addition & 1 deletion google/cloud/domains_v1/types/domains.py
Expand Up @@ -135,7 +135,7 @@ class Registration(proto.Message):
issues (Sequence[google.cloud.domains_v1.types.Registration.Issue]):
Output only. The set of issues with the ``Registration``
that require attention.
labels (Sequence[google.cloud.domains_v1.types.Registration.LabelsEntry]):
labels (Mapping[str, str]):
Set of labels associated with the ``Registration``.
management_settings (google.cloud.domains_v1.types.ManagementSettings):
Settings for management of the ``Registration``, including
Expand Down
13 changes: 1 addition & 12 deletions google/cloud/domains_v1beta1/services/domains/async_client.py
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -219,7 +219,6 @@ async def search_domains(
``RetrieveRegisterParameters`` on a domain before registering to
confirm availability.
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -326,7 +325,6 @@ async def retrieve_register_parameters(
price and up-to-date availability. Use the returned values to
call ``RegisterDomain``.
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -446,7 +444,6 @@ async def register_domain(
registered successfully, and you can safely delete the resource
and retry registration.
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -613,7 +610,6 @@ async def retrieve_transfer_parameters(
Use the returned values to call ``TransferDomain``.
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -744,7 +740,6 @@ async def transfer_domain(
``TRANSFER_FAILED``. If transfer fails, you can safely delete
the resource and retry the transfer.
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -1156,7 +1151,6 @@ async def update_registration(
- To update contact information, see
``ConfigureContactSettings``
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -1610,7 +1604,6 @@ async def configure_contact_settings(
r"""Updates a ``Registration``'s contact settings. Some changes
require confirmation by the domain's registrant contact .
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -1770,7 +1763,6 @@ async def export_registration(
The domain does not renew automatically unless the new owner
sets up billing in Google Domains.
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -1921,7 +1913,6 @@ async def delete_registration(
The domain does not renew automatically unless the new owner
sets up billing in Google Domains.
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -2046,7 +2037,6 @@ async def retrieve_authorization_code(
You can call this method only after 60 days have elapsed since
the initial domain registration.
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down Expand Up @@ -2147,7 +2137,6 @@ async def reset_authorization_code(
You can call this method only after 60 days have elapsed since
the initial domain registration.
.. code-block:: python
from google.cloud import domains_v1beta1
Expand Down

0 comments on commit b12a2cd

Please sign in to comment.