Skip to content

Commit 4c9947d

Browse files
chore: update automation naming, smaller generated code fixes (#505)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/9d4e6069-5c18-4f79-97fb-99ebae377691/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 350246057 Source-Link: googleapis/googleapis@5206824 PiperOrigin-RevId: 347055288 Source-Link: googleapis/googleapis@dd372aa
1 parent 01e851d commit 4c9947d

File tree

11 files changed

+144
-154
lines changed

11 files changed

+144
-154
lines changed

.coveragerc

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,18 @@
1-
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2020 Google LLC
4-
#
5-
# Licensed under the Apache License, Version 2.0 (the "License");
6-
# you may not use this file except in compliance with the License.
7-
# You may obtain a copy of the License at
8-
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
10-
#
11-
# Unless required by applicable law or agreed to in writing, software
12-
# distributed under the License is distributed on an "AS IS" BASIS,
13-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14-
# See the License for the specific language governing permissions and
15-
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
181
[run]
192
branch = True
20-
omit =
21-
google/cloud/__init__.py
223

234
[report]
245
fail_under = 100
256
show_missing = True
7+
omit =
8+
google/cloud/bigquery/__init__.py
269
exclude_lines =
2710
# Re-enable the standard pragma
2811
pragma: NO COVER
2912
# Ignore debug-only repr
3013
def __repr__
31-
# Ignore abstract methods
32-
raise NotImplementedError
33-
omit =
34-
*/gapic/*.py
35-
*/proto/*.py
36-
*/core/*.py
37-
*/site-packages/*.py
38-
google/cloud/__init__.py
14+
# Ignore pkg_resources exceptions.
15+
# This is added at the module level as a safeguard for if someone
16+
# generates the code and tries to run it without pip installing. This
17+
# makes it virtually impossible to test properly.
18+
except pkg_resources.DistributionNotFound

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ docs.metadata
5050

5151
# Virtual environment
5252
env/
53+
54+
# Test logs
5355
coverage.xml
54-
sponge_log.xml
56+
*sponge_log.xml
5557

5658
# System test environment variables.
5759
system_tests/local_test_setup

.kokoro/build.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ python3 -m pip uninstall --yes --quiet nox-automation
4040
python3 -m pip install --upgrade --quiet nox
4141
python3 -m nox --version
4242

43+
# If this is a continuous build, send the test log to the FlakyBot.
44+
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/flakybot.
45+
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
46+
cleanup() {
47+
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
48+
$KOKORO_GFILE_DIR/linux_amd64/flakybot
49+
}
50+
trap cleanup EXIT HUP
51+
fi
52+
4353
# If NOX_SESSION is set, it only runs the specified session,
4454
# otherwise run all the sessions.
4555
if [[ -n "${NOX_SESSION:-}" ]]; then

docs/bigquery_v2/services.rst

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

docs/bigquery_v2/types.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ Types for Google Cloud Bigquery v2 API
33

44
.. automodule:: google.cloud.bigquery_v2.types
55
:members:
6+
:undoc-members:
67
:show-inheritance:

google/cloud/bigquery_v2/types/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
ListModelsResponse,
3333
)
3434

35-
3635
__all__ = (
3736
"EncryptionConfiguration",
3837
"ModelReference",

google/cloud/bigquery_v2/types/encryption_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class EncryptionConfiguration(proto.Message):
3030
r"""
3131
3232
Attributes:
33-
kms_key_name (~.wrappers.StringValue):
33+
kms_key_name (google.protobuf.wrappers_pb2.StringValue):
3434
Optional. Describes the Cloud KMS encryption
3535
key that will be used to protect destination
3636
BigQuery table. The BigQuery Service Account

google/cloud/bigquery_v2/types/model.py

Lines changed: 108 additions & 108 deletions
Large diffs are not rendered by default.

google/cloud/bigquery_v2/types/standard_sql.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ class StandardSqlDataType(proto.Message):
3333
array_element_type="DATE"}} ]}}
3434
3535
Attributes:
36-
type_kind (~.standard_sql.StandardSqlDataType.TypeKind):
36+
type_kind (google.cloud.bigquery_v2.types.StandardSqlDataType.TypeKind):
3737
Required. The top level type of this field.
3838
Can be any standard SQL data type (e.g.,
3939
"INT64", "DATE", "ARRAY").
40-
array_element_type (~.standard_sql.StandardSqlDataType):
40+
array_element_type (google.cloud.bigquery_v2.types.StandardSqlDataType):
4141
The type of the array's elements, if type_kind = "ARRAY".
42-
struct_type (~.standard_sql.StandardSqlStructType):
42+
struct_type (google.cloud.bigquery_v2.types.StandardSqlStructType):
4343
The fields of this struct, in order, if type_kind =
4444
"STRUCT".
4545
"""
@@ -80,7 +80,7 @@ class StandardSqlField(proto.Message):
8080
name (str):
8181
Optional. The name of this field. Can be
8282
absent for struct fields.
83-
type (~.standard_sql.StandardSqlDataType):
83+
type (google.cloud.bigquery_v2.types.StandardSqlDataType):
8484
Optional. The type of this parameter. Absent
8585
if not explicitly specified (e.g., CREATE
8686
FUNCTION statement can omit the return type; in
@@ -97,7 +97,7 @@ class StandardSqlStructType(proto.Message):
9797
r"""
9898
9999
Attributes:
100-
fields (Sequence[~.standard_sql.StandardSqlField]):
100+
fields (Sequence[google.cloud.bigquery_v2.types.StandardSqlField]):
101101
102102
"""
103103

synth.metadata

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,22 @@
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "df4fd38d040c5c8a0869936205bca13fb64b2cff",
15-
"internalRef": "344443035"
14+
"sha": "e13001be33d69042a9505e698f792587a804a5cf",
15+
"internalRef": "358152223"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e"
22+
"sha": "4dca4132c6d63788c6675e1b1e11e7b9225f8694"
2323
}
2424
},
2525
{
2626
"git": {
2727
"name": "synthtool",
2828
"remote": "https://github.com/googleapis/synthtool.git",
29-
"sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e"
29+
"sha": "4dca4132c6d63788c6675e1b1e11e7b9225f8694"
3030
}
3131
}
3232
],
@@ -42,6 +42,7 @@
4242
}
4343
],
4444
"generatedFiles": [
45+
".coveragerc",
4546
".flake8",
4647
".github/CONTRIBUTING.md",
4748
".github/ISSUE_TEMPLATE/bug_report.md",
@@ -95,6 +96,7 @@
9596
"bigquery-v2-py.tar.gz",
9697
"docs/_static/custom.css",
9798
"docs/_templates/layout.html",
99+
"docs/bigquery_v2/model_service.rst",
98100
"docs/bigquery_v2/services.rst",
99101
"docs/bigquery_v2/types.rst",
100102
"docs/conf.py",
@@ -127,4 +129,4 @@
127129
"setup.cfg",
128130
"testing/.gitignore"
129131
]
130-
}
132+
}

0 commit comments

Comments
 (0)