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

Commit 3e2f28c

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

5 files changed

Lines changed: 5251 additions & 83 deletions

File tree

google/cloud/filestore_v1/gapic_metadata.json

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,66 @@
126126
]
127127
}
128128
}
129+
},
130+
"rest": {
131+
"libraryClient": "CloudFilestoreManagerClient",
132+
"rpcs": {
133+
"CreateBackup": {
134+
"methods": [
135+
"create_backup"
136+
]
137+
},
138+
"CreateInstance": {
139+
"methods": [
140+
"create_instance"
141+
]
142+
},
143+
"DeleteBackup": {
144+
"methods": [
145+
"delete_backup"
146+
]
147+
},
148+
"DeleteInstance": {
149+
"methods": [
150+
"delete_instance"
151+
]
152+
},
153+
"GetBackup": {
154+
"methods": [
155+
"get_backup"
156+
]
157+
},
158+
"GetInstance": {
159+
"methods": [
160+
"get_instance"
161+
]
162+
},
163+
"ListBackups": {
164+
"methods": [
165+
"list_backups"
166+
]
167+
},
168+
"ListInstances": {
169+
"methods": [
170+
"list_instances"
171+
]
172+
},
173+
"RestoreInstance": {
174+
"methods": [
175+
"restore_instance"
176+
]
177+
},
178+
"UpdateBackup": {
179+
"methods": [
180+
"update_backup"
181+
]
182+
},
183+
"UpdateInstance": {
184+
"methods": [
185+
"update_instance"
186+
]
187+
}
188+
}
129189
}
130190
}
131191
}

google/cloud/filestore_v1/services/cloud_filestore_manager/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
from .transports.base import DEFAULT_CLIENT_INFO, CloudFilestoreManagerTransport
6363
from .transports.grpc import CloudFilestoreManagerGrpcTransport
6464
from .transports.grpc_asyncio import CloudFilestoreManagerGrpcAsyncIOTransport
65+
from .transports.rest import CloudFilestoreManagerRestTransport
6566

6667

6768
class CloudFilestoreManagerClientMeta(type):
@@ -77,6 +78,7 @@ class CloudFilestoreManagerClientMeta(type):
7778
) # type: Dict[str, Type[CloudFilestoreManagerTransport]]
7879
_transport_registry["grpc"] = CloudFilestoreManagerGrpcTransport
7980
_transport_registry["grpc_asyncio"] = CloudFilestoreManagerGrpcAsyncIOTransport
81+
_transport_registry["rest"] = CloudFilestoreManagerRestTransport
8082

8183
def get_transport_class(
8284
cls,

google/cloud/filestore_v1/services/cloud_filestore_manager/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 CloudFilestoreManagerTransport
2020
from .grpc import CloudFilestoreManagerGrpcTransport
2121
from .grpc_asyncio import CloudFilestoreManagerGrpcAsyncIOTransport
22+
from .rest import (
23+
CloudFilestoreManagerRestInterceptor,
24+
CloudFilestoreManagerRestTransport,
25+
)
2226

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

3035
__all__ = (
3136
"CloudFilestoreManagerTransport",
3237
"CloudFilestoreManagerGrpcTransport",
3338
"CloudFilestoreManagerGrpcAsyncIOTransport",
39+
"CloudFilestoreManagerRestTransport",
40+
"CloudFilestoreManagerRestInterceptor",
3441
)

0 commit comments

Comments
 (0)