Skip to content
Permalink
Browse files
feat: generate v1beta1
  • Loading branch information
parthea committed Jun 1, 2021
0 parents commit a09263717b5c983783d2451b9c2e5d5852e5b79c
Showing with 9,095 additions and 0 deletions.
  1. +38 −0 .coveragerc
  2. +33 −0 .flake8
  3. +15 −0 .github/.OwlBot.lock.yaml
  4. +24 −0 .github/.OwlBot.yaml
  5. +11 −0 .github/CODEOWNERS
  6. +28 −0 .github/CONTRIBUTING.md
  7. +43 −0 .github/ISSUE_TEMPLATE/bug_report.md
  8. +18 −0 .github/ISSUE_TEMPLATE/feature_request.md
  9. +7 −0 .github/ISSUE_TEMPLATE/support_request.md
  10. +7 −0 .github/PULL_REQUEST_TEMPLATE.md
  11. +15 −0 .github/header-checker-lint.yml
  12. +1 −0 .github/release-please.yml
  13. 0 .github/snippet-bot.yml
  14. +63 −0 .gitignore
  15. +59 −0 .kokoro/build.sh
  16. +27 −0 .kokoro/continuous/common.cfg
  17. +1 −0 .kokoro/continuous/continuous.cfg
  18. +98 −0 .kokoro/docker/docs/Dockerfile
  19. +45 −0 .kokoro/docker/docs/fetch_gpg_keys.sh
  20. +65 −0 .kokoro/docs/common.cfg
  21. +28 −0 .kokoro/docs/docs-presubmit.cfg
  22. +1 −0 .kokoro/docs/docs.cfg
  23. +43 −0 .kokoro/populate-secrets.sh
  24. +27 −0 .kokoro/presubmit/common.cfg
  25. +1 −0 .kokoro/presubmit/presubmit.cfg
  26. +64 −0 .kokoro/publish-docs.sh
  27. +32 −0 .kokoro/release.sh
  28. +30 −0 .kokoro/release/common.cfg
  29. +1 −0 .kokoro/release/release.cfg
  30. +34 −0 .kokoro/samples/lint/common.cfg
  31. +6 −0 .kokoro/samples/lint/continuous.cfg
  32. +6 −0 .kokoro/samples/lint/periodic.cfg
  33. +6 −0 .kokoro/samples/lint/presubmit.cfg
  34. +40 −0 .kokoro/samples/python3.6/common.cfg
  35. +7 −0 .kokoro/samples/python3.6/continuous.cfg
  36. +11 −0 .kokoro/samples/python3.6/periodic-head.cfg
  37. +6 −0 .kokoro/samples/python3.6/periodic.cfg
  38. +6 −0 .kokoro/samples/python3.6/presubmit.cfg
  39. +40 −0 .kokoro/samples/python3.7/common.cfg
  40. +6 −0 .kokoro/samples/python3.7/continuous.cfg
  41. +11 −0 .kokoro/samples/python3.7/periodic-head.cfg
  42. +6 −0 .kokoro/samples/python3.7/periodic.cfg
  43. +6 −0 .kokoro/samples/python3.7/presubmit.cfg
  44. +40 −0 .kokoro/samples/python3.8/common.cfg
  45. +6 −0 .kokoro/samples/python3.8/continuous.cfg
  46. +11 −0 .kokoro/samples/python3.8/periodic-head.cfg
  47. +6 −0 .kokoro/samples/python3.8/periodic.cfg
  48. +6 −0 .kokoro/samples/python3.8/presubmit.cfg
  49. +28 −0 .kokoro/test-samples-against-head.sh
  50. +102 −0 .kokoro/test-samples-impl.sh
  51. +46 −0 .kokoro/test-samples.sh
  52. +28 −0 .kokoro/trampoline.sh
  53. +487 −0 .kokoro/trampoline_v2.sh
  54. +31 −0 .pre-commit-config.yaml
  55. +13 −0 .repo-metadata.json
  56. +52 −0 .trampolinerc
  57. +1 −0 CHANGELOG.md
  58. +95 −0 CODE_OF_CONDUCT.md
  59. +260 −0 CONTRIBUTING.rst
  60. +202 −0 LICENSE
  61. +25 −0 MANIFEST.in
  62. +49 −0 README.rst
  63. +49 −0 docs/README.rst
  64. +20 −0 docs/_static/custom.css
  65. +50 −0 docs/_templates/layout.html
  66. +1 −0 docs/changelog.md
  67. +380 −0 docs/conf.py
  68. +21 −0 docs/index.rst
  69. +7 −0 docs/multiprocessing.rst
  70. +10 −0 docs/privatecatalog_v1beta1/private_catalog.rst
  71. +6 −0 docs/privatecatalog_v1beta1/services.rst
  72. +7 −0 docs/privatecatalog_v1beta1/types.rst
  73. +66 −0 google/cloud/privatecatalog/__init__.py
  74. +2 −0 google/cloud/privatecatalog/py.typed
  75. +50 −0 google/cloud/privatecatalog_v1beta1/__init__.py
  76. +53 −0 google/cloud/privatecatalog_v1beta1/gapic_metadata.json
  77. +2 −0 google/cloud/privatecatalog_v1beta1/py.typed
  78. +15 −0 google/cloud/privatecatalog_v1beta1/services/__init__.py
  79. +22 −0 google/cloud/privatecatalog_v1beta1/services/private_catalog/__init__.py
  80. +381 −0 google/cloud/privatecatalog_v1beta1/services/private_catalog/async_client.py
  81. +587 −0 google/cloud/privatecatalog_v1beta1/services/private_catalog/client.py
  82. +411 −0 google/cloud/privatecatalog_v1beta1/services/private_catalog/pagers.py
  83. +33 −0 google/cloud/privatecatalog_v1beta1/services/private_catalog/transports/__init__.py
  84. +217 −0 google/cloud/privatecatalog_v1beta1/services/private_catalog/transports/base.py
  85. +336 −0 google/cloud/privatecatalog_v1beta1/services/private_catalog/transports/grpc.py
  86. +342 −0 google/cloud/privatecatalog_v1beta1/services/private_catalog/transports/grpc_asyncio.py
  87. +46 −0 google/cloud/privatecatalog_v1beta1/types/__init__.py
  88. +593 −0 google/cloud/privatecatalog_v1beta1/types/private_catalog.py
  89. +3 −0 mypy.ini
  90. +231 −0 noxfile.py
  91. +39 −0 owlbot.py
  92. +9 −0 renovate.json
  93. +46 −0 scripts/decrypt-secrets.sh
  94. +178 −0 scripts/fixup_privatecatalog_v1beta1_keywords.py
  95. +66 −0 scripts/readme-gen/readme_gen.py
  96. +87 −0 scripts/readme-gen/templates/README.tmpl.rst
  97. +9 −0 scripts/readme-gen/templates/auth.tmpl.rst
  98. +14 −0 scripts/readme-gen/templates/auth_api_key.tmpl.rst
  99. +29 −0 scripts/readme-gen/templates/install_deps.tmpl.rst
  100. +35 −0 scripts/readme-gen/templates/install_portaudio.tmpl.rst
  101. +19 −0 setup.cfg
  102. +54 −0 setup.py
  103. +3 −0 testing/.gitignore
  104. +15 −0 tests/__init__.py
  105. +15 −0 tests/unit/__init__.py
  106. +15 −0 tests/unit/gapic/__init__.py
  107. +15 −0 tests/unit/gapic/privatecatalog_v1beta1/__init__.py
  108. +2,002 −0 tests/unit/gapic/privatecatalog_v1beta1/test_private_catalog.py
