Skip to content

Commit ee789e9

Browse files
authored
Tasks: Generate v2. (#7547)
* Initial generation of v2 * Update docs * Fix index.rst * Fix docstring.
1 parent ce71f8c commit ee789e9

28 files changed

+8423
-16
lines changed

tasks/docs/gapic/v2/api.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Client for Cloud Tasks API
2+
==========================
3+
4+
.. automodule:: google.cloud.tasks_v2
5+
:members:
6+
:inherited-members:

tasks/docs/gapic/v2/types.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Types for Cloud Tasks API Client
2+
================================
3+
4+
.. automodule:: google.cloud.tasks_v2.types
5+
:members:

tasks/docs/index.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,22 @@ API. By default, you will get ``v2beta3``, the latest version.
88

99
.. toctree::
1010
:maxdepth: 2
11+
12+
gapic/v2/api
13+
gapic/v2/types
1114

12-
gapic/v2beta3/api
13-
gapic/v2beta3/types
1415

15-
The previous beta release, spelled ``v2beta2``, is provided to continue to
16-
support code previously written against them. In order to use ththem, you
17-
will want to import from e.g. ``google.cloud.tasks_v2beta2`` in lieu of
18-
``google.cloud.tasks`` (or the equivalent ``google.cloud.tasks_v2beta3``).
16+
The previous beta releases, spelled ``v2beta3`` and ``v2beta2``, are provided to continue to
17+
support code previously written against them. In order to use them, you
18+
will want to import from e.g. ``google.cloud.tasks_v2beta3`` in lieu of
19+
``google.cloud.tasks`` (or the equivalent ``google.cloud.tasks_v2``).
1920

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

2223
.. toctree::
2324
:maxdepth: 2
2425

26+
gapic/v2beta3/api
27+
gapic/v2beta3/types
2528
gapic/v2beta2/api
2629
gapic/v2beta2/types

tasks/google/cloud/tasks.py

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

1717
from __future__ import absolute_import
1818

19-
from google.cloud.tasks_v2beta3 import CloudTasksClient
20-
from google.cloud.tasks_v2beta3 import enums
21-
from google.cloud.tasks_v2beta3 import types
19+
from google.cloud.tasks_v2 import CloudTasksClient
20+
from google.cloud.tasks_v2 import enums
21+
from google.cloud.tasks_v2 import types
2222

2323
__all__ = ("enums", "types", "CloudTasksClient")
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2019 Google LLC
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
from __future__ import absolute_import
18+
19+
from google.cloud.tasks_v2 import types
20+
from google.cloud.tasks_v2.gapic import cloud_tasks_client
21+
from google.cloud.tasks_v2.gapic import enums
22+
23+
24+
class CloudTasksClient(cloud_tasks_client.CloudTasksClient):
25+
__doc__ = cloud_tasks_client.CloudTasksClient.__doc__
26+
enums = enums
27+
28+
29+
__all__ = ("enums", "types", "CloudTasksClient")

tasks/google/cloud/tasks_v2/gapic/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)