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

Commit 3a44474

Browse files
authored
Update Cloud Tasks library version [(#2516)](GoogleCloudPlatform/python-docs-samples#2516)
* Update to new library * update library version
1 parent 5604ee4 commit 3a44474

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

samples/snippets/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_v2beta3
30+
from google.cloud import tasks_v2
3131
from google.protobuf import timestamp_pb2
3232

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

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

samples/snippets/create_http_task_with_token.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_with_token]
2828
"""Create a task for a given queue with an arbitrary payload."""
2929

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

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

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

samples/snippets/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
google-cloud-tasks==1.2.1
1+
google-cloud-tasks==1.3.0
22
googleapis-common-protos==1.6.0

0 commit comments

Comments
 (0)