8000 Update Cloud Tasks library version (#2516) · mmhuang/python-docs-samples@3369fd0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3369fd0

Browse files
authored
Update Cloud Tasks library version (GoogleCloudPlatform#2516)
* Update to new library * update library version
1 parent 77c160b commit 3369fd0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
Flask==1.1.1
22
gunicorn==19.9.0
3-
google-cloud-tasks==1.2.1
3+
google-cloud-tasks==1.3.0
44
googleapis-common-protos==1.6.0

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_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'

tasks/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'

tasks/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)
0