Skip to content

Commit 7cd060e

Browse files
committed
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-samples
2 parents bda7c60 + ae58bf7 commit 7cd060e

937 files changed

Lines changed: 20863 additions & 4288 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/CODEOWNERS‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,32 @@
1010
* @GoogleCloudPlatform/python-samples-owners
1111

1212
/appengine/**/*.py @engelke @GoogleCloudPlatform/python-samples-owners
13-
/auth/**/*.py @busunkim96 @GoogleCloudPlatform/python-samples-owners
13+
/auth/**/*.py @busunkim96 @GoogleCloudPlatform/python-samples-owners
1414
/automl/**/*.py @telpirion @sirtorry @GoogleCloudPlatform/python-samples-owners
1515
/billing/**/*.py @GoogleCloudPlatform/billing-samples-maintainers @GoogleCloudPlatform/python-samples-owners
1616
/bigquery/**/*.py @shollyman @GoogleCloudPlatform/python-samples-owners
1717
/bigquery_storage/**/*.py @shollyman @GoogleCloudPlatform/python-samples-owners
18-
/bigtable/**/*.py @GoogleCloudPlatform/bigtable-dpe @GoogleCloudPlatform/python-samples-owners
18+
/bigtable/**/*.py @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/python-samples-owners
1919
/blog/**/*.py @GoogleCloudPlatform/python-samples-owners
20+
/channel/**/*.py @max-mathieu @GoogleCloudPlatform/python-samples-owners
2021
/cdn/**/*.py @mpwarres @elithrar @GoogleCloudPlatform/python-samples-owners
21-
/cloud-sql/**/*.py @GoogleCloudPlatform/cloud-sql-dpes @GoogleCloudPlatform/python-samples-owners
22+
/cloud-sql/**/*.py @GoogleCloudPlatform/infra-db-dpes @GoogleCloudPlatform/python-samples-owners
2223
/codelabs/**/*.py @GoogleCloudPlatform/python-samples-owners
2324
/composer/**/*.py @leahecole @rachael-ds @rafalbiegacz @GoogleCloudPlatform/python-samples-owners
24-
/compute/**/*.py @GoogleCloudPlatform/python-samples-owners
25+
/compute/**/*.py @m-strzelczyk @GoogleCloudPlatform/python-samples-owners
2526
/container_registry/**/*.py @donmccasland @dinagraves @kelsk @GoogleCloudPlatform/python-samples-owners
2627
/data-science-onramp/ @leahecole @bradmiro @GoogleCloudPlatform/python-samples-owners
2728
/datacatalog/**/*.py @shollyman @GoogleCloudPlatform/python-samples-owners
2829
/dataflow/**/*.py @davidcavazos @GoogleCloudPlatform/python-samples-owners
2930
/datalabeling/**/*.py @sgreenberg @GoogleCloudPlatform/python-samples-owners
3031
/dataproc/**/*.py @bradmiro @GoogleCloudPlatform/python-samples-owners
31-
/datastore/**/*.py @GoogleCloudPlatform/firestore-dpe @GoogleCloudPlatform/python-samples-owners
32+
/datastore/**/*.py @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/python-samples-owners
3233
/dlp/**/*.py @GoogleCloudPlatform/python-samples-owners
3334
/dns/**/*.py @michaelawyu @GoogleCloudPlatform/python-samples-owners
3435
/endpoints/**/*.py @GoogleCloudPlatform/python-samples-owners
3536
/error_reporting/**/*.py @GoogleCloudPlatform/observability-devx @GoogleCloudPlatform/python-samples-owners
3637
/eventarc/**/*.py @averikitsch @grant @GoogleCloudPlatform/python-samples-owners
37-
/firestore/**/*.py @GoogleCloudPlatform/firestore-dpe @GoogleCloudPlatform/python-samples-owners
38+
/firestore/**/*.py @GoogleCloudPlatform/cloud-native-db-dpes @GoogleCloudPlatform/python-samples-owners
3839
/functions/**/*.py @ace-n @grant @GoogleCloudPlatform/python-samples-owners
3940
/healthcare/**/*.py @noerog @GoogleCloudPlatform/python-samples-owners
4041
/iam/**/*.py @GoogleCloudPlatform/python-samples-owners
@@ -49,6 +50,7 @@
4950
/ml_engine/**/*.py @alecglassford @GoogleCloudPlatform/python-samples-owners
5051
/monitoring/**/*.py @GoogleCloudPlatform/python-samples-owners
5152
/monitoring/opencensus @yuriatgoogle @GoogleCloudPlatform/python-samples-owners
53+
/monitoring/prometheus @yuriatgoogle @GoogleCloudPlatform/python-samples-owners
5254
/notebooks/**/*.py @alixhami @sirtorry @GoogleCloudPlatform/python-samples-owners
5355
/opencensus/**/*.py @GoogleCloudPlatform/python-samples-owners
5456
/profiler/**/*.py @kalyanac @GoogleCloudPlatform/python-samples-owners
@@ -58,11 +60,12 @@
5860
/scheduler/**/*.py @averikitsch @GoogleCloudPlatform/python-samples-owners
5961
/spanner/**/*.py @larkee @GoogleCloudPlatform/python-samples-owners
6062
/speech/**/*.py @telpirion @sirtorry @GoogleCloudPlatform/python-samples-owners
61-
/storage/**/*.py @GoogleCloudPlatform/storage-dpe @GoogleCloudPlatform/python-samples-owners
63+
/storage/**/*.py @GoogleCloudPlatform/cloud-storage-dpes @GoogleCloudPlatform/python-samples-owners
6264
/tables/automl/**/*.py @telpirion @sirtorry @GoogleCloudPlatform/python-samples-owners
6365
/tasks/**/*.py @averikitsch @GoogleCloudPlatform/python-samples-owners
6466
/texttospeech/**/*.py @telpirion @sirtorry @GoogleCloudPlatform/python-samples-owners
65-
/trace/**/*.py @dukeng @ziweizhao @GoogleCloudPlatform/python-samples-owners
67+
/trace/**/*.py @ymotongpoo @GoogleCloudPlatform/python-samples-owners
6668
/translate/**/*.py @telpirion @sirtorry @GoogleCloudPlatform/python-samples-owners
6769
/video/**/*.py @telpirion @sirtorry @GoogleCloudPlatform/python-samples-owners
6870
/vision/**/*.py @telpirion @sirtorry @GoogleCloudPlatform/python-samples-owners
71+
/workflows/**/*.py @grant @GoogleCloudPlatform/python-samples-owners

