diff --git a/appengine/flexible/tasks/requirements.txt b/appengine/flexible/tasks/requirements.txt index 21496fb45b28..13167074586e 100644 --- a/appengine/flexible/tasks/requirements.txt +++ b/appengine/flexible/tasks/requirements.txt @@ -1,4 +1,4 @@ Flask==1.1.1 gunicorn==19.9.0 -google-cloud-tasks==1.2.1 +google-cloud-tasks==1.3.0 googleapis-common-protos==1.6.0 diff --git a/tasks/create_http_task.py b/tasks/create_http_task.py index eb1a446fc9d8..d86fc5b69371 100644 --- a/tasks/create_http_task.py +++ b/tasks/create_http_task.py @@ -27,11 +27,11 @@ def create_http_task(project, # [START cloud_tasks_create_http_task] """Create a task for a given queue with an arbitrary payload.""" - from google.cloud import tasks_v2beta3 + from google.cloud import tasks_v2 from google.protobuf import timestamp_pb2 # Create a client. - client = tasks_v2beta3.CloudTasksClient() + client = tasks_v2.CloudTasksClient() # TODO(developer): Uncomment these lines and replace with your values. # project = 'my-project-id' diff --git a/tasks/create_http_task_with_token.py b/tasks/create_http_task_with_token.py index 665d0714384c..0c976913ceef 100644 --- a/tasks/create_http_task_with_token.py +++ b/tasks/create_http_task_with_token.py @@ -27,11 +27,11 @@ def create_http_task(project, # [START cloud_tasks_create_http_task_with_token] """Create a task for a given queue with an arbitrary payload.""" - from google.cloud import tasks_v2beta3 + from google.cloud import tasks_v2 from google.protobuf import timestamp_pb2 # Create a client. - client = tasks_v2beta3.CloudTasksClient() + client = tasks_v2.CloudTasksClient() # TODO(developer): Uncomment these lines and replace with your values. # project = 'my-project-id' diff --git a/tasks/requirements.txt b/tasks/requirements.txt index 21fc2a7ed78b..a945842dd65f 100644 --- a/tasks/requirements.txt +++ b/tasks/requirements.txt @@ -1,2 +1,2 @@ -google-cloud-tasks==1.2.1 +google-cloud-tasks==1.3.0 googleapis-common-protos==1.6.0