Skip to content

Commit b866a87

Browse files
authored
Scheduler: Add v1. (googleapis#7608)
* Add v1. * Explain previous versions in index.rst * Add changelog to index.rst
1 parent b487f69 commit b866a87

26 files changed

Lines changed: 5166 additions & 28 deletions

scheduler/docs/changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../CHANGELOG.md

scheduler/docs/gapic/v1/api.rst

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

scheduler/docs/gapic/v1/types.rst

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

scheduler/docs/index.rst

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,32 @@
11
.. include:: /../scheduler/README.rst
22

3-
Api Reference
4-
-------------
3+
This package includes clients for multiple versions of the Cloud Scheduler
4+
API. By default, you will get ``v1``, the latest stable version.
5+
6+
.. toctree::
7+
:maxdepth: 2
8+
9+
gapic/v1/api
10+
gapic/v1/types
11+
12+
13+
Previous beta release ``v1beta1`` is provided as well.
14+
15+
An API and type reference is provided for ``v1beta1``:
16+
517
.. toctree::
618
:maxdepth: 2
719

820
gapic/v1beta1/api
9-
gapic/v1beta1/types
21+
gapic/v1beta1/types
22+
23+
24+
Changelog
25+
---------
26+
27+
For a list of all ``google-cloud-scheduler`` releases:
28+
29+
.. toctree::
30+
:maxdepth: 2
31+
32+
changelog

scheduler/google/cloud/scheduler.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.scheduler_v1beta1 import CloudSchedulerClient
20-
from google.cloud.scheduler_v1beta1 import enums
21-
from google.cloud.scheduler_v1beta1 import types
19+
from google.cloud.scheduler_v1 import CloudSchedulerClient
20+
from google.cloud.scheduler_v1 import enums
21+
from google.cloud.scheduler_v1 import types
2222

2323
__all__ = ("enums", "types", "CloudSchedulerClient")
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.scheduler_v1 import types
20+
from google.cloud.scheduler_v1.gapic import cloud_scheduler_client
21+
from google.cloud.scheduler_v1.gapic import enums
22+
23+
24+
class CloudSchedulerClient(cloud_scheduler_client.CloudSchedulerClient):
25+
__doc__ = cloud_scheduler_client.CloudSchedulerClient.__doc__
26+
enums = enums
27+
28+
29+
__all__ = ("enums", "types", "CloudSchedulerClient")

scheduler/google/cloud/scheduler_v1/gapic/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)