Skip to content

Commit b2b9eab

Browse files
feat: enable "rest" transport in Python for services supporting numeric enums (#418)
* 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: Anthonios Partheniou <[email protected]>
1 parent bfc7a4e commit b2b9eab

File tree

18 files changed

+3594
-13
lines changed

18 files changed

+3594
-13
lines changed

google/cloud/errorreporting_v1beta1/gapic_metadata.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@
3636
]
3737
}
3838
}
39+
},
40+
"rest": {
41+
"libraryClient": "ErrorGroupServiceClient",
42+
"rpcs": {
43+
"GetGroup": {
44+
"methods": [
45+
"get_group"
46+
]
47+
},
48+
"UpdateGroup": {
49+
"methods": [
50+
"update_group"
51+
]
52+
}
53+
}
3954
}
4055
}
4156
},
@@ -80,6 +95,26 @@
8095
]
8196
}
8297
}
98+
},
99+
"rest": {
100+
"libraryClient": "ErrorStatsServiceClient",
101+
"rpcs": {
102+
"DeleteEvents": {
103+
"methods": [
104+
"delete_events"
105+
]
106+
},
107+
"ListEvents": {
108+
"methods": [
109+
"list_events"
110+
]
111+
},
112+
"ListGroupStats": {
113+
"methods": [
114+
"list_group_stats"
115+
]
116+
}
117+
}
83118
}
84119
}
85120
},
@@ -104,6 +139,16 @@
104139
]
105140
}
106141
}
142+
},
143+
"rest": {
144+
"libraryClient": "ReportErrorsServiceClient",
145+
"rpcs": {
146+
"ReportErrorEvent": {
147+
"methods": [
148+
"report_error_event"
149+
]
150+
}
151+
}
107152
}
108153
}
109154
}

google/cloud/errorreporting_v1beta1/services/error_group_service/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
from .transports.base import ErrorGroupServiceTransport, DEFAULT_CLIENT_INFO
5252
from .transports.grpc import ErrorGroupServiceGrpcTransport
5353
from .transports.grpc_asyncio import ErrorGroupServiceGrpcAsyncIOTransport
54+
from .transports.rest import ErrorGroupServiceRestTransport
5455

5556

5657
class ErrorGroupServiceClientMeta(type):
@@ -66,6 +67,7 @@ class ErrorGroupServiceClientMeta(type):
6667
) # type: Dict[str, Type[ErrorGroupServiceTransport]]
6768
_transport_registry["grpc"] = ErrorGroupServiceGrpcTransport
6869
_transport_registry["grpc_asyncio"] = ErrorGroupServiceGrpcAsyncIOTransport
70+
_transport_registry["rest"] = ErrorGroupServiceRestTransport
6971

7072
def get_transport_class(
7173
cls,

google/cloud/errorreporting_v1beta1/services/error_group_service/transports/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,20 @@
1919
from .base import ErrorGroupServiceTransport
2020
from .grpc import ErrorGroupServiceGrpcTransport
2121
from .grpc_asyncio import ErrorGroupServiceGrpcAsyncIOTransport
22+
from .rest import ErrorGroupServiceRestTransport
23+
from .rest import ErrorGroupServiceRestInterceptor
2224

2325

2426
# Compile a registry of transports.
2527
_transport_registry = OrderedDict() # type: Dict[str, Type[ErrorGroupServiceTransport]]
2628
_transport_registry["grpc"] = ErrorGroupServiceGrpcTransport
2729
_transport_registry["grpc_asyncio"] = ErrorGroupServiceGrpcAsyncIOTransport
30+
_transport_registry["rest"] = ErrorGroupServiceRestTransport
2831

2932
__all__ = (
3033
"ErrorGroupServiceTransport",
3134
"ErrorGroupServiceGrpcTransport",
3235
"ErrorGroupServiceGrpcAsyncIOTransport",
36+
"ErrorGroupServiceRestTransport",
37+
"ErrorGroupServiceRestInterceptor",
3338
)

0 commit comments

Comments
 (0)