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

File tree

7 files changed

+4598
-107
lines changed

7 files changed

+4598
-107
lines changed
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,51 @@
9696
]
9797
}
9898
}
99+
},
100+
"rest": {
101+
"libraryClient": "TranscoderServiceClient",
102+
"rpcs": {
103+
"CreateJob": {
104+
"methods": [
105+
"create_job"
106+
]
107+
},
108+
"CreateJobTemplate": {
109+
"methods": [
110+
"create_job_template"
111+
]
112+
},
113+
"DeleteJob": {
114+
"methods": [
115+
"delete_job"
116+
]
117+
},
118+
"DeleteJobTemplate": {
119+
"methods": [
120+
"delete_job_template"
121+
]
122+
},
123+
"GetJob": {
124+
"methods": [
125+
"get_job"
126+
]
127+
},
128+
"GetJobTemplate": {
129+
"methods": [
130+
"get_job_template"
131+
]
132+
},
133+
"ListJobTemplates": {
134+
"methods": [
135+
"list_job_templates"
136+
]
137+
},
138+
"ListJobs": {
139+
"methods": [
140+
"list_jobs"
141+
]
142+
}
143+
}
99144
}
100145
}
101146
}
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
from .transports.base import DEFAULT_CLIENT_INFO, TranscoderServiceTransport
5656
from .transports.grpc import TranscoderServiceGrpcTransport
5757
from .transports.grpc_asyncio import TranscoderServiceGrpcAsyncIOTransport
58+
from .transports.rest import TranscoderServiceRestTransport
5859

5960

6061
class TranscoderServiceClientMeta(type):
@@ -70,6 +71,7 @@ class TranscoderServiceClientMeta(type):
7071
) # type: Dict[str, Type[TranscoderServiceTransport]]
7172
_transport_registry["grpc"] = TranscoderServiceGrpcTransport
7273
_transport_registry["grpc_asyncio"] = TranscoderServiceGrpcAsyncIOTransport
74+
_transport_registry["rest"] = TranscoderServiceRestTransport
7375

7476
def get_transport_class(
7577
cls,
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
from .base import TranscoderServiceTransport
2020
from .grpc import TranscoderServiceGrpcTransport
2121
from .grpc_asyncio import TranscoderServiceGrpcAsyncIOTransport
22+
from .rest import TranscoderServiceRestInterceptor, TranscoderServiceRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = OrderedDict() # type: Dict[str, Type[TranscoderServiceTransport]]
2526
_transport_registry["grpc"] = TranscoderServiceGrpcTransport
2627
_transport_registry["grpc_asyncio"] = TranscoderServiceGrpcAsyncIOTransport
28+
_transport_registry["rest"] = TranscoderServiceRestTransport
2729

2830
__all__ = (
2931
"TranscoderServiceTransport",
3032
"TranscoderServiceGrpcTransport",
3133
"TranscoderServiceGrpcAsyncIOTransport",
34+
"TranscoderServiceRestTransport",
35+
"TranscoderServiceRestInterceptor",
3236
)

0 commit comments

Comments
 (0)