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

Commit adf58f8

Browse files
authored
Standardize on CamelCase, reword confusing endpoint name [(#1288)](GoogleCloudPlatform/python-docs-samples#1288)
1 parent 2477d24 commit adf58f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/snippets/pull_queue_snippets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def create_task(project, queue, location):
4747
# Construct the request body.
4848
task = {
4949
'task': {
50-
'pull_message': {
50+
'pullMessage': {
5151
'payload': converted_payload
5252
}
5353
}
@@ -77,7 +77,7 @@ def pull_task(project, queue, location):
7777

7878
duration_seconds = '600s'
7979
pull_options = {
80-
'max_tasks': 1,
80+
'maxTasks': 1,
8181
'leaseDuration': duration_seconds,
8282
'responseView': 'FULL'
8383
}

0 commit comments

Comments
 (0)