diff --git a/tasks/docs/index.rst b/tasks/docs/index.rst index 4e5bc9699037..f6467eeb7463 100644 --- a/tasks/docs/index.rst +++ b/tasks/docs/index.rst @@ -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 @@ -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 diff --git a/tasks/tests/system/gapic/v2/test_system_tasks_v2.py b/tasks/tests/system/gapic/v2/test_system_tasks_v2.py new file mode 100644 index 000000000000..ff6c8243f97c --- /dev/null +++ b/tasks/tests/system/gapic/v2/test_system_tasks_v2.py @@ -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)