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

Commit db69894

Browse files
feat: enable "rest" transport in Python for services supporting numeric enums (#173)
* 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 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 81a5df1 commit db69894

5 files changed

Lines changed: 3768 additions & 133 deletions

File tree

google/cloud/network_management_v1/gapic_metadata.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,41 @@
7676
]
7777
}
7878
}
79+
},
80+
"rest": {
81+
"libraryClient": "ReachabilityServiceClient",
82+
"rpcs": {
83+
"CreateConnectivityTest": {
84+
"methods": [
85+
"create_connectivity_test"
86+
]
87+
},
88+
"DeleteConnectivityTest": {
89+
"methods": [
90+
"delete_connectivity_test"
91+
]
92+
},
93+
"GetConnectivityTest": {
94+
"methods": [
95+
"get_connectivity_test"
96+
]
97+
},
98+
"ListConnectivityTests": {
99+
"methods": [
100+
"list_connectivity_tests"
101+
]
102+
},
103+
"RerunConnectivityTest": {
104+
"methods": [
105+
"rerun_connectivity_test"
106+
]
107+
},
108+
"UpdateConnectivityTest": {
109+
"methods": [
110+
"update_connectivity_test"
111+
]
112+
}
113+
}
79114
}
80115
}
81116
}

google/cloud/network_management_v1/services/reachability_service/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
from .transports.base import DEFAULT_CLIENT_INFO, ReachabilityServiceTransport
5959
from .transports.grpc import ReachabilityServiceGrpcTransport
6060
from .transports.grpc_asyncio import ReachabilityServiceGrpcAsyncIOTransport
61+
from .transports.rest import ReachabilityServiceRestTransport
6162

6263

6364
class ReachabilityServiceClientMeta(type):
@@ -73,6 +74,7 @@ class ReachabilityServiceClientMeta(type):
7374
) # type: Dict[str, Type[ReachabilityServiceTransport]]
7475
_transport_registry["grpc"] = ReachabilityServiceGrpcTransport
7576
_transport_registry["grpc_asyncio"] = ReachabilityServiceGrpcAsyncIOTransport
77+
_transport_registry["rest"] = ReachabilityServiceRestTransport
7678

7779
def get_transport_class(
7880
cls,

google/cloud/network_management_v1/services/reachability_service/transports/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,20 @@
1919
from .base import ReachabilityServiceTransport
2020
from .grpc import ReachabilityServiceGrpcTransport
2121
from .grpc_asyncio import ReachabilityServiceGrpcAsyncIOTransport
22+
from .rest import ReachabilityServiceRestInterceptor, ReachabilityServiceRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = (
2526
OrderedDict()
2627
) # type: Dict[str, Type[ReachabilityServiceTransport]]
2728
_transport_registry["grpc"] = ReachabilityServiceGrpcTransport
2829
_transport_registry["grpc_asyncio"] = ReachabilityServiceGrpcAsyncIOTransport
30+
_transport_registry["rest"] = ReachabilityServiceRestTransport
2931

3032
__all__ = (
3133
"ReachabilityServiceTransport",
3234
"ReachabilityServiceGrpcTransport",
3335
"ReachabilityServiceGrpcAsyncIOTransport",
36+
"ReachabilityServiceRestTransport",
37+
"ReachabilityServiceRestInterceptor",
3438
)

0 commit comments

Comments
 (0)