scalekit-sdk-python 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- buf/__init__.py +0 -0
- buf/validate/__init__.py +0 -0
- buf/validate/expression_pb2.py +31 -0
- buf/validate/expression_pb2.pyi +34 -0
- buf/validate/expression_pb2_grpc.py +4 -0
- buf/validate/priv/__init__.py +0 -0
- buf/validate/priv/private_pb2.py +30 -0
- buf/validate/priv/private_pb2.pyi +25 -0
- buf/validate/priv/private_pb2_grpc.py +4 -0
- buf/validate/validate_pb2.py +402 -0
- buf/validate/validate_pb2.pyi +503 -0
- buf/validate/validate_pb2_grpc.py +4 -0
- scalekit/__init__.py +4 -0
- scalekit/client.py +143 -0
- scalekit/common/__init__.py +0 -0
- scalekit/common/scalekit.py +49 -0
- scalekit/common/user.py +75 -0
- scalekit/connection.py +103 -0
- scalekit/constants/__init__.py +0 -0
- scalekit/constants/user.py +21 -0
- scalekit/core.py +169 -0
- scalekit/domain.py +73 -0
- scalekit/organization.py +181 -0
- scalekit/v1/__init__.py +0 -0
- scalekit/v1/clients/__init__.py +0 -0
- scalekit/v1/clients/clients_pb2.py +103 -0
- scalekit/v1/clients/clients_pb2.pyi +156 -0
- scalekit/v1/clients/clients_pb2_grpc.py +232 -0
- scalekit/v1/commons/__init__.py +0 -0
- scalekit/v1/commons/commons_pb2.py +36 -0
- scalekit/v1/commons/commons_pb2.pyi +30 -0
- scalekit/v1/commons/commons_pb2_grpc.py +4 -0
- scalekit/v1/connections/__init__.py +0 -0
- scalekit/v1/connections/connections_pb2.py +355 -0
- scalekit/v1/connections/connections_pb2.pyi +526 -0
- scalekit/v1/connections/connections_pb2_grpc.py +265 -0
- scalekit/v1/domains/__init__.py +0 -0
- scalekit/v1/domains/domains_pb2.py +92 -0
- scalekit/v1/domains/domains_pb2.pyi +153 -0
- scalekit/v1/domains/domains_pb2_grpc.py +199 -0
- scalekit/v1/environments/__init__.py +0 -0
- scalekit/v1/environments/environments_pb2.py +171 -0
- scalekit/v1/environments/environments_pb2.pyi +241 -0
- scalekit/v1/environments/environments_pb2_grpc.py +463 -0
- scalekit/v1/errdetails/__init__.py +0 -0
- scalekit/v1/errdetails/errdetails_pb2.py +44 -0
- scalekit/v1/errdetails/errdetails_pb2.pyi +89 -0
- scalekit/v1/errdetails/errdetails_pb2_grpc.py +4 -0
- scalekit/v1/events/__init__.py +0 -0
- scalekit/v1/events/events_pb2.py +39 -0
- scalekit/v1/events/events_pb2.pyi +62 -0
- scalekit/v1/events/events_pb2_grpc.py +4 -0
- scalekit/v1/members/__init__.py +0 -0
- scalekit/v1/members/members_pb2.py +105 -0
- scalekit/v1/members/members_pb2.pyi +142 -0
- scalekit/v1/members/members_pb2_grpc.py +271 -0
- scalekit/v1/options/__init__.py +0 -0
- scalekit/v1/options/options_pb2.py +30 -0
- scalekit/v1/options/options_pb2.pyi +44 -0
- scalekit/v1/options/options_pb2_grpc.py +4 -0
- scalekit/v1/organizations/__init__.py +0 -0
- scalekit/v1/organizations/organizations_pb2.py +168 -0
- scalekit/v1/organizations/organizations_pb2.pyi +190 -0
- scalekit/v1/organizations/organizations_pb2_grpc.py +301 -0
- scalekit/v1/users/__init__.py +0 -0
- scalekit/v1/users/users_pb2.py +97 -0
- scalekit/v1/users/users_pb2.pyi +136 -0
- scalekit/v1/users/users_pb2_grpc.py +199 -0
- scalekit/v1/workspaces/__init__.py +0 -0
- scalekit/v1/workspaces/workspaces_pb2.py +90 -0
- scalekit/v1/workspaces/workspaces_pb2.pyi +102 -0
- scalekit/v1/workspaces/workspaces_pb2_grpc.py +198 -0
- scalekit_sdk_python-1.0.0.dist-info/LICENSE +21 -0
- scalekit_sdk_python-1.0.0.dist-info/METADATA +67 -0
- scalekit_sdk_python-1.0.0.dist-info/RECORD +77 -0
- scalekit_sdk_python-1.0.0.dist-info/WHEEL +5 -0
- scalekit_sdk_python-1.0.0.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
6
|
+
from scalekit.v1.organizations import organizations_pb2 as scalekit_dot_v1_dot_organizations_dot_organizations__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class OrganizationServiceStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.CreateOrganization = channel.unary_unary(
|
|
19
|
+
'/scalekit.v1.organizations.OrganizationService/CreateOrganization',
|
|
20
|
+
request_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.CreateOrganizationRequest.SerializeToString,
|
|
21
|
+
response_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.CreateOrganizationResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.UpdateOrganization = channel.unary_unary(
|
|
24
|
+
'/scalekit.v1.organizations.OrganizationService/UpdateOrganization',
|
|
25
|
+
request_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.UpdateOrganizationRequest.SerializeToString,
|
|
26
|
+
response_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.UpdateOrganizationResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.GetOrganization = channel.unary_unary(
|
|
29
|
+
'/scalekit.v1.organizations.OrganizationService/GetOrganization',
|
|
30
|
+
request_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetOrganizationRequest.SerializeToString,
|
|
31
|
+
response_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetOrganizationResponse.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.ListOrganization = channel.unary_unary(
|
|
34
|
+
'/scalekit.v1.organizations.OrganizationService/ListOrganization',
|
|
35
|
+
request_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.ListOrganizationsRequest.SerializeToString,
|
|
36
|
+
response_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.ListOrganizationsResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.DeleteOrganization = channel.unary_unary(
|
|
39
|
+
'/scalekit.v1.organizations.OrganizationService/DeleteOrganization',
|
|
40
|
+
request_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.DeleteOrganizationRequest.SerializeToString,
|
|
41
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
42
|
+
)
|
|
43
|
+
self.GeneratePortalLink = channel.unary_unary(
|
|
44
|
+
'/scalekit.v1.organizations.OrganizationService/GeneratePortalLink',
|
|
45
|
+
request_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GeneratePortalLinkRequest.SerializeToString,
|
|
46
|
+
response_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GeneratePortalLinkResponse.FromString,
|
|
47
|
+
)
|
|
48
|
+
self.DeletePortalLink = channel.unary_unary(
|
|
49
|
+
'/scalekit.v1.organizations.OrganizationService/DeletePortalLink',
|
|
50
|
+
request_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.DeletePortalLinkRequest.SerializeToString,
|
|
51
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
52
|
+
)
|
|
53
|
+
self.GetPortalLinks = channel.unary_unary(
|
|
54
|
+
'/scalekit.v1.organizations.OrganizationService/GetPortalLinks',
|
|
55
|
+
request_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetPortalLinkRequest.SerializeToString,
|
|
56
|
+
response_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetPortalLinksResponse.FromString,
|
|
57
|
+
)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class OrganizationServiceServicer(object):
|
|
61
|
+
"""Missing associated documentation comment in .proto file."""
|
|
62
|
+
|
|
63
|
+
def CreateOrganization(self, request, context):
|
|
64
|
+
"""Create Organization
|
|
65
|
+
"""
|
|
66
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
+
context.set_details('Method not implemented!')
|
|
68
|
+
raise NotImplementedError('Method not implemented!')
|
|
69
|
+
|
|
70
|
+
def UpdateOrganization(self, request, context):
|
|
71
|
+
"""Missing associated documentation comment in .proto file."""
|
|
72
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
73
|
+
context.set_details('Method not implemented!')
|
|
74
|
+
raise NotImplementedError('Method not implemented!')
|
|
75
|
+
|
|
76
|
+
def GetOrganization(self, request, context):
|
|
77
|
+
"""Missing associated documentation comment in .proto file."""
|
|
78
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
79
|
+
context.set_details('Method not implemented!')
|
|
80
|
+
raise NotImplementedError('Method not implemented!')
|
|
81
|
+
|
|
82
|
+
def ListOrganization(self, request, context):
|
|
83
|
+
"""Missing associated documentation comment in .proto file."""
|
|
84
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
85
|
+
context.set_details('Method not implemented!')
|
|
86
|
+
raise NotImplementedError('Method not implemented!')
|
|
87
|
+
|
|
88
|
+
def DeleteOrganization(self, request, context):
|
|
89
|
+
"""Delete an Organization
|
|
90
|
+
"""
|
|
91
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
92
|
+
context.set_details('Method not implemented!')
|
|
93
|
+
raise NotImplementedError('Method not implemented!')
|
|
94
|
+
|
|
95
|
+
def GeneratePortalLink(self, request, context):
|
|
96
|
+
"""Generate Portal Link for Org
|
|
97
|
+
"""
|
|
98
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
99
|
+
context.set_details('Method not implemented!')
|
|
100
|
+
raise NotImplementedError('Method not implemented!')
|
|
101
|
+
|
|
102
|
+
def DeletePortalLink(self, request, context):
|
|
103
|
+
"""Missing associated documentation comment in .proto file."""
|
|
104
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
105
|
+
context.set_details('Method not implemented!')
|
|
106
|
+
raise NotImplementedError('Method not implemented!')
|
|
107
|
+
|
|
108
|
+
def GetPortalLinks(self, request, context):
|
|
109
|
+
"""Missing associated documentation comment in .proto file."""
|
|
110
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
111
|
+
context.set_details('Method not implemented!')
|
|
112
|
+
raise NotImplementedError('Method not implemented!')
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def add_OrganizationServiceServicer_to_server(servicer, server):
|
|
116
|
+
rpc_method_handlers = {
|
|
117
|
+
'CreateOrganization': grpc.unary_unary_rpc_method_handler(
|
|
118
|
+
servicer.CreateOrganization,
|
|
119
|
+
request_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.CreateOrganizationRequest.FromString,
|
|
120
|
+
response_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.CreateOrganizationResponse.SerializeToString,
|
|
121
|
+
),
|
|
122
|
+
'UpdateOrganization': grpc.unary_unary_rpc_method_handler(
|
|
123
|
+
servicer.UpdateOrganization,
|
|
124
|
+
request_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.UpdateOrganizationRequest.FromString,
|
|
125
|
+
response_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.UpdateOrganizationResponse.SerializeToString,
|
|
126
|
+
),
|
|
127
|
+
'GetOrganization': grpc.unary_unary_rpc_method_handler(
|
|
128
|
+
servicer.GetOrganization,
|
|
129
|
+
request_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetOrganizationRequest.FromString,
|
|
130
|
+
response_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetOrganizationResponse.SerializeToString,
|
|
131
|
+
),
|
|
132
|
+
'ListOrganization': grpc.unary_unary_rpc_method_handler(
|
|
133
|
+
servicer.ListOrganization,
|
|
134
|
+
request_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.ListOrganizationsRequest.FromString,
|
|
135
|
+
response_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.ListOrganizationsResponse.SerializeToString,
|
|
136
|
+
),
|
|
137
|
+
'DeleteOrganization': grpc.unary_unary_rpc_method_handler(
|
|
138
|
+
servicer.DeleteOrganization,
|
|
139
|
+
request_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.DeleteOrganizationRequest.FromString,
|
|
140
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
141
|
+
),
|
|
142
|
+
'GeneratePortalLink': grpc.unary_unary_rpc_method_handler(
|
|
143
|
+
servicer.GeneratePortalLink,
|
|
144
|
+
request_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GeneratePortalLinkRequest.FromString,
|
|
145
|
+
response_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GeneratePortalLinkResponse.SerializeToString,
|
|
146
|
+
),
|
|
147
|
+
'DeletePortalLink': grpc.unary_unary_rpc_method_handler(
|
|
148
|
+
servicer.DeletePortalLink,
|
|
149
|
+
request_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.DeletePortalLinkRequest.FromString,
|
|
150
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
151
|
+
),
|
|
152
|
+
'GetPortalLinks': grpc.unary_unary_rpc_method_handler(
|
|
153
|
+
servicer.GetPortalLinks,
|
|
154
|
+
request_deserializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetPortalLinkRequest.FromString,
|
|
155
|
+
response_serializer=scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetPortalLinksResponse.SerializeToString,
|
|
156
|
+
),
|
|
157
|
+
}
|
|
158
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
159
|
+
'scalekit.v1.organizations.OrganizationService', rpc_method_handlers)
|
|
160
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
# This class is part of an EXPERIMENTAL API.
|
|
164
|
+
class OrganizationService(object):
|
|
165
|
+
"""Missing associated documentation comment in .proto file."""
|
|
166
|
+
|
|
167
|
+
@staticmethod
|
|
168
|
+
def CreateOrganization(request,
|
|
169
|
+
target,
|
|
170
|
+
options=(),
|
|
171
|
+
channel_credentials=None,
|
|
172
|
+
call_credentials=None,
|
|
173
|
+
insecure=False,
|
|
174
|
+
compression=None,
|
|
175
|
+
wait_for_ready=None,
|
|
176
|
+
timeout=None,
|
|
177
|
+
metadata=None):
|
|
178
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.organizations.OrganizationService/CreateOrganization',
|
|
179
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.CreateOrganizationRequest.SerializeToString,
|
|
180
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.CreateOrganizationResponse.FromString,
|
|
181
|
+
options, channel_credentials,
|
|
182
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
183
|
+
|
|
184
|
+
@staticmethod
|
|
185
|
+
def UpdateOrganization(request,
|
|
186
|
+
target,
|
|
187
|
+
options=(),
|
|
188
|
+
channel_credentials=None,
|
|
189
|
+
call_credentials=None,
|
|
190
|
+
insecure=False,
|
|
191
|
+
compression=None,
|
|
192
|
+
wait_for_ready=None,
|
|
193
|
+
timeout=None,
|
|
194
|
+
metadata=None):
|
|
195
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.organizations.OrganizationService/UpdateOrganization',
|
|
196
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.UpdateOrganizationRequest.SerializeToString,
|
|
197
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.UpdateOrganizationResponse.FromString,
|
|
198
|
+
options, channel_credentials,
|
|
199
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
200
|
+
|
|
201
|
+
@staticmethod
|
|
202
|
+
def GetOrganization(request,
|
|
203
|
+
target,
|
|
204
|
+
options=(),
|
|
205
|
+
channel_credentials=None,
|
|
206
|
+
call_credentials=None,
|
|
207
|
+
insecure=False,
|
|
208
|
+
compression=None,
|
|
209
|
+
wait_for_ready=None,
|
|
210
|
+
timeout=None,
|
|
211
|
+
metadata=None):
|
|
212
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.organizations.OrganizationService/GetOrganization',
|
|
213
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetOrganizationRequest.SerializeToString,
|
|
214
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetOrganizationResponse.FromString,
|
|
215
|
+
options, channel_credentials,
|
|
216
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
217
|
+
|
|
218
|
+
@staticmethod
|
|
219
|
+
def ListOrganization(request,
|
|
220
|
+
target,
|
|
221
|
+
options=(),
|
|
222
|
+
channel_credentials=None,
|
|
223
|
+
call_credentials=None,
|
|
224
|
+
insecure=False,
|
|
225
|
+
compression=None,
|
|
226
|
+
wait_for_ready=None,
|
|
227
|
+
timeout=None,
|
|
228
|
+
metadata=None):
|
|
229
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.organizations.OrganizationService/ListOrganization',
|
|
230
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.ListOrganizationsRequest.SerializeToString,
|
|
231
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.ListOrganizationsResponse.FromString,
|
|
232
|
+
options, channel_credentials,
|
|
233
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
234
|
+
|
|
235
|
+
@staticmethod
|
|
236
|
+
def DeleteOrganization(request,
|
|
237
|
+
target,
|
|
238
|
+
options=(),
|
|
239
|
+
channel_credentials=None,
|
|
240
|
+
call_credentials=None,
|
|
241
|
+
insecure=False,
|
|
242
|
+
compression=None,
|
|
243
|
+
wait_for_ready=None,
|
|
244
|
+
timeout=None,
|
|
245
|
+
metadata=None):
|
|
246
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.organizations.OrganizationService/DeleteOrganization',
|
|
247
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.DeleteOrganizationRequest.SerializeToString,
|
|
248
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
249
|
+
options, channel_credentials,
|
|
250
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
251
|
+
|
|
252
|
+
@staticmethod
|
|
253
|
+
def GeneratePortalLink(request,
|
|
254
|
+
target,
|
|
255
|
+
options=(),
|
|
256
|
+
channel_credentials=None,
|
|
257
|
+
call_credentials=None,
|
|
258
|
+
insecure=False,
|
|
259
|
+
compression=None,
|
|
260
|
+
wait_for_ready=None,
|
|
261
|
+
timeout=None,
|
|
262
|
+
metadata=None):
|
|
263
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.organizations.OrganizationService/GeneratePortalLink',
|
|
264
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GeneratePortalLinkRequest.SerializeToString,
|
|
265
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GeneratePortalLinkResponse.FromString,
|
|
266
|
+
options, channel_credentials,
|
|
267
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
268
|
+
|
|
269
|
+
@staticmethod
|
|
270
|
+
def DeletePortalLink(request,
|
|
271
|
+
target,
|
|
272
|
+
options=(),
|
|
273
|
+
channel_credentials=None,
|
|
274
|
+
call_credentials=None,
|
|
275
|
+
insecure=False,
|
|
276
|
+
compression=None,
|
|
277
|
+
wait_for_ready=None,
|
|
278
|
+
timeout=None,
|
|
279
|
+
metadata=None):
|
|
280
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.organizations.OrganizationService/DeletePortalLink',
|
|
281
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.DeletePortalLinkRequest.SerializeToString,
|
|
282
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
283
|
+
options, channel_credentials,
|
|
284
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
285
|
+
|
|
286
|
+
@staticmethod
|
|
287
|
+
def GetPortalLinks(request,
|
|
288
|
+
target,
|
|
289
|
+
options=(),
|
|
290
|
+
channel_credentials=None,
|
|
291
|
+
call_credentials=None,
|
|
292
|
+
insecure=False,
|
|
293
|
+
compression=None,
|
|
294
|
+
wait_for_ready=None,
|
|
295
|
+
timeout=None,
|
|
296
|
+
metadata=None):
|
|
297
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.organizations.OrganizationService/GetPortalLinks',
|
|
298
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetPortalLinkRequest.SerializeToString,
|
|
299
|
+
scalekit_dot_v1_dot_organizations_dot_organizations__pb2.GetPortalLinksResponse.FromString,
|
|
300
|
+
options, channel_credentials,
|
|
301
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
File without changes
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: scalekit/v1/users/users.proto
|
|
4
|
+
# Protobuf Python Version: 5.26.1
|
|
5
|
+
"""Generated protocol buffer code."""
|
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
9
|
+
from google.protobuf.internal import builder as _builder
|
|
10
|
+
# @@protoc_insertion_point(imports)
|
|
11
|
+
|
|
12
|
+
_sym_db = _symbol_database.Default()
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
16
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
17
|
+
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
|
18
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
19
|
+
from scalekit.v1.commons import commons_pb2 as scalekit_dot_v1_dot_commons_dot_commons__pb2
|
|
20
|
+
from scalekit.v1.options import options_pb2 as scalekit_dot_v1_dot_options_dot_options__pb2
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dscalekit/v1/users/users.proto\x12\x11scalekit.v1.users\x1a\x1b\x62uf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a!scalekit/v1/commons/commons.proto\x1a!scalekit/v1/options/options.proto\"\xd4\x03\n\x04User\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12;\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12;\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nupdateTime\x12)\n\nfirst_name\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\xc8\x01R\tfirstName\x12\'\n\tlast_name\x18\x05 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\xc8\x01R\x08lastName\x12\x1d\n\x05\x65mail\x18\x06 \x01(\tB\x07\xbaH\x04r\x02`\x01R\x05\x65mail\x12$\n\x0b\x65xternal_id\x18\x07 \x01(\tH\x00R\nexternalId\x88\x01\x01\x12\\\n\x08metadata\x18\x08 \x03(\x0b\x32%.scalekit.v1.users.User.MetadataEntryB\x19\xbaH\x16\x9a\x01\x13\x10\n\"\x06r\x04\x10\x03\x18\x19*\x07r\x05\x10\x01\x18\x80\x02R\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0e\n\x0c_external_id\"q\n\x11\x43reateUserRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x33\n\x04user\x18\x02 \x01(\x0b\x32\x17.scalekit.v1.users.UserB\x06\xbaH\x03\xc8\x01\x01R\x04user\"A\n\x12\x43reateUserResponse\x12+\n\x04user\x18\x01 \x01(\x0b\x32\x17.scalekit.v1.users.UserR\x04user\"\xbd\x02\n\nUpdateUser\x12)\n\nfirst_name\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\xc8\x01R\tfirstName\x12\'\n\tlast_name\x18\x05 \x01(\tB\n\xbaH\x07r\x05\x10\x01\x18\xc8\x01R\x08lastName\x12$\n\x0b\x65xternal_id\x18\x07 \x01(\tH\x00R\nexternalId\x88\x01\x01\x12\x62\n\x08metadata\x18\x08 \x03(\x0b\x32+.scalekit.v1.users.UpdateUser.MetadataEntryB\x19\xbaH\x16\x9a\x01\x13\x10\n\"\x06r\x04\x10\x03\x18\x19*\x07r\x05\x10\x01\x18\x80\x02R\x08metadata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\x42\x0e\n\x0c_external_idJ\x04\x08\x06\x10\x07\"\xc5\x01\n\x11UpdateUserRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1b\n\x02id\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x13\x18\x19H\x00R\x02id\x12!\n\x0b\x65xternal_id\x18\x03 \x01(\tH\x00R\nexternalId\x12\x39\n\x04user\x18\x04 \x01(\x0b\x32\x1d.scalekit.v1.users.UpdateUserB\x06\xbaH\x03\xc8\x01\x01R\x04userB\x0c\n\nidentities\"A\n\x12UpdateUserResponse\x12+\n\x04user\x18\x01 \x01(\x0b\x32\x17.scalekit.v1.users.UserR\x04user\"\x87\x01\n\x0eGetUserRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1b\n\x02id\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x13\x18\x19H\x00R\x02id\x12!\n\x0b\x65xternal_id\x18\x03 \x01(\tH\x00R\nexternalIdB\x0c\n\nidentities\">\n\x0fGetUserResponse\x12+\n\x04user\x18\x01 \x01(\x0b\x32\x17.scalekit.v1.users.UserR\x04user\"v\n\x0fListUserRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1b\n\tpage_size\x18\x02 \x01(\rR\x08pageSize\x12\x1d\n\npage_token\x18\x03 \x01(\tR\tpageToken\"\x86\x01\n\x10ListUserResponse\x12&\n\x0fnext_page_token\x18\x01 \x01(\tR\rnextPageToken\x12\x1d\n\ntotal_size\x18\x02 \x01(\rR\ttotalSize\x12+\n\x04user\x18\x03 \x03(\x0b\x32\x17.scalekit.v1.users.UserR\x04user\"\x8a\x01\n\x11\x44\x65leteUserRequest\x12\'\n\x0forganization_id\x18\x01 \x01(\tR\x0eorganizationId\x12\x1b\n\x02id\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x10\x13\x18\x19H\x00R\x02id\x12!\n\x0b\x65xternal_id\x18\x03 \x01(\tH\x00R\nexternalIdB\x0c\n\nidentities2\xda\x07\n\x0bUserService\x12\xc1\x01\n\nCreateUser\x12$.scalekit.v1.users.CreateUserRequest\x1a%.scalekit.v1.users.CreateUserResponse\"f\x82\xb5\x18\x00\x82\xd3\xe4\x93\x02\\\"-/api/v1/organizations/{organization_id}/users:\x04userZ%\"\x1d/api/v1/organizations/-/users:\x04user\x12\xc6\x01\n\nUpdateUser\x12$.scalekit.v1.users.UpdateUserRequest\x1a%.scalekit.v1.users.UpdateUserResponse\"k\x82\xb5\x18\x00\x82\xd3\xe4\x93\x02\x61\x32\x32/api/v1/organizations/{organization_id}/users/{id}:\x04userZ%2\x1d/api/v1/organizations/-/users:\x04user\x12\xda\x01\n\x07GetUser\x12!.scalekit.v1.users.GetUserRequest\x1a\".scalekit.v1.users.GetUserResponse\"\x87\x01\x82\xb5\x18\x00\x82\xd3\xe4\x93\x02}\x12\x32/api/v1/organizations/{organization_id}/users/{id}Z$\x12\"/api/v1/organizations/-/users/{id}Z!\x12\x1f/api/v1/organizations/-/users/-\x12\xb0\x01\n\tListUsers\x12\".scalekit.v1.users.ListUserRequest\x1a#.scalekit.v1.users.ListUserResponse\"Z\x82\xb5\x18\x00\x82\xd3\xe4\x93\x02P\x12-/api/v1/organizations/{organization_id}/usersZ\x1f\x12\x1d/api/v1/organizations/-/users\x12\xad\x01\n\nDeleteUser\x12$.scalekit.v1.users.DeleteUserRequest\x1a\x16.google.protobuf.Empty\"a\x82\xb5\x18\x00\x82\xd3\xe4\x93\x02W*2/api/v1/organizations/{organization_id}/users/{id}Z!*\x1f/api/v1/organizations/-/users/-B1Z/github.com/scalekit-inc/scalekit/pkg/grpc/usersb\x06proto3')
|
|
24
|
+
|
|
25
|
+
_globals = globals()
|
|
26
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
27
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scalekit.v1.users.users_pb2', _globals)
|
|
28
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
29
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
30
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z/github.com/scalekit-inc/scalekit/pkg/grpc/users'
|
|
31
|
+
_globals['_USER_METADATAENTRY']._loaded_options = None
|
|
32
|
+
_globals['_USER_METADATAENTRY']._serialized_options = b'8\001'
|
|
33
|
+
_globals['_USER'].fields_by_name['first_name']._loaded_options = None
|
|
34
|
+
_globals['_USER'].fields_by_name['first_name']._serialized_options = b'\272H\007r\005\020\001\030\310\001'
|
|
35
|
+
_globals['_USER'].fields_by_name['last_name']._loaded_options = None
|
|
36
|
+
_globals['_USER'].fields_by_name['last_name']._serialized_options = b'\272H\007r\005\020\001\030\310\001'
|
|
37
|
+
_globals['_USER'].fields_by_name['email']._loaded_options = None
|
|
38
|
+
_globals['_USER'].fields_by_name['email']._serialized_options = b'\272H\004r\002`\001'
|
|
39
|
+
_globals['_USER'].fields_by_name['metadata']._loaded_options = None
|
|
40
|
+
_globals['_USER'].fields_by_name['metadata']._serialized_options = b'\272H\026\232\001\023\020\n\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002'
|
|
41
|
+
_globals['_CREATEUSERREQUEST'].fields_by_name['user']._loaded_options = None
|
|
42
|
+
_globals['_CREATEUSERREQUEST'].fields_by_name['user']._serialized_options = b'\272H\003\310\001\001'
|
|
43
|
+
_globals['_UPDATEUSER_METADATAENTRY']._loaded_options = None
|
|
44
|
+
_globals['_UPDATEUSER_METADATAENTRY']._serialized_options = b'8\001'
|
|
45
|
+
_globals['_UPDATEUSER'].fields_by_name['first_name']._loaded_options = None
|
|
46
|
+
_globals['_UPDATEUSER'].fields_by_name['first_name']._serialized_options = b'\272H\007r\005\020\001\030\310\001'
|
|
47
|
+
_globals['_UPDATEUSER'].fields_by_name['last_name']._loaded_options = None
|
|
48
|
+
_globals['_UPDATEUSER'].fields_by_name['last_name']._serialized_options = b'\272H\007r\005\020\001\030\310\001'
|
|
49
|
+
_globals['_UPDATEUSER'].fields_by_name['metadata']._loaded_options = None
|
|
50
|
+
_globals['_UPDATEUSER'].fields_by_name['metadata']._serialized_options = b'\272H\026\232\001\023\020\n\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002'
|
|
51
|
+
_globals['_UPDATEUSERREQUEST'].fields_by_name['id']._loaded_options = None
|
|
52
|
+
_globals['_UPDATEUSERREQUEST'].fields_by_name['id']._serialized_options = b'\272H\006r\004\020\023\030\031'
|
|
53
|
+
_globals['_UPDATEUSERREQUEST'].fields_by_name['user']._loaded_options = None
|
|
54
|
+
_globals['_UPDATEUSERREQUEST'].fields_by_name['user']._serialized_options = b'\272H\003\310\001\001'
|
|
55
|
+
_globals['_GETUSERREQUEST'].fields_by_name['id']._loaded_options = None
|
|
56
|
+
_globals['_GETUSERREQUEST'].fields_by_name['id']._serialized_options = b'\272H\006r\004\020\023\030\031'
|
|
57
|
+
_globals['_DELETEUSERREQUEST'].fields_by_name['id']._loaded_options = None
|
|
58
|
+
_globals['_DELETEUSERREQUEST'].fields_by_name['id']._serialized_options = b'\272H\006r\004\020\023\030\031'
|
|
59
|
+
_globals['_USERSERVICE'].methods_by_name['CreateUser']._loaded_options = None
|
|
60
|
+
_globals['_USERSERVICE'].methods_by_name['CreateUser']._serialized_options = b'\202\265\030\000\202\323\344\223\002\\\"-/api/v1/organizations/{organization_id}/users:\004userZ%\"\035/api/v1/organizations/-/users:\004user'
|
|
61
|
+
_globals['_USERSERVICE'].methods_by_name['UpdateUser']._loaded_options = None
|
|
62
|
+
_globals['_USERSERVICE'].methods_by_name['UpdateUser']._serialized_options = b'\202\265\030\000\202\323\344\223\002a22/api/v1/organizations/{organization_id}/users/{id}:\004userZ%2\035/api/v1/organizations/-/users:\004user'
|
|
63
|
+
_globals['_USERSERVICE'].methods_by_name['GetUser']._loaded_options = None
|
|
64
|
+
_globals['_USERSERVICE'].methods_by_name['GetUser']._serialized_options = b'\202\265\030\000\202\323\344\223\002}\0222/api/v1/organizations/{organization_id}/users/{id}Z$\022\"/api/v1/organizations/-/users/{id}Z!\022\037/api/v1/organizations/-/users/-'
|
|
65
|
+
_globals['_USERSERVICE'].methods_by_name['ListUsers']._loaded_options = None
|
|
66
|
+
_globals['_USERSERVICE'].methods_by_name['ListUsers']._serialized_options = b'\202\265\030\000\202\323\344\223\002P\022-/api/v1/organizations/{organization_id}/usersZ\037\022\035/api/v1/organizations/-/users'
|
|
67
|
+
_globals['_USERSERVICE'].methods_by_name['DeleteUser']._loaded_options = None
|
|
68
|
+
_globals['_USERSERVICE'].methods_by_name['DeleteUser']._serialized_options = b'\202\265\030\000\202\323\344\223\002W*2/api/v1/organizations/{organization_id}/users/{id}Z!*\037/api/v1/organizations/-/users/-'
|
|
69
|
+
_globals['_USER']._serialized_start=244
|
|
70
|
+
_globals['_USER']._serialized_end=712
|
|
71
|
+
_globals['_USER_METADATAENTRY']._serialized_start=637
|
|
72
|
+
_globals['_USER_METADATAENTRY']._serialized_end=696
|
|
73
|
+
_globals['_CREATEUSERREQUEST']._serialized_start=714
|
|
74
|
+
_globals['_CREATEUSERREQUEST']._serialized_end=827
|
|
75
|
+
_globals['_CREATEUSERRESPONSE']._serialized_start=829
|
|
76
|
+
_globals['_CREATEUSERRESPONSE']._serialized_end=894
|
|
77
|
+
_globals['_UPDATEUSER']._serialized_start=897
|
|
78
|
+
_globals['_UPDATEUSER']._serialized_end=1214
|
|
79
|
+
_globals['_UPDATEUSER_METADATAENTRY']._serialized_start=637
|
|
80
|
+
_globals['_UPDATEUSER_METADATAENTRY']._serialized_end=696
|
|
81
|
+
_globals['_UPDATEUSERREQUEST']._serialized_start=1217
|
|
82
|
+
_globals['_UPDATEUSERREQUEST']._serialized_end=1414
|
|
83
|
+
_globals['_UPDATEUSERRESPONSE']._serialized_start=1416
|
|
84
|
+
_globals['_UPDATEUSERRESPONSE']._serialized_end=1481
|
|
85
|
+
_globals['_GETUSERREQUEST']._serialized_start=1484
|
|
86
|
+
_globals['_GETUSERREQUEST']._serialized_end=1619
|
|
87
|
+
_globals['_GETUSERRESPONSE']._serialized_start=1621
|
|
88
|
+
_globals['_GETUSERRESPONSE']._serialized_end=1683
|
|
89
|
+
_globals['_LISTUSERREQUEST']._serialized_start=1685
|
|
90
|
+
_globals['_LISTUSERREQUEST']._serialized_end=1803
|
|
91
|
+
_globals['_LISTUSERRESPONSE']._serialized_start=1806
|
|
92
|
+
_globals['_LISTUSERRESPONSE']._serialized_end=1940
|
|
93
|
+
_globals['_DELETEUSERREQUEST']._serialized_start=1943
|
|
94
|
+
_globals['_DELETEUSERREQUEST']._serialized_end=2081
|
|
95
|
+
_globals['_USERSERVICE']._serialized_start=2084
|
|
96
|
+
_globals['_USERSERVICE']._serialized_end=3070
|
|
97
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from google.api import annotations_pb2 as _annotations_pb2
|
|
3
|
+
from google.protobuf import empty_pb2 as _empty_pb2
|
|
4
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
5
|
+
from scalekit.v1.commons import commons_pb2 as _commons_pb2
|
|
6
|
+
from scalekit.v1.options import options_pb2 as _options_pb2
|
|
7
|
+
from google.protobuf.internal import containers as _containers
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import message as _message
|
|
10
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
11
|
+
|
|
12
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
13
|
+
|
|
14
|
+
class User(_message.Message):
|
|
15
|
+
__slots__ = ("id", "create_time", "update_time", "first_name", "last_name", "email", "external_id", "metadata")
|
|
16
|
+
class MetadataEntry(_message.Message):
|
|
17
|
+
__slots__ = ("key", "value")
|
|
18
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
key: str
|
|
21
|
+
value: str
|
|
22
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
23
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
24
|
+
CREATE_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
+
UPDATE_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
FIRST_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
LAST_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
EXTERNAL_ID_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
id: str
|
|
32
|
+
create_time: _timestamp_pb2.Timestamp
|
|
33
|
+
update_time: _timestamp_pb2.Timestamp
|
|
34
|
+
first_name: str
|
|
35
|
+
last_name: str
|
|
36
|
+
email: str
|
|
37
|
+
external_id: str
|
|
38
|
+
metadata: _containers.ScalarMap[str, str]
|
|
39
|
+
def __init__(self, id: _Optional[str] = ..., create_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., update_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., first_name: _Optional[str] = ..., last_name: _Optional[str] = ..., email: _Optional[str] = ..., external_id: _Optional[str] = ..., metadata: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
|
40
|
+
|
|
41
|
+
class CreateUserRequest(_message.Message):
|
|
42
|
+
__slots__ = ("organization_id", "user")
|
|
43
|
+
ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
organization_id: str
|
|
46
|
+
user: User
|
|
47
|
+
def __init__(self, organization_id: _Optional[str] = ..., user: _Optional[_Union[User, _Mapping]] = ...) -> None: ...
|
|
48
|
+
|
|
49
|
+
class CreateUserResponse(_message.Message):
|
|
50
|
+
__slots__ = ("user",)
|
|
51
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
user: User
|
|
53
|
+
def __init__(self, user: _Optional[_Union[User, _Mapping]] = ...) -> None: ...
|
|
54
|
+
|
|
55
|
+
class UpdateUser(_message.Message):
|
|
56
|
+
__slots__ = ("first_name", "last_name", "external_id", "metadata")
|
|
57
|
+
class MetadataEntry(_message.Message):
|
|
58
|
+
__slots__ = ("key", "value")
|
|
59
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
key: str
|
|
62
|
+
value: str
|
|
63
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
|
64
|
+
FIRST_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
LAST_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
EXTERNAL_ID_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
first_name: str
|
|
69
|
+
last_name: str
|
|
70
|
+
external_id: str
|
|
71
|
+
metadata: _containers.ScalarMap[str, str]
|
|
72
|
+
def __init__(self, first_name: _Optional[str] = ..., last_name: _Optional[str] = ..., external_id: _Optional[str] = ..., metadata: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
|
73
|
+
|
|
74
|
+
class UpdateUserRequest(_message.Message):
|
|
75
|
+
__slots__ = ("organization_id", "id", "external_id", "user")
|
|
76
|
+
ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
EXTERNAL_ID_FIELD_NUMBER: _ClassVar[int]
|
|
79
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
organization_id: str
|
|
81
|
+
id: str
|
|
82
|
+
external_id: str
|
|
83
|
+
user: UpdateUser
|
|
84
|
+
def __init__(self, organization_id: _Optional[str] = ..., id: _Optional[str] = ..., external_id: _Optional[str] = ..., user: _Optional[_Union[UpdateUser, _Mapping]] = ...) -> None: ...
|
|
85
|
+
|
|
86
|
+
class UpdateUserResponse(_message.Message):
|
|
87
|
+
__slots__ = ("user",)
|
|
88
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
user: User
|
|
90
|
+
def __init__(self, user: _Optional[_Union[User, _Mapping]] = ...) -> None: ...
|
|
91
|
+
|
|
92
|
+
class GetUserRequest(_message.Message):
|
|
93
|
+
__slots__ = ("organization_id", "id", "external_id")
|
|
94
|
+
ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
96
|
+
EXTERNAL_ID_FIELD_NUMBER: _ClassVar[int]
|
|
97
|
+
organization_id: str
|
|
98
|
+
id: str
|
|
99
|
+
external_id: str
|
|
100
|
+
def __init__(self, organization_id: _Optional[str] = ..., id: _Optional[str] = ..., external_id: _Optional[str] = ...) -> None: ...
|
|
101
|
+
|
|
102
|
+
class GetUserResponse(_message.Message):
|
|
103
|
+
__slots__ = ("user",)
|
|
104
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
user: User
|
|
106
|
+
def __init__(self, user: _Optional[_Union[User, _Mapping]] = ...) -> None: ...
|
|
107
|
+
|
|
108
|
+
class ListUserRequest(_message.Message):
|
|
109
|
+
__slots__ = ("organization_id", "page_size", "page_token")
|
|
110
|
+
ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
PAGE_SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
+
organization_id: str
|
|
114
|
+
page_size: int
|
|
115
|
+
page_token: str
|
|
116
|
+
def __init__(self, organization_id: _Optional[str] = ..., page_size: _Optional[int] = ..., page_token: _Optional[str] = ...) -> None: ...
|
|
117
|
+
|
|
118
|
+
class ListUserResponse(_message.Message):
|
|
119
|
+
__slots__ = ("next_page_token", "total_size", "user")
|
|
120
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: _ClassVar[int]
|
|
121
|
+
TOTAL_SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
122
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
123
|
+
next_page_token: str
|
|
124
|
+
total_size: int
|
|
125
|
+
user: _containers.RepeatedCompositeFieldContainer[User]
|
|
126
|
+
def __init__(self, next_page_token: _Optional[str] = ..., total_size: _Optional[int] = ..., user: _Optional[_Iterable[_Union[User, _Mapping]]] = ...) -> None: ...
|
|
127
|
+
|
|
128
|
+
class DeleteUserRequest(_message.Message):
|
|
129
|
+
__slots__ = ("organization_id", "id", "external_id")
|
|
130
|
+
ORGANIZATION_ID_FIELD_NUMBER: _ClassVar[int]
|
|
131
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
132
|
+
EXTERNAL_ID_FIELD_NUMBER: _ClassVar[int]
|
|
133
|
+
organization_id: str
|
|
134
|
+
id: str
|
|
135
|
+
external_id: str
|
|
136
|
+
def __init__(self, organization_id: _Optional[str] = ..., id: _Optional[str] = ..., external_id: _Optional[str] = ...) -> None: ...
|