Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Python/taskqueues-backup-images/functions/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def backupapod(req: tasks_fn.CallableRequest) -> str:
def enqueuebackuptasks(_: https_fn.Request) -> https_fn.Response:
"""Adds backup tasks to a Cloud Tasks queue."""
tasks_client = tasks_v2.CloudTasksClient()
task_queue = tasks_client.queue_path(params.PROJECT_ID.value, SupportedRegion.US_CENTRAL1,
task_queue = tasks_client.queue_path(params.PROJECT_ID.value, SupportedRegion.US_CENTRAL1.value,
"backupapod")
target_uri = get_function_url("backupapod")

Expand Down Expand Up @@ -126,7 +126,7 @@ def enqueuebackuptasks(_: https_fn.Request) -> https_fn.Response:


# [START v2GetFunctionUri]
def get_function_url(name: str, location: str = SupportedRegion.US_CENTRAL1) -> str:
def get_function_url(name: str, location: str = SupportedRegion.US_CENTRAL1.value) -> str:
"""Get the URL of a given v2 cloud function.

Params:
Expand Down