Skip to content

Commit dad3ee6

Browse files
chore: delete owlbot.py (#184)
* chore: delete owlbot.py * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 6f90bd1 commit dad3ee6

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

cloud-tasks/snippets/create_http_task_with_token.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,7 @@
1616

1717

1818
def create_http_task(
19-
project,
20-
queue,
21-
location,
22-
url,
23-
service_account_email,
24-
audience=None,
25-
payload=None,
19+
project, queue, location, url, service_account_email, audience=None, payload=None,
2620
):
2721
# [START cloud_tasks_create_http_task_with_token]
2822
"""Create a task for a given queue with an arbitrary payload."""
@@ -49,7 +43,10 @@ def create_http_task(
4943
"http_request": { # Specify the type of request.
5044
"http_method": tasks_v2.HttpMethod.POST,
5145
"url": url, # The full url path that the task will be sent to.
52-
"oidc_token": {"service_account_email": service_account_email, "audience": audience},
46+
"oidc_token": {
47+
"service_account_email": service_account_email,
48+
"audience": audience,
49+
},
5350
}
5451
}
5552

0 commit comments

Comments
 (0)