Skip to content

Commit 46a0687

Browse files
committed
fix versioning errors
1 parent afa072c commit 46a0687

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appengine/flexible/tasks/create_http_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def create_http_task(project,
2727
# [START cloud_tasks_create_http_task]
2828
"""Create a task for a given queue with an arbitrary payload."""
2929

30-
from google.cloud import tasks
30+
from google.cloud import tasks_v2beta3
3131
from google.protobuf import timestamp_pb2
3232

3333
# Create a client.
34-
client = tasks.CloudTasksClient()
34+
client = tasks_v2beta3.CloudTasksClient()
3535

3636
# TODO(developer): Uncomment these lines and replace with your values.
3737
# project = 'my-project-id'

0 commit comments

Comments
 (0)