Skip to content

Commit

Permalink
feat: Add support for REST transport (#27)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 474571730

Source-Link: googleapis/googleapis@5a9ee4d

Source-Link: googleapis/googleapis-gen@ceafe52
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2VhZmU1MjFmMTM3NjgwZmRlZTJmOWNhOWUxOTQ3Y2RkODI1MDcwZCJ9

fix(deps): require google-api-core>=1.33.1,>=2.8.0
fix(deps): require protobuf >= 3.20.1
  • Loading branch information
gcf-owl-bot[bot] authored Sep 16, 2022
1 parent 0d79991 commit f099b62
Show file tree
Hide file tree
Showing 20 changed files with 6,391 additions and 611 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,41 @@
]
}
}
},
"rest": {
"libraryClient": "AppConnectionsServiceClient",
"rpcs": {
"CreateAppConnection": {
"methods": [
"create_app_connection"
]
},
"DeleteAppConnection": {
"methods": [
"delete_app_connection"
]
},
"GetAppConnection": {
"methods": [
"get_app_connection"
]
},
"ListAppConnections": {
"methods": [
"list_app_connections"
]
},
"ResolveAppConnections": {
"methods": [
"resolve_app_connections"
]
},
"UpdateAppConnection": {
"methods": [
"update_app_connection"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
from .transports.base import AppConnectionsServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc import AppConnectionsServiceGrpcTransport
from .transports.grpc_asyncio import AppConnectionsServiceGrpcAsyncIOTransport
from .transports.rest import AppConnectionsServiceRestTransport


class AppConnectionsServiceClientMeta(type):
Expand All @@ -65,6 +66,7 @@ class AppConnectionsServiceClientMeta(type):
) # type: Dict[str, Type[AppConnectionsServiceTransport]]
_transport_registry["grpc"] = AppConnectionsServiceGrpcTransport
_transport_registry["grpc_asyncio"] = AppConnectionsServiceGrpcAsyncIOTransport
_transport_registry["rest"] = AppConnectionsServiceRestTransport

def get_transport_class(
cls,
Expand Down Expand Up @@ -414,6 +416,9 @@ def __init__(
transport (Union[str, AppConnectionsServiceTransport]): The
transport to use. If set to None, a transport is chosen
automatically.
NOTE: "rest" transport functionality is currently in a
beta state (preview). We welcome your feedback via an
issue in this library's source repository.
client_options (google.api_core.client_options.ClientOptions): Custom options for the
client. It won't take effect if a ``transport`` instance is provided.
(1) The ``api_endpoint`` property can be used to override the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
from .base import AppConnectionsServiceTransport
from .grpc import AppConnectionsServiceGrpcTransport
from .grpc_asyncio import AppConnectionsServiceGrpcAsyncIOTransport
from .rest import AppConnectionsServiceRestTransport
from .rest import AppConnectionsServiceRestInterceptor


# Compile a registry of transports.
Expand All @@ -27,9 +29,12 @@
) # type: Dict[str, Type[AppConnectionsServiceTransport]]
_transport_registry["grpc"] = AppConnectionsServiceGrpcTransport
_transport_registry["grpc_asyncio"] = AppConnectionsServiceGrpcAsyncIOTransport
_transport_registry["rest"] = AppConnectionsServiceRestTransport

__all__ = (
"AppConnectionsServiceTransport",
"AppConnectionsServiceGrpcTransport",
"AppConnectionsServiceGrpcAsyncIOTransport",
"AppConnectionsServiceRestTransport",
"AppConnectionsServiceRestInterceptor",
)
Loading

0 comments on commit f099b62

Please sign in to comment.