diff --git a/docs/index.rst b/docs/index.rst index 02ac87bb..436b070b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,51 +2,52 @@ .. include:: multiprocessing.rst -Api Reference -------------- +This package includes clients for multiple versions of Google Cloud Security Command Center. +By default, you will get version ``securitycenter_v1``. + -v1 -~~~ +API Reference +------------- .. toctree:: :maxdepth: 2 securitycenter_v1/services securitycenter_v1/types -v1beta1 -~~~~~~~ +API Reference +------------- .. toctree:: :maxdepth: 2 securitycenter_v1beta1/services securitycenter_v1beta1/types - -v1p1beta1 -~~~~~~~~~ +API Reference +------------- .. toctree:: :maxdepth: 2 securitycenter_v1p1beta1/services securitycenter_v1p1beta1/types + Migration Guide --------------- -See the guide below for instructions on migrating to the 2.x release of this library. +See the guide below for instructions on migrating to the latest version. .. toctree:: :maxdepth: 2 - UPGRADING +  UPGRADING Changelog ----------- +--------- For a list of all ``google-cloud-securitycenter`` releases: .. toctree:: :maxdepth: 2 - changelog \ No newline at end of file + changelog diff --git a/noxfile.py b/noxfile.py index f041f1f5..2a2001c4 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=98") + 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 43fcd8d8..00000000 --- a/owlbot.py +++ /dev/null @@ -1,59 +0,0 @@ -# Copyright 2018 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 synthtool as s -from synthtool import gcp -from synthtool.languages import python - -common = gcp.CommonTemplates() - -default_version = "v1" - -for library in s.get_staging_dirs(default_version): - # fix bad indentation - s.replace(library / "google/**/*service.py", - r"(\s+)settings resource.\n" - r"\s+If empty all mutable fields will be updated.", - r"\g<1>settings resource.\n" - r"\g<1>If empty all mutable fields will be updated.", - ) - - # Comment out broken assertion in unit test - # https://github.com/googleapis/gapic-generator-python/issues/897 - s.replace( - library / "tests/**/*.py", - "assert args\[0\]\.start_time == timestamp_pb2\.Timestamp\(seconds=751\)", - "# assert args[0].start_time == timestamp_pb2.Timestamp(seconds=751)" - ) - - s.move(library, excludes=["README.rst", "docs/index.rst", "setup.py"]) - -s.remove_staging_dirs() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library( - samples=True, - microgenerator=True, # set to True only if there are samples - cov_level=98, -) -s.move( - templated_files, excludes=[".coveragerc"] -) # microgenerator has a good .coveragerc file - -python.py_samples(skip_readmes=True) - -s.shell.run(["nox", "-s", "blacken"], hide_output=False)