google-cloud-logging 3.12.0__tar.gz → 3.13.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- google_cloud_logging-3.13.0/MANIFEST.in +20 -0
- {google_cloud_logging-3.12.0/google_cloud_logging.egg-info → google_cloud_logging-3.13.0}/PKG-INFO +15 -2
- google_cloud_logging-3.13.0/google/cloud/logging/gapic_version.py +16 -0
- google_cloud_logging-3.13.0/google/cloud/logging_v2/gapic_version.py +16 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/handlers.py +4 -3
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/config_service_v2/async_client.py +10 -5
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/config_service_v2/client.py +9 -5
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/config_service_v2/transports/base.py +7 -2
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/config_service_v2/transports/grpc.py +6 -5
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/config_service_v2/transports/grpc_asyncio.py +5 -3
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/logging_service_v2/async_client.py +25 -20
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/logging_service_v2/client.py +24 -20
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/logging_service_v2/transports/base.py +7 -2
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py +6 -5
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/logging_service_v2/transports/grpc_asyncio.py +5 -3
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/metrics_service_v2/async_client.py +5 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/metrics_service_v2/client.py +4 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/metrics_service_v2/transports/base.py +7 -2
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc.py +6 -5
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/metrics_service_v2/transports/grpc_asyncio.py +5 -3
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/types/log_entry.py +4 -4
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/types/logging.py +36 -36
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/types/logging_config.py +11 -11
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0/google_cloud_logging.egg-info}/PKG-INFO +15 -2
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google_cloud_logging.egg-info/SOURCES.txt +0 -1
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/setup.cfg +0 -3
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/setup.py +2 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/system/test_system.py +7 -5
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/gapic/logging_v2/test_config_service_v2.py +1 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/gapic/logging_v2/test_logging_service_v2.py +1 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/gapic/logging_v2/test_metrics_service_v2.py +1 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/test_handlers.py +4 -0
- google_cloud_logging-3.12.0/MANIFEST.in +0 -25
- google_cloud_logging-3.12.0/google/cloud/logging/gapic_version.py +0 -16
- google_cloud_logging-3.12.0/google/cloud/logging_v2/gapic_version.py +0 -16
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/LICENSE +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/README.rst +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging/handlers/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging/handlers/middleware/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging/handlers/transports/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging/py.typed +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/_gapic.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/_helpers.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/_http.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/_instrumentation.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/client.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/entries.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/gapic_metadata.json +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/_helpers.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/_monitored_resources.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/app_engine.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/container_engine.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/middleware/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/middleware/request.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/structured_log.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/transports/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/transports/background_thread.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/transports/base.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/handlers/transports/sync.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/logger.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/metric.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/py.typed +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/resource.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/config_service_v2/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/config_service_v2/pagers.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/config_service_v2/transports/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/logging_service_v2/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/logging_service_v2/pagers.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/logging_service_v2/transports/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/metrics_service_v2/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/metrics_service_v2/pagers.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/services/metrics_service_v2/transports/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/sink.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/types/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google/cloud/logging_v2/types/logging_metrics.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google_cloud_logging.egg-info/dependency_links.txt +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google_cloud_logging.egg-info/not-zip-safe +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google_cloud_logging.egg-info/requires.txt +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/google_cloud_logging.egg-info/top_level.txt +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/performance/noxfile.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/performance/test_performance.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/system/gapic/v2/test_system_logging_service_v2_v2.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/gapic/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/gapic/logging_v2/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/middleware/test_request.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/test__helpers.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/test__monitored_resources.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/test_app_engine.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/test_container_engine.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/test_structured_log.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/transports/__init__.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/transports/test_background_thread.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/transports/test_base.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/handlers/transports/test_sync.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test__gapic.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test__helpers.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test__http.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test__instrumentation.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test_client.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test_entries.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test_logger.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test_logging_shim.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test_metric.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test_packaging.py +0 -0
- {google_cloud_logging-3.12.0 → google_cloud_logging-3.13.0}/tests/unit/test_sink.py +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
include README.rst LICENSE
|
|
17
|
+
recursive-include google *.py *.pyi *.json *.proto py.typed
|
|
18
|
+
recursive-include tests *
|
|
19
|
+
global-exclude *.py[co]
|
|
20
|
+
global-exclude __pycache__
|
{google_cloud_logging-3.12.0/google_cloud_logging.egg-info → google_cloud_logging-3.13.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: google-cloud-logging
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.13.0
|
|
4
4
|
Summary: Stackdriver Logging API client library
|
|
5
5
|
Home-page: https://github.com/googleapis/python-logging
|
|
6
6
|
Author: Google LLC
|
|
@@ -18,6 +18,8 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
18
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
23
|
Classifier: Operating System :: OS Independent
|
|
22
24
|
Classifier: Topic :: Internet
|
|
23
25
|
Requires-Python: >=3.7
|
|
@@ -33,6 +35,17 @@ Requires-Dist: proto-plus<2.0.0,>=1.22.0
|
|
|
33
35
|
Requires-Dist: proto-plus<2.0.0,>=1.22.2; python_version >= "3.11"
|
|
34
36
|
Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
|
|
35
37
|
Requires-Dist: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2
|
|
38
|
+
Dynamic: author
|
|
39
|
+
Dynamic: author-email
|
|
40
|
+
Dynamic: classifier
|
|
41
|
+
Dynamic: description
|
|
42
|
+
Dynamic: home-page
|
|
43
|
+
Dynamic: license
|
|
44
|
+
Dynamic: license-file
|
|
45
|
+
Dynamic: platform
|
|
46
|
+
Dynamic: requires-dist
|
|
47
|
+
Dynamic: requires-python
|
|
48
|
+
Dynamic: summary
|
|
36
49
|
|
|
37
50
|
Python Client for Cloud Logging
|
|
38
51
|
=====================================
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
__version__ = "3.13.0" # {x-release-please-version}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Copyright 2025 Google LLC
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
#
|
|
16
|
+
__version__ = "3.13.0" # {x-release-please-version}
|
|
@@ -245,9 +245,10 @@ class CloudLoggingHandler(logging.StreamHandler):
|
|
|
245
245
|
|
|
246
246
|
def close(self):
|
|
247
247
|
"""Closes the log handler and cleans up all Transport objects used."""
|
|
248
|
-
self.
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
if self._transport_open:
|
|
249
|
+
self.transport.close()
|
|
250
|
+
self.transport = None
|
|
251
|
+
self._transport_open = False
|
|
251
252
|
|
|
252
253
|
|
|
253
254
|
def _format_and_parse_message(record, formatter_handler):
|
|
@@ -28,6 +28,7 @@ from typing import (
|
|
|
28
28
|
Type,
|
|
29
29
|
Union,
|
|
30
30
|
)
|
|
31
|
+
import uuid
|
|
31
32
|
|
|
32
33
|
from google.cloud.logging_v2 import gapic_version as package_version
|
|
33
34
|
|
|
@@ -37,6 +38,7 @@ from google.api_core import gapic_v1
|
|
|
37
38
|
from google.api_core import retry_async as retries
|
|
38
39
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
39
40
|
from google.oauth2 import service_account # type: ignore
|
|
41
|
+
import google.protobuf
|
|
40
42
|
|
|
41
43
|
|
|
42
44
|
try:
|
|
@@ -2966,7 +2968,7 @@ class ConfigServiceV2AsyncClient:
|
|
|
2966
2968
|
chargeable logs. Note that exclusions on
|
|
2967
2969
|
organization-level and folder-level sinks don't apply
|
|
2968
2970
|
to child resources. Note also that you cannot modify
|
|
2969
|
-
the
|
|
2971
|
+
the Required sink or exclude logs from it.
|
|
2970
2972
|
|
|
2971
2973
|
"""
|
|
2972
2974
|
# Create or coerce a protobuf request object.
|
|
@@ -3109,7 +3111,7 @@ class ConfigServiceV2AsyncClient:
|
|
|
3109
3111
|
chargeable logs. Note that exclusions on
|
|
3110
3112
|
organization-level and folder-level sinks don't apply
|
|
3111
3113
|
to child resources. Note also that you cannot modify
|
|
3112
|
-
the
|
|
3114
|
+
the Required sink or exclude logs from it.
|
|
3113
3115
|
|
|
3114
3116
|
"""
|
|
3115
3117
|
# Create or coerce a protobuf request object.
|
|
@@ -3266,7 +3268,7 @@ class ConfigServiceV2AsyncClient:
|
|
|
3266
3268
|
chargeable logs. Note that exclusions on
|
|
3267
3269
|
organization-level and folder-level sinks don't apply
|
|
3268
3270
|
to child resources. Note also that you cannot modify
|
|
3269
|
-
the
|
|
3271
|
+
the Required sink or exclude logs from it.
|
|
3270
3272
|
|
|
3271
3273
|
"""
|
|
3272
3274
|
# Create or coerce a protobuf request object.
|
|
@@ -3504,7 +3506,7 @@ class ConfigServiceV2AsyncClient:
|
|
|
3504
3506
|
the Google Cloud organization.
|
|
3505
3507
|
|
|
3506
3508
|
See [Enabling CMEK for Log
|
|
3507
|
-
Router](
|
|
3509
|
+
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
|
|
3508
3510
|
for more information.
|
|
3509
3511
|
|
|
3510
3512
|
"""
|
|
@@ -3618,7 +3620,7 @@ class ConfigServiceV2AsyncClient:
|
|
|
3618
3620
|
the Google Cloud organization.
|
|
3619
3621
|
|
|
3620
3622
|
See [Enabling CMEK for Log
|
|
3621
|
-
Router](
|
|
3623
|
+
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
|
|
3622
3624
|
for more information.
|
|
3623
3625
|
|
|
3624
3626
|
"""
|
|
@@ -4223,5 +4225,8 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
4223
4225
|
gapic_version=package_version.__version__
|
|
4224
4226
|
)
|
|
4225
4227
|
|
|
4228
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
4229
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
4230
|
+
|
|
4226
4231
|
|
|
4227
4232
|
__all__ = ("ConfigServiceV2AsyncClient",)
|
|
@@ -32,6 +32,7 @@ from typing import (
|
|
|
32
32
|
Union,
|
|
33
33
|
cast,
|
|
34
34
|
)
|
|
35
|
+
import uuid
|
|
35
36
|
import warnings
|
|
36
37
|
|
|
37
38
|
from google.cloud.logging_v2 import gapic_version as package_version
|
|
@@ -45,6 +46,7 @@ from google.auth.transport import mtls # type: ignore
|
|
|
45
46
|
from google.auth.transport.grpc import SslCredentials # type: ignore
|
|
46
47
|
from google.auth.exceptions import MutualTLSChannelError # type: ignore
|
|
47
48
|
from google.oauth2 import service_account # type: ignore
|
|
49
|
+
import google.protobuf
|
|
48
50
|
|
|
49
51
|
try:
|
|
50
52
|
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
|
|
@@ -3430,7 +3432,7 @@ class ConfigServiceV2Client(metaclass=ConfigServiceV2ClientMeta):
|
|
|
3430
3432
|
chargeable logs. Note that exclusions on
|
|
3431
3433
|
organization-level and folder-level sinks don't apply
|
|
3432
3434
|
to child resources. Note also that you cannot modify
|
|
3433
|
-
the
|
|
3435
|
+
the Required sink or exclude logs from it.
|
|
3434
3436
|
|
|
3435
3437
|
"""
|
|
3436
3438
|
# Create or coerce a protobuf request object.
|
|
@@ -3570,7 +3572,7 @@ class ConfigServiceV2Client(metaclass=ConfigServiceV2ClientMeta):
|
|
|
3570
3572
|
chargeable logs. Note that exclusions on
|
|
3571
3573
|
organization-level and folder-level sinks don't apply
|
|
3572
3574
|
to child resources. Note also that you cannot modify
|
|
3573
|
-
the
|
|
3575
|
+
the Required sink or exclude logs from it.
|
|
3574
3576
|
|
|
3575
3577
|
"""
|
|
3576
3578
|
# Create or coerce a protobuf request object.
|
|
@@ -3724,7 +3726,7 @@ class ConfigServiceV2Client(metaclass=ConfigServiceV2ClientMeta):
|
|
|
3724
3726
|
chargeable logs. Note that exclusions on
|
|
3725
3727
|
organization-level and folder-level sinks don't apply
|
|
3726
3728
|
to child resources. Note also that you cannot modify
|
|
3727
|
-
the
|
|
3729
|
+
the Required sink or exclude logs from it.
|
|
3728
3730
|
|
|
3729
3731
|
"""
|
|
3730
3732
|
# Create or coerce a protobuf request object.
|
|
@@ -3956,7 +3958,7 @@ class ConfigServiceV2Client(metaclass=ConfigServiceV2ClientMeta):
|
|
|
3956
3958
|
the Google Cloud organization.
|
|
3957
3959
|
|
|
3958
3960
|
See [Enabling CMEK for Log
|
|
3959
|
-
Router](
|
|
3961
|
+
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
|
|
3960
3962
|
for more information.
|
|
3961
3963
|
|
|
3962
3964
|
"""
|
|
@@ -4068,7 +4070,7 @@ class ConfigServiceV2Client(metaclass=ConfigServiceV2ClientMeta):
|
|
|
4068
4070
|
the Google Cloud organization.
|
|
4069
4071
|
|
|
4070
4072
|
See [Enabling CMEK for Log
|
|
4071
|
-
Router](
|
|
4073
|
+
Router](https://cloud.google.com/logging/docs/routing/managed-encryption)
|
|
4072
4074
|
for more information.
|
|
4073
4075
|
|
|
4074
4076
|
"""
|
|
@@ -4678,5 +4680,7 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
4678
4680
|
gapic_version=package_version.__version__
|
|
4679
4681
|
)
|
|
4680
4682
|
|
|
4683
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
4684
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
4681
4685
|
|
|
4682
4686
|
__all__ = ("ConfigServiceV2Client",)
|
|
@@ -26,6 +26,7 @@ from google.api_core import retry as retries
|
|
|
26
26
|
from google.api_core import operations_v1
|
|
27
27
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
28
28
|
from google.oauth2 import service_account # type: ignore
|
|
29
|
+
import google.protobuf
|
|
29
30
|
|
|
30
31
|
from google.cloud.logging_v2.types import logging_config
|
|
31
32
|
from google.longrunning import operations_pb2 # type: ignore
|
|
@@ -35,6 +36,9 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
35
36
|
gapic_version=package_version.__version__
|
|
36
37
|
)
|
|
37
38
|
|
|
39
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
40
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
41
|
+
|
|
38
42
|
|
|
39
43
|
class ConfigServiceV2Transport(abc.ABC):
|
|
40
44
|
"""Abstract transport class for ConfigServiceV2."""
|
|
@@ -71,9 +75,10 @@ class ConfigServiceV2Transport(abc.ABC):
|
|
|
71
75
|
credentials identify the application to the service; if none
|
|
72
76
|
are specified, the client will attempt to ascertain the
|
|
73
77
|
credentials from the environment.
|
|
74
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
78
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
75
79
|
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
76
|
-
This argument is mutually exclusive with credentials.
|
|
80
|
+
This argument is mutually exclusive with credentials. This argument will be
|
|
81
|
+
removed in the next major version of this library.
|
|
77
82
|
scopes (Optional[Sequence[str]]): A list of scopes.
|
|
78
83
|
quota_project_id (Optional[str]): An optional project to use for billing
|
|
79
84
|
and quota.
|
|
@@ -73,12 +73,11 @@ class _LoggingClientInterceptor(grpc.UnaryUnaryClientInterceptor): # pragma: NO
|
|
|
73
73
|
f"Sending request for {client_call_details.method}",
|
|
74
74
|
extra={
|
|
75
75
|
"serviceName": "google.logging.v2.ConfigServiceV2",
|
|
76
|
-
"rpcName": client_call_details.method,
|
|
76
|
+
"rpcName": str(client_call_details.method),
|
|
77
77
|
"request": grpc_request,
|
|
78
78
|
"metadata": grpc_request["metadata"],
|
|
79
79
|
},
|
|
80
80
|
)
|
|
81
|
-
|
|
82
81
|
response = continuation(client_call_details, request)
|
|
83
82
|
if logging_enabled: # pragma: NO COVER
|
|
84
83
|
response_metadata = response.trailing_metadata()
|
|
@@ -155,9 +154,10 @@ class ConfigServiceV2GrpcTransport(ConfigServiceV2Transport):
|
|
|
155
154
|
are specified, the client will attempt to ascertain the
|
|
156
155
|
credentials from the environment.
|
|
157
156
|
This argument is ignored if a ``channel`` instance is provided.
|
|
158
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
157
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
159
158
|
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
160
159
|
This argument is ignored if a ``channel`` instance is provided.
|
|
160
|
+
This argument will be removed in the next major version of this library.
|
|
161
161
|
scopes (Optional(Sequence[str])): A list of scopes. This argument is
|
|
162
162
|
ignored if a ``channel`` instance is provided.
|
|
163
163
|
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
|
|
@@ -291,9 +291,10 @@ class ConfigServiceV2GrpcTransport(ConfigServiceV2Transport):
|
|
|
291
291
|
credentials identify this application to the service. If
|
|
292
292
|
none are specified, the client will attempt to ascertain
|
|
293
293
|
the credentials from the environment.
|
|
294
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
294
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
295
295
|
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
296
|
-
This argument is mutually exclusive with credentials.
|
|
296
|
+
This argument is mutually exclusive with credentials. This argument will be
|
|
297
|
+
removed in the next major version of this library.
|
|
297
298
|
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
|
|
298
299
|
service. These are only used when credentials are not specified and
|
|
299
300
|
are passed to :func:`google.auth.default`.
|
|
@@ -151,8 +151,9 @@ class ConfigServiceV2GrpcAsyncIOTransport(ConfigServiceV2Transport):
|
|
|
151
151
|
credentials identify this application to the service. If
|
|
152
152
|
none are specified, the client will attempt to ascertain
|
|
153
153
|
the credentials from the environment.
|
|
154
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
155
|
-
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
154
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
155
|
+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
|
|
156
|
+
removed in the next major version of this library.
|
|
156
157
|
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
|
|
157
158
|
service. These are only used when credentials are not specified and
|
|
158
159
|
are passed to :func:`google.auth.default`.
|
|
@@ -203,9 +204,10 @@ class ConfigServiceV2GrpcAsyncIOTransport(ConfigServiceV2Transport):
|
|
|
203
204
|
are specified, the client will attempt to ascertain the
|
|
204
205
|
credentials from the environment.
|
|
205
206
|
This argument is ignored if a ``channel`` instance is provided.
|
|
206
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
207
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
207
208
|
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
208
209
|
This argument is ignored if a ``channel`` instance is provided.
|
|
210
|
+
This argument will be removed in the next major version of this library.
|
|
209
211
|
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
|
|
210
212
|
service. These are only used when credentials are not specified and
|
|
211
213
|
are passed to :func:`google.auth.default`.
|
|
@@ -31,6 +31,7 @@ from typing import (
|
|
|
31
31
|
Type,
|
|
32
32
|
Union,
|
|
33
33
|
)
|
|
34
|
+
import uuid
|
|
34
35
|
|
|
35
36
|
from google.cloud.logging_v2 import gapic_version as package_version
|
|
36
37
|
|
|
@@ -40,6 +41,7 @@ from google.api_core import gapic_v1
|
|
|
40
41
|
from google.api_core import retry_async as retries
|
|
41
42
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
42
43
|
from google.oauth2 import service_account # type: ignore
|
|
44
|
+
import google.protobuf
|
|
43
45
|
|
|
44
46
|
|
|
45
47
|
try:
|
|
@@ -338,10 +340,10 @@ class LoggingServiceV2AsyncClient:
|
|
|
338
340
|
log_name (:class:`str`):
|
|
339
341
|
Required. The resource name of the log to delete:
|
|
340
342
|
|
|
341
|
-
-
|
|
342
|
-
-
|
|
343
|
-
-
|
|
344
|
-
-
|
|
343
|
+
- ``projects/[PROJECT_ID]/logs/[LOG_ID]``
|
|
344
|
+
- ``organizations/[ORGANIZATION_ID]/logs/[LOG_ID]``
|
|
345
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]``
|
|
346
|
+
- ``folders/[FOLDER_ID]/logs/[LOG_ID]``
|
|
345
347
|
|
|
346
348
|
``[LOG_ID]`` must be URL-encoded. For example,
|
|
347
349
|
``"projects/my-project-id/logs/syslog"``,
|
|
@@ -464,10 +466,10 @@ class LoggingServiceV2AsyncClient:
|
|
|
464
466
|
to all log entries in ``entries`` that do not specify a
|
|
465
467
|
value for ``log_name``:
|
|
466
468
|
|
|
467
|
-
-
|
|
468
|
-
-
|
|
469
|
-
-
|
|
470
|
-
-
|
|
469
|
+
- ``projects/[PROJECT_ID]/logs/[LOG_ID]``
|
|
470
|
+
- ``organizations/[ORGANIZATION_ID]/logs/[LOG_ID]``
|
|
471
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]``
|
|
472
|
+
- ``folders/[FOLDER_ID]/logs/[LOG_ID]``
|
|
471
473
|
|
|
472
474
|
``[LOG_ID]`` must be URL-encoded. For example:
|
|
473
475
|
|
|
@@ -657,17 +659,17 @@ class LoggingServiceV2AsyncClient:
|
|
|
657
659
|
Required. Names of one or more parent resources from
|
|
658
660
|
which to retrieve log entries:
|
|
659
661
|
|
|
660
|
-
-
|
|
661
|
-
-
|
|
662
|
-
-
|
|
663
|
-
-
|
|
662
|
+
- ``projects/[PROJECT_ID]``
|
|
663
|
+
- ``organizations/[ORGANIZATION_ID]``
|
|
664
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]``
|
|
665
|
+
- ``folders/[FOLDER_ID]``
|
|
664
666
|
|
|
665
667
|
May alternatively be one or more views:
|
|
666
668
|
|
|
667
|
-
-
|
|
668
|
-
-
|
|
669
|
-
-
|
|
670
|
-
-
|
|
669
|
+
- ``projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]``
|
|
670
|
+
- ``organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]``
|
|
671
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]``
|
|
672
|
+
- ``folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]``
|
|
671
673
|
|
|
672
674
|
Projects listed in the ``project_ids`` field are added
|
|
673
675
|
to this list. A maximum of 100 resources may be
|
|
@@ -917,10 +919,10 @@ class LoggingServiceV2AsyncClient:
|
|
|
917
919
|
parent (:class:`str`):
|
|
918
920
|
Required. The resource name to list logs for:
|
|
919
921
|
|
|
920
|
-
-
|
|
921
|
-
-
|
|
922
|
-
-
|
|
923
|
-
-
|
|
922
|
+
- ``projects/[PROJECT_ID]``
|
|
923
|
+
- ``organizations/[ORGANIZATION_ID]``
|
|
924
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]``
|
|
925
|
+
- ``folders/[FOLDER_ID]``
|
|
924
926
|
|
|
925
927
|
This corresponds to the ``parent`` field
|
|
926
928
|
on the ``request`` instance; if ``request`` is provided, this
|
|
@@ -1263,5 +1265,8 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
1263
1265
|
gapic_version=package_version.__version__
|
|
1264
1266
|
)
|
|
1265
1267
|
|
|
1268
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
1269
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
1270
|
+
|
|
1266
1271
|
|
|
1267
1272
|
__all__ = ("LoggingServiceV2AsyncClient",)
|
|
@@ -34,6 +34,7 @@ from typing import (
|
|
|
34
34
|
Union,
|
|
35
35
|
cast,
|
|
36
36
|
)
|
|
37
|
+
import uuid
|
|
37
38
|
import warnings
|
|
38
39
|
|
|
39
40
|
from google.cloud.logging_v2 import gapic_version as package_version
|
|
@@ -47,6 +48,7 @@ from google.auth.transport import mtls # type: ignore
|
|
|
47
48
|
from google.auth.transport.grpc import SslCredentials # type: ignore
|
|
48
49
|
from google.auth.exceptions import MutualTLSChannelError # type: ignore
|
|
49
50
|
from google.oauth2 import service_account # type: ignore
|
|
51
|
+
import google.protobuf
|
|
50
52
|
|
|
51
53
|
try:
|
|
52
54
|
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
|
|
@@ -753,10 +755,10 @@ class LoggingServiceV2Client(metaclass=LoggingServiceV2ClientMeta):
|
|
|
753
755
|
log_name (str):
|
|
754
756
|
Required. The resource name of the log to delete:
|
|
755
757
|
|
|
756
|
-
-
|
|
757
|
-
-
|
|
758
|
-
-
|
|
759
|
-
-
|
|
758
|
+
- ``projects/[PROJECT_ID]/logs/[LOG_ID]``
|
|
759
|
+
- ``organizations/[ORGANIZATION_ID]/logs/[LOG_ID]``
|
|
760
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]``
|
|
761
|
+
- ``folders/[FOLDER_ID]/logs/[LOG_ID]``
|
|
760
762
|
|
|
761
763
|
``[LOG_ID]`` must be URL-encoded. For example,
|
|
762
764
|
``"projects/my-project-id/logs/syslog"``,
|
|
@@ -876,10 +878,10 @@ class LoggingServiceV2Client(metaclass=LoggingServiceV2ClientMeta):
|
|
|
876
878
|
to all log entries in ``entries`` that do not specify a
|
|
877
879
|
value for ``log_name``:
|
|
878
880
|
|
|
879
|
-
-
|
|
880
|
-
-
|
|
881
|
-
-
|
|
882
|
-
-
|
|
881
|
+
- ``projects/[PROJECT_ID]/logs/[LOG_ID]``
|
|
882
|
+
- ``organizations/[ORGANIZATION_ID]/logs/[LOG_ID]``
|
|
883
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]``
|
|
884
|
+
- ``folders/[FOLDER_ID]/logs/[LOG_ID]``
|
|
883
885
|
|
|
884
886
|
``[LOG_ID]`` must be URL-encoded. For example:
|
|
885
887
|
|
|
@@ -1065,17 +1067,17 @@ class LoggingServiceV2Client(metaclass=LoggingServiceV2ClientMeta):
|
|
|
1065
1067
|
Required. Names of one or more parent resources from
|
|
1066
1068
|
which to retrieve log entries:
|
|
1067
1069
|
|
|
1068
|
-
-
|
|
1069
|
-
-
|
|
1070
|
-
-
|
|
1071
|
-
-
|
|
1070
|
+
- ``projects/[PROJECT_ID]``
|
|
1071
|
+
- ``organizations/[ORGANIZATION_ID]``
|
|
1072
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]``
|
|
1073
|
+
- ``folders/[FOLDER_ID]``
|
|
1072
1074
|
|
|
1073
1075
|
May alternatively be one or more views:
|
|
1074
1076
|
|
|
1075
|
-
-
|
|
1076
|
-
-
|
|
1077
|
-
-
|
|
1078
|
-
-
|
|
1077
|
+
- ``projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]``
|
|
1078
|
+
- ``organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]``
|
|
1079
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]``
|
|
1080
|
+
- ``folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]``
|
|
1079
1081
|
|
|
1080
1082
|
Projects listed in the ``project_ids`` field are added
|
|
1081
1083
|
to this list. A maximum of 100 resources may be
|
|
@@ -1322,10 +1324,10 @@ class LoggingServiceV2Client(metaclass=LoggingServiceV2ClientMeta):
|
|
|
1322
1324
|
parent (str):
|
|
1323
1325
|
Required. The resource name to list logs for:
|
|
1324
1326
|
|
|
1325
|
-
-
|
|
1326
|
-
-
|
|
1327
|
-
-
|
|
1328
|
-
-
|
|
1327
|
+
- ``projects/[PROJECT_ID]``
|
|
1328
|
+
- ``organizations/[ORGANIZATION_ID]``
|
|
1329
|
+
- ``billingAccounts/[BILLING_ACCOUNT_ID]``
|
|
1330
|
+
- ``folders/[FOLDER_ID]``
|
|
1329
1331
|
|
|
1330
1332
|
This corresponds to the ``parent`` field
|
|
1331
1333
|
on the ``request`` instance; if ``request`` is provided, this
|
|
@@ -1678,5 +1680,7 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
1678
1680
|
gapic_version=package_version.__version__
|
|
1679
1681
|
)
|
|
1680
1682
|
|
|
1683
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
1684
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
1681
1685
|
|
|
1682
1686
|
__all__ = ("LoggingServiceV2Client",)
|
|
@@ -25,6 +25,7 @@ from google.api_core import gapic_v1
|
|
|
25
25
|
from google.api_core import retry as retries
|
|
26
26
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
27
27
|
from google.oauth2 import service_account # type: ignore
|
|
28
|
+
import google.protobuf
|
|
28
29
|
|
|
29
30
|
from google.cloud.logging_v2.types import logging
|
|
30
31
|
from google.longrunning import operations_pb2 # type: ignore
|
|
@@ -34,6 +35,9 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
34
35
|
gapic_version=package_version.__version__
|
|
35
36
|
)
|
|
36
37
|
|
|
38
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
39
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
40
|
+
|
|
37
41
|
|
|
38
42
|
class LoggingServiceV2Transport(abc.ABC):
|
|
39
43
|
"""Abstract transport class for LoggingServiceV2."""
|
|
@@ -71,9 +75,10 @@ class LoggingServiceV2Transport(abc.ABC):
|
|
|
71
75
|
credentials identify the application to the service; if none
|
|
72
76
|
are specified, the client will attempt to ascertain the
|
|
73
77
|
credentials from the environment.
|
|
74
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
78
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
75
79
|
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
76
|
-
This argument is mutually exclusive with credentials.
|
|
80
|
+
This argument is mutually exclusive with credentials. This argument will be
|
|
81
|
+
removed in the next major version of this library.
|
|
77
82
|
scopes (Optional[Sequence[str]]): A list of scopes.
|
|
78
83
|
quota_project_id (Optional[str]): An optional project to use for billing
|
|
79
84
|
and quota.
|
|
@@ -72,12 +72,11 @@ class _LoggingClientInterceptor(grpc.UnaryUnaryClientInterceptor): # pragma: NO
|
|
|
72
72
|
f"Sending request for {client_call_details.method}",
|
|
73
73
|
extra={
|
|
74
74
|
"serviceName": "google.logging.v2.LoggingServiceV2",
|
|
75
|
-
"rpcName": client_call_details.method,
|
|
75
|
+
"rpcName": str(client_call_details.method),
|
|
76
76
|
"request": grpc_request,
|
|
77
77
|
"metadata": grpc_request["metadata"],
|
|
78
78
|
},
|
|
79
79
|
)
|
|
80
|
-
|
|
81
80
|
response = continuation(client_call_details, request)
|
|
82
81
|
if logging_enabled: # pragma: NO COVER
|
|
83
82
|
response_metadata = response.trailing_metadata()
|
|
@@ -154,9 +153,10 @@ class LoggingServiceV2GrpcTransport(LoggingServiceV2Transport):
|
|
|
154
153
|
are specified, the client will attempt to ascertain the
|
|
155
154
|
credentials from the environment.
|
|
156
155
|
This argument is ignored if a ``channel`` instance is provided.
|
|
157
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
156
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
158
157
|
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
159
158
|
This argument is ignored if a ``channel`` instance is provided.
|
|
159
|
+
This argument will be removed in the next major version of this library.
|
|
160
160
|
scopes (Optional(Sequence[str])): A list of scopes. This argument is
|
|
161
161
|
ignored if a ``channel`` instance is provided.
|
|
162
162
|
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
|
|
@@ -289,9 +289,10 @@ class LoggingServiceV2GrpcTransport(LoggingServiceV2Transport):
|
|
|
289
289
|
credentials identify this application to the service. If
|
|
290
290
|
none are specified, the client will attempt to ascertain
|
|
291
291
|
the credentials from the environment.
|
|
292
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
292
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
293
293
|
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
294
|
-
This argument is mutually exclusive with credentials.
|
|
294
|
+
This argument is mutually exclusive with credentials. This argument will be
|
|
295
|
+
removed in the next major version of this library.
|
|
295
296
|
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
|
|
296
297
|
service. These are only used when credentials are not specified and
|
|
297
298
|
are passed to :func:`google.auth.default`.
|
|
@@ -150,8 +150,9 @@ class LoggingServiceV2GrpcAsyncIOTransport(LoggingServiceV2Transport):
|
|
|
150
150
|
credentials identify this application to the service. If
|
|
151
151
|
none are specified, the client will attempt to ascertain
|
|
152
152
|
the credentials from the environment.
|
|
153
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
154
|
-
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
153
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
154
|
+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
|
|
155
|
+
removed in the next major version of this library.
|
|
155
156
|
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
|
|
156
157
|
service. These are only used when credentials are not specified and
|
|
157
158
|
are passed to :func:`google.auth.default`.
|
|
@@ -202,9 +203,10 @@ class LoggingServiceV2GrpcAsyncIOTransport(LoggingServiceV2Transport):
|
|
|
202
203
|
are specified, the client will attempt to ascertain the
|
|
203
204
|
credentials from the environment.
|
|
204
205
|
This argument is ignored if a ``channel`` instance is provided.
|
|
205
|
-
credentials_file (Optional[str]): A file with credentials that can
|
|
206
|
+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
|
|
206
207
|
be loaded with :func:`google.auth.load_credentials_from_file`.
|
|
207
208
|
This argument is ignored if a ``channel`` instance is provided.
|
|
209
|
+
This argument will be removed in the next major version of this library.
|
|
208
210
|
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
|
|
209
211
|
service. These are only used when credentials are not specified and
|
|
210
212
|
are passed to :func:`google.auth.default`.
|
|
@@ -28,6 +28,7 @@ from typing import (
|
|
|
28
28
|
Type,
|
|
29
29
|
Union,
|
|
30
30
|
)
|
|
31
|
+
import uuid
|
|
31
32
|
|
|
32
33
|
from google.cloud.logging_v2 import gapic_version as package_version
|
|
33
34
|
|
|
@@ -37,6 +38,7 @@ from google.api_core import gapic_v1
|
|
|
37
38
|
from google.api_core import retry_async as retries
|
|
38
39
|
from google.auth import credentials as ga_credentials # type: ignore
|
|
39
40
|
from google.oauth2 import service_account # type: ignore
|
|
41
|
+
import google.protobuf
|
|
40
42
|
|
|
41
43
|
|
|
42
44
|
try:
|
|
@@ -1110,5 +1112,8 @@ DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
|
|
|
1110
1112
|
gapic_version=package_version.__version__
|
|
1111
1113
|
)
|
|
1112
1114
|
|
|
1115
|
+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
|
|
1116
|
+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
|
|
1117
|
+
|
|
1113
1118
|
|
|
1114
1119
|
__all__ = ("MetricsServiceV2AsyncClient",)
|