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

Commit

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

PiperOrigin-RevId: 473076638

Source-Link: googleapis/googleapis@f0e2be4

Source-Link: googleapis/googleapis-gen@c62423e
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzYyNDIzZTAwZDg5OTlhMWZlYmQ1NGU3ZDhlMjI0Y2RjN2UyOWU1ZiJ9


fix(deps): require google-api-core>=1.33.0,>=2.8.0
fix(deps): require protobuf >= 3.20.1
  • Loading branch information
gcf-owl-bot[bot] committed Sep 9, 2022
1 parent 26378bf commit c220210
Show file tree
Hide file tree
Showing 379 changed files with 76,160 additions and 4,772 deletions.
400 changes: 400 additions & 0 deletions google/analytics/admin_v1alpha/gapic_metadata.json

Large diffs are not rendered by default.

Expand Up @@ -47,6 +47,7 @@
from .transports.base import DEFAULT_CLIENT_INFO, AnalyticsAdminServiceTransport
from .transports.grpc import AnalyticsAdminServiceGrpcTransport
from .transports.grpc_asyncio import AnalyticsAdminServiceGrpcAsyncIOTransport
from .transports.rest import AnalyticsAdminServiceRestTransport


class AnalyticsAdminServiceClientMeta(type):
Expand All @@ -62,6 +63,7 @@ class AnalyticsAdminServiceClientMeta(type):
) # type: Dict[str, Type[AnalyticsAdminServiceTransport]]
_transport_registry["grpc"] = AnalyticsAdminServiceGrpcTransport
_transport_registry["grpc_asyncio"] = AnalyticsAdminServiceGrpcAsyncIOTransport
_transport_registry["rest"] = AnalyticsAdminServiceRestTransport

def get_transport_class(
cls,
Expand Down Expand Up @@ -675,6 +677,9 @@ def __init__(
transport (Union[str, AnalyticsAdminServiceTransport]): 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
Expand Up @@ -19,16 +19,23 @@
from .base import AnalyticsAdminServiceTransport
from .grpc import AnalyticsAdminServiceGrpcTransport
from .grpc_asyncio import AnalyticsAdminServiceGrpcAsyncIOTransport
from .rest import (
AnalyticsAdminServiceRestInterceptor,
AnalyticsAdminServiceRestTransport,
)

# Compile a registry of transports.
_transport_registry = (
OrderedDict()
) # type: Dict[str, Type[AnalyticsAdminServiceTransport]]
_transport_registry["grpc"] = AnalyticsAdminServiceGrpcTransport
_transport_registry["grpc_asyncio"] = AnalyticsAdminServiceGrpcAsyncIOTransport
_transport_registry["rest"] = AnalyticsAdminServiceRestTransport

__all__ = (
"AnalyticsAdminServiceTransport",
"AnalyticsAdminServiceGrpcTransport",
"AnalyticsAdminServiceGrpcAsyncIOTransport",
"AnalyticsAdminServiceRestTransport",
"AnalyticsAdminServiceRestInterceptor",
)

0 comments on commit c220210

Please sign in to comment.