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 (#131)

* 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 e7c6a8e commit 620d7a5
Show file tree
Hide file tree
Showing 5 changed files with 5,251 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,66 @@
]
}
}
},
"rest": {
"libraryClient": "CloudFilestoreManagerClient",
"rpcs": {
"CreateBackup": {
"methods": [
"create_backup"
]
},
"CreateInstance": {
"methods": [
"create_instance"
]
},
"DeleteBackup": {
"methods": [
"delete_backup"
]
},
"DeleteInstance": {
"methods": [
"delete_instance"
]
},
"GetBackup": {
"methods": [
"get_backup"
]
},
"GetInstance": {
"methods": [
"get_instance"
]
},
"ListBackups": {
"methods": [
"list_backups"
]
},
"ListInstances": {
"methods": [
"list_instances"
]
},
"RestoreInstance": {
"methods": [
"restore_instance"
]
},
"UpdateBackup": {
"methods": [
"update_backup"
]
},
"UpdateInstance": {
"methods": [
"update_instance"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, CloudFilestoreManagerTransport
from .transports.grpc import CloudFilestoreManagerGrpcTransport
from .transports.grpc_asyncio import CloudFilestoreManagerGrpcAsyncIOTransport
from .transports.rest import CloudFilestoreManagerRestTransport


class CloudFilestoreManagerClientMeta(type):
Expand All @@ -77,6 +78,7 @@ class CloudFilestoreManagerClientMeta(type):
) # type: Dict[str, Type[CloudFilestoreManagerTransport]]
_transport_registry["grpc"] = CloudFilestoreManagerGrpcTransport
_transport_registry["grpc_asyncio"] = CloudFilestoreManagerGrpcAsyncIOTransport
_transport_registry["rest"] = CloudFilestoreManagerRestTransport

def get_transport_class(
cls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,23 @@
from .base import CloudFilestoreManagerTransport
from .grpc import CloudFilestoreManagerGrpcTransport
from .grpc_asyncio import CloudFilestoreManagerGrpcAsyncIOTransport
from .rest import (
CloudFilestoreManagerRestInterceptor,
CloudFilestoreManagerRestTransport,
)

# Compile a registry of transports.
_transport_registry = (
OrderedDict()
) # type: Dict[str, Type[CloudFilestoreManagerTransport]]
_transport_registry["grpc"] = CloudFilestoreManagerGrpcTransport
_transport_registry["grpc_asyncio"] = CloudFilestoreManagerGrpcAsyncIOTransport
_transport_registry["rest"] = CloudFilestoreManagerRestTransport

__all__ = (
"CloudFilestoreManagerTransport",
"CloudFilestoreManagerGrpcTransport",
"CloudFilestoreManagerGrpcAsyncIOTransport",
"CloudFilestoreManagerRestTransport",
"CloudFilestoreManagerRestInterceptor",
)
Loading

0 comments on commit 620d7a5

Please sign in to comment.