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

Commit 7d854a6

Browse files
chore: Update gapic-generator-python to v1.8.5 (#302)
* 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 f67ddd6 commit 7d854a6

13 files changed

Lines changed: 2592 additions & 8 deletions

File tree

google/cloud/trace_v1/gapic_metadata.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,26 @@
4646
]
4747
}
4848
}
49+
},
50+
"rest": {
51+
"libraryClient": "TraceServiceClient",
52+
"rpcs": {
53+
"GetTrace": {
54+
"methods": [
55+
"get_trace"
56+
]
57+
},
58+
"ListTraces": {
59+
"methods": [
60+
"list_traces"
61+
]
62+
},
63+
"PatchTraces": {
64+
"methods": [
65+
"patch_traces"
66+
]
67+
}
68+
}
4969
}
5070
}
5171
}

google/cloud/trace_v1/services/trace_service/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
from .transports.base import DEFAULT_CLIENT_INFO, TraceServiceTransport
5353
from .transports.grpc import TraceServiceGrpcTransport
5454
from .transports.grpc_asyncio import TraceServiceGrpcAsyncIOTransport
55+
from .transports.rest import TraceServiceRestTransport
5556

5657

5758
class TraceServiceClientMeta(type):
@@ -65,6 +66,7 @@ class TraceServiceClientMeta(type):
6566
_transport_registry = OrderedDict() # type: Dict[str, Type[TraceServiceTransport]]
6667
_transport_registry["grpc"] = TraceServiceGrpcTransport
6768
_transport_registry["grpc_asyncio"] = TraceServiceGrpcAsyncIOTransport
69+
_transport_registry["rest"] = TraceServiceRestTransport
6870

6971
def get_transport_class(
7072
cls,

google/cloud/trace_v1/services/trace_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 TraceServiceTransport
2020
from .grpc import TraceServiceGrpcTransport
2121
from .grpc_asyncio import TraceServiceGrpcAsyncIOTransport
22+
from .rest import TraceServiceRestInterceptor, TraceServiceRestTransport
2223

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

2830
__all__ = (
2931
"TraceServiceTransport",
3032
"TraceServiceGrpcTransport",
3133
"TraceServiceGrpcAsyncIOTransport",
34+
"TraceServiceRestTransport",
35+
"TraceServiceRestInterceptor",
3236
)

0 commit comments

Comments
 (0)