@@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 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
#
# https://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.

# Generated by synthtool. DO NOT EDIT!
[run]
branch = True
omit =
google/cloud/__init__.py

[report]
fail_under = 100
show_missing = True
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
# Ignore debug-only repr
def __repr__
# Ignore abstract methods
raise NotImplementedError
omit =
*/gapic/*.py
*/proto/*.py
*/core/*.py
*/site-packages/*.py
google/cloud/__init__.py
33 .flake8
@@ -0,0 +1,33 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 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
#
# https://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.

# Generated by synthtool. DO NOT EDIT!
[flake8]
ignore = E203, E266, E501, W503
exclude =
# Exclude generated code.
**/proto/**
**/gapic/**
**/services/**
**/types/**
*_pb2.py

# Standard linting exemptions.
**/.nox/**
__pycache__,
.git,
*.pyc,
conf.py
@@ -0,0 +1,15 @@
# Copyright 2021 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.
docker:
digest: sha256:c66ba3c8d7bc8566f47df841f98cd0097b28fff0b1864c86f5817f4c8c3e8600
image: gcr.io/repo-automation-bots/owlbot-python:latest
@@ -0,0 +1,24 @@
# Copyright 2021 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.

docker:
image: gcr.io/repo-automation-bots/owlbot-python:latest

deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/cloud/privatecatalog/(v.*)/.*-py/(.*)
dest: /owl-bot-staging/$1/$2

begin-after-commit-hash: b06c9034cfcbce180ba732d03be6526e5c8ea1bc
@@ -0,0 +1,11 @@
# Code owners file.
# This file controls who is tagged for review for any given pull request.
#
# For syntax help see:
# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax

# The @googleapis/yoshi-python is the default owner for changes in this repo
* @googleapis/yoshi-python


/samples/ @googleapis/python-samples-owners
@@ -0,0 +1,28 @@
# How to Contribute

We'd love to accept your patches and contributions to this project. There are
just a few small guidelines you need to follow.

## Contributor License Agreement

Contributions to this project must be accompanied by a Contributor License
Agreement. You (or your employer) retain the copyright to your contribution;
this simply gives us permission to use and redistribute your contributions as
part of the project. Head over to <https://cla.developers.google.com/> to see
your current agreements on file or to sign a new one.

You generally only need to submit a CLA once, so if you've already submitted one
(even if it was for a different project), you probably don't need to do it
again.

## Code reviews

All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
information on using pull requests.

## Community Guidelines

This project follows [Google's Open Source Community
Guidelines](https://opensource.google.com/conduct/).
@@ -0,0 +1,43 @@
---
name: Bug report
about: Create a report to help us improve

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

Please run down the following list and make sure you've tried the usual "quick fixes":

- Search the issues already opened: https://github.com/googleapis/python-private-catalog/issues
- Search StackOverflow: https://stackoverflow.com/questions/tagged/google-cloud-platform+python

If you are still having issues, please be sure to include as much information as possible:

#### Environment details

- OS type and version:
- Python version: `python --version`
- pip version: `pip --version`
- `google-cloud-private-catalog` version: `pip show google-cloud-private-catalog`

#### Steps to reproduce

1. ?
2. ?

#### Code example

```python
# example
```

#### Stack trace
```
# example
```

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this library

---

Thanks for stopping by to let us know something could be better!

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
@@ -0,0 +1,7 @@
---
name: Support request
about: If you have a support contract with Google, please create an issue in the Google Cloud Support console.

---

**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response.
@@ -0,0 +1,7 @@
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-private-catalog/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕
@@ -0,0 +1,15 @@
{"allowedCopyrightHolders": ["Google LLC"],
"allowedLicenses": ["Apache-2.0", "MIT", "BSD-3"],
"ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt", "**/__init__.py", "samples/**/constraints.txt", "samples/**/constraints-test.txt"],
"sourceFileExtensions": [
"ts",
"js",
"java",
"sh",
"Dockerfile",
"yaml",
"py",
"html",
"txt"
]
}
@@ -0,0 +1 @@
releaseType: python
Empty file.
@@ -0,0 +1,63 @@
*.py[cod]
*.sw[op]

