Skip to content

Commit

Permalink
feat: enable "rest" transport in Python for services supporting numer…
Browse files Browse the repository at this point in the history
…ic 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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Feb 9, 2023
1 parent e990957 commit 84b0b04
Show file tree
Hide file tree
Showing 5 changed files with 9,230 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,111 @@
]
}
}
},
"rest": {
"libraryClient": "BareMetalSolutionClient",
"rpcs": {
"DetachLun": {
"methods": [
"detach_lun"
]
},
"GetInstance": {
"methods": [
"get_instance"
]
},
"GetLun": {
"methods": [
"get_lun"
]
},
"GetNetwork": {
"methods": [
"get_network"
]
},
"GetNfsShare": {
"methods": [
"get_nfs_share"
]
},
"GetVolume": {
"methods": [
"get_volume"
]
},
"ListInstances": {
"methods": [
"list_instances"
]
},
"ListLuns": {
"methods": [
"list_luns"
]
},
"ListNetworkUsage": {
"methods": [
"list_network_usage"
]
},
"ListNetworks": {
"methods": [
"list_networks"
]
},
"ListNfsShares": {
"methods": [
"list_nfs_shares"
]
},
"ListVolumes": {
"methods": [
"list_volumes"
]
},
"ResetInstance": {
"methods": [
"reset_instance"
]
},
"ResizeVolume": {
"methods": [
"resize_volume"
]
},
"StartInstance": {
"methods": [
"start_instance"
]
},
"StopInstance": {
"methods": [
"stop_instance"
]
},
"UpdateInstance": {
"methods": [
"update_instance"
]
},
"UpdateNetwork": {
"methods": [
"update_network"
]
},
"UpdateNfsShare": {
"methods": [
"update_nfs_share"
]
},
"UpdateVolume": {
"methods": [
"update_volume"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, BareMetalSolutionTransport
from .transports.grpc import BareMetalSolutionGrpcTransport
from .transports.grpc_asyncio import BareMetalSolutionGrpcAsyncIOTransport
from .transports.rest import BareMetalSolutionRestTransport


class BareMetalSolutionClientMeta(type):
Expand All @@ -81,6 +82,7 @@ class BareMetalSolutionClientMeta(type):
) # type: Dict[str, Type[BareMetalSolutionTransport]]
_transport_registry["grpc"] = BareMetalSolutionGrpcTransport
_transport_registry["grpc_asyncio"] = BareMetalSolutionGrpcAsyncIOTransport
_transport_registry["rest"] = BareMetalSolutionRestTransport

def get_transport_class(
cls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@
from .base import BareMetalSolutionTransport
from .grpc import BareMetalSolutionGrpcTransport
from .grpc_asyncio import BareMetalSolutionGrpcAsyncIOTransport
from .rest import BareMetalSolutionRestInterceptor, BareMetalSolutionRestTransport

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

__all__ = (
"BareMetalSolutionTransport",
"BareMetalSolutionGrpcTransport",
"BareMetalSolutionGrpcAsyncIOTransport",
"BareMetalSolutionRestTransport",
"BareMetalSolutionRestInterceptor",
)
Loading

0 comments on commit 84b0b04

Please sign in to comment.