Skip to content

Commit

Permalink
chore: delete owlbot.py (#184)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
parthea and gcf-owl-bot[bot] authored Nov 22, 2021
1 parent 22d0c57 commit 55d6f22
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions cloud_tasks/snippets/create_http_task_with_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@


def create_http_task(
project,
queue,
location,
url,
service_account_email,
audience=None,
payload=None,
project, queue, location, url, service_account_email, audience=None, payload=None,
):
# [START cloud_tasks_create_http_task_with_token]
"""Create a task for a given queue with an arbitrary payload."""
Expand All @@ -49,7 +43,10 @@ def create_http_task(
"http_request": { # Specify the type of request.
"http_method": tasks_v2.HttpMethod.POST,
"url": url, # The full url path that the task will be sent to.
"oidc_token": {"service_account_email": service_account_email, "audience": audience},
"oidc_token": {
"service_account_email": service_account_email,
"audience": audience,
},
}
}

Expand Down

0 comments on commit 55d6f22

Please sign in to comment.