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

Commit

Permalink
feat: Add support for REST transport (#75)
Browse files Browse the repository at this point in the history
- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] authored Sep 16, 2022
1 parent cecaa93 commit 48e8350
Show file tree
Hide file tree
Showing 49 changed files with 12,428 additions and 599 deletions.
105 changes: 105 additions & 0 deletions google/cloud/video/stitcher_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,111 @@
]
}
}
},
"rest": {
"libraryClient": "VideoStitcherServiceClient",
"rpcs": {
"CreateCdnKey": {
"methods": [
"create_cdn_key"
]
},
"CreateLiveSession": {
"methods": [
"create_live_session"
]
},
"CreateSlate": {
"methods": [
"create_slate"
]
},
"CreateVodSession": {
"methods": [
"create_vod_session"
]
},
"DeleteCdnKey": {
"methods": [
"delete_cdn_key"
]
},
"DeleteSlate": {
"methods": [
"delete_slate"
]
},
"GetCdnKey": {
"methods": [
"get_cdn_key"
]
},
"GetLiveAdTagDetail": {
"methods": [
"get_live_ad_tag_detail"
]
},
"GetLiveSession": {
"methods": [
"get_live_session"
]
},
"GetSlate": {
"methods": [
"get_slate"
]
},
"GetVodAdTagDetail": {
"methods": [
"get_vod_ad_tag_detail"
]
},
"GetVodSession": {
"methods": [
"get_vod_session"
]
},
"GetVodStitchDetail": {
"methods": [
"get_vod_stitch_detail"
]
},
"ListCdnKeys": {
"methods": [
"list_cdn_keys"
]
},
"ListLiveAdTagDetails": {
"methods": [
"list_live_ad_tag_details"
]
},
"ListSlates": {
"methods": [
"list_slates"
]
},
"ListVodAdTagDetails": {
"methods": [
"list_vod_ad_tag_details"
]
},
"ListVodStitchDetails": {
"methods": [
"list_vod_stitch_details"
]
},
"UpdateCdnKey": {
"methods": [
"update_cdn_key"
]
},
"UpdateSlate": {
"methods": [
"update_slate"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, VideoStitcherServiceTransport
from .transports.grpc import VideoStitcherServiceGrpcTransport
from .transports.grpc_asyncio import VideoStitcherServiceGrpcAsyncIOTransport
from .transports.rest import VideoStitcherServiceRestTransport


class VideoStitcherServiceClientMeta(type):
Expand All @@ -64,6 +65,7 @@ class VideoStitcherServiceClientMeta(type):
) # type: Dict[str, Type[VideoStitcherServiceTransport]]
_transport_registry["grpc"] = VideoStitcherServiceGrpcTransport
_transport_registry["grpc_asyncio"] = VideoStitcherServiceGrpcAsyncIOTransport
_transport_registry["rest"] = VideoStitcherServiceRestTransport

def get_transport_class(
cls,
Expand Down Expand Up @@ -502,6 +504,9 @@ def __init__(
transport (Union[str, VideoStitcherServiceTransport]): The
transport to use. If set to None, a transport is chosen
automatically.
NOTE: "rest" transport functionality is currently in a
beta state (preview). We welcome your feedback via an
issue in this library's source repository.
client_options (google.api_core.client_options.ClientOptions): Custom options for the
client. It won't take effect if a ``transport`` instance is provided.
(1) The ``api_endpoint`` property can be used to override the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,20 @@
from .base import VideoStitcherServiceTransport
from .grpc import VideoStitcherServiceGrpcTransport
from .grpc_asyncio import VideoStitcherServiceGrpcAsyncIOTransport
from .rest import VideoStitcherServiceRestInterceptor, VideoStitcherServiceRestTransport

# Compile a registry of transports.
_transport_registry = (
OrderedDict()
) # type: Dict[str, Type[VideoStitcherServiceTransport]]
_transport_registry["grpc"] = VideoStitcherServiceGrpcTransport
_transport_registry["grpc_asyncio"] = VideoStitcherServiceGrpcAsyncIOTransport
_transport_registry["rest"] = VideoStitcherServiceRestTransport

__all__ = (
"VideoStitcherServiceTransport",
"VideoStitcherServiceGrpcTransport",
"VideoStitcherServiceGrpcAsyncIOTransport",
"VideoStitcherServiceRestTransport",
"VideoStitcherServiceRestInterceptor",
)
Loading

0 comments on commit 48e8350

Please sign in to comment.