diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 7d98291..ba7b2f7 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:58f73ba196b5414782605236dd0712a73541b44ff2ff4d3a36ec41092dd6fa5b + digest: sha256:3728d8fd14daa46a96d04ce61c6451a3ac864dc48fb71eecbb4411f4a95618d4 diff --git a/docs/index.rst b/docs/index.rst index ffaff42..b1c2889 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,35 +2,32 @@ .. include:: multiprocessing.rst -v1 Api Reference ----------------- +This package includes clients for multiple versions of Cloud Secret Manager. +By default, you will get version ``secretmanager_v1``. + + +API Reference +------------- .. toctree:: :maxdepth: 2 secretmanager_v1/services secretmanager_v1/types -v1beta1 Api Reference ---------------------- +API Reference +------------- .. toctree:: :maxdepth: 2 secretmanager_v1beta1/services secretmanager_v1beta1/types -Migration Guide ---------------- - -See the guide below for instructions on migrating to the 2.x release of this library. - -.. toctree:: - :maxdepth: 2 - - UPGRADING - Changelog --------- + +For a list of all ``google-cloud-secret-manager`` releases: + .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog diff --git a/noxfile.py b/noxfile.py index f885c68..2bb4cf7 100644 --- a/noxfile.py +++ b/noxfile.py @@ -175,7 +175,7 @@ def cover(session): test runs (not system test runs), and then erases coverage data. """ session.install("coverage", "pytest-cov") - session.run("coverage", "report", "--show-missing", "--fail-under=99") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index d8ab084..0000000 --- a/owlbot.py +++ /dev/null @@ -1,64 +0,0 @@ -# Copyright 2019 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. - -"""This script is used to synthesize generated parts of this library.""" -import os - -import synthtool as s -import synthtool.gcp as gcp -from synthtool.languages import python - -common = gcp.CommonTemplates() - -default_version = "v1" - -for library in s.get_staging_dirs(default_version): - excludes = ["README.rst", "setup.py", "nox*.py", "docs/index.rst"] - s.move(library, excludes=excludes) - -s.remove_staging_dirs() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library( - samples=True, # set to True only if there are samples - microgenerator=True, - cov_level=99, -) -s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file - -# Fix type annotations for requests -# Not needed once generator version is >=0.51.1 -# Generator version: https://github.com/googleapis/googleapis/blob/master/WORKSPACE#L227 -# Fix in generator: https://github.com/googleapis/gapic-generator-python/commit/49205d99dd440690b838c8eb3f6a695f35b061c2 - -s.replace( - "google/**/*client.py", - "request: ([^U]*?) = None", - "request: Union[\g<1>, dict] = None", - -) -s.replace( - "google/**/*client.py", - "request \(:class:`(.*)`\):", - "request (Union[\g<1>, dict]):" -) - -# ---------------------------------------------------------------------------- -# Samples templates -# ---------------------------------------------------------------------------- -python.py_samples() - -s.shell.run(["nox", "-s", "blacken"], hide_output=False)