Skip to content

Commit

Permalink
chore: update automation naming, smaller generated code fixes (#505)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yoshi-automation authored Feb 18, 2021
1 parent 01e851d commit 4c9947d
Show file tree
Hide file tree
Showing 11 changed files with 144 additions and 154 deletions.
34 changes: 7 additions & 27 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,38 +1,18 @@
# -*- 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
omit =
google/cloud/bigquery/__init__.py
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
# 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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ docs.metadata

# Virtual environment
env/

# Test logs
coverage.xml
sponge_log.xml
*sponge_log.xml

# System test environment variables.
system_tests/local_test_setup
Expand Down
10 changes: 10 additions & 0 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@ python3 -m pip uninstall --yes --quiet nox-automation
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
Expand Down
6 changes: 0 additions & 6 deletions docs/bigquery_v2/services.rst

This file was deleted.

1 change: 1 addition & 0 deletions docs/bigquery_v2/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ Types for Google Cloud Bigquery v2 API

.. automodule:: google.cloud.bigquery_v2.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion google/cloud/bigquery_v2/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
ListModelsResponse,
)


__all__ = (
"EncryptionConfiguration",
"ModelReference",
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/bigquery_v2/types/encryption_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class EncryptionConfiguration(proto.Message):
r"""
Attributes:
kms_key_name (~.wrappers.StringValue):
kms_key_name (google.protobuf.wrappers_pb2.StringValue):
Optional. Describes the Cloud KMS encryption
key that will be used to protect destination
BigQuery table. The BigQuery Service Account
Expand Down
216 changes: 108 additions & 108 deletions google/cloud/bigquery_v2/types/model.py

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions google/cloud/bigquery_v2/types/standard_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ class StandardSqlDataType(proto.Message):
array_element_type="DATE"}} ]}}
Attributes:
type_kind (~.standard_sql.StandardSqlDataType.TypeKind):
type_kind (google.cloud.bigquery_v2.types.StandardSqlDataType.TypeKind):
Required. The top level type of this field.
Can be any standard SQL data type (e.g.,
"INT64", "DATE", "ARRAY").
array_element_type (~.standard_sql.StandardSqlDataType):
array_element_type (google.cloud.bigquery_v2.types.StandardSqlDataType):
The type of the array's elements, if type_kind = "ARRAY".
struct_type (~.standard_sql.StandardSqlStructType):
struct_type (google.cloud.bigquery_v2.types.StandardSqlStructType):
The fields of this struct, in order, if type_kind =
"STRUCT".
"""
Expand Down Expand Up @@ -80,7 +80,7 @@ class StandardSqlField(proto.Message):
name (str):
Optional. The name of this field. Can be
absent for struct fields.
type (~.standard_sql.StandardSqlDataType):
type (google.cloud.bigquery_v2.types.StandardSqlDataType):
Optional. The type of this parameter. Absent
if not explicitly specified (e.g., CREATE
FUNCTION statement can omit the return type; in
Expand All @@ -97,7 +97,7 @@ class StandardSqlStructType(proto.Message):
r"""
Attributes:
fields (Sequence[~.standard_sql.StandardSqlField]):
fields (Sequence[google.cloud.bigquery_v2.types.StandardSqlField]):
"""

Expand Down
12 changes: 7 additions & 5 deletions synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,22 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "df4fd38d040c5c8a0869936205bca13fb64b2cff",
"internalRef": "344443035"
"sha": "e13001be33d69042a9505e698f792587a804a5cf",
"internalRef": "358152223"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e"
"sha": "4dca4132c6d63788c6675e1b1e11e7b9225f8694"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e"
"sha": "4dca4132c6d63788c6675e1b1e11e7b9225f8694"
}
}
],
Expand All @@ -42,6 +42,7 @@
}
],
"generatedFiles": [
".coveragerc",
".flake8",
".github/CONTRIBUTING.md",
".github/ISSUE_TEMPLATE/bug_report.md",
Expand Down Expand Up @@ -95,6 +96,7 @@
"bigquery-v2-py.tar.gz",
"docs/_static/custom.css",
"docs/_templates/layout.html",
"docs/bigquery_v2/model_service.rst",
"docs/bigquery_v2/services.rst",
"docs/bigquery_v2/types.rst",
"docs/conf.py",
Expand Down Expand Up @@ -127,4 +129,4 @@
"setup.cfg",
"testing/.gitignore"
]
}
}
2 changes: 2 additions & 0 deletions synth.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
library,
excludes=[
"docs/index.rst",
"docs/bigquery_v2/*_service.rst",
"docs/bigquery_v2/services.rst",
"README.rst",
"noxfile.py",
"setup.py",
Expand Down

0 comments on commit 4c9947d

Please sign in to comment.