Skip to content

Commit b262661

Browse files
danoscarmiketheacodes
authored andcommitted
Generate Redis v1 with new redis/synth.py (#5945)
1 parent 07d74ce commit b262661

29 files changed

+3158
-116
lines changed

redis/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In order to use this library, you first need to go through the following steps:
2424

2525
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project
2626
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project
27-
.. _Enable the Google Cloud Memorystore for Redis API.: https://cloud.google.com/memorystore/
27+
.. _Enable the Google Cloud Memorystore for Redis API.: https://console.cloud.google.com/apis/library/redis.googleapis.com
2828
.. _Setup Authentication.: https://googlecloudplatform.github.io/google-cloud-python/latest/core/auth.html
2929

3030
Installation
@@ -72,5 +72,5 @@ Next Steps
7272
- View this `repository’s main README`_ to see the full list of Cloud
7373
APIs that we cover.
7474

75-
.. _Google Cloud Memorystore for Redis API Product documentation: https://cloud.google.com/redis
76-
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst
75+
.. _Google Cloud Memorystore for Redis API Product documentation: https://cloud.google.com/memorystore/
76+
.. _repository’s main README: https://github.com/GoogleCloudPlatform/google-cloud-python/blob/master/README.rst

redis/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 Google Cloud Memorystore for Redis API
2+
=================================================
3+
4+
.. automodule:: google.cloud.redis_v1
5+
:members:
6+
:inherited-members:

redis/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 Google Cloud Memorystore for Redis API Client
2+
=======================================================
3+
4+
.. automodule:: google.cloud.redis_v1.types
5+
:members:

redis/docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ Api Reference
55
.. toctree::
66
:maxdepth: 2
77

8+
gapic/v1/api
9+
gapic/v1/types
810
gapic/v1beta1/api
911
gapic/v1beta1/types

redis/google/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- coding: utf-8 -*-
2+
#
13
# Copyright 2018 Google LLC
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");

redis/google/cloud/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- coding: utf-8 -*-
2+
#
13
# Copyright 2018 Google LLC
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");

redis/google/cloud/redis.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# -*- coding: utf-8 -*-
2+
#
13
# Copyright 2018 Google LLC
24
#
35
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,9 +16,9 @@
1416

1517
from __future__ import absolute_import
1618

17-
from google.cloud.redis_v1beta1 import CloudRedisClient
18-
from google.cloud.redis_v1beta1 import enums
19-
from google.cloud.redis_v1beta1 import types
19+
from google.cloud.redis_v1 import CloudRedisClient
20+
from google.cloud.redis_v1 import enums
21+
from google.cloud.redis_v1 import types
2022

2123
__all__ = (
2224
'enums',
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Copyright 2018 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.redis_v1 import types
20+
from google.cloud.redis_v1.gapic import cloud_redis_client
21+
from google.cloud.redis_v1.gapic import enums
22+
23+
24+
class CloudRedisClient(cloud_redis_client.CloudRedisClient):
25+
__doc__ = cloud_redis_client.CloudRedisClient.__doc__
26+
enums = enums
27+
28+
29+
__all__ = (
30+
'enums',
31+
'types',
32+
'CloudRedisClient',
33+
)

redis/google/cloud/redis_v1/gapic/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)