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

Commit ba2b48f

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

File tree

5 files changed

+2672
-120
lines changed

5 files changed

+2672
-120
lines changed

google/cloud/vpcaccess_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": "VpcAccessServiceClient",
62+
"rpcs": {
63+
"CreateConnector": {
64+
"methods": [
65+
"create_connector"
66+
]
67+
},
68+
"DeleteConnector": {
69+
"methods": [
70+
"delete_connector"
71+
]
72+
},
73+
"GetConnector": {
74+
"methods": [
75+
"get_connector"
76+
]
77+
},
78+
"ListConnectors": {
79+
"methods": [
80+
"list_connectors"
81+
]
82+
}
83+
}
5984
}
6085
}
6186
}

google/cloud/vpcaccess_v1/services/vpc_access_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, VpcAccessServiceTransport
5959
from .transports.grpc import VpcAccessServiceGrpcTransport
6060
from .transports.grpc_asyncio import VpcAccessServiceGrpcAsyncIOTransport
61+
from .transports.rest import VpcAccessServiceRestTransport
6162

6263

6364
class VpcAccessServiceClientMeta(type):
@@ -73,6 +74,7 @@ class VpcAccessServiceClientMeta(type):
7374
) # type: Dict[str, Type[VpcAccessServiceTransport]]
7475
_transport_registry["grpc"] = VpcAccessServiceGrpcTransport
7576
_transport_registry["grpc_asyncio"] = VpcAccessServiceGrpcAsyncIOTransport
77+
_transport_registry["rest"] = VpcAccessServiceRestTransport
7678

7779
def get_transport_class(
7880
cls,

google/cloud/vpcaccess_v1/services/vpc_access_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 VpcAccessServiceTransport
2020
from .grpc import VpcAccessServiceGrpcTransport
2121
from .grpc_asyncio import VpcAccessServiceGrpcAsyncIOTransport
22+
from .rest import VpcAccessServiceRestInterceptor, VpcAccessServiceRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = OrderedDict() # type: Dict[str, Type[VpcAccessServiceTransport]]
2526
_transport_registry["grpc"] = VpcAccessServiceGrpcTransport
2627
_transport_registry["grpc_asyncio"] = VpcAccessServiceGrpcAsyncIOTransport
28+
_transport_registry["rest"] = VpcAccessServiceRestTransport
2729

2830
__all__ = (
2931
"VpcAccessServiceTransport",
3032
"VpcAccessServiceGrpcTransport",
3133
"VpcAccessServiceGrpcAsyncIOTransport",
34+
"VpcAccessServiceRestTransport",
35+
"VpcAccessServiceRestInterceptor",
3236
)

0 commit comments

Comments
 (0)