Skip to content
Permalink
Browse files
feat: generate v1beta2
  • Loading branch information
parthea committed Mar 12, 2021
0 parents commit 87afc6ddd4966e4c9acb0a88c556cbcd2fb6b566
Showing with 18,316 additions and 0 deletions.
  1. +18 −0 .coveragerc
  2. +33 −0 .flake8
  3. +11 −0 .github/CODEOWNERS
  4. +28 −0 .github/CONTRIBUTING.md
  5. +43 −0 .github/ISSUE_TEMPLATE/bug_report.md
  6. +18 −0 .github/ISSUE_TEMPLATE/feature_request.md
  7. +7 −0 .github/ISSUE_TEMPLATE/support_request.md
  8. +7 −0 .github/PULL_REQUEST_TEMPLATE.md
  9. +15 −0 .github/header-checker-lint.yml
  10. +1 −0 .github/release-please.yml
  11. 0 .github/snippet-bot.yml
  12. +63 −0 .gitignore
  13. +59 −0 .kokoro/build.sh
  14. +27 −0 .kokoro/continuous/common.cfg
  15. +1 −0 .kokoro/continuous/continuous.cfg
  16. +98 −0 .kokoro/docker/docs/Dockerfile
  17. +45 −0 .kokoro/docker/docs/fetch_gpg_keys.sh
  18. +65 −0 .kokoro/docs/common.cfg
  19. +28 −0 .kokoro/docs/docs-presubmit.cfg
  20. +1 −0 .kokoro/docs/docs.cfg
  21. +43 −0 .kokoro/populate-secrets.sh
  22. +27 −0 .kokoro/presubmit/common.cfg
  23. +1 −0 .kokoro/presubmit/presubmit.cfg
  24. +64 −0 .kokoro/publish-docs.sh
  25. +32 −0 .kokoro/release.sh
  26. +40 −0 .kokoro/release/common.cfg
  27. +1 −0 .kokoro/release/release.cfg
  28. +34 −0 .kokoro/samples/lint/common.cfg
  29. +6 −0 .kokoro/samples/lint/continuous.cfg
  30. +6 −0 .kokoro/samples/lint/periodic.cfg
  31. +6 −0 .kokoro/samples/lint/presubmit.cfg
  32. +40 −0 .kokoro/samples/python3.6/common.cfg
  33. +7 −0 .kokoro/samples/python3.6/continuous.cfg
  34. +6 −0 .kokoro/samples/python3.6/periodic.cfg
  35. +6 −0 .kokoro/samples/python3.6/presubmit.cfg
  36. +40 −0 .kokoro/samples/python3.7/common.cfg
  37. +6 −0 .kokoro/samples/python3.7/continuous.cfg
  38. +6 −0 .kokoro/samples/python3.7/periodic.cfg
  39. +6 −0 .kokoro/samples/python3.7/presubmit.cfg
  40. +40 −0 .kokoro/samples/python3.8/common.cfg
  41. +6 −0 .kokoro/samples/python3.8/continuous.cfg
  42. +6 −0 .kokoro/samples/python3.8/periodic.cfg
  43. +6 −0 .kokoro/samples/python3.8/presubmit.cfg
  44. +110 −0 .kokoro/test-samples.sh
  45. +28 −0 .kokoro/trampoline.sh
  46. +487 −0 .kokoro/trampoline_v2.sh
  47. +17 −0 .pre-commit-config.yaml
  48. +12 −0 .repo-metadata.json
  49. +52 −0 .trampolinerc
  50. +1 −0 CHANGELOG.md
  51. +95 −0 CODE_OF_CONDUCT.md
  52. +274 −0 CONTRIBUTING.rst
  53. +202 −0 LICENSE
  54. +25 −0 MANIFEST.in
  55. +86 −0 README.rst
  56. +86 −0 docs/README.rst
  57. +9 −0 docs/_static/custom.css
  58. +50 −0 docs/_templates/layout.html
  59. +11 −0 docs/artifactregistry_v1beta2/artifact_registry.rst
  60. +6 −0 docs/artifactregistry_v1beta2/services.rst
  61. +7 −0 docs/artifactregistry_v1beta2/types.rst
  62. +1 −0 docs/changelog.md
  63. +366 −0 docs/conf.py
  64. +21 −0 docs/index.rst
  65. +7 −0 docs/multiprocessing.rst
  66. +100 −0 google/cloud/artifactregistry/__init__.py
  67. +2 −0 google/cloud/artifactregistry/py.typed
  68. +85 −0 google/cloud/artifactregistry_v1beta2/__init__.py
  69. +2 −0 google/cloud/artifactregistry_v1beta2/py.typed
  70. +16 −0 google/cloud/artifactregistry_v1beta2/services/__init__.py
  71. +24 −0 google/cloud/artifactregistry_v1beta2/services/artifact_registry/__init__.py
  72. +2,037 −0 google/cloud/artifactregistry_v1beta2/services/artifact_registry/async_client.py
  73. +2,150 −0 google/cloud/artifactregistry_v1beta2/services/artifact_registry/client.py
  74. +673 −0 google/cloud/artifactregistry_v1beta2/services/artifact_registry/pagers.py
  75. +35 −0 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/__init__.py
  76. +514 −0 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/base.py
  77. +832 −0 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/grpc.py
  78. +862 −0 google/cloud/artifactregistry_v1beta2/services/artifact_registry/transports/grpc_asyncio.py
  79. +92 −0 google/cloud/artifactregistry_v1beta2/types/__init__.py
  80. +160 −0 google/cloud/artifactregistry_v1beta2/types/file.py
  81. +128 −0 google/cloud/artifactregistry_v1beta2/types/package.py
  82. +198 −0 google/cloud/artifactregistry_v1beta2/types/repository.py
  83. +30 −0 google/cloud/artifactregistry_v1beta2/types/service.py
  84. +24 −0 google/cloud/artifactregistry_v1beta2/types/settings.py
  85. +174 −0 google/cloud/artifactregistry_v1beta2/types/tag.py
  86. +162 −0 google/cloud/artifactregistry_v1beta2/types/version.py
  87. +3 −0 mypy.ini
  88. +232 −0 noxfile.py
  89. +5 −0 renovate.json
  90. +46 −0 scripts/decrypt-secrets.sh
  91. +199 −0 scripts/fixup_artifactregistry_v1beta2_keywords.py
  92. +66 −0 scripts/readme-gen/readme_gen.py
  93. +87 −0 scripts/readme-gen/templates/README.tmpl.rst
  94. +9 −0 scripts/readme-gen/templates/auth.tmpl.rst
  95. +14 −0 scripts/readme-gen/templates/auth_api_key.tmpl.rst
  96. +29 −0 scripts/readme-gen/templates/install_deps.tmpl.rst
  97. +35 −0 scripts/readme-gen/templates/install_portaudio.tmpl.rst
  98. +19 −0 setup.cfg
  99. +66 −0 setup.py
  100. +35 −0 synth.metadata
  101. +54 −0 synth.py
  102. +3 −0 testing/.gitignore
  103. +16 −0 tests/unit/gapic/artifactregistry_v1beta2/__init__.py
  104. +6,142 −0 tests/unit/gapic/artifactregistry_v1beta2/test_artifact_registry.py
@@ -0,0 +1,18 @@
[run]
branch = True

[report]
fail_under = 100
show_missing = True
omit =
google/cloud/artifactregistry/__init__.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
# Ignore debug-only repr
def __repr__
# Ignore pkg_resources exceptions.
# This is added at the module level as a safeguard for if someone
# generates the code and tries to run it without pip installing. This
# makes it virtually impossible to test properly.
except pkg_resources.DistributionNotFound
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,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-artifact-registry/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-artifact-registry` version: `pip show google-cloud-artifact-registry`

#### 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-artifact-registry/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"],
"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-artifact-registry"
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
@@ -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-artifact-registry/.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-artifact-registry/.kokoro/build.sh"
}
@@ -0,0 +1 @@
# Format: //devtools/kokoro/config/proto/build.proto
Loading

0 comments on commit 87afc6d

Please sign in to comment.