Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions google/cloud/shell_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,36 @@
]
}
}
},
"rest": {
"libraryClient": "CloudShellServiceClient",
"rpcs": {
"AddPublicKey": {
"methods": [
"add_public_key"
]
},
"AuthorizeEnvironment": {
"methods": [
"authorize_environment"
]
},
"GetEnvironment": {
"methods": [
"get_environment"
]
},
"RemovePublicKey": {
"methods": [
"remove_public_key"
]
},
"StartEnvironment": {
"methods": [
"start_environment"
]
}
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/shell_v1/services/cloud_shell_service/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, CloudShellServiceTransport
from .transports.grpc import CloudShellServiceGrpcTransport
from .transports.grpc_asyncio import CloudShellServiceGrpcAsyncIOTransport
from .transports.rest import CloudShellServiceRestTransport


class CloudShellServiceClientMeta(type):
Expand All @@ -69,6 +70,7 @@ class CloudShellServiceClientMeta(type):
) # type: Dict[str, Type[CloudShellServiceTransport]]
_transport_registry["grpc"] = CloudShellServiceGrpcTransport
_transport_registry["grpc_asyncio"] = CloudShellServiceGrpcAsyncIOTransport
_transport_registry["rest"] = CloudShellServiceRestTransport

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 CloudShellServiceTransport
from .grpc import CloudShellServiceGrpcTransport
from .grpc_asyncio import CloudShellServiceGrpcAsyncIOTransport
from .rest import CloudShellServiceRestInterceptor, CloudShellServiceRestTransport

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

__all__ = (
"CloudShellServiceTransport",
"CloudShellServiceGrpcTransport",
"CloudShellServiceGrpcAsyncIOTransport",
"CloudShellServiceRestTransport",
"CloudShellServiceRestInterceptor",
)
Loading