‎.github/blunderbuss.yml‎

Lines changed: 53 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
assign_issues_by:
216
- labels:
317
- 'api: appengine'
@@ -26,16 +40,22 @@ assign_issues_by:
2640
- shollyman
2741
- labels:
2842
- 'api: bigtable'
43+
- 'api: datastore'
44+
- 'api: firestore'
2945
to:
30-
- billyjacobson
46+
- GoogleCloudPlatform/cloud-native-db-dpes
3147
- labels:
3248
- 'api: billingbudgets'
3349
to:
3450
- GoogleCloudPlatform/billing-samples-maintainers
3551
- labels:
3652
- 'api: cloudsql'
3753
to:
38-
- GoogleCloudPlatform/cloud-sql-dpes
54+
- GoogleCloudPlatform/infra-db-dpes
55+
- labels:
56+
- 'api: compute'
57+
to:
58+
- m-strzelczyk
3959
- labels:
4060
- 'api: containeranalysis'
4161
to:
@@ -51,11 +71,6 @@ assign_issues_by:
5171
- 'api: dataproc'
5272
to:
5373
- bradmiro
54-
- labels:
55-
- 'api: datastore'
56-
- 'api: firestore'
57-
to:
58-
- GoogleCloudPlatform/firestore-dpe
5974
- labels:
6075
- 'api: dns'
6176
to:
@@ -108,27 +123,55 @@ assign_issues_by:
108123
- labels:
109124
- 'api: storage'
110125
to:
111-
- GoogleCloudPlatform/storage-dpe
126+
- cojenco
127+
- andrewsg
112128
- labels:
113129
- 'api: cloudtrace'
114130
- 'api: trace'
115131
to:
116132
- dukeng
117133
- ziweizhao
134+
- labels:
135+
- 'api: cloudiot'
136+
to:
137+
- fjanosi-google
138+
- joeklemm
139+
- labels:
140+
- 'api: datascienceonramp'
141+
to:
142+
- leahecole
143+
- bradmiro
144+
145+
assign_prs_by:
146+
- labels:
147+
- 'api: bigtable'
148+
- 'api: datastore'
149+
- 'api: firestore'
150+
to:
151+
- GoogleCloudPlatform/cloud-native-db-dpes
152+
- labels:
153+
- 'api: cloudiot'
154+
to:
155+
- fjanosi-google
156+
- joeklemm
157+
- labels:
158+
- 'api: cloudsql'
159+
to:
160+
- GoogleCloudPlatform/infra-db-dpes
118161

119162

120163
assign_issues:
121164
- busunkim96
122165
- leahecole
123-
- tmatsuo
124166
- engelke
125167
- kurtisvg
126168
- dinagraves
169+
- dandhlee
127170

128171
assign_prs:
129172
- busunkim96
130173
- leahecole
131-
- tmatsuo
132174
- engelke
133175
- kurtisvg
134176
- dinagraves
177+
- dandhlee

