Skip to content

Commit 84b0b04

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

File tree

5 files changed

+9230
-83
lines changed

5 files changed

+9230
-83
lines changed

packages/google-cloud-bare-metal-solution/google/cloud/bare_metal_solution_v2/gapic_metadata.json

Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,111 @@
216216
]
217217
}
218218
}
219+
},
220+
"rest": {
221+
"libraryClient": "BareMetalSolutionClient",
222+
"rpcs": {
223+
"DetachLun": {
224+
"methods": [
225+
"detach_lun"
226+
]
227+
},
228+
"GetInstance": {
229+
"methods": [
230+
"get_instance"
231+
]
232+
},
233+
"GetLun": {
234+
"methods": [
235+
"get_lun"
236+
]
237+
},
238+
"GetNetwork": {
239+
"methods": [
240+
"get_network"
241+
]
242+
},
243+
"GetNfsShare": {
244+
"methods": [
245+
"get_nfs_share"
246+
]
247+
},
248+
"GetVolume": {
249+
"methods": [
250+
"get_volume"
251+
]
252+
},
253+
"ListInstances": {
254+
"methods": [
255+
"list_instances"
256+
]
257+
},
258+
"ListLuns": {
259+
"methods": [
260+
"list_luns"
261+
]
262+
},
263+
"ListNetworkUsage": {
264+
"methods": [
265+
"list_network_usage"
266+
]
267+
},
268+
"ListNetworks": {
269+
"methods": [
270+
"list_networks"
271+
]
272+
},
273+
"ListNfsShares": {
274+
"methods": [
275+
"list_nfs_shares"
276+
]
277+
},
278+
"ListVolumes": {
279+
"methods": [
280+
"list_volumes"
281+
]
282+
},
283+
"ResetInstance": {
284+
"methods": [
285+
"reset_instance"
286+
]
287+
},
288+
"ResizeVolume": {
289+
"methods": [
290+
"resize_volume"
291+
]
292+
},
293+
"StartInstance": {
294+
"methods": [
295+
"start_instance"
296+
]
297+
},
298+
"StopInstance": {
299+
"methods": [
300+
"stop_instance"
301+
]
302+
},
303+
"UpdateInstance": {
304+
"methods": [
305+
"update_instance"
306+
]
307+
},
308+
"UpdateNetwork": {
309+
"methods": [
310+
"update_network"
311+
]
312+
},
313+
"UpdateNfsShare": {
314+
"methods": [
315+
"update_nfs_share"
316+
]
317+
},
318+
"UpdateVolume": {
319+
"methods": [
320+
"update_volume"
321+
]
322+
}
323+
}
219324
}
220325
}
221326
}

packages/google-cloud-bare-metal-solution/google/cloud/bare_metal_solution_v2/services/bare_metal_solution/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
from .transports.base import DEFAULT_CLIENT_INFO, BareMetalSolutionTransport
6767
from .transports.grpc import BareMetalSolutionGrpcTransport
6868
from .transports.grpc_asyncio import BareMetalSolutionGrpcAsyncIOTransport
69+
from .transports.rest import BareMetalSolutionRestTransport
6970

7071

7172
class BareMetalSolutionClientMeta(type):
@@ -81,6 +82,7 @@ class BareMetalSolutionClientMeta(type):
8182
) # type: Dict[str, Type[BareMetalSolutionTransport]]
8283
_transport_registry["grpc"] = BareMetalSolutionGrpcTransport
8384
_transport_registry["grpc_asyncio"] = BareMetalSolutionGrpcAsyncIOTransport
85+
_transport_registry["rest"] = BareMetalSolutionRestTransport
8486

8587
def get_transport_class(
8688
cls,

packages/google-cloud-bare-metal-solution/google/cloud/bare_metal_solution_v2/services/bare_metal_solution/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 BareMetalSolutionTransport
2020
from .grpc import BareMetalSolutionGrpcTransport
2121
from .grpc_asyncio import BareMetalSolutionGrpcAsyncIOTransport
22+
from .rest import BareMetalSolutionRestInterceptor, BareMetalSolutionRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = OrderedDict() # type: Dict[str, Type[BareMetalSolutionTransport]]
2526
_transport_registry["grpc"] = BareMetalSolutionGrpcTransport
2627
_transport_registry["grpc_asyncio"] = BareMetalSolutionGrpcAsyncIOTransport
28+
_transport_registry["rest"] = BareMetalSolutionRestTransport
2729

2830
__all__ = (
2931
"BareMetalSolutionTransport",
3032
"BareMetalSolutionGrpcTransport",
3133
"BareMetalSolutionGrpcAsyncIOTransport",
34+
"BareMetalSolutionRestTransport",
35+
"BareMetalSolutionRestInterceptor",
3236
)

0 commit comments

Comments
 (0)