Skip to content
Permalink
Browse files
feat: add v1alpha1
  • Loading branch information
busunkim96 committed Sep 4, 2020
1 parent 7c9b3c5 commit fc837f99e01228db2cb844376e2f27be6bff3cd6
Showing with 9,382 additions and 3 deletions.
  1. +32 −0 .flake8
  2. +28 −0 .github/CONTRIBUTING.md
  3. +43 −0 .github/ISSUE_TEMPLATE/bug_report.md
  4. +18 −0 .github/ISSUE_TEMPLATE/feature_request.md
  5. +7 −0 .github/ISSUE_TEMPLATE/support_request.md
  6. +7 −0 .github/PULL_REQUEST_TEMPLATE.md
  7. +1 −0 .github/release-please.yml
  8. 0 .github/snippet-bot.yml
  9. +61 −0 .gitignore
  10. +45 −0 .kokoro/build.sh
  11. +27 −0 .kokoro/continuous/common.cfg
  12. +1 −0 .kokoro/continuous/continuous.cfg
  13. +98 −0 .kokoro/docker/docs/Dockerfile
  14. +45 −0 .kokoro/docker/docs/fetch_gpg_keys.sh
  15. +65 −0 .kokoro/docs/common.cfg
  16. +17 −0 .kokoro/docs/docs-presubmit.cfg
  17. +1 −0 .kokoro/docs/docs.cfg
  18. +27 −0 .kokoro/presubmit/common.cfg
  19. +1 −0 .kokoro/presubmit/presubmit.cfg
  20. +64 −0 .kokoro/publish-docs.sh
  21. +32 −0 .kokoro/release.sh
  22. +64 −0 .kokoro/release/common.cfg
  23. +1 −0 .kokoro/release/release.cfg
  24. +34 −0 .kokoro/samples/lint/common.cfg
  25. +6 −0 .kokoro/samples/lint/continuous.cfg
  26. +6 −0 .kokoro/samples/lint/periodic.cfg
  27. +6 −0 .kokoro/samples/lint/presubmit.cfg
  28. +34 −0 .kokoro/samples/python3.6/common.cfg
  29. +7 −0 .kokoro/samples/python3.6/continuous.cfg
  30. +6 −0 .kokoro/samples/python3.6/periodic.cfg
  31. +6 −0 .kokoro/samples/python3.6/presubmit.cfg
  32. +34 −0 .kokoro/samples/python3.7/common.cfg
  33. +6 −0 .kokoro/samples/python3.7/continuous.cfg
  34. +6 −0 .kokoro/samples/python3.7/periodic.cfg
  35. +6 −0 .kokoro/samples/python3.7/presubmit.cfg
  36. +34 −0 .kokoro/samples/python3.8/common.cfg
  37. +6 −0 .kokoro/samples/python3.8/continuous.cfg
  38. +6 −0 .kokoro/samples/python3.8/periodic.cfg
  39. +6 −0 .kokoro/samples/python3.8/presubmit.cfg
  40. +104 −0 .kokoro/test-samples.sh
  41. +23 −0 .kokoro/trampoline.sh
  42. +487 −0 .kokoro/trampoline_v2.sh
  43. +51 −0 .trampolinerc
  44. +1 −0 CHANGELOG.md
  45. +44 −0 CODE_OF_CONDUCT.md
  46. +270 −0 CONTRIBUTING.rst
  47. +201 −0 LICENSE
  48. +25 −0 MANIFEST.in
  49. +82 −0 README.rst
  50. +82 −0 docs/README.rst
  51. +4 −0 docs/_static/custom.css
  52. +50 −0 docs/_templates/layout.html
  53. +1 −0 docs/changelog.md
  54. +364 −0 docs/conf.py
  55. +21 −0 docs/index.rst
  56. +7 −0 docs/multiprocessing.rst
  57. +6 −0 docs/tables_v1alpha1/services.rst
  58. +5 −0 docs/tables_v1alpha1/types.rst
  59. +62 −0 google/area120/tables/__init__.py
  60. +2 −0 google/area120/tables/py.typed
  61. +57 −0 google/area120/tables_v1alpha1/__init__.py
  62. +2 −0 google/area120/tables_v1alpha1/py.typed
  63. +16 −0 google/area120/tables_v1alpha1/services/__init__.py
  64. +24 −0 google/area120/tables_v1alpha1/services/tables_service/__init__.py
  65. +717 −0 google/area120/tables_v1alpha1/services/tables_service/async_client.py
  66. +868 −0 google/area120/tables_v1alpha1/services/tables_service/client.py
  67. +276 −0 google/area120/tables_v1alpha1/services/tables_service/pagers.py
  68. +36 −0 google/area120/tables_v1alpha1/services/tables_service/transports/__init__.py
  69. +234 −0 google/area120/tables_v1alpha1/services/tables_service/transports/base.py
  70. +449 −0 google/area120/tables_v1alpha1/services/tables_service/transports/grpc.py
  71. +448 −0 google/area120/tables_v1alpha1/services/tables_service/transports/grpc_asyncio.py
  72. +55 −0 google/area120/tables_v1alpha1/types/__init__.py
  73. +362 −0 google/area120/tables_v1alpha1/types/tables.py
  74. +3 −0 mypy.ini
  75. +201 −0 noxfile.py
  76. +5 −0 renovate.json
  77. +33 −0 scripts/decrypt-secrets.sh
  78. +66 −0 scripts/readme-gen/readme_gen.py
  79. +87 −0 scripts/readme-gen/templates/README.tmpl.rst
  80. +9 −0 scripts/readme-gen/templates/auth.tmpl.rst
  81. +14 −0 scripts/readme-gen/templates/auth_api_key.tmpl.rst
  82. +29 −0 scripts/readme-gen/templates/install_deps.tmpl.rst
  83. +35 −0 scripts/readme-gen/templates/install_portaudio.tmpl.rst
  84. +19 −0 setup.cfg
  85. +60 −0 setup.py
  86. +36 −0 synth.metadata
  87. +17 −3 synth.py
  88. +3 −0 testing/.gitignore
  89. +1 −0 tests/unit/gapic/tables_v1alpha1/__init__.py
  90. +2,434 −0 tests/unit/gapic/tables_v1alpha1/test_tables_service.py
