Skip to content

Commit c55b312

Browse files
authored
Fix client_info bug, update docstrings via synth. (#6435)
Closes #6357.
1 parent ef5c838 commit c55b312

File tree

6 files changed

+263
-251
lines changed

6 files changed

+263
-251
lines changed

google/cloud/logging_v2/gapic/config_service_v2_client.py

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

google/cloud/logging_v2/gapic/enums.py

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
class LaunchStage(enum.IntEnum):
2222
"""
23-
The launch stage as defined by [Google Cloud Platform
24-
Launch Stages](http://cloud.google.com/terms/launch-stages).
23+
The launch stage as defined by `Google Cloud Platform Launch
24+
Stages <http://cloud.google.com/terms/launch-stages>`__.
2525
2626
Attributes:
2727
LAUNCH_STAGE_UNSPECIFIED (int): Do not use this default value.
@@ -47,10 +47,10 @@ class LaunchStage(enum.IntEnum):
4747
GA (int): GA features are open to all developers and are considered stable and
4848
fully qualified for production use.
4949
DEPRECATED (int): Deprecated features are scheduled to be shut down and removed. For more
50-
information, see the “Deprecation Policy” section of our [Terms of
51-
Service](https://cloud.google.com/terms/)
52-
and the [Google Cloud Platform Subject to the Deprecation
53-
Policy](https://cloud.google.com/terms/deprecation) documentation.
50+
information, see the “Deprecation Policy” section of our `Terms of
51+
Service <https://cloud.google.com/terms/>`__ and the `Google Cloud
52+
Platform Subject to the Deprecation
53+
Policy <https://cloud.google.com/terms/deprecation>`__ documentation.
5454
"""
5555
LAUNCH_STAGE_UNSPECIFIED = 0
5656
EARLY_ACCESS = 1
@@ -62,10 +62,10 @@ class LaunchStage(enum.IntEnum):
6262

6363
class NullValue(enum.IntEnum):
6464
"""
65-
``NullValue`` is a singleton enumeration to represent the null value for the
66-
``Value`` type union.
65+
``NullValue`` is a singleton enumeration to represent the null value for
66+
the ``Value`` type union.
6767
68-
The JSON representation for ``NullValue`` is JSON ``null``.
68+
The JSON representation for ``NullValue`` is JSON ``null``.
6969
7070
Attributes:
7171
NULL_VALUE (int): Null value.
@@ -75,23 +75,24 @@ class NullValue(enum.IntEnum):
7575

7676
class LogSeverity(enum.IntEnum):
7777
"""
78-
The severity of the event described in a log entry, expressed as one of the
79-
standard severity levels listed below. For your reference, the levels are
80-
assigned the listed numeric values. The effect of using numeric values other
81-
than those listed is undefined.
78+
The severity of the event described in a log entry, expressed as one of
79+
the standard severity levels listed below. For your reference, the
80+
levels are assigned the listed numeric values. The effect of using
81+
numeric values other than those listed is undefined.
8282
83-
You can filter for log entries by severity. For example, the following
84-
filter expression will match log entries with severities ``INFO``, ``NOTICE``,
85-
and ``WARNING``:
83+
You can filter for log entries by severity. For example, the following
84+
filter expression will match log entries with severities ``INFO``,
85+
``NOTICE``, and ``WARNING``:
8686
8787
::
8888
89-
severity > DEBUG AND severity <= WARNING
89+
severity > DEBUG AND severity <= WARNING
9090
91-
If you are writing log entries, you should map other severity encodings to
92-
one of these standard levels. For example, you might map all of Java's FINE,
93-
FINER, and FINEST levels to ``LogSeverity.DEBUG``. You can preserve the
94-
original severity level in the log entry payload if you wish.
91+
If you are writing log entries, you should map other severity encodings
92+
to one of these standard levels. For example, you might map all of
93+
Java's FINE, FINER, and FINEST levels to ``LogSeverity.DEBUG``. You can
94+
preserve the original severity level in the log entry payload if you
95+
wish.
9596
9697
Attributes:
9798
DEFAULT (int): (0) The log entry has no assigned severity level.
@@ -157,13 +158,13 @@ class ValueType(enum.IntEnum):
157158
158159
Attributes:
159160
VALUE_TYPE_UNSPECIFIED (int): Do not use this default value.
160-
BOOL (int): The value is a boolean.
161-
This value type can be used only if the metric kind is ``GAUGE``.
161+
BOOL (int): The value is a boolean. This value type can be used only if the metric
162+
kind is ``GAUGE``.
162163
INT64 (int): The value is a signed 64-bit integer.
163164
DOUBLE (int): The value is a double precision floating point number.
164-
STRING (int): The value is a text string.
165-
This value type can be used only if the metric kind is ``GAUGE``.
166-
DISTRIBUTION (int): The value is a ````Distribution````.
165+
STRING (int): The value is a text string. This value type can be used only if the
166+
metric kind is ``GAUGE``.
167+
DISTRIBUTION (int): The value is a ``Distribution``.
167168
MONEY (int): The value is money.
168169
"""
169170
VALUE_TYPE_UNSPECIFIED = 0

0 commit comments

Comments
 (0)