Skip to content

Commit 9230f1c

Browse files
chore: Re-generated to pick up changes from synthtool. (#98)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * fix: address lint issues Source-Author: Leah E. Cole <6719667+leahecole@users.noreply.github.com> Source-Date: Thu Nov 12 11:30:49 2020 -0800 Source-Repo: googleapis/synthtool Source-Sha: e89175cf074dccc4babb4eca66ae913696e47a71 Source-Link: googleapis/synthtool@e89175c * docs(python): update intersphinx for grpc and auth * docs(python): update intersphinx for grpc and auth * use https for python intersphinx Co-authored-by: Tim Swast <swast@google.com> Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Wed Nov 18 14:37:25 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 9a7d9fbb7045c34c9d3d22c1ff766eeae51f04c9 Source-Link: googleapis/synthtool@9a7d9fb * docs(python): fix intersphinx link for google-auth Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Thu Nov 19 10:16:05 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: a073c873f3928c561bdf87fdfbf1d081d1998984 Source-Link: googleapis/synthtool@a073c87
1 parent 73c3fc0 commit 9230f1c

File tree

5 files changed

+166
-43
lines changed

5 files changed

+166
-43
lines changed

packages/google-cloud-logging/google/cloud/logging_v2/types/__init__.py

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,6 @@
4444
GetCmekSettingsRequest,
4545
UpdateCmekSettingsRequest,
4646
CmekSettings,
47-
LifecycleState,
48-
)
49-
from .logging_metrics import (
50-
LogMetric,
51-
ListLogMetricsRequest,
52-
ListLogMetricsResponse,
53-
GetLogMetricRequest,
54-
CreateLogMetricRequest,
55-
UpdateLogMetricRequest,
56-
DeleteLogMetricRequest,
5747
)
5848
from .logging import (
5949
DeleteLogRequest,
@@ -67,6 +57,16 @@
6757
ListLogsRequest,
6858
ListLogsResponse,
6959
)
60+
from .logging_metrics import (
61+
LogMetric,
62+
ListLogMetricsRequest,
63+
ListLogMetricsResponse,
64+
GetLogMetricRequest,
65+
CreateLogMetricRequest,
66+
UpdateLogMetricRequest,
67+
DeleteLogMetricRequest,
68+
)
69+
7070

7171
__all__ = (
7272
"LogEntry",
@@ -95,14 +95,6 @@
9595
"GetCmekSettingsRequest",
9696
"UpdateCmekSettingsRequest",
9797
"CmekSettings",
98-
"LifecycleState",
99-
"LogMetric",
100-
"ListLogMetricsRequest",
101-
"ListLogMetricsResponse",
102-
"GetLogMetricRequest",
103-
"CreateLogMetricRequest",
104-
"UpdateLogMetricRequest",
105-
"DeleteLogMetricRequest",
10698
"DeleteLogRequest",
10799
"WriteLogEntriesRequest",
108100
"WriteLogEntriesResponse",
@@ -113,4 +105,11 @@
113105
"ListMonitoredResourceDescriptorsResponse",
114106
"ListLogsRequest",
115107
"ListLogsResponse",
108+
"LogMetric",
109+
"ListLogMetricsRequest",
110+
"ListLogMetricsResponse",
111+
"GetLogMetricRequest",
112+
"CreateLogMetricRequest",
113+
"UpdateLogMetricRequest",
114+
"DeleteLogMetricRequest",
116115
)

packages/google-cloud-logging/noxfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
DEFAULT_PYTHON_VERSION = "3.8"
3030
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8"]
31-
UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8"]
31+
UNIT_TEST_PYTHON_VERSIONS = ["3.6", "3.7", "3.8", "3.9"]
3232

3333

3434
@nox.session(python=DEFAULT_PYTHON_VERSION)

packages/google-cloud-logging/samples/snippets/README.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
.. This file is automatically generated. Do not edit this file directly.
23
34
Cloud Logging Python Samples
@@ -19,6 +20,7 @@ Setup
1920
-------------------------------------------------------------------------------
2021

2122

23+
2224
Authentication
2325
++++++++++++++
2426

@@ -30,14 +32,16 @@ credentials for applications.
3032
https://cloud.google.com/docs/authentication/getting-started
3133

3234