# C extensions
*.so

# Packages
*.egg
*.egg-info
dist
build
eggs
.eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
__pycache__

# Installer logs
pip-log.txt

# Unit test / coverage reports
.coverage
.nox
.cache
.pytest_cache


# Mac
.DS_Store

# JetBrains
.idea

# VS Code
.vscode

# emacs
*~

# Built documentation
docs/_build
bigquery/docs/generated
docs.metadata

# Virtual environment
env/

# Test logs
coverage.xml
*sponge_log.xml

# System test environment variables.
system_tests/local_test_setup

# Make sure a generated file isn't accidentally committed.
pylintrc
pylintrc.test
@@ -0,0 +1,59 @@
#!/bin/bash
# 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
#
# https://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.

set -eo pipefail

if [[ -z "${PROJECT_ROOT:-}" ]]; then
PROJECT_ROOT="github/python-private-catalog"
fi

cd "${PROJECT_ROOT}"

# Disable buffering, so that the logs stream through.
export PYTHONUNBUFFERED=1

# Debug: show build environment
env | grep KOKORO

# Setup service account credentials.
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/service-account.json

# Setup project id.
export PROJECT_ID=$(cat "${KOKORO_GFILE_DIR}/project-id.json")

# Remove old nox
python3 -m pip uninstall --yes --quiet nox-automation

# Install nox
python3 -m pip install --upgrade --quiet nox
python3 -m nox --version

# If this is a continuous build, send the test log to the FlakyBot.
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/flakybot.
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
cleanup() {
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
$KOKORO_GFILE_DIR/linux_amd64/flakybot
}
trap cleanup EXIT HUP
fi

# If NOX_SESSION is set, it only runs the specified session,
# otherwise run all the sessions.
if [[ -n "${NOX_SESSION:-}" ]]; then
python3 -m nox -s ${NOX_SESSION:-}
else
python3 -m nox
fi
Loading

0 comments on commit a092637

Please sign in to comment.