Skip to content

Commit 3706bbd

Browse files
[grpcio-health-checking] Bump version to 1.85.* (#16623)
Add the Health List RPC from 1.85
1 parent 17cbf25 commit 3706bbd

4 files changed

Lines changed: 44 additions & 1 deletion

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Upb messages accept (*args, **kwargs) at runtime. HealthListRequest has no
2+
# fields, so its constructor takes no arguments.
3+
grpc_health.v1.health_pb2.HealthListRequest.__init__
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version = "1.*"
1+
version = "1.85.*"
22
upstream-repository = "https://github.com/grpc/grpc"
33
dependencies = ["types-grpcio", "types-protobuf"]

‎stubs/grpcio-health-checking/grpc_health/v1/health_pb2.pyi‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
from _typeshed import Incomplete
2+
from collections.abc import Mapping
13
from typing import ClassVar, Literal, final
24

35
from google._upb._message import Descriptor, FileDescriptor, MessageMeta
46
from google.protobuf import message
7+
from google.protobuf.internal.containers import MessageMap
58
from google.protobuf.internal.enum_type_wrapper import EnumTypeWrapper
69

710
DESCRIPTOR: FileDescriptor
@@ -24,3 +27,26 @@ class HealthCheckResponse(message.Message, metaclass=MessageMeta):
2427
status: int
2528
def __init__(self, status: int | str | None = ...) -> None: ...
2629
DESCRIPTOR: Descriptor
30+
31+
@final
32+
class HealthListRequest(message.Message, metaclass=MessageMeta):
33+
def __init__(self) -> None: ...
34+
DESCRIPTOR: Descriptor
35+
36+
@final
37+
class HealthListResponse(message.Message, metaclass=MessageMeta):
38+
@final
39+
class StatusesEntry(message.Message, metaclass=MessageMeta):
40+
KEY_FIELD_NUMBER: ClassVar[int]
41+
VALUE_FIELD_NUMBER: ClassVar[int]
42+
key: str
43+
value: HealthCheckResponse
44+
def __init__(
45+
self, key: str | None = ..., value: HealthCheckResponse | Mapping[Incomplete, Incomplete] | None = ...
46+
) -> None: ...
47+
DESCRIPTOR: Descriptor
48+
49+
STATUSES_FIELD_NUMBER: ClassVar[int]
50+
statuses: MessageMap[str, HealthCheckResponse]
51+
def __init__(self, statuses: Mapping[str, HealthCheckResponse] | None = ...) -> None: ...
52+
DESCRIPTOR: Descriptor

‎stubs/grpcio-health-checking/grpc_health/v1/health_pb2_grpc.pyi‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class HealthStub:
1313
class HealthServicer:
1414
# Generated methods are overridden by both synchronous and asynchronous servicers.
1515
def Check(self, request: health_pb2.HealthCheckRequest, context: Any) -> Any: ...
16+
def List(self, request: health_pb2.HealthListRequest, context: Any) -> Any: ...
1617
def Watch(self, request: health_pb2.HealthCheckRequest, context: Any) -> Any: ...
1718

1819
def add_HealthServicer_to_server(servicer: HealthServicer, server: grpc.Server | aio.Server) -> None: ...
@@ -32,6 +33,19 @@ class Health:
3233
metadata=None,
3334
): ...
3435
@staticmethod
36+
def List(
37+
request,
38+
target,
39+
options=(),
40+
channel_credentials=None,
41+
call_credentials=None,
42+
insecure=False,
43+
compression=None,
44+
wait_for_ready=None,
45+
timeout=None,
46+
metadata=None,
47+
): ...
48+
@staticmethod
3549
def Watch(
3650
request,
3751
target,

0 commit comments

Comments
 (0)