32 .flake8
@@ -0,0 +1,32 @@
# -*- 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.
__pycache__,
.git,
*.pyc,
conf.py
@@ -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-area120-tables/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-area120-tables` version: `pip show google-area120-tables`

#### 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-area120-tables/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 @@
releaseType: python
Empty file.
@@ -0,0 +1,61 @@
*.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/
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,45 @@
#!/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

cd github/python-area120-tables

# 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.6 -m pip uninstall --yes --quiet nox-automation

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

# If NOX_SESSION is set, it only runs the specified session,
# otherwise run all the sessions.
if [[ -n "${NOX_SESSION:-}" ]]; then
python3.6 -m nox -s "${NOX_SESSION:-}"
else
python3.6 -m nox
fi
@@ -0,0 +1,27 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Build logs will be here
action {
define_artifacts {
regex: "**/*sponge_log.xml"
}
}

# Download trampoline resources.
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline"

# Download resources for system tests (service account key, etc.)
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/google-cloud-python"

# Use the trampoline script to run in docker.
build_file: "python-area120-tables/.kokoro/trampoline.sh"

# Configure the docker image for kokoro-trampoline.
env_vars: {
key: "TRAMPOLINE_IMAGE"
value: "gcr.io/cloud-devrel-kokoro-resources/python-multi"
}
env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/python-area120-tables/.kokoro/build.sh"
}
@@ -0,0 +1 @@
# Format: //devtools/kokoro/config/proto/build.proto
@@ -0,0 +1,98 @@
# 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
#
# 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.

from ubuntu:20.04

ENV DEBIAN_FRONTEND noninteractive

# Ensure local Python is preferred over distribution Python.
ENV PATH /usr/local/bin:$PATH

# Install dependencies.
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
apt-transport-https \
build-essential \
ca-certificates \
curl \
dirmngr \
git \
gpg-agent \
graphviz \
libbz2-dev \
libdb5.3-dev \
libexpat1-dev \
libffi-dev \
liblzma-dev \
libreadline-dev \
libsnappy-dev \
libssl-dev \
libsqlite3-dev \
portaudio19-dev \
redis-server \
software-properties-common \
ssh \
sudo \
tcl \
tcl-dev \
tk \
tk-dev \
uuid-dev \
wget \
zlib1g-dev \
&& add-apt-repository universe \
&& apt-get update \
&& apt-get -y install jq \
&& apt-get clean autoclean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /var/cache/apt/archives/*.deb


COPY fetch_gpg_keys.sh /tmp
# Install the desired versions of Python.
RUN set -ex \
&& export GNUPGHOME="$(mktemp -d)" \
&& echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf" \
&& /tmp/fetch_gpg_keys.sh \
&& for PYTHON_VERSION in 3.7.8 3.8.5; do \
wget --no-check-certificate -O python-${PYTHON_VERSION}.tar.xz "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" \
&& wget --no-check-certificate -O python-${PYTHON_VERSION}.tar.xz.asc "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" \
&& gpg --batch --verify python-${PYTHON_VERSION}.tar.xz.asc python-${PYTHON_VERSION}.tar.xz \
&& rm -r python-${PYTHON_VERSION}.tar.xz.asc \
&& mkdir -p /usr/src/python-${PYTHON_VERSION} \
&& tar -xJC /usr/src/python-${PYTHON_VERSION} --strip-components=1 -f python-${PYTHON_VERSION}.tar.xz \
&& rm python-${PYTHON_VERSION}.tar.xz \
&& cd /usr/src/python-${PYTHON_VERSION} \
&& ./configure \
--enable-shared \
# This works only on Python 2.7 and throws a warning on every other
# version, but seems otherwise harmless.
--enable-unicode=ucs4 \
--with-system-ffi \
--without-ensurepip \
&& make -j$(nproc) \
&& make install \
&& ldconfig \
; done \
&& rm -rf "${GNUPGHOME}" \
&& rm -rf /usr/src/python* \
&& rm -rf ~/.cache/

RUN wget -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
&& python3.7 /tmp/get-pip.py \
&& python3.8 /tmp/get-pip.py \
&& rm /tmp/get-pip.py

CMD ["python3.7"]

0 comments on commit fc837f9

Please sign in to comment.