Skip to content

Commit

Permalink
feat: enable "rest" transport in Python for services supporting numer…
Browse files Browse the repository at this point in the history
…ic enums (#418)

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

PiperOrigin-RevId: 508143576

Source-Link: googleapis/googleapis@7a702a9

Source-Link: googleapis/googleapis-gen@6ad1279
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmFkMTI3OWMwZTdhYTc4N2FjNmI2NmM5ZmQ0YTIxMDY5MmVkZmZjZCJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* chore: Update gapic-generator-python to v1.8.5

PiperOrigin-RevId: 511892190

Source-Link: googleapis/googleapis@a45d9c0

Source-Link: googleapis/googleapis-gen@1907294
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <[email protected]>
  • Loading branch information
3 people authored Feb 28, 2023
1 parent bfc7a4e commit b2b9eab
Show file tree
Hide file tree
Showing 18 changed files with 3,594 additions and 13 deletions.
45 changes: 45 additions & 0 deletions google/cloud/errorreporting_v1beta1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,21 @@
]
}
}
},
"rest": {
"libraryClient": "ErrorGroupServiceClient",
"rpcs": {
"GetGroup": {
"methods": [
"get_group"
]
},
"UpdateGroup": {
"methods": [
"update_group"
]
}
}
}
}
},
Expand Down Expand Up @@ -80,6 +95,26 @@
]
}
}
},
"rest": {
"libraryClient": "ErrorStatsServiceClient",
"rpcs": {
"DeleteEvents": {
"methods": [
"delete_events"
]
},
"ListEvents": {
"methods": [
"list_events"
]
},
"ListGroupStats": {
"methods": [
"list_group_stats"
]
}
}
}
}
},
Expand All @@ -104,6 +139,16 @@
]
}
}
},
"rest": {
"libraryClient": "ReportErrorsServiceClient",
"rpcs": {
"ReportErrorEvent": {
"methods": [
"report_error_event"
]
}
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
from .transports.base import ErrorGroupServiceTransport, DEFAULT_CLIENT_INFO
from .transports.grpc import ErrorGroupServiceGrpcTransport
from .transports.grpc_asyncio import ErrorGroupServiceGrpcAsyncIOTransport
from .transports.rest import ErrorGroupServiceRestTransport


class ErrorGroupServiceClientMeta(type):
Expand All @@ -66,6 +67,7 @@ class ErrorGroupServiceClientMeta(type):
) # type: Dict[str, Type[ErrorGroupServiceTransport]]
_transport_registry["grpc"] = ErrorGroupServiceGrpcTransport
_transport_registry["grpc_asyncio"] = ErrorGroupServiceGrpcAsyncIOTransport
_transport_registry["rest"] = ErrorGroupServiceRestTransport

def get_transport_class(
cls,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@
from .base import ErrorGroupServiceTransport
from .grpc import ErrorGroupServiceGrpcTransport
from .grpc_asyncio import ErrorGroupServiceGrpcAsyncIOTransport
from .rest import ErrorGroupServiceRestTransport
from .rest import ErrorGroupServiceRestInterceptor


# Compile a registry of transports.
_transport_registry = OrderedDict() # type: Dict[str, Type[ErrorGroupServiceTransport]]
_transport_registry["grpc"] = ErrorGroupServiceGrpcTransport
_transport_registry["grpc_asyncio"] = ErrorGroupServiceGrpcAsyncIOTransport
_transport_registry["rest"] = ErrorGroupServiceRestTransport

__all__ = (
"ErrorGroupServiceTransport",
"ErrorGroupServiceGrpcTransport",
"ErrorGroupServiceGrpcAsyncIOTransport",
"ErrorGroupServiceRestTransport",
"ErrorGroupServiceRestInterceptor",
)
Loading

0 comments on commit b2b9eab

Please sign in to comment.