Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasks: Generate v2. #7547

Merged
merged 4 commits into from
Mar 26, 2019
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
6 changes: 6 additions & 0 deletions 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 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 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 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 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