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

Commit c220210

Browse files
feat: Enable REST transport support (#265)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 473076638 Source-Link: googleapis/googleapis@f0e2be4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/c62423e00d8999a1febd54e7d8e224cdc7e29e5f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzYyNDIzZTAwZDg5OTlhMWZlYmQ1NGU3ZDhlMjI0Y2RjN2UyOWU1ZiJ9 fix(deps): require google-api-core>=1.33.0,>=2.8.0 fix(deps): require protobuf >= 3.20.1
1 parent 26378bf commit c220210

File tree

379 files changed

+76160
-4772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

379 files changed

+76160
-4772
lines changed

google/analytics/admin_v1alpha/gapic_metadata.json

Lines changed: 400 additions & 0 deletions
Large diffs are not rendered by default.

google/analytics/admin_v1alpha/services/analytics_admin_service/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
from .transports.base import DEFAULT_CLIENT_INFO, AnalyticsAdminServiceTransport
4848
from .transports.grpc import AnalyticsAdminServiceGrpcTransport
4949
from .transports.grpc_asyncio import AnalyticsAdminServiceGrpcAsyncIOTransport
50+
from .transports.rest import AnalyticsAdminServiceRestTransport
5051

5152

5253
class AnalyticsAdminServiceClientMeta(type):
@@ -62,6 +63,7 @@ class AnalyticsAdminServiceClientMeta(type):
6263
) # type: Dict[str, Type[AnalyticsAdminServiceTransport]]
6364
_transport_registry["grpc"] = AnalyticsAdminServiceGrpcTransport
6465
_transport_registry["grpc_asyncio"] = AnalyticsAdminServiceGrpcAsyncIOTransport
66+
_transport_registry["rest"] = AnalyticsAdminServiceRestTransport
6567

6668
def get_transport_class(
6769
cls,
@@ -675,6 +677,9 @@ def __init__(
675677
transport (Union[str, AnalyticsAdminServiceTransport]): The
676678
transport to use. If set to None, a transport is chosen
677679
automatically.
680+
NOTE: "rest" transport functionality is currently in a
681+
beta state (preview). We welcome your feedback via an
682+
issue in this library's source repository.
678683
client_options (google.api_core.client_options.ClientOptions): Custom options for the
679684
client. It won't take effect if a ``transport`` instance is provided.
680685
(1) The ``api_endpoint`` property can be used to override the

google/analytics/admin_v1alpha/services/analytics_admin_service/transports/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@
1919
from .base import AnalyticsAdminServiceTransport
2020
from .grpc import AnalyticsAdminServiceGrpcTransport
2121
from .grpc_asyncio import AnalyticsAdminServiceGrpcAsyncIOTransport
22+
from .rest import (
23+
AnalyticsAdminServiceRestInterceptor,
24+
AnalyticsAdminServiceRestTransport,
25+
)
2226

2327
# Compile a registry of transports.
2428
_transport_registry = (
2529
OrderedDict()
2630
) # type: Dict[str, Type[AnalyticsAdminServiceTransport]]
2731
_transport_registry["grpc"] = AnalyticsAdminServiceGrpcTransport
2832
_transport_registry["grpc_asyncio"] = AnalyticsAdminServiceGrpcAsyncIOTransport
33+
_transport_registry["rest"] = AnalyticsAdminServiceRestTransport
2934

3035
__all__ = (
3136
"AnalyticsAdminServiceTransport",
3237
"AnalyticsAdminServiceGrpcTransport",
3338
"AnalyticsAdminServiceGrpcAsyncIOTransport",
39+
"AnalyticsAdminServiceRestTransport",
40+
"AnalyticsAdminServiceRestInterceptor",
3441
)

0 commit comments

Comments
 (0)