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

Commit 48e8350

Browse files
feat: Add support for REST transport (#75)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 474644226 Source-Link: googleapis/googleapis@f90b329 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ad8763bde676f92a3eb70753ae1cfed0e81387e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFkODc2M2JkZTY3NmY5MmEzZWI3MDc1M2FlMWNmZWQwZTgxMzg3ZSJ9 PiperOrigin-RevId: 474571730 Source-Link: googleapis/googleapis@5a9ee4d Source-Link: https://github.com/googleapis/googleapis-gen/commit/ceafe521f137680fdee2f9ca9e1947cdd825070d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2VhZmU1MjFmMTM3NjgwZmRlZTJmOWNhOWUxOTQ3Y2RkODI1MDcwZCJ9 fix(deps): require google-api-core>=1.33.1,>=2.8.0 fix(deps): require protobuf >= 3.20.1
1 parent cecaa93 commit 48e8350

File tree

49 files changed

+12428
-599
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+12428
-599
lines changed

google/cloud/video/stitcher_v1/gapic_metadata.json

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,111 @@
216216
]
217217
}
218218
}
219+
},
220+
"rest": {
221+
"libraryClient": "VideoStitcherServiceClient",
222+
"rpcs": {
223+
"CreateCdnKey": {
224+
"methods": [
225+
"create_cdn_key"
226+
]
227+
},
228+
"CreateLiveSession": {
229+
"methods": [
230+
"create_live_session"
231+
]
232+
},
233+
"CreateSlate": {
234+
"methods": [
235+
"create_slate"
236+
]
237+
},
238+
"CreateVodSession": {
239+
"methods": [
240+
"create_vod_session"
241+
]
242+
},
243+
"DeleteCdnKey": {
244+
"methods": [
245+
"delete_cdn_key"
246+
]
247+
},
248+
"DeleteSlate": {
249+
"methods": [
250+
"delete_slate"
251+
]
252+
},
253+
"GetCdnKey": {
254+
"methods": [
255+
"get_cdn_key"
256+
]
257+
},
258+
"GetLiveAdTagDetail": {
259+
"methods": [
260+
"get_live_ad_tag_detail"
261+
]
262+
},
263+
"GetLiveSession": {
264+
"methods": [
265+
"get_live_session"
266+
]
267+
},
268+
"GetSlate": {
269+
"methods": [
270+
"get_slate"
271+
]
272+
},
273+
"GetVodAdTagDetail": {
274+
"methods": [
275+
"get_vod_ad_tag_detail"
276+
]
277+
},
278+
"GetVodSession": {
279+
"methods": [
280+
"get_vod_session"
281+
]
282+
},
283+
"GetVodStitchDetail": {
284+
"methods": [
285+
"get_vod_stitch_detail"
286+
]
287+
},
288+
"ListCdnKeys": {
289+
"methods": [
290+
"list_cdn_keys"
291+
]
292+
},
293+
"ListLiveAdTagDetails": {
294+
"methods": [
295+
"list_live_ad_tag_details"
296+
]
297+
},
298+
"ListSlates": {
299+
"methods": [
300+
"list_slates"
301+
]
302+
},
303+
"ListVodAdTagDetails": {
304+
"methods": [
305+
"list_vod_ad_tag_details"
306+
]
307+
},
308+
"ListVodStitchDetails": {
309+
"methods": [
310+
"list_vod_stitch_details"
311+
]
312+
},
313+
"UpdateCdnKey": {
314+
"methods": [
315+
"update_cdn_key"
316+
]
317+
},
318+
"UpdateSlate": {
319+
"methods": [
320+
"update_slate"
321+
]
322+
}
323+
}
219324
}
220325
}
221326
}

google/cloud/video/stitcher_v1/services/video_stitcher_service/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
from .transports.base import DEFAULT_CLIENT_INFO, VideoStitcherServiceTransport
5050
from .transports.grpc import VideoStitcherServiceGrpcTransport
5151
from .transports.grpc_asyncio import VideoStitcherServiceGrpcAsyncIOTransport
52+
from .transports.rest import VideoStitcherServiceRestTransport
5253

5354

5455
class VideoStitcherServiceClientMeta(type):
@@ -64,6 +65,7 @@ class VideoStitcherServiceClientMeta(type):
6465
) # type: Dict[str, Type[VideoStitcherServiceTransport]]
6566
_transport_registry["grpc"] = VideoStitcherServiceGrpcTransport
6667
_transport_registry["grpc_asyncio"] = VideoStitcherServiceGrpcAsyncIOTransport
68+
_transport_registry["rest"] = VideoStitcherServiceRestTransport
6769

6870
def get_transport_class(
6971
cls,
@@ -502,6 +504,9 @@ def __init__(
502504
transport (Union[str, VideoStitcherServiceTransport]): The
503505
transport to use. If set to None, a transport is chosen
504506
automatically.
507+
NOTE: "rest" transport functionality is currently in a
508+
beta state (preview). We welcome your feedback via an
509+
issue in this library's source repository.
505510
client_options (google.api_core.client_options.ClientOptions): Custom options for the
506511
client. It won't take effect if a ``transport`` instance is provided.
507512
(1) The ``api_endpoint`` property can be used to override the

google/cloud/video/stitcher_v1/services/video_stitcher_service/transports/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@
1919
from .base import VideoStitcherServiceTransport
2020
from .grpc import VideoStitcherServiceGrpcTransport
2121
from .grpc_asyncio import VideoStitcherServiceGrpcAsyncIOTransport
22+
from .rest import VideoStitcherServiceRestInterceptor, VideoStitcherServiceRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = (
2526
OrderedDict()
2627
) # type: Dict[str, Type[VideoStitcherServiceTransport]]
2728
_transport_registry["grpc"] = VideoStitcherServiceGrpcTransport
2829
_transport_registry["grpc_asyncio"] = VideoStitcherServiceGrpcAsyncIOTransport
30+
_transport_registry["rest"] = VideoStitcherServiceRestTransport
2931

3032
__all__ = (
3133
"VideoStitcherServiceTransport",
3234
"VideoStitcherServiceGrpcTransport",
3335
"VideoStitcherServiceGrpcAsyncIOTransport",
36+
"VideoStitcherServiceRestTransport",
37+
"VideoStitcherServiceRestInterceptor",
3438
)

0 commit comments

Comments
 (0)