Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit cba273e

Browse files
erezhabaXinghua Dou
authored andcommitted
Use lowerCamelCase in Python agent code.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=187702795
1 parent 78c24ee commit cba273e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/googleclouddebugger/capture_collector.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ def CheckDataVisiblity(self, value):
426426

427427
return {
428428
'status': {
429-
'is_error': True,
430-
'refers_to': 'VARIABLE_NAME',
429+
'isError': True,
430+
'refersTo': 'VARIABLE_NAME',
431431
'description': {
432432
'format': reason
433433
}
@@ -452,7 +452,7 @@ def CaptureVariablesList(self, items, depth, empty_message, limits):
452452
len(v) >= limits.max_list_items):
453453
v.append({
454454
'status': {
455-
'refers_to': 'VARIABLE_VALUE',
455+
'refersTo': 'VARIABLE_VALUE',
456456
'description': {
457457
'format':
458458
('Only first $0 items were captured. Use in an '
@@ -463,8 +463,7 @@ def CaptureVariablesList(self, items, depth, empty_message, limits):
463463

464464
if not v:
465465
return [{'status': {
466-
'is_error': False,
467-
'refers_to': 'VARIABLE_NAME',
466+
'refersTo': 'VARIABLE_NAME',
468467
'description': {'format': empty_message}}}]
469468

470469
return v
@@ -648,7 +647,7 @@ def _CaptureUserId(self):
648647
"""Captures the user id of the end user, if possible."""
649648
user_kind, user_id = user_id_collector()
650649
if user_kind and user_id:
651-
self.breakpoint['evaluated_user_id'] = {'kind': user_kind, 'id': user_id}
650+
self.breakpoint['evaluatedUserId'] = {'kind': user_kind, 'id': user_id}
652651

653652

654653
class LogCollector(object):

0 commit comments

Comments
 (0)