Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.

Commit f0cb14c

Browse files
feat: enable "rest" transport in Python for services supporting numeric enums (#145)
* 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: Victor Chudnovsky <vchudnov@google.com>
1 parent b6cc757 commit f0cb14c

File tree

8 files changed

+7961
-152
lines changed

8 files changed

+7961
-152
lines changed

google/cloud/video/live_stream_v1/gapic_metadata.json

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,91 @@
176176
]
177177
}
178178
}
179+
},
180+
"rest": {
181+
"libraryClient": "LivestreamServiceClient",
182+
"rpcs": {
183+
"CreateChannel": {
184+
"methods": [
185+
"create_channel"
186+
]
187+
},
188+
"CreateEvent": {
189+
"methods": [
190+
"create_event"
191+
]
192+
},
193+
"CreateInput": {
194+
"methods": [
195+
"create_input"
196+
]
197+
},
198+
"DeleteChannel": {
199+
"methods": [
200+
"delete_channel"
201+
]
202+
},
203+
"DeleteEvent": {
204+
"methods": [
205+
"delete_event"
206+
]
207+
},
208+
"DeleteInput": {
209+
"methods": [
210+
"delete_input"
211+
]
212+
},
213+
"GetChannel": {
214+
"methods": [
215+
"get_channel"
216+
]
217+
},
218+
"GetEvent": {
219+
"methods": [
220+
"get_event"
221+
]
222+
},
223+
"GetInput": {
224+
"methods": [
225+
"get_input"
226+
]
227+
},
228+
"ListChannels": {
229+
"methods": [
230+
"list_channels"
231+
]
232+
},
233+
"ListEvents": {
234+
"methods": [
235+
"list_events"
236+
]
237+
},
238+
"ListInputs": {
239+
"methods": [
240+
"list_inputs"
241+
]
242+
},
243+
"StartChannel": {
244+
"methods": [
245+
"start_channel"
246+
]
247+
},
248+
"StopChannel": {
249+
"methods": [
250+
"stop_channel"
251+
]
252+
},
253+
"UpdateChannel": {
254+
"methods": [
255+
"update_channel"
256+
]
257+
},
258+
"UpdateInput": {
259+
"methods": [
260+
"update_input"
261+
]
262+
}
263+
}
179264
}
180265
}
181266
}

google/cloud/video/live_stream_v1/services/livestream_service/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
from .transports.base import DEFAULT_CLIENT_INFO, LivestreamServiceTransport
6060
from .transports.grpc import LivestreamServiceGrpcTransport
6161
from .transports.grpc_asyncio import LivestreamServiceGrpcAsyncIOTransport
62+
from .transports.rest import LivestreamServiceRestTransport
6263

6364

6465
class LivestreamServiceClientMeta(type):
@@ -74,6 +75,7 @@ class LivestreamServiceClientMeta(type):
7475
) # type: Dict[str, Type[LivestreamServiceTransport]]
7576
_transport_registry["grpc"] = LivestreamServiceGrpcTransport
7677
_transport_registry["grpc_asyncio"] = LivestreamServiceGrpcAsyncIOTransport
78+
_transport_registry["rest"] = LivestreamServiceRestTransport
7779

7880
def get_transport_class(
7981
cls,

google/cloud/video/live_stream_v1/services/livestream_service/transports/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
from .base import LivestreamServiceTransport
2020
from .grpc import LivestreamServiceGrpcTransport
2121
from .grpc_asyncio import LivestreamServiceGrpcAsyncIOTransport
22+
from .rest import LivestreamServiceRestInterceptor, LivestreamServiceRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = OrderedDict() # type: Dict[str, Type[LivestreamServiceTransport]]
2526
_transport_registry["grpc"] = LivestreamServiceGrpcTransport
2627
_transport_registry["grpc_asyncio"] = LivestreamServiceGrpcAsyncIOTransport
28+
_transport_registry["rest"] = LivestreamServiceRestTransport
2729

2830
__all__ = (
2931
"LivestreamServiceTransport",
3032
"LivestreamServiceGrpcTransport",
3133
"LivestreamServiceGrpcAsyncIOTransport",
34+
"LivestreamServiceRestTransport",
35+
"LivestreamServiceRestInterceptor",
3236
)

0 commit comments

Comments
 (0)