Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 6d3c767

Browse filesBrowse files
feat: enable "rest" transport in Python for services supporting numeric enums (#251)
* feat: enable "rest" transport in Python for services supporting numeric enums PiperOrigin-RevId: 508143576 Source-Link: googleapis/googleapis@7a702a9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6ad1279c0e7aa787ac6b66c9fd4a210692edffcd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * fix: Add service_yaml_parameters to py_gapic_library BUILD.bazel targets PiperOrigin-RevId: 510187992 Source-Link: googleapis/googleapis@5edc235 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b0bedb72e4765a3e0b674a28c50ea0f9a9b26a89 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBiZWRiNzJlNDc2NWEzZTBiNjc0YTI4YzUwZWEwZjlhOWIyNmE4OSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: googleapis/googleapis@a45d9c0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1907294b1d8365ea24f8c5f2e059a64124c4ed3b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 84e2bf1 commit 6d3c767
Copy full SHA for 6d3c767

File tree

Expand file treeCollapse file tree

12 files changed

+10988
-338
lines changed
Filter options
Expand file treeCollapse file tree

12 files changed

+10988
-338
lines changed

‎google/cloud/redis_v1/gapic_metadata.json

Copy file name to clipboardExpand all lines: google/cloud/redis_v1/gapic_metadata.json
+60Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,66 @@
126126
]
127127
}
128128
}
129+
},
130+
"rest": {
131+
"libraryClient": "CloudRedisClient",
132+
"rpcs": {
133+
"CreateInstance": {
134+
"methods": [
135+
"create_instance"
136+
]
137+
},
138+
"DeleteInstance": {
139+
"methods": [
140+
"delete_instance"
141+
]
142+
},
143+
"ExportInstance": {
144+
"methods": [
145+
"export_instance"
146+
]
147+
},
148+
"FailoverInstance": {
149+
"methods": [
150+
"failover_instance"
151+
]
152+
},
153+
"GetInstance": {
154+
"methods": [
155+
"get_instance"
156+
]
157+
},
158+
"GetInstanceAuthString": {
159+
"methods": [
160+
"get_instance_auth_string"
161+
]
162+
},
163+
"ImportInstance": {
164+
"methods": [
165+
"import_instance"
166+
]
167+
},
168+
"ListInstances": {
169+
"methods": [
170+
"list_instances"
171+
]
172+
},
173+
"RescheduleMaintenance": {
174+
"methods": [
175+
"reschedule_maintenance"
176+
]
177+
},
178+
"UpdateInstance": {
179+
"methods": [
180+
"update_instance"
181+
]
182+
},
183+
"UpgradeInstance": {
184+
"methods": [
185+
"upgrade_instance"
186+
]
187+
}
188+
}
129189
}
130190
}
131191
}

‎google/cloud/redis_v1/services/cloud_redis/client.py

Copy file name to clipboardExpand all lines: google/cloud/redis_v1/services/cloud_redis/client.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
from .transports.base import DEFAULT_CLIENT_INFO, CloudRedisTransport
5959
from .transports.grpc import CloudRedisGrpcTransport
6060
from .transports.grpc_asyncio import CloudRedisGrpcAsyncIOTransport
61+
from .transports.rest import CloudRedisRestTransport
6162

6263

6364
class CloudRedisClientMeta(type):
@@ -71,6 +72,7 @@ class CloudRedisClientMeta(type):
7172
_transport_registry = OrderedDict() # type: Dict[str, Type[CloudRedisTransport]]
7273
_transport_registry["grpc"] = CloudRedisGrpcTransport
7374
_transport_registry["grpc_asyncio"] = CloudRedisGrpcAsyncIOTransport
75+
_transport_registry["rest"] = CloudRedisRestTransport
7476

7577
def get_transport_class(
7678
cls,

‎google/cloud/redis_v1/services/cloud_redis/transports/__init__.py

Copy file name to clipboardExpand all lines: google/cloud/redis_v1/services/cloud_redis/transports/__init__.py
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
from .base import CloudRedisTransport
2020
from .grpc import CloudRedisGrpcTransport
2121
from .grpc_asyncio import CloudRedisGrpcAsyncIOTransport
22+
from .rest import CloudRedisRestInterceptor, CloudRedisRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = OrderedDict() # type: Dict[str, Type[CloudRedisTransport]]
2526
_transport_registry["grpc"] = CloudRedisGrpcTransport
2627
_transport_registry["grpc_asyncio"] = CloudRedisGrpcAsyncIOTransport
28+
_transport_registry["rest"] = CloudRedisRestTransport
2729

2830
__all__ = (
2931
"CloudRedisTransport",
3032
"CloudRedisGrpcTransport",
3133
"CloudRedisGrpcAsyncIOTransport",
34+
"CloudRedisRestTransport",
35+
"CloudRedisRestInterceptor",
3236
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.