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

Commit ab83466

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

File tree

5 files changed

+1795
-4
lines changed

5 files changed

+1795
-4
lines changed

google/cloud/shell_v1/gapic_metadata.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,36 @@
6666
]
6767
}
6868
}
69+
},
70+
"rest": {
71+
"libraryClient": "CloudShellServiceClient",
72+
"rpcs": {
73+
"AddPublicKey": {
74+
"methods": [
75+
"add_public_key"
76+
]
77+
},
78+
"AuthorizeEnvironment": {
79+
"methods": [
80+
"authorize_environment"
81+
]
82+
},
83+
"GetEnvironment": {
84+
"methods": [
85+
"get_environment"
86+
]
87+
},
88+
"RemovePublicKey": {
89+
"methods": [
90+
"remove_public_key"
91+
]
92+
},
93+
"StartEnvironment": {
94+
"methods": [
95+
"start_environment"
96+
]
97+
}
98+
}
6999
}
70100
}
71101
}

google/cloud/shell_v1/services/cloud_shell_service/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
from .transports.base import DEFAULT_CLIENT_INFO, CloudShellServiceTransport
5555
from .transports.grpc import CloudShellServiceGrpcTransport
5656
from .transports.grpc_asyncio import CloudShellServiceGrpcAsyncIOTransport
57+
from .transports.rest import CloudShellServiceRestTransport
5758

5859

5960
class CloudShellServiceClientMeta(type):
@@ -69,6 +70,7 @@ class CloudShellServiceClientMeta(type):
6970
) # type: Dict[str, Type[CloudShellServiceTransport]]
7071
_transport_registry["grpc"] = CloudShellServiceGrpcTransport
7172
_transport_registry["grpc_asyncio"] = CloudShellServiceGrpcAsyncIOTransport
73+
_transport_registry["rest"] = CloudShellServiceRestTransport
7274

7375
def get_transport_class(
7476
cls,

google/cloud/shell_v1/services/cloud_shell_service/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 CloudShellServiceTransport
2020
from .grpc import CloudShellServiceGrpcTransport
2121
from .grpc_asyncio import CloudShellServiceGrpcAsyncIOTransport
22+
from .rest import CloudShellServiceRestInterceptor, CloudShellServiceRestTransport
2223

2324
# Compile a registry of transports.
2425
_transport_registry = OrderedDict() # type: Dict[str, Type[CloudShellServiceTransport]]
2526
_transport_registry["grpc"] = CloudShellServiceGrpcTransport
2627
_transport_registry["grpc_asyncio"] = CloudShellServiceGrpcAsyncIOTransport
28+
_transport_registry["rest"] = CloudShellServiceRestTransport
2729

2830
__all__ = (
2931
"CloudShellServiceTransport",
3032
"CloudShellServiceGrpcTransport",
3133
"CloudShellServiceGrpcAsyncIOTransport",
34+
"CloudShellServiceRestTransport",
35+
"CloudShellServiceRestInterceptor",
3236
)

0 commit comments

Comments
 (0)