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

Commit 3c36813

Browse files
feat: enable "rest" transport in Python for services supporting numeric enums (#283)
* 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 * 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 04c500f commit 3c36813

File tree

7 files changed

+4598
-107
lines changed

7 files changed

+4598
-107
lines changed

google/cloud/video/transcoder_v1/gapic_metadata.json

Lines changed: 45 additions & 0 deletions
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
}

google/cloud/video/transcoder_v1/services/transcoder_service/client.py

Lines changed: 2 additions & 0 deletions
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,

google/cloud/video/transcoder_v1/services/transcoder_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 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)