Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

feat: enable "rest" transport in Python for services supporting numeric enums #294

Merged
merged 8 commits into from
Feb 16, 2023
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
45 changes: 45 additions & 0 deletions 45 google/cloud/bigquery_connection_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,51 @@
]
}
}
},
"rest": {
"libraryClient": "ConnectionServiceClient",
"rpcs": {
"CreateConnection": {
"methods": [
"create_connection"
]
},
"DeleteConnection": {
"methods": [
"delete_connection"
]
},
"GetConnection": {
"methods": [
"get_connection"
]
},
"GetIamPolicy": {
"methods": [
"get_iam_policy"
]
},
"ListConnections": {
"methods": [
"list_connections"
]
},
"SetIamPolicy": {
"methods": [
"set_iam_policy"
]
},
"TestIamPermissions": {
"methods": [
"test_iam_permissions"
]
},
"UpdateConnection": {
"methods": [
"update_connection"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, ConnectionServiceTransport
from .transports.grpc import ConnectionServiceGrpcTransport
from .transports.grpc_asyncio import ConnectionServiceGrpcAsyncIOTransport
from .transports.rest import ConnectionServiceRestTransport


class ConnectionServiceClientMeta(type):
Expand All @@ -72,6 +73,7 @@ class ConnectionServiceClientMeta(type):
) # type: Dict[str, Type[ConnectionServiceTransport]]
_transport_registry["grpc"] = ConnectionServiceGrpcTransport
_transport_registry["grpc_asyncio"] = ConnectionServiceGrpcAsyncIOTransport
_transport_registry["rest"] = ConnectionServiceRestTransport

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 ConnectionServiceTransport
from .grpc import ConnectionServiceGrpcTransport
from .grpc_asyncio import ConnectionServiceGrpcAsyncIOTransport
from .rest import ConnectionServiceRestInterceptor, ConnectionServiceRestTransport

# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[ConnectionServiceTransport]]
_transport_registry["grpc"] = ConnectionServiceGrpcTransport
_transport_registry["grpc_asyncio"] = ConnectionServiceGrpcAsyncIOTransport
_transport_registry["rest"] = ConnectionServiceRestTransport

__all__ = (
"ConnectionServiceTransport",
"ConnectionServiceGrpcTransport",
"ConnectionServiceGrpcAsyncIOTransport",
"ConnectionServiceRestTransport",
"ConnectionServiceRestInterceptor",
)
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.