Skip to content
Merged
Show file tree
Hide file tree
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
10 changes: 8 additions & 2 deletions tasks/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ API Reference
-------------

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

.. toctree::
:maxdepth: 2
Expand All @@ -18,12 +18,18 @@ 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``).

An API and type reference is provided the this beta also:
v2beta3:

.. toctree::
:maxdepth: 2

gapic/v2beta3/api
gapic/v2beta3/types

v2beta2:

.. toctree::
:maxdepth: 2

gapic/v2beta2/api
gapic/v2beta2/types
26 changes: 26 additions & 0 deletions tasks/tests/system/gapic/v2/test_system_tasks_v2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import os

from google.cloud import tasks_v2


class TestSystemTasks(object):
def test_list_queues(self):
client = tasks_v2.CloudTasksClient()

# Setup Request
parent = client.location_path(os.environ["PROJECT_ID"], "us-central1")
client.list_queues(parent)