Skip to content

Commit

Permalink
Tasks: Generate v2. (#7547)
Browse files Browse the repository at this point in the history
* Initial generation of v2

* Update docs

* Fix index.rst

* Fix docstring.
  • Loading branch information
busunkim96 committed Mar 26, 2019
1 parent ecad889 commit c9fde4f
Show file tree
Hide file tree
Showing 28 changed files with 8,423 additions and 16 deletions.
6 changes: 6 additions & 0 deletions packages/google-cloud-tasks/docs/gapic/v2/api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Client for Cloud Tasks API
==========================

.. automodule:: google.cloud.tasks_v2
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-tasks/docs/gapic/v2/types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Types for Cloud Tasks API Client
================================

.. automodule:: google.cloud.tasks_v2.types
:members:
15 changes: 9 additions & 6 deletions packages/google-cloud-tasks/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ API. By default, you will get ``v2beta3``, the latest version.

.. toctree::
:maxdepth: 2

gapic/v2/api
gapic/v2/types

gapic/v2beta3/api
gapic/v2beta3/types

The previous beta release, spelled ``v2beta2``, is provided to continue to
support code previously written against them. In order to use ththem, you
will want to import from e.g. ``google.cloud.tasks_v2beta2`` in lieu of
``google.cloud.tasks`` (or the equivalent ``google.cloud.tasks_v2beta3``).
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``).

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

.. toctree::
:maxdepth: 2

gapic/v2beta3/api
gapic/v2beta3/types
gapic/v2beta2/api
gapic/v2beta2/types
6 changes: 3 additions & 3 deletions packages/google-cloud-tasks/google/cloud/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

from __future__ import absolute_import

from google.cloud.tasks_v2beta3 import CloudTasksClient
from google.cloud.tasks_v2beta3 import enums
from google.cloud.tasks_v2beta3 import types
from google.cloud.tasks_v2 import CloudTasksClient
from google.cloud.tasks_v2 import enums
from google.cloud.tasks_v2 import types

__all__ = ("enums", "types", "CloudTasksClient")
29 changes: 29 additions & 0 deletions packages/google-cloud-tasks/google/cloud/tasks_v2/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
#
# 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.

from __future__ import absolute_import

from google.cloud.tasks_v2 import types
from google.cloud.tasks_v2.gapic import cloud_tasks_client
from google.cloud.tasks_v2.gapic import enums


class CloudTasksClient(cloud_tasks_client.CloudTasksClient):
__doc__ = cloud_tasks_client.CloudTasksClient.__doc__
enums = enums


__all__ = ("enums", "types", "CloudTasksClient")
Empty file.
Loading

0 comments on commit c9fde4f

Please sign in to comment.