35+
36+
3337
Install Dependencies
3438
++++++++++++++++++++
3539

36-
#. Clone python-logging and change directory to the sample directory you want to use.
40+
#. Clone python-docs-samples and change directory to the sample directory you want to use.
3741

3842
.. code-block:: bash
3943
40-
$ git clone https://github.com/googleapis/python-logging.git
44+
$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
4145
4246
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
4347

@@ -61,6 +65,10 @@ Install Dependencies
6165
.. _virtualenv: https://virtualenv.pypa.io/
6266

6367

68+
69+
70+
71+
6472
Samples
6573
-------------------------------------------------------------------------------
6674

@@ -82,6 +90,7 @@ To run this sample:
8290
8391
8492
93+
8594
Snippets
8695
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
8796

@@ -120,6 +129,7 @@ To run this sample:
120129
121130
122131
132+
123133
Export
124134
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
125135

@@ -158,6 +168,10 @@ To run this sample:
158168
159169
160170
171+
172+
173+
174+
161175
The client library
162176
-------------------------------------------------------------------------------
163177
@@ -173,4 +187,5 @@ to `browse the source`_ and `report issues`_.
173187
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
174188
175189
176-
.. _Google Cloud SDK: https://cloud.google.com/sdk/
190+
191+
.. _Google Cloud SDK: https://cloud.google.com/sdk/

packages/google-cloud-logging/samples/snippets/noxfile.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,28 @@
3737

3838
TEST_CONFIG = {
3939
# You can opt out from the test for specific Python versions.
40-
"ignored_versions": ["2.7"],
40+
'ignored_versions': ["2.7"],
41+
4142
# Old samples are opted out of enforcing Python type hints
4243
# All new samples should feature them
43-
"enforce_type_hints": False,
44+
'enforce_type_hints': False,
45+
4446
# An envvar key for determining the project id to use. Change it
4547
# to 'BUILD_SPECIFIC_GCLOUD_PROJECT' if you want to opt in using a
4648
# build specific Cloud project. You can also use your own string
4749
# to use your own Cloud project.
48-
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
50+
'gcloud_project_env': 'GOOGLE_CLOUD_PROJECT',
4951
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
52+
5053
# A dictionary you want to inject into your test. Don't put any
5154
# secrets here. These values will override predefined values.
52-
"envs": {},
55+
'envs': {},
5356
}
5457

5558

5659
try:
5760
# Ensure we can import noxfile_config in the project's directory.
58-
sys.path.append(".")
61+
sys.path.append('.')
5962
from noxfile_config import TEST_CONFIG_OVERRIDE
6063
except ImportError as e:
6164
print("No user noxfile_config found: detail: {}".format(e))
@@ -70,12 +73,12 @@ def get_pytest_env_vars():
7073
ret = {}
7174

7275
# Override the GCLOUD_PROJECT and the alias.
73-
env_key = TEST_CONFIG["gcloud_project_env"]
76+
env_key = TEST_CONFIG['gcloud_project_env']
7477
# This should error out if not set.
75-
ret["GOOGLE_CLOUD_PROJECT"] = os.environ[env_key]
78+
ret['GOOGLE_CLOUD_PROJECT'] = os.environ[env_key]
7679

7780
# Apply user supplied envs.
78-
ret.update(TEST_CONFIG["envs"])
81+
ret.update(TEST_CONFIG['envs'])
7982
return ret
8083

8184

@@ -84,7 +87,7 @@ def get_pytest_env_vars():
8487
ALL_VERSIONS = ["2.7", "3.6", "3.7", "3.8"]
8588

8689
# Any default versions that should be ignored.
87-
IGNORED_VERSIONS = TEST_CONFIG["ignored_versions"]
90+
IGNORED_VERSIONS = TEST_CONFIG['ignored_versions']
8891

8992
TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS])
9093

@@ -133,7 +136,7 @@ def _determine_local_import_names(start_dir):
133136

