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

Commit

Permalink
chore: Update gapic-generator-python to v1.8.5 (#302)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
3 people authored Feb 28, 2023
1 parent f67ddd6 commit 7d854a6
Show file tree
Hide file tree
Showing 13 changed files with 2,592 additions and 8 deletions.
20 changes: 20 additions & 0 deletions google/cloud/trace_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,26 @@
]
}
}
},
"rest": {
"libraryClient": "TraceServiceClient",
"rpcs": {
"GetTrace": {
"methods": [
"get_trace"
]
},
"ListTraces": {
"methods": [
"list_traces"
]
},
"PatchTraces": {
"methods": [
"patch_traces"
]
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/trace_v1/services/trace_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, TraceServiceTransport
from .transports.grpc import TraceServiceGrpcTransport
from .transports.grpc_asyncio import TraceServiceGrpcAsyncIOTransport
from .transports.rest import TraceServiceRestTransport


class TraceServiceClientMeta(type):
Expand All @@ -65,6 +66,7 @@ class TraceServiceClientMeta(type):
_transport_registry = OrderedDict() # type: Dict[str, Type[TraceServiceTransport]]
_transport_registry["grpc"] = TraceServiceGrpcTransport
_transport_registry["grpc_asyncio"] = TraceServiceGrpcAsyncIOTransport
_transport_registry["rest"] = TraceServiceRestTransport

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 TraceServiceTransport
from .grpc import TraceServiceGrpcTransport
from .grpc_asyncio import TraceServiceGrpcAsyncIOTransport
from .rest import TraceServiceRestInterceptor, TraceServiceRestTransport

# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[TraceServiceTransport]]
_transport_registry["grpc"] = TraceServiceGrpcTransport
_transport_registry["grpc_asyncio"] = TraceServiceGrpcAsyncIOTransport
_transport_registry["rest"] = TraceServiceRestTransport

__all__ = (
"TraceServiceTransport",
"TraceServiceGrpcTransport",
"TraceServiceGrpcAsyncIOTransport",
"TraceServiceRestTransport",
"TraceServiceRestInterceptor",
)
Loading

0 comments on commit 7d854a6

Please sign in to comment.