From 9efd493bdef2cbeb0af1d450c0e77b2f9757e4ed Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 30 Mar 2022 17:04:23 +0000 Subject: [PATCH 01/16] chore(python): add E231 to .flake8 ignore list (#19) Source-Link: https://github.com/googleapis/synthtool/commit/7ff4aad2ec5af0380e8bd6da1fa06eaadf24ec81 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:462782b0b492346b2d9099aaff52206dd30bc8e031ea97082e6facecc2373244 --- .flake8 | 2 +- .github/.OwlBot.lock.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 29227d4..2e43874 100644 --- a/.flake8 +++ b/.flake8 @@ -16,7 +16,7 @@ # Generated by synthtool. DO NOT EDIT! [flake8] -ignore = E203, E266, E501, W503 +ignore = E203, E231, E266, E501, W503 exclude = # Exclude generated code. **/proto/** diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 87dd006..9e0a935 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:7cffbc10910c3ab1b852c05114a08d374c195a81cdec1d4a67a1d129331d0bfe + digest: sha256:462782b0b492346b2d9099aaff52206dd30bc8e031ea97082e6facecc2373244 From 2253bc0f1e6debd9793dcb3aa5fbcdc4fad7146e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 1 Apr 2022 00:34:27 +0000 Subject: [PATCH 02/16] chore(python): update .pre-commit-config.yaml to use black==22.3.0 (#20) Source-Link: https://github.com/googleapis/synthtool/commit/7804ade3daae0d66649bee8df6c55484c6580b8d Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:eede5672562a32821444a8e803fb984a6f61f2237ea3de229d2de24453f4ae7d --- .github/.OwlBot.lock.yaml | 3 ++- .pre-commit-config.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9e0a935..22cc254 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:462782b0b492346b2d9099aaff52206dd30bc8e031ea97082e6facecc2373244 + digest: sha256:eede5672562a32821444a8e803fb984a6f61f2237ea3de229d2de24453f4ae7d +# created: 2022-03-30T23:44:26.560599165Z diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 62eb5a7..46d2371 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - id: end-of-file-fixer - id: check-yaml - repo: https://github.com/psf/black - rev: 19.10b0 + rev: 22.3.0 hooks: - id: black - repo: https://gitlab.com/pycqa/flake8 From fa31ade28251f743993bf4802bc59527951b1de6 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 31 Mar 2022 22:27:09 -0400 Subject: [PATCH 03/16] chore(python): Enable size-label bot (#21) Source-Link: https://github.com/googleapis/synthtool/commit/06e82790dd719a165ad32b8a06f8f6ec3e3cae0f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:b3500c053313dc34e07b1632ba9e4e589f4f77036a7cf39e1fe8906811ae0fce Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- .github/auto-label.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .github/auto-label.yaml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 22cc254..58a0b15 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:eede5672562a32821444a8e803fb984a6f61f2237ea3de229d2de24453f4ae7d -# created: 2022-03-30T23:44:26.560599165Z + digest: sha256:b3500c053313dc34e07b1632ba9e4e589f4f77036a7cf39e1fe8906811ae0fce +# created: 2022-04-01T01:42:03.609279246Z diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml new file mode 100644 index 0000000..09c8d73 --- /dev/null +++ b/.github/auto-label.yaml @@ -0,0 +1,2 @@ +requestsize: + enabled: true From 1b5c76e2cebccb87bcedacf8613cbb6b5a4ed7c2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 1 Apr 2022 20:00:18 +0000 Subject: [PATCH 04/16] chore(python): refactor unit / system test dependency install (#22) Source-Link: https://github.com/googleapis/synthtool/commit/993985f0fc4b37152e588f0549bcbdaf34666023 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:1894490910e891a385484514b22eb5133578897eb5b3c380e6d8ad475c6647cd --- .github/.OwlBot.lock.yaml | 4 +- noxfile.py | 105 ++++++++++++++++++++++++++++++-------- 2 files changed, 87 insertions(+), 22 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 58a0b15..fa57622 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:b3500c053313dc34e07b1632ba9e4e589f4f77036a7cf39e1fe8906811ae0fce -# created: 2022-04-01T01:42:03.609279246Z + digest: sha256:1894490910e891a385484514b22eb5133578897eb5b3c380e6d8ad475c6647cd +# created: 2022-04-01T15:48:07.524222836Z diff --git a/noxfile.py b/noxfile.py index 3addb4e..6ee5e8a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -20,16 +20,40 @@ import os import pathlib import shutil +import warnings import nox - BLACK_VERSION = "black==22.3.0" BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] DEFAULT_PYTHON_VERSION = "3.8" -SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"] + UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9", "3.10"] +UNIT_TEST_STANDARD_DEPENDENCIES = [ + "mock", + "asyncmock", + "pytest", + "pytest-cov", + "pytest-asyncio", +] +UNIT_TEST_EXTERNAL_DEPENDENCIES = [] +UNIT_TEST_LOCAL_DEPENDENCIES = [] +UNIT_TEST_DEPENDENCIES = [] +UNIT_TEST_EXTRAS = [] +UNIT_TEST_EXTRAS_BY_PYTHON = {} + +SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"] +SYSTEM_TEST_STANDARD_DEPENDENCIES = [ + "mock", + "pytest", + "google-cloud-testutils", +] +SYSTEM_TEST_EXTERNAL_DEPENDENCIES = [] +SYSTEM_TEST_LOCAL_DEPENDENCIES = [] +SYSTEM_TEST_DEPENDENCIES = [] +SYSTEM_TEST_EXTRAS = [] +SYSTEM_TEST_EXTRAS_BY_PYTHON = {} CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() @@ -81,23 +105,41 @@ def lint_setup_py(session): session.run("python", "setup.py", "check", "--restructuredtext", "--strict") +def install_unittest_dependencies(session, *constraints): + standard_deps = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_DEPENDENCIES + session.install(*standard_deps, *constraints) + + if UNIT_TEST_EXTERNAL_DEPENDENCIES: + warnings.warn( + "'unit_test_external_dependencies' is deprecated. Instead, please " + "use 'unit_test_dependencies' or 'unit_test_local_dependencies'.", + DeprecationWarning, + ) + session.install(*UNIT_TEST_EXTERNAL_DEPENDENCIES, *constraints) + + if UNIT_TEST_LOCAL_DEPENDENCIES: + session.install(*UNIT_TEST_LOCAL_DEPENDENCIES, *constraints) + + if UNIT_TEST_EXTRAS_BY_PYTHON: + extras = UNIT_TEST_EXTRAS_BY_PYTHON.get(session.python, []) + elif UNIT_TEST_EXTRAS: + extras = UNIT_TEST_EXTRAS + else: + extras = [] + + if extras: + session.install("-e", f".[{','.join(extras)}]", *constraints) + else: + session.install("-e", ".", *constraints) + + def default(session): # Install all test dependencies, then install this package in-place. constraints_path = str( CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt" ) - session.install( - "mock", - "asyncmock", - "pytest", - "pytest-cov", - "pytest-asyncio", - "-c", - constraints_path, - ) - - session.install("-e", ".", "-c", constraints_path) + install_unittest_dependencies(session, "-c", constraints_path) # Run py.test against the unit tests. session.run( @@ -121,6 +163,35 @@ def unit(session): default(session) +def install_systemtest_dependencies(session, *constraints): + + # Use pre-release gRPC for system tests. + session.install("--pre", "grpcio") + + session.install(*SYSTEM_TEST_STANDARD_DEPENDENCIES, *constraints) + + if SYSTEM_TEST_EXTERNAL_DEPENDENCIES: + session.install(*SYSTEM_TEST_EXTERNAL_DEPENDENCIES, *constraints) + + if SYSTEM_TEST_LOCAL_DEPENDENCIES: + session.install("-e", *SYSTEM_TEST_LOCAL_DEPENDENCIES, *constraints) + + if SYSTEM_TEST_DEPENDENCIES: + session.install("-e", *SYSTEM_TEST_DEPENDENCIES, *constraints) + + if SYSTEM_TEST_EXTRAS_BY_PYTHON: + extras = SYSTEM_TEST_EXTRAS_BY_PYTHON.get(session.python, []) + elif SYSTEM_TEST_EXTRAS: + extras = SYSTEM_TEST_EXTRAS + else: + extras = [] + + if extras: + session.install("-e", f".[{','.join(extras)}]", *constraints) + else: + session.install("-e", ".", *constraints) + + @nox.session(python=SYSTEM_TEST_PYTHON_VERSIONS) def system(session): """Run the system test suite.""" @@ -143,13 +214,7 @@ def system(session): if not system_test_exists and not system_test_folder_exists: session.skip("System tests were not found") - # Use pre-release gRPC for system tests. - session.install("--pre", "grpcio") - - # Install all test dependencies, then install this package into the - # virtualenv's dist-packages. - session.install("mock", "pytest", "google-cloud-testutils", "-c", constraints_path) - session.install("-e", ".", "-c", constraints_path) + install_systemtest_dependencies(session, "-c", constraints_path) # Run py.test against the system tests. if system_test_exists: From 42e014d52ed0df893868eeab4e3f6c7be40fa405 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 6 Apr 2022 06:46:01 -0400 Subject: [PATCH 05/16] chore(python): add license header to auto-label.yaml (#23) Source-Link: https://github.com/googleapis/synthtool/commit/eb78c980b52c7c6746d2edb77d9cf7aaa99a2aab Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8a5d3f6a2e43ed8293f34e06a2f56931d1e88a2694c3bb11b15df4eb256ad163 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- .github/auto-label.yaml | 13 +++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index fa57622..bc893c9 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:1894490910e891a385484514b22eb5133578897eb5b3c380e6d8ad475c6647cd -# created: 2022-04-01T15:48:07.524222836Z + digest: sha256:8a5d3f6a2e43ed8293f34e06a2f56931d1e88a2694c3bb11b15df4eb256ad163 +# created: 2022-04-06T10:30:21.687684602Z diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml index 09c8d73..41bff0b 100644 --- a/.github/auto-label.yaml +++ b/.github/auto-label.yaml @@ -1,2 +1,15 @@ +# Copyright 2022 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. requestsize: enabled: true From 5ea3460f307f56be4d59f68880d5bc768fcb137d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 12 Apr 2022 07:12:44 -0400 Subject: [PATCH 06/16] chore: Use gapic-generator-python 0.65.0 (#26) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: Use gapic-generator-python 0.65.0 PiperOrigin-RevId: 440970084 Source-Link: https://github.com/googleapis/googleapis/commit/5e0a3d57254ab9857ccac77fc6ffade7b69a2dc7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b0c628a3fade768f225d76992791ea1ba2a881be Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBjNjI4YTNmYWRlNzY4ZjIyNWQ3Njk5Mjc5MWVhMWJhMmE4ODFiZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../certificate_manager/async_client.py | 50 ++++----- .../services/certificate_manager/client.py | 10 +- .../certificate_manager/transports/base.py | 45 ++++---- .../certificate_manager/transports/grpc.py | 4 + .../types/certificate_manager.py | 8 +- .../test_certificate_manager.py | 101 +++++++++++++----- 6 files changed, 131 insertions(+), 87 deletions(-) diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py b/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py index 5d7d655..f5bcc97 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py @@ -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 @@ -349,7 +349,7 @@ def sample_list_certificates(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -460,7 +460,7 @@ def sample_get_certificate(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -499,7 +499,6 @@ async def create_certificate( r"""Creates a new Certificate in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -594,7 +593,7 @@ def sample_create_certificate(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -723,7 +722,7 @@ def sample_update_certificate(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -854,7 +853,7 @@ def sample_delete_certificate(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -899,7 +898,6 @@ async def list_certificate_maps( r"""Lists CertificateMaps in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -972,7 +970,7 @@ def sample_list_certificate_maps(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -1086,7 +1084,7 @@ def sample_get_certificate_map(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -1125,7 +1123,6 @@ async def create_certificate_map( r"""Creates a new CertificateMap in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -1220,7 +1217,7 @@ def sample_create_certificate_map(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -1349,7 +1346,7 @@ def sample_update_certificate_map(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -1398,7 +1395,6 @@ async def delete_certificate_map( Remove all the entries from the map before calling this method. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -1485,7 +1481,7 @@ def sample_delete_certificate_map(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -1532,7 +1528,6 @@ async def list_certificate_map_entries( r"""Lists CertificateMapEntries in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -1606,7 +1601,7 @@ def sample_list_certificate_map_entries(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -1718,7 +1713,7 @@ def sample_get_certificate_map_entry(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -1759,7 +1754,6 @@ async def create_certificate_map_entry( r"""Creates a new CertificateMapEntry in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -1861,7 +1855,7 @@ def sample_create_certificate_map_entry(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -1997,7 +1991,7 @@ def sample_update_certificate_map_entry(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -2131,7 +2125,7 @@ def sample_delete_certificate_map_entry(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -2176,7 +2170,6 @@ async def list_dns_authorizations( r"""Lists DnsAuthorizations in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -2249,7 +2242,7 @@ def sample_list_dns_authorizations(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -2364,7 +2357,7 @@ def sample_get_dns_authorization(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -2403,7 +2396,6 @@ async def create_dns_authorization( r"""Creates a new DnsAuthorization in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -2501,7 +2493,7 @@ def sample_create_dns_authorization(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -2633,7 +2625,7 @@ def sample_update_dns_authorization(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -2765,7 +2757,7 @@ def sample_delete_dns_authorization(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/client.py b/google/cloud/certificate_manager_v1/services/certificate_manager/client.py index 2dafe11..72282cb 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/client.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/client.py @@ -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 @@ -788,7 +788,6 @@ def create_certificate( r"""Creates a new Certificate in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -1161,7 +1160,6 @@ def list_certificate_maps( r"""Lists CertificateMaps in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -1369,7 +1367,6 @@ def create_certificate_map( r"""Creates a new CertificateMap in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -1624,7 +1621,6 @@ def delete_certificate_map( Remove all the entries from the map before calling this method. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -1749,7 +1745,6 @@ def list_certificate_map_entries( r"""Lists CertificateMapEntries in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -1964,7 +1959,6 @@ def create_certificate_map_entry( r"""Creates a new CertificateMapEntry in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -2366,7 +2360,6 @@ def list_dns_authorizations( r"""Lists DnsAuthorizations in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 @@ -2575,7 +2568,6 @@ def create_dns_authorization( r"""Creates a new DnsAuthorization in a given project and location. - .. code-block:: python from google.cloud import certificate_manager_v1 diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py index 58c0398..63f0f88 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py @@ -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" @@ -129,7 +130,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -143,7 +144,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -157,7 +158,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -171,7 +172,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -185,7 +186,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -199,7 +200,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -213,7 +214,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -227,7 +228,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -241,7 +242,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -255,7 +256,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -269,7 +270,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -283,7 +284,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -297,7 +298,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -311,7 +312,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -325,7 +326,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -339,7 +340,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -353,7 +354,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -367,7 +368,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -381,7 +382,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -395,7 +396,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.ServiceUnavailable, + core_exceptions.GoogleAPICallError, ), deadline=60.0, ), @@ -621,5 +622,9 @@ def delete_dns_authorization( ]: raise NotImplementedError() + @property + def kind(self) -> str: + raise NotImplementedError() + __all__ = ("CertificateManagerTransport",) diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc.py b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc.py index b1f69ed..da57427 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc.py @@ -851,5 +851,9 @@ def delete_dns_authorization( def close(self): self.grpc_channel.close() + @property + def kind(self) -> str: + return "grpc" + __all__ = ("CertificateManagerGrpcTransport",) diff --git a/google/cloud/certificate_manager_v1/types/certificate_manager.py b/google/cloud/certificate_manager_v1/types/certificate_manager.py index 825a1b2..4b19943 100644 --- a/google/cloud/certificate_manager_v1/types/certificate_manager.py +++ b/google/cloud/certificate_manager_v1/types/certificate_manager.py @@ -834,7 +834,7 @@ class Certificate(proto.Message): update_time (google.protobuf.timestamp_pb2.Timestamp): Output only. The last update timestamp of a Certificate. - labels (Sequence[google.cloud.certificate_manager_v1.types.Certificate.LabelsEntry]): + labels (Mapping[str, str]): Set of labels associated with a Certificate. self_managed (google.cloud.certificate_manager_v1.types.Certificate.SelfManagedCertificate): If set, defines data of a self-managed @@ -1105,7 +1105,7 @@ class CertificateMap(proto.Message): update_time (google.protobuf.timestamp_pb2.Timestamp): Output only. The update timestamp of a Certificate Map. - labels (Sequence[google.cloud.certificate_manager_v1.types.CertificateMap.LabelsEntry]): + labels (Mapping[str, str]): Set of labels associated with a Certificate Map. gclb_targets (Sequence[google.cloud.certificate_manager_v1.types.CertificateMap.GclbTarget]): @@ -1230,7 +1230,7 @@ class CertificateMapEntry(proto.Message): update_time (google.protobuf.timestamp_pb2.Timestamp): Output only. The update timestamp of a Certificate Map Entry. - labels (Sequence[google.cloud.certificate_manager_v1.types.CertificateMapEntry.LabelsEntry]): + labels (Mapping[str, str]): Set of labels associated with a Certificate Map Entry. hostname (str): @@ -1322,7 +1322,7 @@ class DnsAuthorization(proto.Message): update_time (google.protobuf.timestamp_pb2.Timestamp): Output only. The last update timestamp of a DnsAuthorization. - labels (Sequence[google.cloud.certificate_manager_v1.types.DnsAuthorization.LabelsEntry]): + labels (Mapping[str, str]): Set of labels associated with a DnsAuthorization. description (str): diff --git a/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py b/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py index 6c0947b..2068768 100644 --- a/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py +++ b/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py @@ -97,24 +97,26 @@ def test__get_default_mtls_endpoint(): @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - CertificateManagerClient, - CertificateManagerAsyncClient, + (CertificateManagerClient, "grpc"), + (CertificateManagerAsyncClient, "grpc_asyncio"), ], ) -def test_certificate_manager_client_from_service_account_info(client_class): +def test_certificate_manager_client_from_service_account_info( + client_class, transport_name +): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_info" ) as factory: factory.return_value = creds info = {"valid": True} - client = client_class.from_service_account_info(info) + client = client_class.from_service_account_info(info, transport=transport_name) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "certificatemanager.googleapis.com:443" + assert client.transport._host == ("certificatemanager.googleapis.com:443") @pytest.mark.parametrize( @@ -143,27 +145,33 @@ def test_certificate_manager_client_service_account_always_use_jwt( @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - CertificateManagerClient, - CertificateManagerAsyncClient, + (CertificateManagerClient, "grpc"), + (CertificateManagerAsyncClient, "grpc_asyncio"), ], ) -def test_certificate_manager_client_from_service_account_file(client_class): +def test_certificate_manager_client_from_service_account_file( + client_class, transport_name +): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_file" ) as factory: factory.return_value = creds - client = client_class.from_service_account_file("dummy/file/path.json") + client = client_class.from_service_account_file( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - client = client_class.from_service_account_json("dummy/file/path.json") + client = client_class.from_service_account_json( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "certificatemanager.googleapis.com:443" + assert client.transport._host == ("certificatemanager.googleapis.com:443") def test_certificate_manager_client_get_transport_class(): @@ -1054,7 +1062,7 @@ async def test_list_certificates_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -1102,7 +1110,9 @@ async def test_list_certificates_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_certificates(request={})).pages: + async for page_ in ( + await client.list_certificates(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2504,7 +2514,7 @@ async def test_list_certificate_maps_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -2552,7 +2562,9 @@ async def test_list_certificate_maps_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_certificate_maps(request={})).pages: + async for page_ in ( + await client.list_certificate_maps(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3955,7 +3967,7 @@ async def test_list_certificate_map_entries_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -4007,7 +4019,7 @@ async def test_list_certificate_map_entries_async_pages(): pages = [] async for page_ in ( await client.list_certificate_map_entries(request={}) - ).pages: + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -5433,7 +5445,7 @@ async def test_list_dns_authorizations_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -5483,7 +5495,9 @@ async def test_list_dns_authorizations_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_dns_authorizations(request={})).pages: + async for page_ in ( + await client.list_dns_authorizations(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -6588,6 +6602,19 @@ def test_transport_adc(transport_class): adc.assert_called_once() +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + ], +) +def test_transport_kind(transport_name): + transport = CertificateManagerClient.get_transport_class(transport_name)( + credentials=ga_credentials.AnonymousCredentials(), + ) + assert transport.kind == transport_name + + def test_transport_grpc_default(): # A client should use the gRPC transport by default. client = CertificateManagerClient( @@ -6654,6 +6681,14 @@ def test_certificate_manager_base_transport(): with pytest.raises(NotImplementedError): transport.operations_client + # Catch all for all remaining methods and properties + remainder = [ + "kind", + ] + for r in remainder: + with pytest.raises(NotImplementedError): + getattr(transport, r)() + def test_certificate_manager_base_transport_with_credentials_file(): # Instantiate the base transport with a credentials file @@ -6801,24 +6836,40 @@ def test_certificate_manager_grpc_transport_client_cert_source_for_mtls( ) -def test_certificate_manager_host_no_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_certificate_manager_host_no_port(transport_name): client = CertificateManagerClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="certificatemanager.googleapis.com" ), + transport=transport_name, ) - assert client.transport._host == "certificatemanager.googleapis.com:443" + assert client.transport._host == ("certificatemanager.googleapis.com:443") -def test_certificate_manager_host_with_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_certificate_manager_host_with_port(transport_name): client = CertificateManagerClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="certificatemanager.googleapis.com:8000" ), + transport=transport_name, ) - assert client.transport._host == "certificatemanager.googleapis.com:8000" + assert client.transport._host == ("certificatemanager.googleapis.com:8000") def test_certificate_manager_grpc_transport_channel(): From 0c33535d05ed64917d33ce19f1520f2d54e0497f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Apr 2022 20:30:59 -0400 Subject: [PATCH 07/16] chore: use gapic-generator-python 0.65.1 (#27) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.65.1 PiperOrigin-RevId: 441524537 Source-Link: https://github.com/googleapis/googleapis/commit/2a273915b3f70fe86c9d2a75470a0b83e48d0abf Source-Link: https://github.com/googleapis/googleapis-gen/commit/ab6756a48c89b5bcb9fb73443cb8e55d574f4643 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWI2NzU2YTQ4Yzg5YjViY2I5ZmI3MzQ0M2NiOGU1NWQ1NzRmNDY0MyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../certificate_manager/async_client.py | 40 +- .../certificate_manager/transports/base.py | 40 +- ...ippet_metadata_certificate manager_v1.json | 1706 ++++++++++++++++- 3 files changed, 1666 insertions(+), 120 deletions(-) diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py b/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py index f5bcc97..b3016f4 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py @@ -349,7 +349,7 @@ def sample_list_certificates(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -460,7 +460,7 @@ def sample_get_certificate(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -593,7 +593,7 @@ def sample_create_certificate(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -722,7 +722,7 @@ def sample_update_certificate(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -853,7 +853,7 @@ def sample_delete_certificate(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -970,7 +970,7 @@ def sample_list_certificate_maps(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -1084,7 +1084,7 @@ def sample_get_certificate_map(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -1217,7 +1217,7 @@ def sample_create_certificate_map(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -1346,7 +1346,7 @@ def sample_update_certificate_map(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -1481,7 +1481,7 @@ def sample_delete_certificate_map(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -1601,7 +1601,7 @@ def sample_list_certificate_map_entries(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -1713,7 +1713,7 @@ def sample_get_certificate_map_entry(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -1855,7 +1855,7 @@ def sample_create_certificate_map_entry(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -1991,7 +1991,7 @@ def sample_update_certificate_map_entry(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -2125,7 +2125,7 @@ def sample_delete_certificate_map_entry(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -2242,7 +2242,7 @@ def sample_list_dns_authorizations(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -2357,7 +2357,7 @@ def sample_get_dns_authorization(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -2493,7 +2493,7 @@ def sample_create_dns_authorization(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -2625,7 +2625,7 @@ def sample_update_dns_authorization(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -2757,7 +2757,7 @@ def sample_delete_dns_authorization(): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py index 63f0f88..5aa04f1 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py @@ -130,7 +130,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -144,7 +144,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -158,7 +158,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -172,7 +172,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -186,7 +186,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -200,7 +200,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -214,7 +214,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -228,7 +228,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -242,7 +242,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -256,7 +256,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -270,7 +270,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -284,7 +284,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -298,7 +298,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -312,7 +312,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -326,7 +326,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -340,7 +340,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -354,7 +354,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -368,7 +368,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -382,7 +382,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), @@ -396,7 +396,7 @@ def _prep_wrapped_messages(self, client_info): maximum=10.0, multiplier=1.3, predicate=retries.if_exception_type( - core_exceptions.GoogleAPICallError, + core_exceptions.ServiceUnavailable, ), deadline=60.0, ), diff --git a/samples/generated_samples/snippet_metadata_certificate manager_v1.json b/samples/generated_samples/snippet_metadata_certificate manager_v1.json index bea7b7e..a1aecc3 100644 --- a/samples/generated_samples/snippet_metadata_certificate manager_v1.json +++ b/samples/generated_samples/snippet_metadata_certificate manager_v1.json @@ -1,16 +1,69 @@ { + "clientLibrary": { + "apis": [ + { + "id": "google.cloud.certificatemanager.v1", + "version": "v1" + } + ], + "language": "PYTHON", + "name": "google-cloud-certificate-manager" + }, "snippets": [ { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.create_certificate_map_entry", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMapEntry", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "CreateCertificateMapEntry" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.CreateCertificateMapEntryRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "certificate_map_entry", + "type": "google.cloud.certificate_manager_v1.types.CertificateMapEntry" + }, + { + "name": "certificate_map_entry_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "create_certificate_map_entry" }, + "description": "Sample for CreateCertificateMapEntry", "file": "certificatemanager_v1_generated_certificate_manager_create_certificate_map_entry_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_async", "segments": [ { @@ -43,18 +96,62 @@ "start": 51, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_create_certificate_map_entry_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.create_certificate_map_entry", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMapEntry", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "CreateCertificateMapEntry" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.CreateCertificateMapEntryRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "certificate_map_entry", + "type": "google.cloud.certificate_manager_v1.types.CertificateMapEntry" + }, + { + "name": "certificate_map_entry_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "create_certificate_map_entry" }, + "description": "Sample for CreateCertificateMapEntry", "file": "certificatemanager_v1_generated_certificate_manager_create_certificate_map_entry_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificateMapEntry_sync", "segments": [ { @@ -87,19 +184,63 @@ "start": 51, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_create_certificate_map_entry_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.create_certificate_map", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMap", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "CreateCertificateMap" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.CreateCertificateMapRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "certificate_map", + "type": "google.cloud.certificate_manager_v1.types.CertificateMap" + }, + { + "name": "certificate_map_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "create_certificate_map" }, + "description": "Sample for CreateCertificateMap", "file": "certificatemanager_v1_generated_certificate_manager_create_certificate_map_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_async", "segments": [ { @@ -132,18 +273,62 @@ "start": 47, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_create_certificate_map_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.create_certificate_map", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificateMap", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "CreateCertificateMap" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.CreateCertificateMapRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "certificate_map", + "type": "google.cloud.certificate_manager_v1.types.CertificateMap" + }, + { + "name": "certificate_map_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "create_certificate_map" }, + "description": "Sample for CreateCertificateMap", "file": "certificatemanager_v1_generated_certificate_manager_create_certificate_map_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificateMap_sync", "segments": [ { @@ -176,19 +361,63 @@ "start": 47, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_create_certificate_map_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.create_certificate", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificate", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "CreateCertificate" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.CreateCertificateRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "certificate", + "type": "google.cloud.certificate_manager_v1.types.Certificate" + }, + { + "name": "certificate_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "create_certificate" }, + "description": "Sample for CreateCertificate", "file": "certificatemanager_v1_generated_certificate_manager_create_certificate_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificate_async", "segments": [ { @@ -221,18 +450,62 @@ "start": 47, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_create_certificate_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.create_certificate", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateCertificate", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "CreateCertificate" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.CreateCertificateRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "certificate", + "type": "google.cloud.certificate_manager_v1.types.Certificate" + }, + { + "name": "certificate_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "create_certificate" }, + "description": "Sample for CreateCertificate", "file": "certificatemanager_v1_generated_certificate_manager_create_certificate_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateCertificate_sync", "segments": [ { @@ -265,19 +538,63 @@ "start": 47, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_create_certificate_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.create_dns_authorization", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateDnsAuthorization", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "CreateDnsAuthorization" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.CreateDnsAuthorizationRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "dns_authorization", + "type": "google.cloud.certificate_manager_v1.types.DnsAuthorization" + }, + { + "name": "dns_authorization_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "create_dns_authorization" }, + "description": "Sample for CreateDnsAuthorization", "file": "certificatemanager_v1_generated_certificate_manager_create_dns_authorization_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateDnsAuthorization_async", "segments": [ { @@ -310,18 +627,62 @@ "start": 51, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_create_dns_authorization_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.create_dns_authorization", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.CreateDnsAuthorization", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "CreateDnsAuthorization" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.CreateDnsAuthorizationRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "dns_authorization", + "type": "google.cloud.certificate_manager_v1.types.DnsAuthorization" + }, + { + "name": "dns_authorization_id", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "create_dns_authorization" }, + "description": "Sample for CreateDnsAuthorization", "file": "certificatemanager_v1_generated_certificate_manager_create_dns_authorization_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_CreateDnsAuthorization_sync", "segments": [ { @@ -354,19 +715,55 @@ "start": 51, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_create_dns_authorization_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.delete_certificate_map_entry", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMapEntry", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "DeleteCertificateMapEntry" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.DeleteCertificateMapEntryRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "delete_certificate_map_entry" }, + "description": "Sample for DeleteCertificateMapEntry", "file": "certificatemanager_v1_generated_certificate_manager_delete_certificate_map_entry_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificateMapEntry_async", "segments": [ { @@ -399,18 +796,54 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_delete_certificate_map_entry_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.delete_certificate_map_entry", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMapEntry", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "DeleteCertificateMapEntry" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.DeleteCertificateMapEntryRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "delete_certificate_map_entry" }, + "description": "Sample for DeleteCertificateMapEntry", "file": "certificatemanager_v1_generated_certificate_manager_delete_certificate_map_entry_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificateMapEntry_sync", "segments": [ { @@ -443,19 +876,55 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_delete_certificate_map_entry_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.delete_certificate_map", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMap", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "DeleteCertificateMap" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.DeleteCertificateMapRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "delete_certificate_map" }, + "description": "Sample for DeleteCertificateMap", "file": "certificatemanager_v1_generated_certificate_manager_delete_certificate_map_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificateMap_async", "segments": [ { @@ -488,18 +957,54 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_delete_certificate_map_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.delete_certificate_map", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificateMap", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "DeleteCertificateMap" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.DeleteCertificateMapRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "delete_certificate_map" }, + "description": "Sample for DeleteCertificateMap", "file": "certificatemanager_v1_generated_certificate_manager_delete_certificate_map_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificateMap_sync", "segments": [ { @@ -532,19 +1037,55 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_delete_certificate_map_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.delete_certificate", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificate", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "DeleteCertificate" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.DeleteCertificateRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "delete_certificate" }, + "description": "Sample for DeleteCertificate", "file": "certificatemanager_v1_generated_certificate_manager_delete_certificate_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificate_async", "segments": [ { @@ -577,18 +1118,54 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_delete_certificate_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.delete_certificate", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteCertificate", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "DeleteCertificate" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.DeleteCertificateRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "delete_certificate" }, + "description": "Sample for DeleteCertificate", "file": "certificatemanager_v1_generated_certificate_manager_delete_certificate_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteCertificate_sync", "segments": [ { @@ -621,19 +1198,55 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_delete_certificate_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.delete_dns_authorization", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteDnsAuthorization", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "DeleteDnsAuthorization" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.DeleteDnsAuthorizationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "delete_dns_authorization" }, + "description": "Sample for DeleteDnsAuthorization", "file": "certificatemanager_v1_generated_certificate_manager_delete_dns_authorization_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteDnsAuthorization_async", "segments": [ { @@ -666,18 +1279,54 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_delete_dns_authorization_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.delete_dns_authorization", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.DeleteDnsAuthorization", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "DeleteDnsAuthorization" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.DeleteDnsAuthorizationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "delete_dns_authorization" }, + "description": "Sample for DeleteDnsAuthorization", "file": "certificatemanager_v1_generated_certificate_manager_delete_dns_authorization_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_DeleteDnsAuthorization_sync", "segments": [ { @@ -710,19 +1359,55 @@ "start": 46, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_delete_dns_authorization_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.get_certificate_map_entry", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMapEntry", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "GetCertificateMapEntry" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.GetCertificateMapEntryRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.types.CertificateMapEntry", + "shortName": "get_certificate_map_entry" }, + "description": "Sample for GetCertificateMapEntry", "file": "certificatemanager_v1_generated_certificate_manager_get_certificate_map_entry_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificateMapEntry_async", "segments": [ { @@ -755,18 +1440,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_get_certificate_map_entry_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.get_certificate_map_entry", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMapEntry", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "GetCertificateMapEntry" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.GetCertificateMapEntryRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.types.CertificateMapEntry", + "shortName": "get_certificate_map_entry" }, + "description": "Sample for GetCertificateMapEntry", "file": "certificatemanager_v1_generated_certificate_manager_get_certificate_map_entry_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificateMapEntry_sync", "segments": [ { @@ -799,19 +1520,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_get_certificate_map_entry_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.get_certificate_map", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMap", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "GetCertificateMap" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.GetCertificateMapRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.types.CertificateMap", + "shortName": "get_certificate_map" }, + "description": "Sample for GetCertificateMap", "file": "certificatemanager_v1_generated_certificate_manager_get_certificate_map_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificateMap_async", "segments": [ { @@ -844,18 +1601,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_get_certificate_map_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.get_certificate_map", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificateMap", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "GetCertificateMap" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.GetCertificateMapRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.types.CertificateMap", + "shortName": "get_certificate_map" }, + "description": "Sample for GetCertificateMap", "file": "certificatemanager_v1_generated_certificate_manager_get_certificate_map_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificateMap_sync", "segments": [ { @@ -888,19 +1681,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_get_certificate_map_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.get_certificate", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificate", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "GetCertificate" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.GetCertificateRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.types.Certificate", + "shortName": "get_certificate" }, + "description": "Sample for GetCertificate", "file": "certificatemanager_v1_generated_certificate_manager_get_certificate_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificate_async", "segments": [ { @@ -933,18 +1762,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_get_certificate_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.get_certificate", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetCertificate", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "GetCertificate" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.GetCertificateRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.types.Certificate", + "shortName": "get_certificate" }, + "description": "Sample for GetCertificate", "file": "certificatemanager_v1_generated_certificate_manager_get_certificate_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_GetCertificate_sync", "segments": [ { @@ -977,19 +1842,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_get_certificate_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.get_dns_authorization", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetDnsAuthorization", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "GetDnsAuthorization" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.GetDnsAuthorizationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.types.DnsAuthorization", + "shortName": "get_dns_authorization" }, + "description": "Sample for GetDnsAuthorization", "file": "certificatemanager_v1_generated_certificate_manager_get_dns_authorization_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_GetDnsAuthorization_async", "segments": [ { @@ -1022,18 +1923,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_get_dns_authorization_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.get_dns_authorization", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.GetDnsAuthorization", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "GetDnsAuthorization" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.GetDnsAuthorizationRequest" + }, + { + "name": "name", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.types.DnsAuthorization", + "shortName": "get_dns_authorization" }, + "description": "Sample for GetDnsAuthorization", "file": "certificatemanager_v1_generated_certificate_manager_get_dns_authorization_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_GetDnsAuthorization_sync", "segments": [ { @@ -1066,19 +2003,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_get_dns_authorization_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.list_certificate_map_entries", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMapEntries", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "ListCertificateMapEntries" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.ListCertificateMapEntriesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.services.certificate_manager.pagers.ListCertificateMapEntriesAsyncPager", + "shortName": "list_certificate_map_entries" }, + "description": "Sample for ListCertificateMapEntries", "file": "certificatemanager_v1_generated_certificate_manager_list_certificate_map_entries_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificateMapEntries_async", "segments": [ { @@ -1111,18 +2084,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_list_certificate_map_entries_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.list_certificate_map_entries", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMapEntries", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "ListCertificateMapEntries" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.ListCertificateMapEntriesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.services.certificate_manager.pagers.ListCertificateMapEntriesPager", + "shortName": "list_certificate_map_entries" }, + "description": "Sample for ListCertificateMapEntries", "file": "certificatemanager_v1_generated_certificate_manager_list_certificate_map_entries_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificateMapEntries_sync", "segments": [ { @@ -1155,19 +2164,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_list_certificate_map_entries_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.list_certificate_maps", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMaps", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "ListCertificateMaps" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.ListCertificateMapsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.services.certificate_manager.pagers.ListCertificateMapsAsyncPager", + "shortName": "list_certificate_maps" }, + "description": "Sample for ListCertificateMaps", "file": "certificatemanager_v1_generated_certificate_manager_list_certificate_maps_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificateMaps_async", "segments": [ { @@ -1200,18 +2245,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_list_certificate_maps_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.list_certificate_maps", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificateMaps", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "ListCertificateMaps" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.ListCertificateMapsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.services.certificate_manager.pagers.ListCertificateMapsPager", + "shortName": "list_certificate_maps" }, + "description": "Sample for ListCertificateMaps", "file": "certificatemanager_v1_generated_certificate_manager_list_certificate_maps_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificateMaps_sync", "segments": [ { @@ -1244,19 +2325,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_list_certificate_maps_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.list_certificates", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificates", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "ListCertificates" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.ListCertificatesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.services.certificate_manager.pagers.ListCertificatesAsyncPager", + "shortName": "list_certificates" }, + "description": "Sample for ListCertificates", "file": "certificatemanager_v1_generated_certificate_manager_list_certificates_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificates_async", "segments": [ { @@ -1289,18 +2406,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_list_certificates_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.list_certificates", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListCertificates", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "ListCertificates" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.ListCertificatesRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.services.certificate_manager.pagers.ListCertificatesPager", + "shortName": "list_certificates" }, + "description": "Sample for ListCertificates", "file": "certificatemanager_v1_generated_certificate_manager_list_certificates_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_ListCertificates_sync", "segments": [ { @@ -1333,19 +2486,55 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_list_certificates_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.list_dns_authorizations", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListDnsAuthorizations", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "ListDnsAuthorizations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.ListDnsAuthorizationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.services.certificate_manager.pagers.ListDnsAuthorizationsAsyncPager", + "shortName": "list_dns_authorizations" }, + "description": "Sample for ListDnsAuthorizations", "file": "certificatemanager_v1_generated_certificate_manager_list_dns_authorizations_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_ListDnsAuthorizations_async", "segments": [ { @@ -1378,18 +2567,54 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_list_dns_authorizations_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.list_dns_authorizations", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.ListDnsAuthorizations", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "ListDnsAuthorizations" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.ListDnsAuthorizationsRequest" + }, + { + "name": "parent", + "type": "str" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.cloud.certificate_manager_v1.services.certificate_manager.pagers.ListDnsAuthorizationsPager", + "shortName": "list_dns_authorizations" }, + "description": "Sample for ListDnsAuthorizations", "file": "certificatemanager_v1_generated_certificate_manager_list_dns_authorizations_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_ListDnsAuthorizations_sync", "segments": [ { @@ -1422,19 +2647,59 @@ "start": 42, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_list_dns_authorizations_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.update_certificate_map_entry", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMapEntry", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "UpdateCertificateMapEntry" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.UpdateCertificateMapEntryRequest" + }, + { + "name": "certificate_map_entry", + "type": "google.cloud.certificate_manager_v1.types.CertificateMapEntry" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "update_certificate_map_entry" }, + "description": "Sample for UpdateCertificateMapEntry", "file": "certificatemanager_v1_generated_certificate_manager_update_certificate_map_entry_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateCertificateMapEntry_async", "segments": [ { @@ -1467,18 +2732,58 @@ "start": 49, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_update_certificate_map_entry_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.update_certificate_map_entry", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMapEntry", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "UpdateCertificateMapEntry" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.UpdateCertificateMapEntryRequest" + }, + { + "name": "certificate_map_entry", + "type": "google.cloud.certificate_manager_v1.types.CertificateMapEntry" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "update_certificate_map_entry" }, + "description": "Sample for UpdateCertificateMapEntry", "file": "certificatemanager_v1_generated_certificate_manager_update_certificate_map_entry_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateCertificateMapEntry_sync", "segments": [ { @@ -1511,19 +2816,59 @@ "start": 49, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_update_certificate_map_entry_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.update_certificate_map", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMap", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "UpdateCertificateMap" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.UpdateCertificateMapRequest" + }, + { + "name": "certificate_map", + "type": "google.cloud.certificate_manager_v1.types.CertificateMap" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "update_certificate_map" }, + "description": "Sample for UpdateCertificateMap", "file": "certificatemanager_v1_generated_certificate_manager_update_certificate_map_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateCertificateMap_async", "segments": [ { @@ -1556,18 +2901,58 @@ "start": 45, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_update_certificate_map_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.update_certificate_map", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificateMap", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "UpdateCertificateMap" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.UpdateCertificateMapRequest" + }, + { + "name": "certificate_map", + "type": "google.cloud.certificate_manager_v1.types.CertificateMap" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "update_certificate_map" }, + "description": "Sample for UpdateCertificateMap", "file": "certificatemanager_v1_generated_certificate_manager_update_certificate_map_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateCertificateMap_sync", "segments": [ { @@ -1600,19 +2985,59 @@ "start": 45, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_update_certificate_map_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.update_certificate", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificate", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "UpdateCertificate" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.UpdateCertificateRequest" + }, + { + "name": "certificate", + "type": "google.cloud.certificate_manager_v1.types.Certificate" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "update_certificate" }, + "description": "Sample for UpdateCertificate", "file": "certificatemanager_v1_generated_certificate_manager_update_certificate_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateCertificate_async", "segments": [ { @@ -1645,18 +3070,58 @@ "start": 45, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_update_certificate_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.update_certificate", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateCertificate", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "UpdateCertificate" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.UpdateCertificateRequest" + }, + { + "name": "certificate", + "type": "google.cloud.certificate_manager_v1.types.Certificate" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "update_certificate" }, + "description": "Sample for UpdateCertificate", "file": "certificatemanager_v1_generated_certificate_manager_update_certificate_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateCertificate_sync", "segments": [ { @@ -1689,19 +3154,59 @@ "start": 45, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_update_certificate_sync.py" }, { + "canonical": true, "clientMethod": { "async": true, + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient", + "shortName": "CertificateManagerAsyncClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerAsyncClient.update_dns_authorization", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateDnsAuthorization", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "UpdateDnsAuthorization" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.UpdateDnsAuthorizationRequest" + }, + { + "name": "dns_authorization", + "type": "google.cloud.certificate_manager_v1.types.DnsAuthorization" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation_async.AsyncOperation", + "shortName": "update_dns_authorization" }, + "description": "Sample for UpdateDnsAuthorization", "file": "certificatemanager_v1_generated_certificate_manager_update_dns_authorization_async.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateDnsAuthorization_async", "segments": [ { @@ -1734,18 +3239,58 @@ "start": 49, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_update_dns_authorization_async.py" }, { + "canonical": true, "clientMethod": { + "client": { + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient", + "shortName": "CertificateManagerClient" + }, + "fullName": "google.cloud.certificate_manager_v1.CertificateManagerClient.update_dns_authorization", "method": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager.UpdateDnsAuthorization", "service": { + "fullName": "google.cloud.certificatemanager.v1.CertificateManager", "shortName": "CertificateManager" }, "shortName": "UpdateDnsAuthorization" - } + }, + "parameters": [ + { + "name": "request", + "type": "google.cloud.certificate_manager_v1.types.UpdateDnsAuthorizationRequest" + }, + { + "name": "dns_authorization", + "type": "google.cloud.certificate_manager_v1.types.DnsAuthorization" + }, + { + "name": "update_mask", + "type": "google.protobuf.field_mask_pb2.FieldMask" + }, + { + "name": "retry", + "type": "google.api_core.retry.Retry" + }, + { + "name": "timeout", + "type": "float" + }, + { + "name": "metadata", + "type": "Sequence[Tuple[str, str]" + } + ], + "resultType": "google.api_core.operation.Operation", + "shortName": "update_dns_authorization" }, + "description": "Sample for UpdateDnsAuthorization", "file": "certificatemanager_v1_generated_certificate_manager_update_dns_authorization_sync.py", + "language": "PYTHON", + "origin": "API_DEFINITION", "regionTag": "certificatemanager_v1_generated_CertificateManager_UpdateDnsAuthorization_sync", "segments": [ { @@ -1778,7 +3323,8 @@ "start": 49, "type": "RESPONSE_HANDLING" } - ] + ], + "title": "certificatemanager_v1_generated_certificate_manager_update_dns_authorization_sync.py" } ] } From 44969d6d2f0d1e828e8737d04b681ad73c05b115 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 20 Apr 2022 20:15:27 -0400 Subject: [PATCH 08/16] chore(python): add nox session to sort python imports (#28) Source-Link: https://github.com/googleapis/synthtool/commit/1b71c10e20de7ed3f97f692f99a0e3399b67049f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 +- docs/conf.py | 2 +- google/cloud/certificate_manager/__init__.py | 65 ++--------------- .../cloud/certificate_manager_v1/__init__.py | 69 ++++++++++--------- .../services/certificate_manager/__init__.py | 2 +- .../certificate_manager/async_client.py | 14 ++-- .../services/certificate_manager/client.py | 12 ++-- .../services/certificate_manager/pagers.py | 4 +- .../transports/__init__.py | 1 - .../certificate_manager/transports/base.py | 9 ++- .../certificate_manager/transports/grpc.py | 12 ++-- .../transports/grpc_asyncio.py | 12 ++-- .../certificate_manager_v1/types/__init__.py | 2 +- .../types/certificate_manager.py | 4 +- noxfile.py | 28 +++++++- setup.py | 1 - .../test_certificate_manager.py | 47 +++++++------ 17 files changed, 127 insertions(+), 161 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index bc893c9..7c454ab 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:8a5d3f6a2e43ed8293f34e06a2f56931d1e88a2694c3bb11b15df4eb256ad163 -# created: 2022-04-06T10:30:21.687684602Z + digest: sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 +# created: 2022-04-20T23:42:53.970438194Z diff --git a/docs/conf.py b/docs/conf.py index a9d4ed6..842d941 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,9 +24,9 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys import os import shlex +import sys # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the diff --git a/google/cloud/certificate_manager/__init__.py b/google/cloud/certificate_manager/__init__.py index 89e09da..4d8e01d 100644 --- a/google/cloud/certificate_manager/__init__.py +++ b/google/cloud/certificate_manager/__init__.py @@ -14,97 +14,44 @@ # limitations under the License. # -from google.cloud.certificate_manager_v1.services.certificate_manager.client import ( - CertificateManagerClient, -) from google.cloud.certificate_manager_v1.services.certificate_manager.async_client import ( CertificateManagerAsyncClient, ) - -from google.cloud.certificate_manager_v1.types.certificate_manager import Certificate -from google.cloud.certificate_manager_v1.types.certificate_manager import CertificateMap -from google.cloud.certificate_manager_v1.types.certificate_manager import ( - CertificateMapEntry, +from google.cloud.certificate_manager_v1.services.certificate_manager.client import ( + CertificateManagerClient, ) from google.cloud.certificate_manager_v1.types.certificate_manager import ( + Certificate, + CertificateMap, + CertificateMapEntry, CreateCertificateMapEntryRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( CreateCertificateMapRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( CreateCertificateRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( CreateDnsAuthorizationRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( DeleteCertificateMapEntryRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( DeleteCertificateMapRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( DeleteCertificateRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( DeleteDnsAuthorizationRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( DnsAuthorization, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( GetCertificateMapEntryRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( GetCertificateMapRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( GetCertificateRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( GetDnsAuthorizationRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( ListCertificateMapEntriesRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( ListCertificateMapEntriesResponse, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( ListCertificateMapsRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( ListCertificateMapsResponse, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( ListCertificatesRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( ListCertificatesResponse, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( ListDnsAuthorizationsRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( ListDnsAuthorizationsResponse, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( OperationMetadata, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( + ServingState, UpdateCertificateMapEntryRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( UpdateCertificateMapRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( UpdateCertificateRequest, -) -from google.cloud.certificate_manager_v1.types.certificate_manager import ( UpdateDnsAuthorizationRequest, ) -from google.cloud.certificate_manager_v1.types.certificate_manager import ServingState __all__ = ( "CertificateManagerClient", diff --git a/google/cloud/certificate_manager_v1/__init__.py b/google/cloud/certificate_manager_v1/__init__.py index 7e3a5ae..c12092d 100644 --- a/google/cloud/certificate_manager_v1/__init__.py +++ b/google/cloud/certificate_manager_v1/__init__.py @@ -14,39 +14,42 @@ # limitations under the License. # -from .services.certificate_manager import CertificateManagerClient -from .services.certificate_manager import CertificateManagerAsyncClient - -from .types.certificate_manager import Certificate -from .types.certificate_manager import CertificateMap -from .types.certificate_manager import CertificateMapEntry -from .types.certificate_manager import CreateCertificateMapEntryRequest -from .types.certificate_manager import CreateCertificateMapRequest -from .types.certificate_manager import CreateCertificateRequest -from .types.certificate_manager import CreateDnsAuthorizationRequest -from .types.certificate_manager import DeleteCertificateMapEntryRequest -from .types.certificate_manager import DeleteCertificateMapRequest -from .types.certificate_manager import DeleteCertificateRequest -from .types.certificate_manager import DeleteDnsAuthorizationRequest -from .types.certificate_manager import DnsAuthorization -from .types.certificate_manager import GetCertificateMapEntryRequest -from .types.certificate_manager import GetCertificateMapRequest -from .types.certificate_manager import GetCertificateRequest -from .types.certificate_manager import GetDnsAuthorizationRequest -from .types.certificate_manager import ListCertificateMapEntriesRequest -from .types.certificate_manager import ListCertificateMapEntriesResponse -from .types.certificate_manager import ListCertificateMapsRequest -from .types.certificate_manager import ListCertificateMapsResponse -from .types.certificate_manager import ListCertificatesRequest -from .types.certificate_manager import ListCertificatesResponse -from .types.certificate_manager import ListDnsAuthorizationsRequest -from .types.certificate_manager import ListDnsAuthorizationsResponse -from .types.certificate_manager import OperationMetadata -from .types.certificate_manager import UpdateCertificateMapEntryRequest -from .types.certificate_manager import UpdateCertificateMapRequest -from .types.certificate_manager import UpdateCertificateRequest -from .types.certificate_manager import UpdateDnsAuthorizationRequest -from .types.certificate_manager import ServingState +from .services.certificate_manager import ( + CertificateManagerAsyncClient, + CertificateManagerClient, +) +from .types.certificate_manager import ( + Certificate, + CertificateMap, + CertificateMapEntry, + CreateCertificateMapEntryRequest, + CreateCertificateMapRequest, + CreateCertificateRequest, + CreateDnsAuthorizationRequest, + DeleteCertificateMapEntryRequest, + DeleteCertificateMapRequest, + DeleteCertificateRequest, + DeleteDnsAuthorizationRequest, + DnsAuthorization, + GetCertificateMapEntryRequest, + GetCertificateMapRequest, + GetCertificateRequest, + GetDnsAuthorizationRequest, + ListCertificateMapEntriesRequest, + ListCertificateMapEntriesResponse, + ListCertificateMapsRequest, + ListCertificateMapsResponse, + ListCertificatesRequest, + ListCertificatesResponse, + ListDnsAuthorizationsRequest, + ListDnsAuthorizationsResponse, + OperationMetadata, + ServingState, + UpdateCertificateMapEntryRequest, + UpdateCertificateMapRequest, + UpdateCertificateRequest, + UpdateDnsAuthorizationRequest, +) __all__ = ( "CertificateManagerAsyncClient", diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/__init__.py b/google/cloud/certificate_manager_v1/services/certificate_manager/__init__.py index dfa6ffa..030d746 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/__init__.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/__init__.py @@ -13,8 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # -from .client import CertificateManagerClient from .async_client import CertificateManagerAsyncClient +from .client import CertificateManagerClient __all__ = ( "CertificateManagerClient", diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py b/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py index b3016f4..1d26af6 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py @@ -17,14 +17,14 @@ import functools import re from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union -import pkg_resources -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.api_core.client_options import ClientOptions from google.auth import credentials as ga_credentials # type: ignore from google.oauth2 import service_account # type: ignore +import pkg_resources try: OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] @@ -33,14 +33,16 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.cloud.certificate_manager_v1.services.certificate_manager import pagers -from google.cloud.certificate_manager_v1.types import certificate_manager from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore -from .transports.base import CertificateManagerTransport, DEFAULT_CLIENT_INFO -from .transports.grpc_asyncio import CertificateManagerGrpcAsyncIOTransport + +from google.cloud.certificate_manager_v1.services.certificate_manager import pagers +from google.cloud.certificate_manager_v1.types import certificate_manager + from .client import CertificateManagerClient +from .transports.base import DEFAULT_CLIENT_INFO, CertificateManagerTransport +from .transports.grpc_asyncio import CertificateManagerGrpcAsyncIOTransport class CertificateManagerAsyncClient: diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/client.py b/google/cloud/certificate_manager_v1/services/certificate_manager/client.py index 72282cb..15daad6 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/client.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/client.py @@ -17,17 +17,17 @@ import os import re from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union -import pkg_resources 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.exceptions import MutualTLSChannelError # 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 +import pkg_resources try: OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault] @@ -36,12 +36,14 @@ from google.api_core import operation # type: ignore from google.api_core import operation_async # type: ignore -from google.cloud.certificate_manager_v1.services.certificate_manager import pagers -from google.cloud.certificate_manager_v1.types import certificate_manager from google.protobuf import empty_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore -from .transports.base import CertificateManagerTransport, DEFAULT_CLIENT_INFO + +from google.cloud.certificate_manager_v1.services.certificate_manager import pagers +from google.cloud.certificate_manager_v1.types import certificate_manager + +from .transports.base import DEFAULT_CLIENT_INFO, CertificateManagerTransport from .transports.grpc import CertificateManagerGrpcTransport from .transports.grpc_asyncio import CertificateManagerGrpcAsyncIOTransport diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/pagers.py b/google/cloud/certificate_manager_v1/services/certificate_manager/pagers.py index cd33893..d08e914 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/pagers.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/pagers.py @@ -18,10 +18,10 @@ AsyncIterator, Awaitable, Callable, + Iterator, + Optional, Sequence, Tuple, - Optional, - Iterator, ) from google.cloud.certificate_manager_v1.types import certificate_manager diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/__init__.py b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/__init__.py index a5e92fc..046ef3d 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/__init__.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/__init__.py @@ -20,7 +20,6 @@ from .grpc import CertificateManagerGrpcTransport from .grpc_asyncio import CertificateManagerGrpcAsyncIOTransport - # Compile a registry of transports. _transport_registry = ( OrderedDict() diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py index 5aa04f1..e52d901 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/base.py @@ -15,19 +15,18 @@ # import abc from typing import Awaitable, Callable, Dict, Optional, Sequence, Union -import pkg_resources -import google.auth # 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 gapic_v1, operations_v1 from google.api_core import retry as retries -from google.api_core import operations_v1 +import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore +from google.longrunning import operations_pb2 # type: ignore from google.oauth2 import service_account # type: ignore +import pkg_resources from google.cloud.certificate_manager_v1.types import certificate_manager -from google.longrunning import operations_pb2 # type: ignore try: DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo( diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc.py b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc.py index da57427..ee07b7a 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc.py @@ -13,21 +13,19 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import warnings from typing import Callable, Dict, Optional, Sequence, Tuple, Union +import warnings -from google.api_core import grpc_helpers -from google.api_core import operations_v1 -from google.api_core import gapic_v1 +from google.api_core import gapic_v1, grpc_helpers, operations_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 - +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from google.cloud.certificate_manager_v1.types import certificate_manager -from google.longrunning import operations_pb2 # type: ignore -from .base import CertificateManagerTransport, DEFAULT_CLIENT_INFO + +from .base import DEFAULT_CLIENT_INFO, CertificateManagerTransport class CertificateManagerGrpcTransport(CertificateManagerTransport): diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc_asyncio.py b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc_asyncio.py index 2308981..be2b2c1 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc_asyncio.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/transports/grpc_asyncio.py @@ -13,21 +13,19 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import warnings from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union +import warnings -from google.api_core import gapic_v1 -from google.api_core import grpc_helpers_async -from google.api_core import operations_v1 +from google.api_core import gapic_v1, grpc_helpers_async, operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # type: ignore - +from google.longrunning import operations_pb2 # type: ignore import grpc # type: ignore from grpc.experimental import aio # type: ignore from google.cloud.certificate_manager_v1.types import certificate_manager -from google.longrunning import operations_pb2 # type: ignore -from .base import CertificateManagerTransport, DEFAULT_CLIENT_INFO + +from .base import DEFAULT_CLIENT_INFO, CertificateManagerTransport from .grpc import CertificateManagerGrpcTransport diff --git a/google/cloud/certificate_manager_v1/types/__init__.py b/google/cloud/certificate_manager_v1/types/__init__.py index 36365d3..b97d6f4 100644 --- a/google/cloud/certificate_manager_v1/types/__init__.py +++ b/google/cloud/certificate_manager_v1/types/__init__.py @@ -39,11 +39,11 @@ ListDnsAuthorizationsRequest, ListDnsAuthorizationsResponse, OperationMetadata, + ServingState, UpdateCertificateMapEntryRequest, UpdateCertificateMapRequest, UpdateCertificateRequest, UpdateDnsAuthorizationRequest, - ServingState, ) __all__ = ( diff --git a/google/cloud/certificate_manager_v1/types/certificate_manager.py b/google/cloud/certificate_manager_v1/types/certificate_manager.py index 4b19943..a75c91c 100644 --- a/google/cloud/certificate_manager_v1/types/certificate_manager.py +++ b/google/cloud/certificate_manager_v1/types/certificate_manager.py @@ -13,11 +13,9 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import proto # type: ignore - from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore - +import proto # type: ignore __protobuf__ = proto.module( package="google.cloud.certificatemanager.v1", diff --git a/noxfile.py b/noxfile.py index 6ee5e8a..7c1742d 100644 --- a/noxfile.py +++ b/noxfile.py @@ -17,6 +17,7 @@ # Generated by synthtool. DO NOT EDIT! from __future__ import absolute_import + import os import pathlib import shutil @@ -25,7 +26,8 @@ import nox BLACK_VERSION = "black==22.3.0" -BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] +ISORT_VERSION = "isort==5.10.1" +LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"] DEFAULT_PYTHON_VERSION = "3.8" @@ -83,7 +85,7 @@ def lint(session): session.run( "black", "--check", - *BLACK_PATHS, + *LINT_PATHS, ) session.run("flake8", "google", "tests") @@ -94,7 +96,27 @@ def blacken(session): session.install(BLACK_VERSION) session.run( "black", - *BLACK_PATHS, + *LINT_PATHS, + ) + + +@nox.session(python=DEFAULT_PYTHON_VERSION) +def format(session): + """ + Run isort to sort imports. Then run black + to format code to uniform standard. + """ + session.install(BLACK_VERSION, ISORT_VERSION) + # Use the --fss option to sort imports using strict alphabetical order. + # See https://pycqa.github.io/isort/docs/configuration/options.html#force-sort-within-sections + session.run( + "isort", + "--fss", + *LINT_PATHS, + ) + session.run( + "black", + *LINT_PATHS, ) diff --git a/setup.py b/setup.py index 040c295..e750edd 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,6 @@ import setuptools - name = "google-cloud-certificate-manager" description = "Certificate Manager API client library" url = "https://github.com/googleapis/python-certificate-manager" diff --git a/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py b/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py index 2068768..fda3045 100644 --- a/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py +++ b/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py @@ -13,42 +13,41 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import os -import mock - -import grpc -from grpc.experimental import aio import math -import pytest -from proto.marshal.rules.dates import DurationRule, TimestampRule - +import os +from google.api_core import ( + future, + gapic_v1, + grpc_helpers, + grpc_helpers_async, + operation, + operations_v1, + path_template, +) from google.api_core import client_options from google.api_core import exceptions as core_exceptions -from google.api_core import future -from google.api_core import gapic_v1 -from google.api_core import grpc_helpers -from google.api_core import grpc_helpers_async -from google.api_core import operation from google.api_core import operation_async # type: ignore -from google.api_core import operations_v1 -from google.api_core import path_template +import google.auth from google.auth import credentials as ga_credentials from google.auth.exceptions import MutualTLSChannelError +from google.longrunning import operations_pb2 +from google.oauth2 import service_account +from google.protobuf import field_mask_pb2 # type: ignore +from google.protobuf import timestamp_pb2 # type: ignore +import grpc +from grpc.experimental import aio +import mock +from proto.marshal.rules.dates import DurationRule, TimestampRule +import pytest + from google.cloud.certificate_manager_v1.services.certificate_manager import ( CertificateManagerAsyncClient, -) -from google.cloud.certificate_manager_v1.services.certificate_manager import ( CertificateManagerClient, + pagers, + transports, ) -from google.cloud.certificate_manager_v1.services.certificate_manager import pagers -from google.cloud.certificate_manager_v1.services.certificate_manager import transports from google.cloud.certificate_manager_v1.types import certificate_manager -from google.longrunning import operations_pb2 -from google.oauth2 import service_account -from google.protobuf import field_mask_pb2 # type: ignore -from google.protobuf import timestamp_pb2 # type: ignore -import google.auth def client_cert_source_callback(): From 98f4f40cdef614df2ee092fc57800e9f884f8ad1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 21 Apr 2022 12:08:12 -0400 Subject: [PATCH 09/16] chore(python): use ubuntu 22.04 in docs image (#30) Source-Link: https://github.com/googleapis/synthtool/commit/f15cc72fb401b4861cedebb10af74afe428fb1f8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bc5eed3804aec2f05fad42aacf973821d9500c174015341f721a984a0825b6fd Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- .kokoro/docker/docs/Dockerfile | 20 ++++++++++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 7c454ab..64f82d6 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:00c9d764fd1cd56265f12a5ef4b99a0c9e87cf261018099141e2ca5158890416 -# created: 2022-04-20T23:42:53.970438194Z + digest: sha256:bc5eed3804aec2f05fad42aacf973821d9500c174015341f721a984a0825b6fd +# created: 2022-04-21T15:43:16.246106921Z diff --git a/.kokoro/docker/docs/Dockerfile b/.kokoro/docker/docs/Dockerfile index 4e1b1fb..238b87b 100644 --- a/.kokoro/docker/docs/Dockerfile +++ b/.kokoro/docker/docs/Dockerfile @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -from ubuntu:20.04 +from ubuntu:22.04 ENV DEBIAN_FRONTEND noninteractive @@ -60,8 +60,24 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* \ && rm -f /var/cache/apt/archives/*.deb +###################### Install python 3.8.11 + +# Download python 3.8.11 +RUN wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tgz + +# Extract files +RUN tar -xvf Python-3.8.11.tgz + +# Install python 3.8.11 +RUN ./Python-3.8.11/configure --enable-optimizations +RUN make altinstall + +###################### Install pip RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \ - && python3.8 /tmp/get-pip.py \ + && python3 /tmp/get-pip.py \ && rm /tmp/get-pip.py +# Test pip +RUN python3 -m pip + CMD ["python3.8"] From f6d0377949593d6f4c41ad3eeadd09913b682908 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 27 Apr 2022 09:48:03 -0400 Subject: [PATCH 10/16] chore: use gapic-generator-python 0.65.2 (#31) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.65.2 PiperOrigin-RevId: 444333013 Source-Link: https://github.com/googleapis/googleapis/commit/f91b6cf82e929280f6562f6110957c654bd9e2e6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/16eb36095c294e712c74a1bf23550817b42174e5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTZlYjM2MDk1YzI5NGU3MTJjNzRhMWJmMjM1NTA4MTdiNDIxNzRlNSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../certificate_manager/async_client.py | 120 ++++++------- .../test_certificate_manager.py | 168 +++++++++--------- 2 files changed, 144 insertions(+), 144 deletions(-) diff --git a/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py b/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py index 1d26af6..7db2e90 100644 --- a/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py +++ b/google/cloud/certificate_manager_v1/services/certificate_manager/async_client.py @@ -283,9 +283,9 @@ async def list_certificates( from google.cloud import certificate_manager_v1 - def sample_list_certificates(): + async def sample_list_certificates(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.ListCertificatesRequest( @@ -296,7 +296,7 @@ def sample_list_certificates(): page_result = client.list_certificates(request=request) # Handle the response - for response in page_result: + async for response in page_result: print(response) Args: @@ -400,9 +400,9 @@ async def get_certificate( from google.cloud import certificate_manager_v1 - def sample_get_certificate(): + async def sample_get_certificate(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.GetCertificateRequest( @@ -410,7 +410,7 @@ def sample_get_certificate(): ) # Make the request - response = client.get_certificate(request=request) + response = await client.get_certificate(request=request) # Handle the response print(response) @@ -505,9 +505,9 @@ async def create_certificate( from google.cloud import certificate_manager_v1 - def sample_create_certificate(): + async def sample_create_certificate(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.CreateCertificateRequest( @@ -520,7 +520,7 @@ def sample_create_certificate(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -644,9 +644,9 @@ async def update_certificate( from google.cloud import certificate_manager_v1 - def sample_update_certificate(): + async def sample_update_certificate(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.UpdateCertificateRequest( @@ -657,7 +657,7 @@ def sample_update_certificate(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -774,9 +774,9 @@ async def delete_certificate( from google.cloud import certificate_manager_v1 - def sample_delete_certificate(): + async def sample_delete_certificate(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.DeleteCertificateRequest( @@ -788,7 +788,7 @@ def sample_delete_certificate(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -904,9 +904,9 @@ async def list_certificate_maps( from google.cloud import certificate_manager_v1 - def sample_list_certificate_maps(): + async def sample_list_certificate_maps(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.ListCertificateMapsRequest( @@ -917,7 +917,7 @@ def sample_list_certificate_maps(): page_result = client.list_certificate_maps(request=request) # Handle the response - for response in page_result: + async for response in page_result: print(response) Args: @@ -1021,9 +1021,9 @@ async def get_certificate_map( from google.cloud import certificate_manager_v1 - def sample_get_certificate_map(): + async def sample_get_certificate_map(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.GetCertificateMapRequest( @@ -1031,7 +1031,7 @@ def sample_get_certificate_map(): ) # Make the request - response = client.get_certificate_map(request=request) + response = await client.get_certificate_map(request=request) # Handle the response print(response) @@ -1129,9 +1129,9 @@ async def create_certificate_map( from google.cloud import certificate_manager_v1 - def sample_create_certificate_map(): + async def sample_create_certificate_map(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.CreateCertificateMapRequest( @@ -1144,7 +1144,7 @@ def sample_create_certificate_map(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -1268,9 +1268,9 @@ async def update_certificate_map( from google.cloud import certificate_manager_v1 - def sample_update_certificate_map(): + async def sample_update_certificate_map(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.UpdateCertificateMapRequest( @@ -1281,7 +1281,7 @@ def sample_update_certificate_map(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -1401,9 +1401,9 @@ async def delete_certificate_map( from google.cloud import certificate_manager_v1 - def sample_delete_certificate_map(): + async def sample_delete_certificate_map(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.DeleteCertificateMapRequest( @@ -1415,7 +1415,7 @@ def sample_delete_certificate_map(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -1534,9 +1534,9 @@ async def list_certificate_map_entries( from google.cloud import certificate_manager_v1 - def sample_list_certificate_map_entries(): + async def sample_list_certificate_map_entries(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.ListCertificateMapEntriesRequest( @@ -1547,7 +1547,7 @@ def sample_list_certificate_map_entries(): page_result = client.list_certificate_map_entries(request=request) # Handle the response - for response in page_result: + async for response in page_result: print(response) Args: @@ -1652,9 +1652,9 @@ async def get_certificate_map_entry( from google.cloud import certificate_manager_v1 - def sample_get_certificate_map_entry(): + async def sample_get_certificate_map_entry(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.GetCertificateMapEntryRequest( @@ -1662,7 +1662,7 @@ def sample_get_certificate_map_entry(): ) # Make the request - response = client.get_certificate_map_entry(request=request) + response = await client.get_certificate_map_entry(request=request) # Handle the response print(response) @@ -1760,9 +1760,9 @@ async def create_certificate_map_entry( from google.cloud import certificate_manager_v1 - def sample_create_certificate_map_entry(): + async def sample_create_certificate_map_entry(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) certificate_map_entry = certificate_manager_v1.CertificateMapEntry() @@ -1779,7 +1779,7 @@ def sample_create_certificate_map_entry(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -1908,9 +1908,9 @@ async def update_certificate_map_entry( from google.cloud import certificate_manager_v1 - def sample_update_certificate_map_entry(): + async def sample_update_certificate_map_entry(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) certificate_map_entry = certificate_manager_v1.CertificateMapEntry() @@ -1925,7 +1925,7 @@ def sample_update_certificate_map_entry(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -2045,9 +2045,9 @@ async def delete_certificate_map_entry( from google.cloud import certificate_manager_v1 - def sample_delete_certificate_map_entry(): + async def sample_delete_certificate_map_entry(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.DeleteCertificateMapEntryRequest( @@ -2059,7 +2059,7 @@ def sample_delete_certificate_map_entry(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -2176,9 +2176,9 @@ async def list_dns_authorizations( from google.cloud import certificate_manager_v1 - def sample_list_dns_authorizations(): + async def sample_list_dns_authorizations(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.ListDnsAuthorizationsRequest( @@ -2189,7 +2189,7 @@ def sample_list_dns_authorizations(): page_result = client.list_dns_authorizations(request=request) # Handle the response - for response in page_result: + async for response in page_result: print(response) Args: @@ -2293,9 +2293,9 @@ async def get_dns_authorization( from google.cloud import certificate_manager_v1 - def sample_get_dns_authorization(): + async def sample_get_dns_authorization(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.GetDnsAuthorizationRequest( @@ -2303,7 +2303,7 @@ def sample_get_dns_authorization(): ) # Make the request - response = client.get_dns_authorization(request=request) + response = await client.get_dns_authorization(request=request) # Handle the response print(response) @@ -2402,9 +2402,9 @@ async def create_dns_authorization( from google.cloud import certificate_manager_v1 - def sample_create_dns_authorization(): + async def sample_create_dns_authorization(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) dns_authorization = certificate_manager_v1.DnsAuthorization() @@ -2421,7 +2421,7 @@ def sample_create_dns_authorization(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -2544,9 +2544,9 @@ async def update_dns_authorization( from google.cloud import certificate_manager_v1 - def sample_update_dns_authorization(): + async def sample_update_dns_authorization(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) dns_authorization = certificate_manager_v1.DnsAuthorization() @@ -2561,7 +2561,7 @@ def sample_update_dns_authorization(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) @@ -2677,9 +2677,9 @@ async def delete_dns_authorization( from google.cloud import certificate_manager_v1 - def sample_delete_dns_authorization(): + async def sample_delete_dns_authorization(): # Create a client - client = certificate_manager_v1.CertificateManagerClient() + client = certificate_manager_v1.CertificateManagerAsyncClient() # Initialize request argument(s) request = certificate_manager_v1.DeleteDnsAuthorizationRequest( @@ -2691,7 +2691,7 @@ def sample_delete_dns_authorization(): print("Waiting for operation to complete...") - response = operation.result() + response = await operation.result() # Handle the response print(response) diff --git a/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py b/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py index fda3045..2252c67 100644 --- a/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py +++ b/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py @@ -779,7 +779,7 @@ def test_list_certificates_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.ListCertificatesRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -797,7 +797,7 @@ def test_list_certificates_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -811,7 +811,7 @@ async def test_list_certificates_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.ListCertificatesRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -831,7 +831,7 @@ async def test_list_certificates_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -968,7 +968,7 @@ def test_list_certificates_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = [i for i in pager] + results = list(pager) assert len(results) == 6 assert all(isinstance(i, certificate_manager.Certificate) for i in results) @@ -1235,7 +1235,7 @@ def test_get_certificate_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.GetCertificateRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_certificate), "__call__") as call: @@ -1251,7 +1251,7 @@ def test_get_certificate_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -1265,7 +1265,7 @@ async def test_get_certificate_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.GetCertificateRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object(type(client.transport.get_certificate), "__call__") as call: @@ -1283,7 +1283,7 @@ async def test_get_certificate_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -1468,7 +1468,7 @@ def test_create_certificate_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.CreateCertificateRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -1486,7 +1486,7 @@ def test_create_certificate_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -1500,7 +1500,7 @@ async def test_create_certificate_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.CreateCertificateRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -1520,7 +1520,7 @@ async def test_create_certificate_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -1729,7 +1729,7 @@ def test_update_certificate_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.UpdateCertificateRequest() - request.certificate.name = "certificate.name/value" + request.certificate.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -1747,7 +1747,7 @@ def test_update_certificate_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "certificate.name=certificate.name/value", + "certificate.name=name_value", ) in kw["metadata"] @@ -1761,7 +1761,7 @@ async def test_update_certificate_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.UpdateCertificateRequest() - request.certificate.name = "certificate.name/value" + request.certificate.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -1781,7 +1781,7 @@ async def test_update_certificate_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "certificate.name=certificate.name/value", + "certificate.name=name_value", ) in kw["metadata"] @@ -1980,7 +1980,7 @@ def test_delete_certificate_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.DeleteCertificateRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -1998,7 +1998,7 @@ def test_delete_certificate_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -2012,7 +2012,7 @@ async def test_delete_certificate_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.DeleteCertificateRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2032,7 +2032,7 @@ async def test_delete_certificate_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -2231,7 +2231,7 @@ def test_list_certificate_maps_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.ListCertificateMapsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2249,7 +2249,7 @@ def test_list_certificate_maps_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -2263,7 +2263,7 @@ async def test_list_certificate_maps_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.ListCertificateMapsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2283,7 +2283,7 @@ async def test_list_certificate_maps_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -2420,7 +2420,7 @@ def test_list_certificate_maps_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = [i for i in pager] + results = list(pager) assert len(results) == 6 assert all(isinstance(i, certificate_manager.CertificateMap) for i in results) @@ -2678,7 +2678,7 @@ def test_get_certificate_map_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.GetCertificateMapRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2696,7 +2696,7 @@ def test_get_certificate_map_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -2710,7 +2710,7 @@ async def test_get_certificate_map_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.GetCertificateMapRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2730,7 +2730,7 @@ async def test_get_certificate_map_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -2919,7 +2919,7 @@ def test_create_certificate_map_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.CreateCertificateMapRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2937,7 +2937,7 @@ def test_create_certificate_map_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -2951,7 +2951,7 @@ async def test_create_certificate_map_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.CreateCertificateMapRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -2971,7 +2971,7 @@ async def test_create_certificate_map_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -3180,7 +3180,7 @@ def test_update_certificate_map_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.UpdateCertificateMapRequest() - request.certificate_map.name = "certificate_map.name/value" + request.certificate_map.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3198,7 +3198,7 @@ def test_update_certificate_map_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "certificate_map.name=certificate_map.name/value", + "certificate_map.name=name_value", ) in kw["metadata"] @@ -3212,7 +3212,7 @@ async def test_update_certificate_map_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.UpdateCertificateMapRequest() - request.certificate_map.name = "certificate_map.name/value" + request.certificate_map.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3232,7 +3232,7 @@ async def test_update_certificate_map_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "certificate_map.name=certificate_map.name/value", + "certificate_map.name=name_value", ) in kw["metadata"] @@ -3431,7 +3431,7 @@ def test_delete_certificate_map_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.DeleteCertificateMapRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3449,7 +3449,7 @@ def test_delete_certificate_map_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -3463,7 +3463,7 @@ async def test_delete_certificate_map_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.DeleteCertificateMapRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3483,7 +3483,7 @@ async def test_delete_certificate_map_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -3682,7 +3682,7 @@ def test_list_certificate_map_entries_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.ListCertificateMapEntriesRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3700,7 +3700,7 @@ def test_list_certificate_map_entries_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -3714,7 +3714,7 @@ async def test_list_certificate_map_entries_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.ListCertificateMapEntriesRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -3734,7 +3734,7 @@ async def test_list_certificate_map_entries_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -3871,7 +3871,7 @@ def test_list_certificate_map_entries_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = [i for i in pager] + results = list(pager) assert len(results) == 6 assert all( isinstance(i, certificate_manager.CertificateMapEntry) for i in results @@ -4142,7 +4142,7 @@ def test_get_certificate_map_entry_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.GetCertificateMapEntryRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4160,7 +4160,7 @@ def test_get_certificate_map_entry_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -4174,7 +4174,7 @@ async def test_get_certificate_map_entry_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.GetCertificateMapEntryRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4194,7 +4194,7 @@ async def test_get_certificate_map_entry_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -4383,7 +4383,7 @@ def test_create_certificate_map_entry_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.CreateCertificateMapEntryRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4401,7 +4401,7 @@ def test_create_certificate_map_entry_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -4415,7 +4415,7 @@ async def test_create_certificate_map_entry_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.CreateCertificateMapEntryRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4435,7 +4435,7 @@ async def test_create_certificate_map_entry_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -4652,7 +4652,7 @@ def test_update_certificate_map_entry_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.UpdateCertificateMapEntryRequest() - request.certificate_map_entry.name = "certificate_map_entry.name/value" + request.certificate_map_entry.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4670,7 +4670,7 @@ def test_update_certificate_map_entry_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "certificate_map_entry.name=certificate_map_entry.name/value", + "certificate_map_entry.name=name_value", ) in kw["metadata"] @@ -4684,7 +4684,7 @@ async def test_update_certificate_map_entry_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.UpdateCertificateMapEntryRequest() - request.certificate_map_entry.name = "certificate_map_entry.name/value" + request.certificate_map_entry.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4704,7 +4704,7 @@ async def test_update_certificate_map_entry_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "certificate_map_entry.name=certificate_map_entry.name/value", + "certificate_map_entry.name=name_value", ) in kw["metadata"] @@ -4911,7 +4911,7 @@ def test_delete_certificate_map_entry_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.DeleteCertificateMapEntryRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4929,7 +4929,7 @@ def test_delete_certificate_map_entry_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -4943,7 +4943,7 @@ async def test_delete_certificate_map_entry_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.DeleteCertificateMapEntryRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -4963,7 +4963,7 @@ async def test_delete_certificate_map_entry_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -5162,7 +5162,7 @@ def test_list_dns_authorizations_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.ListDnsAuthorizationsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -5180,7 +5180,7 @@ def test_list_dns_authorizations_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -5194,7 +5194,7 @@ async def test_list_dns_authorizations_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.ListDnsAuthorizationsRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -5214,7 +5214,7 @@ async def test_list_dns_authorizations_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -5351,7 +5351,7 @@ def test_list_dns_authorizations_pager(transport_name: str = "grpc"): assert pager._metadata == metadata - results = [i for i in pager] + results = list(pager) assert len(results) == 6 assert all(isinstance(i, certificate_manager.DnsAuthorization) for i in results) @@ -5615,7 +5615,7 @@ def test_get_dns_authorization_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.GetDnsAuthorizationRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -5633,7 +5633,7 @@ def test_get_dns_authorization_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -5647,7 +5647,7 @@ async def test_get_dns_authorization_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.GetDnsAuthorizationRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -5667,7 +5667,7 @@ async def test_get_dns_authorization_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -5856,7 +5856,7 @@ def test_create_dns_authorization_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.CreateDnsAuthorizationRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -5874,7 +5874,7 @@ def test_create_dns_authorization_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -5888,7 +5888,7 @@ async def test_create_dns_authorization_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.CreateDnsAuthorizationRequest() - request.parent = "parent/value" + request.parent = "parent_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -5908,7 +5908,7 @@ async def test_create_dns_authorization_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "parent=parent/value", + "parent=parent_value", ) in kw["metadata"] @@ -6117,7 +6117,7 @@ def test_update_dns_authorization_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.UpdateDnsAuthorizationRequest() - request.dns_authorization.name = "dns_authorization.name/value" + request.dns_authorization.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -6135,7 +6135,7 @@ def test_update_dns_authorization_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "dns_authorization.name=dns_authorization.name/value", + "dns_authorization.name=name_value", ) in kw["metadata"] @@ -6149,7 +6149,7 @@ async def test_update_dns_authorization_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.UpdateDnsAuthorizationRequest() - request.dns_authorization.name = "dns_authorization.name/value" + request.dns_authorization.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -6169,7 +6169,7 @@ async def test_update_dns_authorization_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "dns_authorization.name=dns_authorization.name/value", + "dns_authorization.name=name_value", ) in kw["metadata"] @@ -6368,7 +6368,7 @@ def test_delete_dns_authorization_field_headers(): # a field header. Set these to a non-empty value. request = certificate_manager.DeleteDnsAuthorizationRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -6386,7 +6386,7 @@ def test_delete_dns_authorization_field_headers(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] @@ -6400,7 +6400,7 @@ async def test_delete_dns_authorization_field_headers_async(): # a field header. Set these to a non-empty value. request = certificate_manager.DeleteDnsAuthorizationRequest() - request.name = "name/value" + request.name = "name_value" # Mock the actual call within the gRPC stub, and fake the request. with mock.patch.object( @@ -6420,7 +6420,7 @@ async def test_delete_dns_authorization_field_headers_async(): _, _, kw = call.mock_calls[0] assert ( "x-goog-request-params", - "name=name/value", + "name=name_value", ) in kw["metadata"] From 5f74b78328e2b3bd6291bbc0e68c1b582ef8887f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 5 May 2022 11:46:54 -0400 Subject: [PATCH 11/16] chore: [autoapprove] update readme_gen.py to include autoescape True (#32) Source-Link: https://github.com/googleapis/synthtool/commit/6b4d5a6407d740beb4158b302194a62a4108a8a6 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f792ee1320e03eda2d13a5281a2989f7ed8a9e50b73ef6da97fac7e1e850b149 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- scripts/readme-gen/readme_gen.py | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 64f82d6..b631901 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:bc5eed3804aec2f05fad42aacf973821d9500c174015341f721a984a0825b6fd -# created: 2022-04-21T15:43:16.246106921Z + digest: sha256:f792ee1320e03eda2d13a5281a2989f7ed8a9e50b73ef6da97fac7e1e850b149 +# created: 2022-05-05T15:17:27.599381182Z diff --git a/scripts/readme-gen/readme_gen.py b/scripts/readme-gen/readme_gen.py index d309d6e..91b5967 100644 --- a/scripts/readme-gen/readme_gen.py +++ b/scripts/readme-gen/readme_gen.py @@ -28,7 +28,10 @@ jinja_env = jinja2.Environment( trim_blocks=True, loader=jinja2.FileSystemLoader( - os.path.abspath(os.path.join(os.path.dirname(__file__), 'templates')))) + os.path.abspath(os.path.join(os.path.dirname(__file__), "templates")) + ), + autoescape=True, +) README_TMPL = jinja_env.get_template('README.tmpl.rst') From ab9d1ae7b5702f3cf8738eb279c70873e1c40b42 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 5 May 2022 23:56:16 +0000 Subject: [PATCH 12/16] chore(python): auto approve template changes (#34) Source-Link: https://github.com/googleapis/synthtool/commit/453a5d9c9a55d1969240a37d36cec626d20a9024 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:81ed5ecdfc7cac5b699ba4537376f3563f6f04122c4ec9e735d3b3dc1d43dd32 --- .github/.OwlBot.lock.yaml | 4 ++-- .github/auto-approve.yml | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .github/auto-approve.yml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index b631901..757c9dc 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:f792ee1320e03eda2d13a5281a2989f7ed8a9e50b73ef6da97fac7e1e850b149 -# created: 2022-05-05T15:17:27.599381182Z + digest: sha256:81ed5ecdfc7cac5b699ba4537376f3563f6f04122c4ec9e735d3b3dc1d43dd32 +# created: 2022-05-05T22:08:23.383410683Z diff --git a/.github/auto-approve.yml b/.github/auto-approve.yml new file mode 100644 index 0000000..311ebbb --- /dev/null +++ b/.github/auto-approve.yml @@ -0,0 +1,3 @@ +# https://github.com/googleapis/repo-automation-bots/tree/main/packages/auto-approve +processes: + - "OwlBotTemplateChanges" From 8e93056d8ccbd6f2fe6f5f8346ad28c104a8b688 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 30 May 2022 13:49:45 -0400 Subject: [PATCH 13/16] chore: use gapic-generator-python 1.0.0 (#54) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 1.0.0 PiperOrigin-RevId: 451250442 Source-Link: https://github.com/googleapis/googleapis/commit/cca5e8181f6442b134e8d4d206fbe9e0e74684ba Source-Link: https://github.com/googleapis/googleapis-gen/commit/0b219da161a8bdcc3c6f7b2efcd82105182a30ca Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGIyMTlkYTE2MWE4YmRjYzNjNmY3YjJlZmNkODIxMDUxODJhMzBjYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../test_certificate_manager.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py b/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py index 2252c67..d08a329 100644 --- a/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py +++ b/tests/unit/gapic/certificate_manager_v1/test_certificate_manager.py @@ -13,9 +13,17 @@ # See the License for the specific language governing permissions and # limitations under the License. # -import math import os +# try/except added for compatibility with python < 3.8 +try: + from unittest import mock + from unittest.mock import AsyncMock +except ImportError: + import mock + +import math + from google.api_core import ( future, gapic_v1, @@ -37,7 +45,6 @@ from google.protobuf import timestamp_pb2 # type: ignore import grpc from grpc.experimental import aio -import mock from proto.marshal.rules.dates import DurationRule, TimestampRule import pytest From 14a09d2bfd6920632250ad8b3c8dac3b80884273 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Wed, 1 Jun 2022 22:27:24 -0400 Subject: [PATCH 14/16] fix(deps): require protobuf <4.0.0dev (#55) --- setup.py | 3 ++- testing/constraints-3.6.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index e750edd..d467b23 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,8 @@ # Until this issue is closed # https://github.com/googleapis/google-cloud-python/issues/10566 "google-api-core[grpc] >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0", - "proto-plus >= 1.15.0", + "proto-plus >= 1.15.0, <2.0.0dev", + "protobuf >= 3.19.0, <4.0.0dev", ] package_root = os.path.abspath(os.path.dirname(__file__)) diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index be5a64f..786e637 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -6,3 +6,4 @@ # Then this file should have google-cloud-foo==1.14.0 google-api-core==1.31.5 proto-plus==1.15.0 +protobuf==3.19.0 From 5df563794c312793a35fbc1e142c5331606ea0c5 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Fri, 3 Jun 2022 10:01:06 -0400 Subject: [PATCH 15/16] chore: test minimum dependencies in python 3.7 (#58) --- testing/constraints-3.7.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/testing/constraints-3.7.txt b/testing/constraints-3.7.txt index e69de29..786e637 100644 --- a/testing/constraints-3.7.txt +++ b/testing/constraints-3.7.txt @@ -0,0 +1,9 @@ +# This constraints file is used to check that lower bounds +# are correct in setup.py +# List all library dependencies and extras in this file. +# Pin the version to the lower bound. +# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev", +# Then this file should have google-cloud-foo==1.14.0 +google-api-core==1.31.5 +proto-plus==1.15.0 +protobuf==3.19.0 From 59bfa97703d96496f2e0043da594e3b538536816 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 7 Jun 2022 06:45:12 -0400 Subject: [PATCH 16/16] chore(main): release 0.1.3 (#56) * chore(main): release 0.1.3 * chore: prune changelog Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou --- CHANGELOG.md | 11 +++++++++-- setup.py | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b662b25..301d6e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,13 +1,20 @@ # Changelog -### [0.1.2](https://github.com/googleapis/python-certificate-manager/compare/v0.1.1...v0.1.2) (2022-03-30) +## [0.1.3](https://github.com/googleapis/python-certificate-manager/compare/v0.1.2...v0.1.3) (2022-06-03) + + +### Bug Fixes + +* **deps:** require protobuf <4.0.0dev ([#55](https://github.com/googleapis/python-certificate-manager/issues/55)) ([14a09d2](https://github.com/googleapis/python-certificate-manager/commit/14a09d2bfd6920632250ad8b3c8dac3b80884273)) + +## [0.1.2](https://github.com/googleapis/python-certificate-manager/compare/v0.1.1...v0.1.2) (2022-03-30) ### Bug Fixes * Updated resource patterns to comply with https://google.aip.dev/123#annotating-resource-types ([#17](https://github.com/googleapis/python-certificate-manager/issues/17)) ([71f74bf](https://github.com/googleapis/python-certificate-manager/commit/71f74bf5e25c732f51ac6db32bc204e6116cbad2)) -### [0.1.1](https://github.com/googleapis/python-certificate-manager/compare/v0.1.0...v0.1.1) (2022-03-05) +## [0.1.1](https://github.com/googleapis/python-certificate-manager/compare/v0.1.0...v0.1.1) (2022-03-05) ### Bug Fixes diff --git a/setup.py b/setup.py index d467b23..4b22540 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ name = "google-cloud-certificate-manager" description = "Certificate Manager API client library" url = "https://github.com/googleapis/python-certificate-manager" -version = "0.1.2" +version = "0.1.3" release_status = "Development Status :: 4 - Beta" dependencies = [ # NOTE: Maintainers, please do not require google-api-core>=2.x.x