Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 3a95f76

Browse files
docs: Add documentation for enums (#145)
* docs: Add documentation for enums fix: Add context manager return types chore: Update gapic-generator-python to v1.8.1 PiperOrigin-RevId: 503210727 Source-Link: googleapis/googleapis@a391fd1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0080f830dec37c3384157082bce279e37079ea58 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDA4MGY4MzBkZWMzN2MzMzg0MTU3MDgyYmNlMjc5ZTM3MDc5ZWE1OCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 2a704a2 commit 3a95f76

File tree

4 files changed

+46
-5
lines changed

4 files changed

+46
-5
lines changed

google/cloud/debugger_v2/services/controller2/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def sample_update_active_breakpoint():
783783
# Done; return the response.
784784
return response
785785

786-
def __enter__(self):
786+
def __enter__(self) -> "Controller2Client":
787787
return self
788788

789789
def __exit__(self, type, value, traceback):

google/cloud/debugger_v2/services/debugger2/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ def sample_list_debuggees():
10171017
# Done; return the response.
10181018
return response
10191019

1020-
def __enter__(self):
1020+
def __enter__(self) -> "Debugger2Client":
10211021
return self
10221022

10231023
def __exit__(self, type, value, traceback):

google/cloud/debugger_v2/types/data.py

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,29 @@ class StatusMessage(proto.Message):
8282
"""
8383

8484
class Reference(proto.Enum):
85-
r"""Enumerates references to which the message applies."""
85+
r"""Enumerates references to which the message applies.
86+
87+
Values:
88+
UNSPECIFIED (0):
89+
Status doesn't refer to any particular input.
90+
BREAKPOINT_SOURCE_LOCATION (3):
91+
Status applies to the breakpoint and is
92+
related to its location.
93+
BREAKPOINT_CONDITION (4):
94+
Status applies to the breakpoint and is
95+
related to its condition.
96+
BREAKPOINT_EXPRESSION (7):
97+
Status applies to the breakpoint and is
98+
related to its expressions.
99+
BREAKPOINT_AGE (8):
100+
Status applies to the breakpoint and is
101+
related to its age.
102+
VARIABLE_NAME (5):
103+
Status applies to the entire variable.
104+
VARIABLE_VALUE (6):
105+
Status applies to variable value (variable
106+
name is valid).
107+
"""
86108
UNSPECIFIED = 0
87109
BREAKPOINT_SOURCE_LOCATION = 3
88110
BREAKPOINT_CONDITION = 4
@@ -439,12 +461,31 @@ class Action(proto.Enum):
439461
r"""Actions that can be taken when a breakpoint hits.
440462
Agents should reject breakpoints with unsupported or unknown
441463
action values.
464+
465+
Values:
466+
CAPTURE (0):
467+
Capture stack frame and variables and update
468+
the breakpoint. The data is only captured once.
469+
After that the breakpoint is set in a final
470+
state.
471+
LOG (1):
472+
Log each breakpoint hit. The breakpoint
473+
remains active until deleted or expired.
442474
"""
443475
CAPTURE = 0
444476
LOG = 1
445477

446478
class LogLevel(proto.Enum):
447-
r"""Log severity levels."""
479+
r"""Log severity levels.
480+
481+
Values:
482+
INFO (0):
483+
Information log message.
484+
WARNING (1):
485+
Warning log message.
486+
ERROR (2):
487+
Error log message.
488+
"""
448489
INFO = 0
449490
WARNING = 1
450491
ERROR = 2

samples/generated_samples/snippet_metadata_google.devtools.clouddebugger.v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-debugger-client",
11-
"version": "1.6.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)