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

Commit

Permalink
feat: enable "rest" transport in Python for services supporting numer…
Browse files Browse the repository at this point in the history
…ic enums (#283)

* feat: enable "rest" transport in Python for services supporting numeric enums

PiperOrigin-RevId: 508143576

Source-Link: googleapis/googleapis@7a702a9

Source-Link: googleapis/googleapis-gen@6ad1279
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: googleapis/googleapis-gen@1907294
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>
  • Loading branch information
3 people committed Feb 28, 2023
1 parent 04c500f commit 3c36813
Show file tree
Hide file tree
Showing 7 changed files with 4,598 additions and 107 deletions.
45 changes: 45 additions & 0 deletions google/cloud/video/transcoder_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,51 @@
]
}
}
},
"rest": {
"libraryClient": "TranscoderServiceClient",
"rpcs": {
"CreateJob": {
"methods": [
"create_job"
]
},
"CreateJobTemplate": {
"methods": [
"create_job_template"
]
},
"DeleteJob": {
"methods": [
"delete_job"
]
},
"DeleteJobTemplate": {
"methods": [
"delete_job_template"
]
},
"GetJob": {
"methods": [
"get_job"
]
},
"GetJobTemplate": {
"methods": [
"get_job_template"
]
},
"ListJobTemplates": {
"methods": [
"list_job_templates"
]
},
"ListJobs": {
"methods": [
"list_jobs"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, TranscoderServiceTransport
from .transports.grpc import TranscoderServiceGrpcTransport
from .transports.grpc_asyncio import TranscoderServiceGrpcAsyncIOTransport
from .transports.rest import TranscoderServiceRestTransport


class TranscoderServiceClientMeta(type):
Expand All @@ -70,6 +71,7 @@ class TranscoderServiceClientMeta(type):
) # type: Dict[str, Type[TranscoderServiceTransport]]
_transport_registry["grpc"] = TranscoderServiceGrpcTransport
_transport_registry["grpc_asyncio"] = TranscoderServiceGrpcAsyncIOTransport
_transport_registry["rest"] = TranscoderServiceRestTransport

def get_transport_class(
cls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@
from .base import TranscoderServiceTransport
from .grpc import TranscoderServiceGrpcTransport
from .grpc_asyncio import TranscoderServiceGrpcAsyncIOTransport
from .rest import TranscoderServiceRestInterceptor, TranscoderServiceRestTransport

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

__all__ = (
"TranscoderServiceTransport",
"TranscoderServiceGrpcTransport",
"TranscoderServiceGrpcAsyncIOTransport",
"TranscoderServiceRestTransport",
"TranscoderServiceRestInterceptor",
)
Loading

0 comments on commit 3c36813

Please sign in to comment.