Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

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

* 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

* revert

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored Feb 19, 2023
1 parent 828ecac commit 3e96be1
Show file tree
Hide file tree
Showing 5 changed files with 4,468 additions and 122 deletions.
50 changes: 50 additions & 0 deletions google/cloud/gsuiteaddons_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,56 @@
]
}
}
},
"rest": {
"libraryClient": "GSuiteAddOnsClient",
"rpcs": {
"CreateDeployment": {
"methods": [
"create_deployment"
]
},
"DeleteDeployment": {
"methods": [
"delete_deployment"
]
},
"GetAuthorization": {
"methods": [
"get_authorization"
]
},
"GetDeployment": {
"methods": [
"get_deployment"
]
},
"GetInstallStatus": {
"methods": [
"get_install_status"
]
},
"InstallDeployment": {
"methods": [
"install_deployment"
]
},
"ListDeployments": {
"methods": [
"list_deployments"
]
},
"ReplaceDeployment": {
"methods": [
"replace_deployment"
]
},
"UninstallDeployment": {
"methods": [
"uninstall_deployment"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, GSuiteAddOnsTransport
from .transports.grpc import GSuiteAddOnsGrpcTransport
from .transports.grpc_asyncio import GSuiteAddOnsGrpcAsyncIOTransport
from .transports.rest import GSuiteAddOnsRestTransport


class GSuiteAddOnsClientMeta(type):
Expand All @@ -67,6 +68,7 @@ class GSuiteAddOnsClientMeta(type):
_transport_registry = OrderedDict() # type: Dict[str, Type[GSuiteAddOnsTransport]]
_transport_registry["grpc"] = GSuiteAddOnsGrpcTransport
_transport_registry["grpc_asyncio"] = GSuiteAddOnsGrpcAsyncIOTransport
_transport_registry["rest"] = GSuiteAddOnsRestTransport

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 GSuiteAddOnsTransport
from .grpc import GSuiteAddOnsGrpcTransport
from .grpc_asyncio import GSuiteAddOnsGrpcAsyncIOTransport
from .rest import GSuiteAddOnsRestInterceptor, GSuiteAddOnsRestTransport

# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[GSuiteAddOnsTransport]]
_transport_registry["grpc"] = GSuiteAddOnsGrpcTransport
_transport_registry["grpc_asyncio"] = GSuiteAddOnsGrpcAsyncIOTransport
_transport_registry["rest"] = GSuiteAddOnsRestTransport

__all__ = (
"GSuiteAddOnsTransport",
"GSuiteAddOnsGrpcTransport",
"GSuiteAddOnsGrpcAsyncIOTransport",
"GSuiteAddOnsRestTransport",
"GSuiteAddOnsRestInterceptor",
)
Loading

0 comments on commit 3e96be1

Please sign in to comment.