‎.github/header-checker-lint.yml‎

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
1-
{"allowedCopyrightHolders": ["Google LLC", "Google, Inc"],
2-
"allowedLicenses": ["Apache-2.0", "MIT", "BSD-3"],
3-
"ignoreFiles": ["**/requirements.txt", "**/requirements-test.txt", "**/requirements-composer.txt", "**/__init__.py"],
4-
"sourceFileExtensions": [
5-
"ts",
6-
"js",
7-
"java",
8-
"sh",
9-
"Dockerfile",
10-
"yaml",
11-
"py",
12-
"html",
13-
"txt"
14-
]
15-
}
1+
allowedCopyrightHolders:
2+
- "Google LLC"
3+
- "Google, Inc"
4+
5+
allowedLicenses:
6+
- "Apache-2.0"
7+
- "MIT"
8+
- "BSD-3"
9+
10+
ignoreFiles:
11+
- "**/requirements.txt"
12+
- "**/requirements-test.txt"
13+
- "**/requirements-composer.txt"
14+
- "**/__init__.py"
15+
- "**/constraints.txt"
16+
- "**/constraints-test.txt"
17+
18+
sourceFileExtensions:
19+
- "ts"
20+
- "js"
21+
- "java"
22+
- "sh"
23+
- "Dockerfile"
24+
- "yaml"
25+
- "py"
26+
- "html"
27+
- "txt"

‎.github/snippet-bot.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
aggregateChecks: true
2+
alwaysCreateStatusCheck: true
3+
ignoreFiles:
4+
- README.md

‎.github/sync-repo-settings.yaml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
# Whether or not rebase-merging is enabled on this repository.
216
# Defaults to `true`
317
rebaseMergeAllowed: true
@@ -34,6 +48,7 @@ branchProtectionRules:
3448
- "Kokoro CI - Python 3.7"
3549
- "Kokoro CI - Python 3.8"
3650
- "cla/google"
51+
- "snippet-bot check"
3752
# List of explicit permissions to add (additive only)
3853
permissionRules:
3954
# Team slug to add to repository permissions

‎.kokoro/docker/Dockerfile‎

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# rate limit.
1717
# FROM mirror.gcr.io/library/ubuntu:18.04
1818
# However, now the above image is not working, we're using our own cache
19-
FROM gcr.io/cloud-devrel-kokoro-resources/ubuntu:18.04
19+
FROM gcr.io/cloud-devrel-kokoro-resources/ubuntu:20.04
2020

2121
ENV DEBIAN_FRONTEND noninteractive
2222

@@ -87,9 +87,21 @@ RUN apt-get update \
8787
&& rm -rf /var/lib/apt/lists/* \
8888
&& rm -f /var/cache/apt/archives/*.deb
8989

90+
# Install Bazel for compiling Tink in Cloud SQL Client Side Encryption Samples
91+
# TODO: Delete this section once google/tink#483 is resolved
92+
RUN apt install -y curl gpgconf gpg \
93+
&& curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor > bazel.gpg \
94+
&& mv bazel.gpg /etc/apt/trusted.gpg.d/ \
95+
&& echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list \
96+
&& apt update && apt install -y bazel \
97+
&& apt-get clean autoclean \
98+
&& apt-get autoremove -y \
99+
&& rm -rf /var/lib/apt/lists/* \
100+
&& rm -f /var/cache/apt/archives/*.deb
101+
90102
# Install Microsoft ODBC 17 Driver and unixodbc for testing SQL Server samples
91103
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
92-
&& curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list \
104+
&& curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list \
93105
&& apt-get update \
94106
&& ACCEPT_EULA=Y apt-get install -y --no-install-recommends \
95107
msodbcsql17 \
@@ -105,7 +117,7 @@ RUN set -ex \
105117
&& export GNUPGHOME="$(mktemp -d)" \
106118
&& echo "disable-ipv6" >> "${GNUPGHOME}/dirmngr.conf" \
107119
&& /tmp/fetch_gpg_keys.sh \
108-
&& for PYTHON_VERSION in 2.7.18 3.6.12 3.7.9 3.8.7 3.9.1; do \
120+
&& for PYTHON_VERSION in 2.7.18 3.6.13 3.7.10 3.8.8 3.9.2; do \
109121
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" \
110122
&& 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" \
111123
&& gpg --batch --verify python-${PYTHON_VERSION}.tar.xz.asc python-${PYTHON_VERSION}.tar.xz \
@@ -133,7 +145,7 @@ RUN set -ex \
133145
# Install pip on Python 3.6 only.
134146
# If the environment variable is called "PIP_VERSION", pip explodes with
135147
# "ValueError: invalid truth value '<VERSION>'"
136-
ENV PYTHON_PIP_VERSION 10.0.1
148+
ENV PYTHON_PIP_VERSION 20.2.4
137149
RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' \
138150
&& python3.6 /tmp/get-pip.py "pip==$PYTHON_PIP_VERSION" \
139151
# we use "--force-reinstall" for the case where the version of pip we're trying to install is the same as the version bundled with Python
@@ -153,7 +165,7 @@ RUN rm /tmp/get-pip.py
153165
RUN pip install --no-cache-dir virtualenv
154166

155167
# Setup Cloud SDK
156-
ENV CLOUD_SDK_VERSION 304.0.0
168+
ENV CLOUD_SDK_VERSION 339.0.0
157169
# Use system python for cloud sdk.
158170
ENV CLOUDSDK_PYTHON python3.6
159171
RUN wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-$CLOUD_SDK_VERSION-linux-x86_64.tar.gz

‎.travis.yml‎

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)