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

Commit 7aa95be

Browse files
feat: enable "rest" transport in Python for services supporting numeric enums (#46)
* 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 1ea3857 commit 7aa95be

File tree

5 files changed

+4105
-535
lines changed

5 files changed

+4105
-535
lines changed

google/cloud/beyondcorp_clientgateways_v1/gapic_metadata.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,31 @@
5656
]
5757
}
5858
}
59+
},
60+
"rest": {
61+
"libraryClient": "ClientGatewaysServiceClient",
62+
"rpcs": {
63+
"CreateClientGateway": {
64+
"methods": [
65+
"create_client_gateway"
66+
]
67+
},
68+
"DeleteClientGateway": {
69+
"methods": [
70+
"delete_client_gateway"
71+
]
72+
},
73+
"GetClientGateway": {
74+
"methods": [
75+
"get_client_gateway"
76+
]
77+
},
78+
"ListClientGateways": {
79+
"methods": [
80+
"list_client_gateways"
81+
]
82+
}
83+
}
5984
}
6085
}
6186
}

google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
from .transports.base import DEFAULT_CLIENT_INFO, ClientGatewaysServiceTransport
6464
from .transports.grpc import ClientGatewaysServiceGrpcTransport
6565
from .transports.grpc_asyncio import ClientGatewaysServiceGrpcAsyncIOTransport
66+
from .transports.rest import ClientGatewaysServiceRestTransport
6667

6768

6869
class ClientGatewaysServiceClientMeta(type):
@@ -78,6 +79,7 @@ class ClientGatewaysServiceClientMeta(type):
7879
) # type: Dict[str, Type[ClientGatewaysServiceTransport]]
7980
_transport_registry["grpc"] = ClientGatewaysServiceGrpcTransport
8081
_transport_registry["grpc_asyncio"] = ClientGatewaysServiceGrpcAsyncIOTransport
82+
_transport_registry["rest"] = ClientGatewaysServiceRestTransport
8183

8284
def get_transport_class(
8385
cls,

google/cloud/beyondcorp_clientgateways_v1/services/client_gateways_service/transports/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@
1919
from .base import ClientGatewaysServiceTransport
2020
from .grpc import ClientGatewaysServiceGrpcTransport
2121
from .grpc_asyncio import ClientGatewaysServiceGrpcAsyncIOTransport
22+
from .rest import (
23+
ClientGatewaysServiceRestInterceptor,
24+
ClientGatewaysServiceRestTransport,
25+
)
2226

2327
# Compile a registry of transports.
2428
_transport_registry = (
2529
OrderedDict()
2630
) # type: Dict[str, Type[ClientGatewaysServiceTransport]]
2731
_transport_registry["grpc"] = ClientGatewaysServiceGrpcTransport
2832
_transport_registry["grpc_asyncio"] = ClientGatewaysServiceGrpcAsyncIOTransport
33+
_transport_registry["rest"] = ClientGatewaysServiceRestTransport
2934

3035
__all__ = (
3136
"ClientGatewaysServiceTransport",
3237
"ClientGatewaysServiceGrpcTransport",
3338
"ClientGatewaysServiceGrpcAsyncIOTransport",
39+
"ClientGatewaysServiceRestTransport",
40+
"ClientGatewaysServiceRestInterceptor",
3441
)

0 commit comments

Comments
 (0)