Skip to content

Commit 313ca7d

Browse files
Automated Protos Update (#576)
Co-authored-by: viambot <[email protected]>
1 parent e0cee7d commit 313ca7d

File tree

4 files changed

+128
-7
lines changed

4 files changed

+128
-7
lines changed

src/viam/gen/app/v1/end_user_grpc.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,21 @@ async def IsLegalAccepted(self, stream: 'grpclib.server.Stream[app.v1.end_user_p
1616
async def AcceptLegal(self, stream: 'grpclib.server.Stream[app.v1.end_user_pb2.AcceptLegalRequest, app.v1.end_user_pb2.AcceptLegalResponse]') -> None:
1717
pass
1818

19+
@abc.abstractmethod
20+
async def RegisterAuthApplication(self, stream: 'grpclib.server.Stream[app.v1.end_user_pb2.RegisterAuthApplicationRequest, app.v1.end_user_pb2.RegisterAuthApplicationResponse]') -> None:
21+
pass
22+
23+
@abc.abstractmethod
24+
async def UpdateAuthApplication(self, stream: 'grpclib.server.Stream[app.v1.end_user_pb2.UpdateAuthApplicationRequest, app.v1.end_user_pb2.UpdateAuthApplicationResponse]') -> None:
25+
pass
26+
1927
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
20-
return {'/viam.app.v1.EndUserService/IsLegalAccepted': grpclib.const.Handler(self.IsLegalAccepted, grpclib.const.Cardinality.UNARY_UNARY, app.v1.end_user_pb2.IsLegalAcceptedRequest, app.v1.end_user_pb2.IsLegalAcceptedResponse), '/viam.app.v1.EndUserService/AcceptLegal': grpclib.const.Handler(self.AcceptLegal, grpclib.const.Cardinality.UNARY_UNARY, app.v1.end_user_pb2.AcceptLegalRequest, app.v1.end_user_pb2.AcceptLegalResponse)}
28+
return {'/viam.app.v1.EndUserService/IsLegalAccepted': grpclib.const.Handler(self.IsLegalAccepted, grpclib.const.Cardinality.UNARY_UNARY, app.v1.end_user_pb2.IsLegalAcceptedRequest, app.v1.end_user_pb2.IsLegalAcceptedResponse), '/viam.app.v1.EndUserService/AcceptLegal': grpclib.const.Handler(self.AcceptLegal, grpclib.const.Cardinality.UNARY_UNARY, app.v1.end_user_pb2.AcceptLegalRequest, app.v1.end_user_pb2.AcceptLegalResponse), '/viam.app.v1.EndUserService/RegisterAuthApplication': grpclib.const.Handler(self.RegisterAuthApplication, grpclib.const.Cardinality.UNARY_UNARY, app.v1.end_user_pb2.RegisterAuthApplicationRequest, app.v1.end_user_pb2.RegisterAuthApplicationResponse), '/viam.app.v1.EndUserService/UpdateAuthApplication': grpclib.const.Handler(self.UpdateAuthApplication, grpclib.const.Cardinality.UNARY_UNARY, app.v1.end_user_pb2.UpdateAuthApplicationRequest, app.v1.end_user_pb2.UpdateAuthApplicationResponse)}
2129

2230
class EndUserServiceStub:
2331

2432
def __init__(self, channel: grpclib.client.Channel) -> None:
2533
self.IsLegalAccepted = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.EndUserService/IsLegalAccepted', app.v1.end_user_pb2.IsLegalAcceptedRequest, app.v1.end_user_pb2.IsLegalAcceptedResponse)
26-
self.AcceptLegal = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.EndUserService/AcceptLegal', app.v1.end_user_pb2.AcceptLegalRequest, app.v1.end_user_pb2.AcceptLegalResponse)
34+
self.AcceptLegal = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.EndUserService/AcceptLegal', app.v1.end_user_pb2.AcceptLegalRequest, app.v1.end_user_pb2.AcceptLegalResponse)
35+
self.RegisterAuthApplication = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.EndUserService/RegisterAuthApplication', app.v1.end_user_pb2.RegisterAuthApplicationRequest, app.v1.end_user_pb2.RegisterAuthApplicationResponse)
36+
self.UpdateAuthApplication = grpclib.client.UnaryUnaryMethod(channel, '/viam.app.v1.EndUserService/UpdateAuthApplication', app.v1.end_user_pb2.UpdateAuthApplicationRequest, app.v1.end_user_pb2.UpdateAuthApplicationResponse)

src/viam/gen/app/v1/end_user_pb2.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from google.protobuf import descriptor_pool as _descriptor_pool
55
from google.protobuf import symbol_database as _symbol_database
66
_sym_db = _symbol_database.Default()
7-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15app/v1/end_user.proto\x12\x0bviam.app.v1"\x18\n\x16IsLegalAcceptedRequest"@\n\x17IsLegalAcceptedResponse\x12%\n\x0eaccepted_legal\x18\x01 \x01(\x08R\racceptedLegal"\x14\n\x12AcceptLegalRequest"\x15\n\x13AcceptLegalResponse2\xc0\x01\n\x0eEndUserService\x12\\\n\x0fIsLegalAccepted\x12#.viam.app.v1.IsLegalAcceptedRequest\x1a$.viam.app.v1.IsLegalAcceptedResponse\x12P\n\x0bAcceptLegal\x12\x1f.viam.app.v1.AcceptLegalRequest\x1a .viam.app.v1.AcceptLegalResponseB\x18Z\x16go.viam.com/api/app/v1b\x06proto3')
7+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15app/v1/end_user.proto\x12\x0bviam.app.v1"\x18\n\x16IsLegalAcceptedRequest"@\n\x17IsLegalAcceptedResponse\x12%\n\x0eaccepted_legal\x18\x01 \x01(\x08R\racceptedLegal"\x14\n\x12AcceptLegalRequest"\x15\n\x13AcceptLegalResponse"\xc7\x01\n\x1eRegisterAuthApplicationRequest\x12)\n\x10application_name\x18\x01 \x01(\tR\x0fapplicationName\x12\x15\n\x06org_id\x18\x02 \x01(\tR\x05orgId\x12\x1f\n\x0borigin_uris\x18\x03 \x03(\tR\noriginUris\x12#\n\rredirect_uris\x18\x04 \x03(\tR\x0credirectUris\x12\x1d\n\nlogout_uri\x18\x05 \x01(\tR\tlogoutUri"\x8b\x01\n\x1fRegisterAuthApplicationResponse\x12%\n\x0eapplication_id\x18\x01 \x01(\tR\rapplicationId\x12)\n\x10application_name\x18\x02 \x01(\tR\x0fapplicationName\x12\x16\n\x06secret\x18\x03 \x01(\tR\x06secret"\xec\x01\n\x1cUpdateAuthApplicationRequest\x12\x15\n\x06org_id\x18\x01 \x01(\tR\x05orgId\x12%\n\x0eapplication_id\x18\x02 \x01(\tR\rapplicationId\x12)\n\x10application_name\x18\x03 \x01(\tR\x0fapplicationName\x12\x1f\n\x0borigin_uris\x18\x04 \x03(\tR\noriginUris\x12#\n\rredirect_uris\x18\x05 \x03(\tR\x0credirectUris\x12\x1d\n\nlogout_uri\x18\x06 \x01(\tR\tlogoutUri"q\n\x1dUpdateAuthApplicationResponse\x12%\n\x0eapplication_id\x18\x01 \x01(\tR\rapplicationId\x12)\n\x10application_name\x18\x02 \x01(\tR\x0fapplicationName2\xa6\x03\n\x0eEndUserService\x12\\\n\x0fIsLegalAccepted\x12#.viam.app.v1.IsLegalAcceptedRequest\x1a$.viam.app.v1.IsLegalAcceptedResponse\x12P\n\x0bAcceptLegal\x12\x1f.viam.app.v1.AcceptLegalRequest\x1a .viam.app.v1.AcceptLegalResponse\x12t\n\x17RegisterAuthApplication\x12+.viam.app.v1.RegisterAuthApplicationRequest\x1a,.viam.app.v1.RegisterAuthApplicationResponse\x12n\n\x15UpdateAuthApplication\x12).viam.app.v1.UpdateAuthApplicationRequest\x1a*.viam.app.v1.UpdateAuthApplicationResponseB\x18Z\x16go.viam.com/api/app/v1b\x06proto3')
88
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
99
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'app.v1.end_user_pb2', globals())
1010
if _descriptor._USE_C_DESCRIPTORS == False:
@@ -18,5 +18,13 @@
1818
_ACCEPTLEGALREQUEST._serialized_end = 150
1919
_ACCEPTLEGALRESPONSE._serialized_start = 152
2020
_ACCEPTLEGALRESPONSE._serialized_end = 173
21-
_ENDUSERSERVICE._serialized_start = 176
22-
_ENDUSERSERVICE._serialized_end = 368
21+
_REGISTERAUTHAPPLICATIONREQUEST._serialized_start = 176
22+
_REGISTERAUTHAPPLICATIONREQUEST._serialized_end = 375
23+
_REGISTERAUTHAPPLICATIONRESPONSE._serialized_start = 378
24+
_REGISTERAUTHAPPLICATIONRESPONSE._serialized_end = 517
25+
_UPDATEAUTHAPPLICATIONREQUEST._serialized_start = 520
26+
_UPDATEAUTHAPPLICATIONREQUEST._serialized_end = 756
27+
_UPDATEAUTHAPPLICATIONRESPONSE._serialized_start = 758
28+
_UPDATEAUTHAPPLICATIONRESPONSE._serialized_end = 871
29+
_ENDUSERSERVICE._serialized_start = 874
30+
_ENDUSERSERVICE._serialized_end = 1296

src/viam/gen/app/v1/end_user_pb2.pyi

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
isort:skip_file
44
"""
55
import builtins
6+
import collections.abc
67
import google.protobuf.descriptor
8+
import google.protobuf.internal.containers
79
import google.protobuf.message
810
import sys
911
if sys.version_info >= (3, 8):
@@ -48,4 +50,92 @@ class AcceptLegalResponse(google.protobuf.message.Message):
4850

4951
def __init__(self) -> None:
5052
...
51-
global___AcceptLegalResponse = AcceptLegalResponse
53+
global___AcceptLegalResponse = AcceptLegalResponse
54+
55+
@typing_extensions.final
56+
class RegisterAuthApplicationRequest(google.protobuf.message.Message):
57+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
58+
APPLICATION_NAME_FIELD_NUMBER: builtins.int
59+
ORG_ID_FIELD_NUMBER: builtins.int
60+
ORIGIN_URIS_FIELD_NUMBER: builtins.int
61+
REDIRECT_URIS_FIELD_NUMBER: builtins.int
62+
LOGOUT_URI_FIELD_NUMBER: builtins.int
63+
application_name: builtins.str
64+
org_id: builtins.str
65+
66+
@property
67+
def origin_uris(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
68+
...
69+
70+
@property
71+
def redirect_uris(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
72+
...
73+
logout_uri: builtins.str
74+
75+
def __init__(self, *, application_name: builtins.str=..., org_id: builtins.str=..., origin_uris: collections.abc.Iterable[builtins.str] | None=..., redirect_uris: collections.abc.Iterable[builtins.str] | None=..., logout_uri: builtins.str=...) -> None:
76+
...
77+
78+
def ClearField(self, field_name: typing_extensions.Literal['application_name', b'application_name', 'logout_uri', b'logout_uri', 'org_id', b'org_id', 'origin_uris', b'origin_uris', 'redirect_uris', b'redirect_uris']) -> None:
79+
...
80+
global___RegisterAuthApplicationRequest = RegisterAuthApplicationRequest
81+
82+
@typing_extensions.final
83+
class RegisterAuthApplicationResponse(google.protobuf.message.Message):
84+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
85+
APPLICATION_ID_FIELD_NUMBER: builtins.int
86+
APPLICATION_NAME_FIELD_NUMBER: builtins.int
87+
SECRET_FIELD_NUMBER: builtins.int
88+
application_id: builtins.str
89+
application_name: builtins.str
90+
secret: builtins.str
91+
92+
def __init__(self, *, application_id: builtins.str=..., application_name: builtins.str=..., secret: builtins.str=...) -> None:
93+
...
94+
95+
def ClearField(self, field_name: typing_extensions.Literal['application_id', b'application_id', 'application_name', b'application_name', 'secret', b'secret']) -> None:
96+
...
97+
global___RegisterAuthApplicationResponse = RegisterAuthApplicationResponse
98+
99+
@typing_extensions.final
100+
class UpdateAuthApplicationRequest(google.protobuf.message.Message):
101+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
102+
ORG_ID_FIELD_NUMBER: builtins.int
103+
APPLICATION_ID_FIELD_NUMBER: builtins.int
104+
APPLICATION_NAME_FIELD_NUMBER: builtins.int
105+
ORIGIN_URIS_FIELD_NUMBER: builtins.int
106+
REDIRECT_URIS_FIELD_NUMBER: builtins.int
107+
LOGOUT_URI_FIELD_NUMBER: builtins.int
108+
org_id: builtins.str
109+
application_id: builtins.str
110+
application_name: builtins.str
111+
112+
@property
113+
def origin_uris(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
114+
...
115+
116+
@property
117+
def redirect_uris(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
118+
...
119+
logout_uri: builtins.str
120+
121+
def __init__(self, *, org_id: builtins.str=..., application_id: builtins.str=..., application_name: builtins.str=..., origin_uris: collections.abc.Iterable[builtins.str] | None=..., redirect_uris: collections.abc.Iterable[builtins.str] | None=..., logout_uri: builtins.str=...) -> None:
122+
...
123+
124+
def ClearField(self, field_name: typing_extensions.Literal['application_id', b'application_id', 'application_name', b'application_name', 'logout_uri', b'logout_uri', 'org_id', b'org_id', 'origin_uris', b'origin_uris', 'redirect_uris', b'redirect_uris']) -> None:
125+
...
126+
global___UpdateAuthApplicationRequest = UpdateAuthApplicationRequest
127+
128+
@typing_extensions.final
129+
class UpdateAuthApplicationResponse(google.protobuf.message.Message):
130+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
131+
APPLICATION_ID_FIELD_NUMBER: builtins.int
132+
APPLICATION_NAME_FIELD_NUMBER: builtins.int
133+
application_id: builtins.str
134+
application_name: builtins.str
135+
136+
def __init__(self, *, application_id: builtins.str=..., application_name: builtins.str=...) -> None:
137+
...
138+
139+
def ClearField(self, field_name: typing_extensions.Literal['application_id', b'application_id', 'application_name', b'application_name']) -> None:
140+
...
141+
global___UpdateAuthApplicationResponse = UpdateAuthApplicationResponse

src/viam/proto/app/end_user.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,16 @@
33
Do not edit manually!
44
"""
55
from ...gen.app.v1.end_user_grpc import EndUserServiceBase, EndUserServiceStub
6-
from ...gen.app.v1.end_user_pb2 import AcceptLegalRequest, AcceptLegalResponse, IsLegalAcceptedRequest, IsLegalAcceptedResponse
6+
from ...gen.app.v1.end_user_pb2 import (
7+
AcceptLegalRequest,
8+
AcceptLegalResponse,
9+
IsLegalAcceptedRequest,
10+
IsLegalAcceptedResponse,
11+
RegisterAuthApplicationRequest,
12+
RegisterAuthApplicationResponse,
13+
UpdateAuthApplicationRequest,
14+
UpdateAuthApplicationResponse,
15+
)
716

817
__all__ = [
918
"EndUserServiceBase",
@@ -12,4 +21,8 @@
1221
"AcceptLegalResponse",
1322
"IsLegalAcceptedRequest",
1423
"IsLegalAcceptedResponse",
24+
"RegisterAuthApplicationRequest",
25+
"RegisterAuthApplicationResponse",
26+
"UpdateAuthApplicationRequest",
27+
"UpdateAuthApplicationResponse",
1528
]

0 commit comments

Comments
 (0)