134137
@nox.session
135138
def lint(session):
136-
if not TEST_CONFIG["enforce_type_hints"]:
139+
if not TEST_CONFIG['enforce_type_hints']:
137140
session.install("flake8", "flake8-import-order")
138141
else:
139142
session.install("flake8", "flake8-import-order", "flake8-annotations")
@@ -142,11 +145,9 @@ def lint(session):
142145
args = FLAKE8_COMMON_ARGS + [
143146
"--application-import-names",
144147
",".join(local_names),
145-
".",
148+
"."
146149
]
147150
session.run("flake8", *args)
148-
149-
150151
#
151152
# Black
152153
#
@@ -159,7 +160,6 @@ def blacken(session):
159160

160161
session.run("black", *python_files)
161162

162-
163163
#
164164
# Sample Tests
165165
#
@@ -199,9 +199,9 @@ def py(session):
199199
if session.python in TESTED_VERSIONS:
200200
_session_tests(session)
201201
else:
202-
session.skip(
203-
"SKIPPED: {} tests are disabled for this sample.".format(session.python)
204-
)
202+
session.skip("SKIPPED: {} tests are disabled for this sample.".format(
203+
session.python
204+
))
205205

206206

207207
#

packages/google-cloud-logging/synth.metadata

Lines changed: 113 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "git@github.com:googleapis/python-logging",
7-
"sha": "8466c62f459af6c2d89b411297df06988e45b522"
6+
"remote": "https://github.com/googleapis/python-logging.git",
7+
"sha": "4e24b3c360adef8d7761573d789867857586337d"
88
}
99
},
1010
{
@@ -19,14 +19,14 @@
1919
"git": {
2020
"name": "synthtool",
2121
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279"
22+
"sha": "a073c873f3928c561bdf87fdfbf1d081d1998984"
2323
}
2424
},
2525
{
2626
"git": {
2727
"name": "synthtool",
2828
"remote": "https://github.com/googleapis/synthtool.git",
29-
"sha": "7db8a6c5ffb12a6e4c2f799c18f00f7f3d60e279"
29+
"sha": "a073c873f3928c561bdf87fdfbf1d081d1998984"
3030
}
3131
}
3232
],
@@ -40,5 +40,114 @@
4040
"generator": "bazel"
4141
}
4242
}
43+
],
44+
"generatedFiles": [
45+
".flake8",
46+
".github/CONTRIBUTING.md",
47+
".github/ISSUE_TEMPLATE/bug_report.md",
48+
".github/ISSUE_TEMPLATE/feature_request.md",
49+
".github/ISSUE_TEMPLATE/support_request.md",
50+
".github/PULL_REQUEST_TEMPLATE.md",
51+
".github/release-please.yml",
52+
".github/snippet-bot.yml",
53+
".gitignore",
54+
".kokoro/build.sh",
55+
".kokoro/continuous/common.cfg",
56+
".kokoro/continuous/continuous.cfg",
57+
".kokoro/docker/docs/Dockerfile",
58+
".kokoro/docker/docs/fetch_gpg_keys.sh",
59+
".kokoro/docs/common.cfg",
60+
".kokoro/docs/docs-presubmit.cfg",
61+
".kokoro/docs/docs.cfg",
62+
".kokoro/populate-secrets.sh",
63+
".kokoro/presubmit/common.cfg",
64+
".kokoro/presubmit/presubmit.cfg",
65+
".kokoro/publish-docs.sh",
66+
".kokoro/release.sh",
67+
".kokoro/release/common.cfg",
68+
".kokoro/release/release.cfg",
69+
".kokoro/samples/lint/common.cfg",
70+
".kokoro/samples/lint/continuous.cfg",
71+
".kokoro/samples/lint/periodic.cfg",
72+
".kokoro/samples/lint/presubmit.cfg",
73+
".kokoro/samples/python3.6/common.cfg",
74+
".kokoro/samples/python3.6/continuous.cfg",
75+
".kokoro/samples/python3.6/periodic.cfg",
76+
".kokoro/samples/python3.6/presubmit.cfg",
77+
".kokoro/samples/python3.7/common.cfg",
78+
".kokoro/samples/python3.7/continuous.cfg",
79+
".kokoro/samples/python3.7/periodic.cfg",
80+
".kokoro/samples/python3.7/presubmit.cfg",
81+
".kokoro/samples/python3.8/common.cfg",
82+
".kokoro/samples/python3.8/continuous.cfg",
83+
".kokoro/samples/python3.8/periodic.cfg",
84+
".kokoro/samples/python3.8/presubmit.cfg",
85+
".kokoro/test-samples.sh",
86+
".kokoro/trampoline.sh",
87+
".kokoro/trampoline_v2.sh",
88+
".trampolinerc",
89+
"CODE_OF_CONDUCT.md",
90+
"CONTRIBUTING.rst",
91+
"LICENSE",
92+
"MANIFEST.in",
93+
"docs/_static/custom.css",
94+
"docs/_templates/layout.html",
95+
"docs/conf.py",
96+
"google/cloud/logging/py.typed",
97+
"google/cloud/logging_v2/proto/log_entry.proto",
98+
"google/cloud/logging_v2/proto/logging.proto",
99+
"google/cloud/logging_v2/proto/logging_config.proto",
100+
"google/cloud/logging_v2/proto/logging_metrics.proto",
101+
"google/cloud/logging_v2/py.typed",
102+
"google/cloud/logging_v2/services/__init__.py",
103+
"google/cloud/logging_v2/services/config_service_v2/__init__.py",
104+
"google/cloud/logging_v2/services/config_service_v2/async_client.py",
105+
"google/cloud/logging_v2/services/config_service_v2/client.py",
106+
"google/cloud/logging_v2/services/config_service_v2/pagers.py",
107+
"google/cloud/logging_v2/services/config_service_v2/transports/__init__.py",
108+
"google/cloud/logging_v2/services/config_service_v2/transports/base.py",
109+
"google/cloud/logging_v2/services/config_service_v2/transports/grpc.py",
110+
"google/cloud/logging_v2/services/config_service_v2/transports/grpc_asyncio.py",
111+
"google/cloud/logging_v2/services/logging_service_v2/__init__.py",
112+
"google/cloud/logging_v2/services/logging_service_v2/async_client.py",
113+
"google/cloud/logging_v2/services/logging_service_v2/client.py",
114+
"google/cloud/logging_v2/services/logging_service_v2/pagers.py",
115+
"google/cloud/logging_v2/services/logging_service_v2/transports/__init__.py",
116+
"google/cloud/logging_v2/services/logging_service_v2/transports/base.py",
117+
"google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py",
118+
"google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py",
119+
"google/cloud/logging_v2/services/metrics_service_v2/__init__.py",
120+
"google/cloud/logging_v2/services/metrics_service_v2/async_client.py",
121+
"google/cloud/logging_v2/services/metrics_service_v2/client.py",
122+
"google/cloud/logging_v2/services/metrics_service_v2/pagers.py",
123+
"google/cloud/logging_v2/services/metrics_service_v2/transports/__init__.py",
124+
"google/cloud/logging_v2/services/metrics_service_v2/transports/base.py",
125+
"google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py",
126+
"google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py",
127+
"google/cloud/logging_v2/types/__init__.py",
128+
"google/cloud/logging_v2/types/log_entry.py",
129+
"google/cloud/logging_v2/types/logging.py",
130+
"google/cloud/logging_v2/types/logging_config.py",
131+
"google/cloud/logging_v2/types/logging_metrics.py",
132+
"mypy.ini",
133+
"noxfile.py",
134+
"renovate.json",
135+
"samples/AUTHORING_GUIDE.md",
136+
"samples/CONTRIBUTING.md",
137+
"samples/snippets/README.rst",
138+
"samples/snippets/noxfile.py",
139+
"scripts/decrypt-secrets.sh",
140+
"scripts/readme-gen/readme_gen.py",
141+
"scripts/readme-gen/templates/README.tmpl.rst",
142+
"scripts/readme-gen/templates/auth.tmpl.rst",
143+
"scripts/readme-gen/templates/auth_api_key.tmpl.rst",
144+
"scripts/readme-gen/templates/install_deps.tmpl.rst",
145+
"scripts/readme-gen/templates/install_portaudio.tmpl.rst",
146+
"setup.cfg",
147+
"testing/.gitignore",
148+
"tests/unit/gapic/logging_v2/__init__.py",
149+
"tests/unit/gapic/logging_v2/test_config_service_v2.py",
150+
"tests/unit/gapic/logging_v2/test_logging_service_v2.py",
151+
"tests/unit/gapic/logging_v2/test_metrics_service_v2.py"
43152
]
44153
}

0 commit comments

Comments
 (0)