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 812a92d commit a81da55
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 82 deletions.
40 changes: 18 additions & 22 deletions packages/google-cloud-tasks/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,52 @@

.. include:: multiprocessing.rst

API Reference
-------------
This package includes clients for multiple versions of Cloud Tasks.
By default, you will get version ``tasks_v2``.

This package includes clients for multiple versions of the Tasks
API. By default, you will get ``v2``, the latest version.

API Reference
-------------
.. toctree::
:maxdepth: 2

tasks_v2/services
tasks_v2/types

API Reference
-------------
.. toctree::
:maxdepth: 2

The previous beta releases, spelled ``v2beta3`` and ``v2beta2``, are provided to continue to
support code previously written against them. In order to use them, you
will want to import from e.g. ``google.cloud.tasks_v2beta3`` in lieu of
``google.cloud.tasks`` (or the equivalent ``google.cloud.tasks_v2``).

v2beta3:
tasks_v2beta2/services
tasks_v2beta2/types

API Reference
-------------
.. toctree::
:maxdepth: 2

tasks_v2beta3/services
tasks_v2beta3/types

v2beta2:

.. toctree::
:maxdepth: 2

tasks_v2beta2/services
tasks_v2beta2/types

Migration Guide
---------------

See the guide below for instructions on migrating to the 2.x release of this library.
See the guide below for instructions on migrating to the latest version.

.. toctree::
:maxdepth: 2

UPGRADING
 UPGRADING


Changelog
---------

For a list of all `google-cloud-tasks` releases.
For a list of all ``google-cloud-tasks`` releases:

.. toctree::
:maxdepth: 2

changelog
changelog
2 changes: 1 addition & 1 deletion packages/google-cloud-tasks/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def cover(session):
test runs (not system test runs), and then erases coverage data.
"""
session.install("coverage", "pytest-cov")
session.run("coverage", "report", "--show-missing", "--fail-under=98")
session.run("coverage", "report", "--show-missing", "--fail-under=100")

session.run("coverage", "erase")

Expand Down
51 changes: 0 additions & 51 deletions packages/google-cloud-tasks/owlbot.py

This file was deleted.

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 a81da55

Please sign in to comment.