From 180d845738ae4549fca04cca83dd0ed8aac67b9e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 9 Nov 2021 18:12:42 -0500 Subject: [PATCH 1/6] chore: use gapic-generator-python 0.56.2 (#89) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update Java and Python dependencies PiperOrigin-RevId: 408420890 Source-Link: https://github.com/googleapis/googleapis/commit/2921f9fb3bfbd16f6b2da0104373e2b47a80a65e Source-Link: https://github.com/googleapis/googleapis-gen/commit/6598ca8cbbf5226733a099c4506518a5af6ff74c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9 * 🦉 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 | 13 +- .../domains_v1/services/domains/client.py | 25 +- .../services/domains/transports/base.py | 10 +- .../services/domains/transports/grpc.py | 6 +- .../domains/transports/grpc_asyncio.py | 6 +- google/cloud/domains_v1/types/domains.py | 2 + .../services/domains/async_client.py | 13 +- .../services/domains/client.py | 25 +- .../services/domains/transports/base.py | 10 +- .../services/domains/transports/grpc.py | 6 +- .../domains/transports/grpc_asyncio.py | 6 +- google/cloud/domains_v1beta1/types/domains.py | 2 + tests/unit/gapic/domains_v1/test_domains.py | 252 +++++++++++++----- .../gapic/domains_v1beta1/test_domains.py | 252 +++++++++++++----- 14 files changed, 436 insertions(+), 192 deletions(-) diff --git a/google/cloud/domains_v1/services/domains/async_client.py b/google/cloud/domains_v1/services/domains/async_client.py index f746bd0..89827a6 100644 --- a/google/cloud/domains_v1/services/domains/async_client.py +++ b/google/cloud/domains_v1/services/domains/async_client.py @@ -19,14 +19,17 @@ from typing import Dict, Sequence, Tuple, Type, Union import pkg_resources -from google.api_core.client_options import ClientOptions # type: ignore -from google.api_core import exceptions as core_exceptions # type: ignore -from google.api_core import gapic_v1 # type: ignore -from google.api_core import retry as retries # type: ignore +from google.api_core.client_options import ClientOptions +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries from google.auth import credentials as ga_credentials # type: ignore from google.oauth2 import service_account # type: ignore -OptionalRetry = Union[retries.Retry, object] +try: + OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] +except AttributeError: # pragma: NO COVER + OptionalRetry = Union[retries.Retry, object] # type: ignore from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore diff --git a/google/cloud/domains_v1/services/domains/client.py b/google/cloud/domains_v1/services/domains/client.py index b7727a8..eaf4c40 100644 --- a/google/cloud/domains_v1/services/domains/client.py +++ b/google/cloud/domains_v1/services/domains/client.py @@ -14,23 +14,25 @@ # limitations under the License. # from collections import OrderedDict -from distutils import util import os import re from typing import Dict, Optional, Sequence, Tuple, Type, Union import pkg_resources -from google.api_core import client_options as client_options_lib # type: ignore -from google.api_core import exceptions as core_exceptions # type: ignore -from google.api_core import gapic_v1 # type: ignore -from google.api_core import retry as retries # type: ignore +from google.api_core import client_options as client_options_lib +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport import mtls # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.exceptions import MutualTLSChannelError # type: ignore from google.oauth2 import service_account # type: ignore -OptionalRetry = Union[retries.Retry, object] +try: + OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] +except AttributeError: # pragma: NO COVER + OptionalRetry = Union[retries.Retry, object] # type: ignore from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore @@ -289,8 +291,15 @@ def __init__( client_options = client_options_lib.ClientOptions() # Create SSL credentials for mutual TLS if needed. - use_client_cert = bool( - util.strtobool(os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false")) + if os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") not in ( + "true", + "false", + ): + raise ValueError( + "Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`" + ) + use_client_cert = ( + os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") == "true" ) client_cert_source_func = None diff --git a/google/cloud/domains_v1/services/domains/transports/base.py b/google/cloud/domains_v1/services/domains/transports/base.py index 4d8b6a6..9b53dc1 100644 --- a/google/cloud/domains_v1/services/domains/transports/base.py +++ b/google/cloud/domains_v1/services/domains/transports/base.py @@ -18,11 +18,11 @@ import pkg_resources import google.auth # type: ignore -import google.api_core # type: ignore -from google.api_core import exceptions as core_exceptions # type: ignore -from google.api_core import gapic_v1 # type: ignore -from google.api_core import retry as retries # type: ignore -from google.api_core import operations_v1 # type: ignore +import google.api_core +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries +from google.api_core import operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.oauth2 import service_account # type: ignore diff --git a/google/cloud/domains_v1/services/domains/transports/grpc.py b/google/cloud/domains_v1/services/domains/transports/grpc.py index fc80444..b8758b9 100644 --- a/google/cloud/domains_v1/services/domains/transports/grpc.py +++ b/google/cloud/domains_v1/services/domains/transports/grpc.py @@ -16,9 +16,9 @@ import warnings from typing import Callable, Dict, Optional, Sequence, Tuple, Union -from google.api_core import grpc_helpers # type: ignore -from google.api_core import operations_v1 # type: ignore -from google.api_core import gapic_v1 # type: ignore +from google.api_core import grpc_helpers +from google.api_core import operations_v1 +from google.api_core import gapic_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore diff --git a/google/cloud/domains_v1/services/domains/transports/grpc_asyncio.py b/google/cloud/domains_v1/services/domains/transports/grpc_asyncio.py index aa52fa8..b4e385b 100644 --- a/google/cloud/domains_v1/services/domains/transports/grpc_asyncio.py +++ b/google/cloud/domains_v1/services/domains/transports/grpc_asyncio.py @@ -16,9 +16,9 @@ import warnings from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union -from google.api_core import gapic_v1 # type: ignore -from google.api_core import grpc_helpers_async # type: ignore -from google.api_core import operations_v1 # type: ignore +from google.api_core import gapic_v1 +from google.api_core import grpc_helpers_async +from google.api_core import operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore diff --git a/google/cloud/domains_v1/types/domains.py b/google/cloud/domains_v1/types/domains.py index 72242a2..613d32a 100644 --- a/google/cloud/domains_v1/types/domains.py +++ b/google/cloud/domains_v1/types/domains.py @@ -242,10 +242,12 @@ class DnsSettings(proto.Message): custom_dns (google.cloud.domains_v1.types.DnsSettings.CustomDns): An arbitrary DNS provider identified by its name servers. + This field is a member of `oneof`_ ``dns_provider``. google_domains_dns (google.cloud.domains_v1.types.DnsSettings.GoogleDomainsDns): The free DNS zone provided by `Google Domains `__. + This field is a member of `oneof`_ ``dns_provider``. glue_records (Sequence[google.cloud.domains_v1.types.DnsSettings.GlueRecord]): The list of glue records for this ``Registration``. Commonly diff --git a/google/cloud/domains_v1beta1/services/domains/async_client.py b/google/cloud/domains_v1beta1/services/domains/async_client.py index 5552879..0947ce3 100644 --- a/google/cloud/domains_v1beta1/services/domains/async_client.py +++ b/google/cloud/domains_v1beta1/services/domains/async_client.py @@ -19,14 +19,17 @@ from typing import Dict, Sequence, Tuple, Type, Union import pkg_resources -from google.api_core.client_options import ClientOptions # type: ignore -from google.api_core import exceptions as core_exceptions # type: ignore -from google.api_core import gapic_v1 # type: ignore -from google.api_core import retry as retries # type: ignore +from google.api_core.client_options import ClientOptions +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries from google.auth import credentials as ga_credentials # type: ignore from google.oauth2 import service_account # type: ignore -OptionalRetry = Union[retries.Retry, object] +try: + OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] +except AttributeError: # pragma: NO COVER + OptionalRetry = Union[retries.Retry, object] # type: ignore from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore diff --git a/google/cloud/domains_v1beta1/services/domains/client.py b/google/cloud/domains_v1beta1/services/domains/client.py index 59a0417..05f6cfa 100644 --- a/google/cloud/domains_v1beta1/services/domains/client.py +++ b/google/cloud/domains_v1beta1/services/domains/client.py @@ -14,23 +14,25 @@ # limitations under the License. # from collections import OrderedDict -from distutils import util import os import re from typing import Dict, Optional, Sequence, Tuple, Type, Union import pkg_resources -from google.api_core import client_options as client_options_lib # type: ignore -from google.api_core import exceptions as core_exceptions # type: ignore -from google.api_core import gapic_v1 # type: ignore -from google.api_core import retry as retries # type: ignore +from google.api_core import client_options as client_options_lib +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport import mtls # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore from google.auth.exceptions import MutualTLSChannelError # type: ignore from google.oauth2 import service_account # type: ignore -OptionalRetry = Union[retries.Retry, object] +try: + OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] +except AttributeError: # pragma: NO COVER + OptionalRetry = Union[retries.Retry, object] # type: ignore from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore @@ -289,8 +291,15 @@ def __init__( client_options = client_options_lib.ClientOptions() # Create SSL credentials for mutual TLS if needed. - use_client_cert = bool( - util.strtobool(os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false")) + if os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") not in ( + "true", + "false", + ): + raise ValueError( + "Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`" + ) + use_client_cert = ( + os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") == "true" ) client_cert_source_func = None diff --git a/google/cloud/domains_v1beta1/services/domains/transports/base.py b/google/cloud/domains_v1beta1/services/domains/transports/base.py index 3ba6000..e43386e 100644 --- a/google/cloud/domains_v1beta1/services/domains/transports/base.py +++ b/google/cloud/domains_v1beta1/services/domains/transports/base.py @@ -18,11 +18,11 @@ import pkg_resources import google.auth # type: ignore -import google.api_core # type: ignore -from google.api_core import exceptions as core_exceptions # type: ignore -from google.api_core import gapic_v1 # type: ignore -from google.api_core import retry as retries # type: ignore -from google.api_core import operations_v1 # type: ignore +import google.api_core +from google.api_core import exceptions as core_exceptions +from google.api_core import gapic_v1 +from google.api_core import retry as retries +from google.api_core import operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.oauth2 import service_account # type: ignore diff --git a/google/cloud/domains_v1beta1/services/domains/transports/grpc.py b/google/cloud/domains_v1beta1/services/domains/transports/grpc.py index a8f3c90..54b6af6 100644 --- a/google/cloud/domains_v1beta1/services/domains/transports/grpc.py +++ b/google/cloud/domains_v1beta1/services/domains/transports/grpc.py @@ -16,9 +16,9 @@ import warnings from typing import Callable, Dict, Optional, Sequence, Tuple, Union -from google.api_core import grpc_helpers # type: ignore -from google.api_core import operations_v1 # type: ignore -from google.api_core import gapic_v1 # type: ignore +from google.api_core import grpc_helpers +from google.api_core import operations_v1 +from google.api_core import gapic_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore diff --git a/google/cloud/domains_v1beta1/services/domains/transports/grpc_asyncio.py b/google/cloud/domains_v1beta1/services/domains/transports/grpc_asyncio.py index fae581a..e924fff 100644 --- a/google/cloud/domains_v1beta1/services/domains/transports/grpc_asyncio.py +++ b/google/cloud/domains_v1beta1/services/domains/transports/grpc_asyncio.py @@ -16,9 +16,9 @@ import warnings from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union -from google.api_core import gapic_v1 # type: ignore -from google.api_core import grpc_helpers_async # type: ignore -from google.api_core import operations_v1 # type: ignore +from google.api_core import gapic_v1 +from google.api_core import grpc_helpers_async +from google.api_core import operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore diff --git a/google/cloud/domains_v1beta1/types/domains.py b/google/cloud/domains_v1beta1/types/domains.py index ef9c829..8f1704b 100644 --- a/google/cloud/domains_v1beta1/types/domains.py +++ b/google/cloud/domains_v1beta1/types/domains.py @@ -242,10 +242,12 @@ class DnsSettings(proto.Message): custom_dns (google.cloud.domains_v1beta1.types.DnsSettings.CustomDns): An arbitrary DNS provider identified by its name servers. + This field is a member of `oneof`_ ``dns_provider``. google_domains_dns (google.cloud.domains_v1beta1.types.DnsSettings.GoogleDomainsDns): The free DNS zone provided by `Google Domains `__. + This field is a member of `oneof`_ ``dns_provider``. glue_records (Sequence[google.cloud.domains_v1beta1.types.DnsSettings.GlueRecord]): The list of glue records for this ``Registration``. Commonly diff --git a/tests/unit/gapic/domains_v1/test_domains.py b/tests/unit/gapic/domains_v1/test_domains.py index 971c9b8..f81c317 100644 --- a/tests/unit/gapic/domains_v1/test_domains.py +++ b/tests/unit/gapic/domains_v1/test_domains.py @@ -596,8 +596,12 @@ def test_search_domains_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].query == "query_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].query + mock_val = "query_value" + assert arg == mock_val def test_search_domains_flattened_error(): @@ -635,8 +639,12 @@ async def test_search_domains_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].query == "query_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].query + mock_val = "query_value" + assert arg == mock_val @pytest.mark.asyncio @@ -813,8 +821,12 @@ def test_retrieve_register_parameters_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].domain_name == "domain_name_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].domain_name + mock_val = "domain_name_value" + assert arg == mock_val def test_retrieve_register_parameters_flattened_error(): @@ -854,8 +866,12 @@ async def test_retrieve_register_parameters_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].domain_name == "domain_name_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].domain_name + mock_val = "domain_name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -1021,11 +1037,15 @@ def test_register_domain_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].yearly_price == money_pb2.Money( - currency_code="currency_code_value" - ) + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].yearly_price + mock_val = money_pb2.Money(currency_code="currency_code_value") + assert arg == mock_val def test_register_domain_flattened_error(): @@ -1066,11 +1086,15 @@ async def test_register_domain_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].yearly_price == money_pb2.Money( - currency_code="currency_code_value" - ) + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].yearly_price + mock_val = money_pb2.Money(currency_code="currency_code_value") + assert arg == mock_val @pytest.mark.asyncio @@ -1248,8 +1272,12 @@ def test_retrieve_transfer_parameters_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].domain_name == "domain_name_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].domain_name + mock_val = "domain_name_value" + assert arg == mock_val def test_retrieve_transfer_parameters_flattened_error(): @@ -1289,8 +1317,12 @@ async def test_retrieve_transfer_parameters_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].domain_name == "domain_name_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].domain_name + mock_val = "domain_name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -1457,14 +1489,18 @@ def test_transfer_domain_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].yearly_price == money_pb2.Money( - currency_code="currency_code_value" - ) - assert args[0].authorization_code == domains.AuthorizationCode( - code="code_value" - ) + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].yearly_price + mock_val = money_pb2.Money(currency_code="currency_code_value") + assert arg == mock_val + arg = args[0].authorization_code + mock_val = domains.AuthorizationCode(code="code_value") + assert arg == mock_val def test_transfer_domain_flattened_error(): @@ -1507,14 +1543,18 @@ async def test_transfer_domain_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].yearly_price == money_pb2.Money( - currency_code="currency_code_value" - ) - assert args[0].authorization_code == domains.AuthorizationCode( - code="code_value" - ) + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].yearly_price + mock_val = money_pb2.Money(currency_code="currency_code_value") + assert arg == mock_val + arg = args[0].authorization_code + mock_val = domains.AuthorizationCode(code="code_value") + assert arg == mock_val @pytest.mark.asyncio @@ -1694,7 +1734,9 @@ def test_list_registrations_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val def test_list_registrations_flattened_error(): @@ -1730,7 +1772,9 @@ async def test_list_registrations_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val @pytest.mark.asyncio @@ -2058,7 +2102,9 @@ def test_get_registration_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val def test_get_registration_flattened_error(): @@ -2092,7 +2138,9 @@ async def test_get_registration_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -2273,8 +2321,12 @@ def test_update_registration_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val def test_update_registration_flattened_error(): @@ -2315,8 +2367,12 @@ async def test_update_registration_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val @pytest.mark.asyncio @@ -2501,11 +2557,17 @@ def test_configure_management_settings_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].management_settings == domains.ManagementSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].management_settings + mock_val = domains.ManagementSettings( renewal_method=domains.ManagementSettings.RenewalMethod.AUTOMATIC_RENEWAL ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val def test_configure_management_settings_flattened_error(): @@ -2552,11 +2614,17 @@ async def test_configure_management_settings_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].management_settings == domains.ManagementSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].management_settings + mock_val = domains.ManagementSettings( renewal_method=domains.ManagementSettings.RenewalMethod.AUTOMATIC_RENEWAL ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val @pytest.mark.asyncio @@ -2745,13 +2813,19 @@ def test_configure_dns_settings_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].dns_settings == domains.DnsSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].dns_settings + mock_val = domains.DnsSettings( custom_dns=domains.DnsSettings.CustomDns( name_servers=["name_servers_value"] ) ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val def test_configure_dns_settings_flattened_error(): @@ -2802,13 +2876,19 @@ async def test_configure_dns_settings_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].dns_settings == domains.DnsSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].dns_settings + mock_val = domains.DnsSettings( custom_dns=domains.DnsSettings.CustomDns( name_servers=["name_servers_value"] ) ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val @pytest.mark.asyncio @@ -2998,11 +3078,17 @@ def test_configure_contact_settings_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].contact_settings == domains.ContactSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].contact_settings + mock_val = domains.ContactSettings( privacy=domains.ContactPrivacy.PUBLIC_CONTACT_DATA ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val def test_configure_contact_settings_flattened_error(): @@ -3049,11 +3135,17 @@ async def test_configure_contact_settings_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].contact_settings == domains.ContactSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].contact_settings + mock_val = domains.ContactSettings( privacy=domains.ContactPrivacy.PUBLIC_CONTACT_DATA ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val @pytest.mark.asyncio @@ -3230,7 +3322,9 @@ def test_export_registration_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val def test_export_registration_flattened_error(): @@ -3266,7 +3360,9 @@ async def test_export_registration_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -3438,7 +3534,9 @@ def test_delete_registration_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val def test_delete_registration_flattened_error(): @@ -3474,7 +3572,9 @@ async def test_delete_registration_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -3653,7 +3753,9 @@ def test_retrieve_authorization_code_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val def test_retrieve_authorization_code_flattened_error(): @@ -3692,7 +3794,9 @@ async def test_retrieve_authorization_code_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val @pytest.mark.asyncio @@ -3871,7 +3975,9 @@ def test_reset_authorization_code_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val def test_reset_authorization_code_flattened_error(): @@ -3909,7 +4015,9 @@ async def test_reset_authorization_code_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val @pytest.mark.asyncio diff --git a/tests/unit/gapic/domains_v1beta1/test_domains.py b/tests/unit/gapic/domains_v1beta1/test_domains.py index 2975393..7c95eaa 100644 --- a/tests/unit/gapic/domains_v1beta1/test_domains.py +++ b/tests/unit/gapic/domains_v1beta1/test_domains.py @@ -596,8 +596,12 @@ def test_search_domains_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].query == "query_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].query + mock_val = "query_value" + assert arg == mock_val def test_search_domains_flattened_error(): @@ -635,8 +639,12 @@ async def test_search_domains_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].query == "query_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].query + mock_val = "query_value" + assert arg == mock_val @pytest.mark.asyncio @@ -813,8 +821,12 @@ def test_retrieve_register_parameters_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].domain_name == "domain_name_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].domain_name + mock_val = "domain_name_value" + assert arg == mock_val def test_retrieve_register_parameters_flattened_error(): @@ -854,8 +866,12 @@ async def test_retrieve_register_parameters_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].domain_name == "domain_name_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].domain_name + mock_val = "domain_name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -1021,11 +1037,15 @@ def test_register_domain_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].yearly_price == money_pb2.Money( - currency_code="currency_code_value" - ) + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].yearly_price + mock_val = money_pb2.Money(currency_code="currency_code_value") + assert arg == mock_val def test_register_domain_flattened_error(): @@ -1066,11 +1086,15 @@ async def test_register_domain_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].yearly_price == money_pb2.Money( - currency_code="currency_code_value" - ) + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].yearly_price + mock_val = money_pb2.Money(currency_code="currency_code_value") + assert arg == mock_val @pytest.mark.asyncio @@ -1248,8 +1272,12 @@ def test_retrieve_transfer_parameters_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].domain_name == "domain_name_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].domain_name + mock_val = "domain_name_value" + assert arg == mock_val def test_retrieve_transfer_parameters_flattened_error(): @@ -1289,8 +1317,12 @@ async def test_retrieve_transfer_parameters_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].location == "location_value" - assert args[0].domain_name == "domain_name_value" + arg = args[0].location + mock_val = "location_value" + assert arg == mock_val + arg = args[0].domain_name + mock_val = "domain_name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -1457,14 +1489,18 @@ def test_transfer_domain_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].yearly_price == money_pb2.Money( - currency_code="currency_code_value" - ) - assert args[0].authorization_code == domains.AuthorizationCode( - code="code_value" - ) + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].yearly_price + mock_val = money_pb2.Money(currency_code="currency_code_value") + assert arg == mock_val + arg = args[0].authorization_code + mock_val = domains.AuthorizationCode(code="code_value") + assert arg == mock_val def test_transfer_domain_flattened_error(): @@ -1507,14 +1543,18 @@ async def test_transfer_domain_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].yearly_price == money_pb2.Money( - currency_code="currency_code_value" - ) - assert args[0].authorization_code == domains.AuthorizationCode( - code="code_value" - ) + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].yearly_price + mock_val = money_pb2.Money(currency_code="currency_code_value") + assert arg == mock_val + arg = args[0].authorization_code + mock_val = domains.AuthorizationCode(code="code_value") + assert arg == mock_val @pytest.mark.asyncio @@ -1694,7 +1734,9 @@ def test_list_registrations_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val def test_list_registrations_flattened_error(): @@ -1730,7 +1772,9 @@ async def test_list_registrations_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].parent == "parent_value" + arg = args[0].parent + mock_val = "parent_value" + assert arg == mock_val @pytest.mark.asyncio @@ -2058,7 +2102,9 @@ def test_get_registration_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val def test_get_registration_flattened_error(): @@ -2092,7 +2138,9 @@ async def test_get_registration_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -2273,8 +2321,12 @@ def test_update_registration_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val def test_update_registration_flattened_error(): @@ -2315,8 +2367,12 @@ async def test_update_registration_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == domains.Registration(name="name_value") - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + arg = args[0].registration + mock_val = domains.Registration(name="name_value") + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val @pytest.mark.asyncio @@ -2501,11 +2557,17 @@ def test_configure_management_settings_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].management_settings == domains.ManagementSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].management_settings + mock_val = domains.ManagementSettings( renewal_method=domains.ManagementSettings.RenewalMethod.AUTOMATIC_RENEWAL ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val def test_configure_management_settings_flattened_error(): @@ -2552,11 +2614,17 @@ async def test_configure_management_settings_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].management_settings == domains.ManagementSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].management_settings + mock_val = domains.ManagementSettings( renewal_method=domains.ManagementSettings.RenewalMethod.AUTOMATIC_RENEWAL ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val @pytest.mark.asyncio @@ -2745,13 +2813,19 @@ def test_configure_dns_settings_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].dns_settings == domains.DnsSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].dns_settings + mock_val = domains.DnsSettings( custom_dns=domains.DnsSettings.CustomDns( name_servers=["name_servers_value"] ) ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val def test_configure_dns_settings_flattened_error(): @@ -2802,13 +2876,19 @@ async def test_configure_dns_settings_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].dns_settings == domains.DnsSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].dns_settings + mock_val = domains.DnsSettings( custom_dns=domains.DnsSettings.CustomDns( name_servers=["name_servers_value"] ) ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val @pytest.mark.asyncio @@ -2998,11 +3078,17 @@ def test_configure_contact_settings_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].contact_settings == domains.ContactSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].contact_settings + mock_val = domains.ContactSettings( privacy=domains.ContactPrivacy.PUBLIC_CONTACT_DATA ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val def test_configure_contact_settings_flattened_error(): @@ -3049,11 +3135,17 @@ async def test_configure_contact_settings_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" - assert args[0].contact_settings == domains.ContactSettings( + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val + arg = args[0].contact_settings + mock_val = domains.ContactSettings( privacy=domains.ContactPrivacy.PUBLIC_CONTACT_DATA ) - assert args[0].update_mask == field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val + arg = args[0].update_mask + mock_val = field_mask_pb2.FieldMask(paths=["paths_value"]) + assert arg == mock_val @pytest.mark.asyncio @@ -3230,7 +3322,9 @@ def test_export_registration_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val def test_export_registration_flattened_error(): @@ -3266,7 +3360,9 @@ async def test_export_registration_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -3438,7 +3534,9 @@ def test_delete_registration_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val def test_delete_registration_flattened_error(): @@ -3474,7 +3572,9 @@ async def test_delete_registration_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].name == "name_value" + arg = args[0].name + mock_val = "name_value" + assert arg == mock_val @pytest.mark.asyncio @@ -3653,7 +3753,9 @@ def test_retrieve_authorization_code_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val def test_retrieve_authorization_code_flattened_error(): @@ -3692,7 +3794,9 @@ async def test_retrieve_authorization_code_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val @pytest.mark.asyncio @@ -3871,7 +3975,9 @@ def test_reset_authorization_code_flattened(): # request object values. assert len(call.mock_calls) == 1 _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val def test_reset_authorization_code_flattened_error(): @@ -3909,7 +4015,9 @@ async def test_reset_authorization_code_flattened_async(): # request object values. assert len(call.mock_calls) _, args, _ = call.mock_calls[0] - assert args[0].registration == "registration_value" + arg = args[0].registration + mock_val = "registration_value" + assert arg == mock_val @pytest.mark.asyncio From 90cb9b6cb64611007d60d1df533e0e2339639251 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 11 Nov 2021 13:25:02 -0500 Subject: [PATCH 2/6] chore(python): add .github/CODEOWNERS as a templated file (#90) Source-Link: https://github.com/googleapis/synthtool/commit/c5026b3217973a8db55db8ee85feee0e9a65e295 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:0e18b9475fbeb12d9ad4302283171edebb6baf2dfca1bd215ee3b34ed79d95d7 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 2 +- .github/CODEOWNERS | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index cb89b2e..7519fa3 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:ec49167c606648a063d1222220b48119c912562849a0528f35bfb592a9f72737 + digest: sha256:0e18b9475fbeb12d9ad4302283171edebb6baf2dfca1bd215ee3b34ed79d95d7 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f0bc940..44cc868 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,9 +3,10 @@ # # For syntax help see: # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax +# Note: This file is autogenerated. To make changes to the codeowner team, please update .repo-metadata.json. -# The @googleapis/yoshi-python is the default owner for changes in this repo -* @googleapis/yoshi-python +# @googleapis/yoshi-python is the default owner for changes in this repo +* @googleapis/yoshi-python -# The python-samples-reviewers team is the default owner for samples changes -/samples/ @googleapis/python-samples-owners +# @googleapis/python-samples-owners is the default owner for samples changes +/samples/ @googleapis/python-samples-owners From ab4431ec6b5b0841ddae68369279c03da60bfa08 Mon Sep 17 00:00:00 2001 From: Dan Lee <71398022+dandhlee@users.noreply.github.com> Date: Tue, 16 Nov 2021 11:08:45 -0500 Subject: [PATCH 3/6] chore: update doc links from googleapis.dev to cloud.google.com (#93) --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 3764e36..ffb629f 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -2,7 +2,7 @@ "name": "domains", "name_pretty": "Cloud Domains", "product_documentation": "https://cloud.google.com/domains", - "client_documentation": "https://googleapis.dev/python/domains/latest", + "client_documentation": "https://cloud.google.com/python/docs/reference/domains/latest", "issue_tracker": "", "release_level": "beta", "language": "python", From 3469db103f724cbee1739c1484564a9284dd2b91 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 16 Nov 2021 11:39:26 -0500 Subject: [PATCH 4/6] chore: Update Client Library Documentation link in README (#92) URL to Client Library Documentation had a typo that broke the link. Co-authored-by: Peter Wicks Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 24ff364..e66161f 100644 --- a/README.rst +++ b/README.rst @@ -15,7 +15,7 @@ Python Client for Cloud Domains .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-domains.svg :target: https://pypi.org/project/google-cloud-domains/ .. _Cloud Domains: https://cloud.google.com/domains -.. _Client Library Documentation: https://googleapis.dev/python/domainslatest +.. _Client Library Documentation: https://googleapis.dev/python/domains/latest .. _Product Documentation: https://cloud.google.com/domains Quick Start @@ -79,4 +79,4 @@ Next Steps APIs that we cover. .. _Cloud Domains Product documentation: https://cloud.google.com/domains/docs -.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst \ No newline at end of file +.. _README: https://github.com/googleapis/google-cloud-python/blob/main/README.rst From 24606e7dd3a90509e702d25edea9b0256420e3ae Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 3 Dec 2021 07:36:30 -0500 Subject: [PATCH 5/6] feat: bump release level to production/stable (#82) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #80 🦕 Release-As: 1.0.0 --- .repo-metadata.json | 2 +- README.rst | 6 ++-- docs/README.rst | 83 +-------------------------------------------- setup.py | 2 +- 4 files changed, 6 insertions(+), 87 deletions(-) mode change 100644 => 120000 docs/README.rst diff --git a/.repo-metadata.json b/.repo-metadata.json index ffb629f..8f51f13 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -4,7 +4,7 @@ "product_documentation": "https://cloud.google.com/domains", "client_documentation": "https://cloud.google.com/python/docs/reference/domains/latest", "issue_tracker": "", - "release_level": "beta", + "release_level": "ga", "language": "python", "library_type": "GAPIC_AUTO", "repo": "googleapis/python-domains", diff --git a/README.rst b/README.rst index e66161f..ace4dd9 100644 --- a/README.rst +++ b/README.rst @@ -1,15 +1,15 @@ Python Client for Cloud Domains ================================================= -|beta| |pypi| |versions| +|ga| |pypi| |versions| `Cloud Domains`_: Enables management and configuration of domain names. - `Client Library Documentation`_ - `Product Documentation`_ -.. |beta| image:: https://img.shields.io/badge/support-beta-orange.svg - :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#beta-support +.. |ga| image:: https://img.shields.io/badge/support-ga-gold.svg + :target: https://github.com/googleapis/google-cloud-python/blob/main/README.rst#ga-support .. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-domains.svg :target: https://pypi.org/project/google-cloud-domains/ .. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-domains.svg diff --git a/docs/README.rst b/docs/README.rst deleted file mode 100644 index 3ce7ad6..0000000 --- a/docs/README.rst +++ /dev/null @@ -1,82 +0,0 @@ -Python Client for Cloud Domains -================================================= - -|beta| |pypi| |versions| - -`Cloud Domains`_: Enables management and configuration of domain names. - -- `Client Library Documentation`_ -- `Product Documentation`_ - -.. |beta| image:: https://img.shields.io/badge/support-beta-orange.svg - :target: https://github.com/googleapis/google-cloud-python/blob/master/README.rst#beta-support -.. |pypi| image:: https://img.shields.io/pypi/v/google-cloud-domains.svg - :target: https://pypi.org/project/google-cloud-domains/ -.. |versions| image:: https://img.shields.io/pypi/pyversions/google-cloud-domains.svg - :target: https://pypi.org/project/google-cloud-domains/ -.. _Cloud Domains: https://cloud.google.com/domains -.. _Client Library Documentation: https://googleapis.dev/python/domainslatest -.. _Product Documentation: https://cloud.google.com/domains - -Quick Start ------------ - -In order to use this library, you first need to go through the following steps: - -1. `Select or create a Cloud Platform project.`_ -2. `Enable billing for your project.`_ -3. `Enable the Cloud Domains.`_ -4. `Setup Authentication.`_ - -.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project -.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project -.. _Enable the Cloud Domains.: https://cloud.google.com/domains/docs -.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html - -Installation -~~~~~~~~~~~~ - -Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to -create isolated Python environments. The basic problem it addresses is one of -dependencies and versions, and indirectly permissions. - -With `virtualenv`_, it's possible to install this library without needing system -install permissions, and without clashing with the installed system -dependencies. - -.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/ - - -Mac/Linux -^^^^^^^^^ - -.. code-block:: console - - pip install virtualenv - virtualenv - source /bin/activate - /bin/pip install google-cloud-domains - - -Windows -^^^^^^^ - -.. code-block:: console - - pip install virtualenv - virtualenv - \Scripts\activate - \Scripts\pip.exe install google-cloud-domains - -Next Steps -~~~~~~~~~~ - -- Read the `Client Library Documentation`_ for Cloud Domains - to see other available methods on the client. -- Read the `Cloud Domains Product documentation`_ to learn - more about the product and see How-to Guides. -- View this `README`_ to see the full list of Cloud - APIs that we cover. - -.. _Cloud Domains Product documentation: https://cloud.google.com/domains/docs -.. _README: https://github.com/googleapis/google-cloud-python/blob/master/README.rst \ No newline at end of file diff --git a/docs/README.rst b/docs/README.rst new file mode 120000 index 0000000..89a0106 --- /dev/null +++ b/docs/README.rst @@ -0,0 +1 @@ +../README.rst \ No newline at end of file diff --git a/setup.py b/setup.py index ef5a223..99775f6 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ ), python_requires=">=3.6", classifiers=[ - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python :: 3.6", From 904b247f0fb4912f3f155d9fb93c17d127ed646e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 16:10:14 +0000 Subject: [PATCH 6/6] chore: release 1.0.0 (#94) :robot: I have created a release \*beep\* \*boop\* --- ## [1.0.0](https://www.github.com/googleapis/python-domains/compare/v0.4.1...v1.0.0) (2021-12-03) ### Features * bump release level to production/stable ([#82](https://www.github.com/googleapis/python-domains/issues/82)) ([24606e7](https://www.github.com/googleapis/python-domains/commit/24606e7dd3a90509e702d25edea9b0256420e3ae)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 096b402..ab7d9fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.0.0](https://www.github.com/googleapis/python-domains/compare/v0.4.1...v1.0.0) (2021-12-03) + + +### Features + +* bump release level to production/stable ([#82](https://www.github.com/googleapis/python-domains/issues/82)) ([24606e7](https://www.github.com/googleapis/python-domains/commit/24606e7dd3a90509e702d25edea9b0256420e3ae)) + ### [0.4.1](https://www.github.com/googleapis/python-domains/compare/v0.4.0...v0.4.1) (2021-11-01) diff --git a/setup.py b/setup.py index 99775f6..8ce7cf6 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ import os import setuptools # type: ignore -version = "0.4.1" +version = "1.0.0" package_root = os.path.abspath(os.path.dirname(__file__))