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,463 @@
|
|
|
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.environments import environments_pb2 as scalekit_dot_v1_dot_environments_dot_environments__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class EnvironmentServiceStub(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.CreateEnvironment = channel.unary_unary(
|
|
19
|
+
'/scalekit.v1.environments.EnvironmentService/CreateEnvironment',
|
|
20
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateEnvironmentRequest.SerializeToString,
|
|
21
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateEnvironmentResponse.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.UpdateEnvironment = channel.unary_unary(
|
|
24
|
+
'/scalekit.v1.environments.EnvironmentService/UpdateEnvironment',
|
|
25
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentRequest.SerializeToString,
|
|
26
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentResponse.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.UpdateEnvironmentDomain = channel.unary_unary(
|
|
29
|
+
'/scalekit.v1.environments.EnvironmentService/UpdateEnvironmentDomain',
|
|
30
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentDomainRequest.SerializeToString,
|
|
31
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentResponse.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.GetEnvironment = channel.unary_unary(
|
|
34
|
+
'/scalekit.v1.environments.EnvironmentService/GetEnvironment',
|
|
35
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentRequest.SerializeToString,
|
|
36
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.ListEnvironment = channel.unary_unary(
|
|
39
|
+
'/scalekit.v1.environments.EnvironmentService/ListEnvironment',
|
|
40
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.ListEnvironmentsRequest.SerializeToString,
|
|
41
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.ListEnvironmentsResponse.FromString,
|
|
42
|
+
)
|
|
43
|
+
self.DeleteEnvironment = channel.unary_unary(
|
|
44
|
+
'/scalekit.v1.environments.EnvironmentService/DeleteEnvironment',
|
|
45
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.DeleteEnvironmentRequest.SerializeToString,
|
|
46
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
47
|
+
)
|
|
48
|
+
self.GetRequiredDNSRecords = channel.unary_unary(
|
|
49
|
+
'/scalekit.v1.environments.EnvironmentService/GetRequiredDNSRecords',
|
|
50
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetDNSRecordsRequest.SerializeToString,
|
|
51
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetDNSRecordsResponse.FromString,
|
|
52
|
+
)
|
|
53
|
+
self.VerifyDNSRecords = channel.unary_unary(
|
|
54
|
+
'/scalekit.v1.environments.EnvironmentService/VerifyDNSRecords',
|
|
55
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetDNSRecordsRequest.SerializeToString,
|
|
56
|
+
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
57
|
+
)
|
|
58
|
+
self.CreateCustomDomain = channel.unary_unary(
|
|
59
|
+
'/scalekit.v1.environments.EnvironmentService/CreateCustomDomain',
|
|
60
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateCustomDomainRequest.SerializeToString,
|
|
61
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateCustomDomainResponse.FromString,
|
|
62
|
+
)
|
|
63
|
+
self.CheckCustomDomainStatus = channel.unary_unary(
|
|
64
|
+
'/scalekit.v1.environments.EnvironmentService/CheckCustomDomainStatus',
|
|
65
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentRequest.SerializeToString,
|
|
66
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentResponse.FromString,
|
|
67
|
+
)
|
|
68
|
+
self.UpdatePortalCustomization = channel.unary_unary(
|
|
69
|
+
'/scalekit.v1.environments.EnvironmentService/UpdatePortalCustomization',
|
|
70
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdatePortalCustomizationRequest.SerializeToString,
|
|
71
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdatePortalCustomizationResponse.FromString,
|
|
72
|
+
)
|
|
73
|
+
self.GetPortalCustomization = channel.unary_unary(
|
|
74
|
+
'/scalekit.v1.environments.EnvironmentService/GetPortalCustomization',
|
|
75
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetPortalCustomizationRequest.SerializeToString,
|
|
76
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetPortalCustomizationResponse.FromString,
|
|
77
|
+
)
|
|
78
|
+
self.CreateAssetUploadURL = channel.unary_unary(
|
|
79
|
+
'/scalekit.v1.environments.EnvironmentService/CreateAssetUploadURL',
|
|
80
|
+
request_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateAssetUploadUrlRequest.SerializeToString,
|
|
81
|
+
response_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateAssetUploadUrlResponse.FromString,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
class EnvironmentServiceServicer(object):
|
|
86
|
+
"""Missing associated documentation comment in .proto file."""
|
|
87
|
+
|
|
88
|
+
def CreateEnvironment(self, request, context):
|
|
89
|
+
"""Missing associated documentation comment in .proto file."""
|
|
90
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
91
|
+
context.set_details('Method not implemented!')
|
|
92
|
+
raise NotImplementedError('Method not implemented!')
|
|
93
|
+
|
|
94
|
+
def UpdateEnvironment(self, request, context):
|
|
95
|
+
"""Missing associated documentation comment in .proto file."""
|
|
96
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
97
|
+
context.set_details('Method not implemented!')
|
|
98
|
+
raise NotImplementedError('Method not implemented!')
|
|
99
|
+
|
|
100
|
+
def UpdateEnvironmentDomain(self, request, context):
|
|
101
|
+
"""Missing associated documentation comment in .proto file."""
|
|
102
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
103
|
+
context.set_details('Method not implemented!')
|
|
104
|
+
raise NotImplementedError('Method not implemented!')
|
|
105
|
+
|
|
106
|
+
def GetEnvironment(self, request, context):
|
|
107
|
+
"""Missing associated documentation comment in .proto file."""
|
|
108
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
109
|
+
context.set_details('Method not implemented!')
|
|
110
|
+
raise NotImplementedError('Method not implemented!')
|
|
111
|
+
|
|
112
|
+
def ListEnvironment(self, request, context):
|
|
113
|
+
"""Missing associated documentation comment in .proto file."""
|
|
114
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
115
|
+
context.set_details('Method not implemented!')
|
|
116
|
+
raise NotImplementedError('Method not implemented!')
|
|
117
|
+
|
|
118
|
+
def DeleteEnvironment(self, request, context):
|
|
119
|
+
"""Missing associated documentation comment in .proto file."""
|
|
120
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
121
|
+
context.set_details('Method not implemented!')
|
|
122
|
+
raise NotImplementedError('Method not implemented!')
|
|
123
|
+
|
|
124
|
+
def GetRequiredDNSRecords(self, request, context):
|
|
125
|
+
"""Missing associated documentation comment in .proto file."""
|
|
126
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
127
|
+
context.set_details('Method not implemented!')
|
|
128
|
+
raise NotImplementedError('Method not implemented!')
|
|
129
|
+
|
|
130
|
+
def VerifyDNSRecords(self, request, context):
|
|
131
|
+
"""Missing associated documentation comment in .proto file."""
|
|
132
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
133
|
+
context.set_details('Method not implemented!')
|
|
134
|
+
raise NotImplementedError('Method not implemented!')
|
|
135
|
+
|
|
136
|
+
def CreateCustomDomain(self, request, context):
|
|
137
|
+
"""Missing associated documentation comment in .proto file."""
|
|
138
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
139
|
+
context.set_details('Method not implemented!')
|
|
140
|
+
raise NotImplementedError('Method not implemented!')
|
|
141
|
+
|
|
142
|
+
def CheckCustomDomainStatus(self, request, context):
|
|
143
|
+
"""Missing associated documentation comment in .proto file."""
|
|
144
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
145
|
+
context.set_details('Method not implemented!')
|
|
146
|
+
raise NotImplementedError('Method not implemented!')
|
|
147
|
+
|
|
148
|
+
def UpdatePortalCustomization(self, request, context):
|
|
149
|
+
"""Missing associated documentation comment in .proto file."""
|
|
150
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
151
|
+
context.set_details('Method not implemented!')
|
|
152
|
+
raise NotImplementedError('Method not implemented!')
|
|
153
|
+
|
|
154
|
+
def GetPortalCustomization(self, request, context):
|
|
155
|
+
"""Missing associated documentation comment in .proto file."""
|
|
156
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
157
|
+
context.set_details('Method not implemented!')
|
|
158
|
+
raise NotImplementedError('Method not implemented!')
|
|
159
|
+
|
|
160
|
+
def CreateAssetUploadURL(self, request, context):
|
|
161
|
+
"""Missing associated documentation comment in .proto file."""
|
|
162
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
163
|
+
context.set_details('Method not implemented!')
|
|
164
|
+
raise NotImplementedError('Method not implemented!')
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def add_EnvironmentServiceServicer_to_server(servicer, server):
|
|
168
|
+
rpc_method_handlers = {
|
|
169
|
+
'CreateEnvironment': grpc.unary_unary_rpc_method_handler(
|
|
170
|
+
servicer.CreateEnvironment,
|
|
171
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateEnvironmentRequest.FromString,
|
|
172
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateEnvironmentResponse.SerializeToString,
|
|
173
|
+
),
|
|
174
|
+
'UpdateEnvironment': grpc.unary_unary_rpc_method_handler(
|
|
175
|
+
servicer.UpdateEnvironment,
|
|
176
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentRequest.FromString,
|
|
177
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentResponse.SerializeToString,
|
|
178
|
+
),
|
|
179
|
+
'UpdateEnvironmentDomain': grpc.unary_unary_rpc_method_handler(
|
|
180
|
+
servicer.UpdateEnvironmentDomain,
|
|
181
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentDomainRequest.FromString,
|
|
182
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentResponse.SerializeToString,
|
|
183
|
+
),
|
|
184
|
+
'GetEnvironment': grpc.unary_unary_rpc_method_handler(
|
|
185
|
+
servicer.GetEnvironment,
|
|
186
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentRequest.FromString,
|
|
187
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentResponse.SerializeToString,
|
|
188
|
+
),
|
|
189
|
+
'ListEnvironment': grpc.unary_unary_rpc_method_handler(
|
|
190
|
+
servicer.ListEnvironment,
|
|
191
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.ListEnvironmentsRequest.FromString,
|
|
192
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.ListEnvironmentsResponse.SerializeToString,
|
|
193
|
+
),
|
|
194
|
+
'DeleteEnvironment': grpc.unary_unary_rpc_method_handler(
|
|
195
|
+
servicer.DeleteEnvironment,
|
|
196
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.DeleteEnvironmentRequest.FromString,
|
|
197
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
198
|
+
),
|
|
199
|
+
'GetRequiredDNSRecords': grpc.unary_unary_rpc_method_handler(
|
|
200
|
+
servicer.GetRequiredDNSRecords,
|
|
201
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetDNSRecordsRequest.FromString,
|
|
202
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetDNSRecordsResponse.SerializeToString,
|
|
203
|
+
),
|
|
204
|
+
'VerifyDNSRecords': grpc.unary_unary_rpc_method_handler(
|
|
205
|
+
servicer.VerifyDNSRecords,
|
|
206
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetDNSRecordsRequest.FromString,
|
|
207
|
+
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
|
208
|
+
),
|
|
209
|
+
'CreateCustomDomain': grpc.unary_unary_rpc_method_handler(
|
|
210
|
+
servicer.CreateCustomDomain,
|
|
211
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateCustomDomainRequest.FromString,
|
|
212
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateCustomDomainResponse.SerializeToString,
|
|
213
|
+
),
|
|
214
|
+
'CheckCustomDomainStatus': grpc.unary_unary_rpc_method_handler(
|
|
215
|
+
servicer.CheckCustomDomainStatus,
|
|
216
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentRequest.FromString,
|
|
217
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentResponse.SerializeToString,
|
|
218
|
+
),
|
|
219
|
+
'UpdatePortalCustomization': grpc.unary_unary_rpc_method_handler(
|
|
220
|
+
servicer.UpdatePortalCustomization,
|
|
221
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdatePortalCustomizationRequest.FromString,
|
|
222
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdatePortalCustomizationResponse.SerializeToString,
|
|
223
|
+
),
|
|
224
|
+
'GetPortalCustomization': grpc.unary_unary_rpc_method_handler(
|
|
225
|
+
servicer.GetPortalCustomization,
|
|
226
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetPortalCustomizationRequest.FromString,
|
|
227
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.GetPortalCustomizationResponse.SerializeToString,
|
|
228
|
+
),
|
|
229
|
+
'CreateAssetUploadURL': grpc.unary_unary_rpc_method_handler(
|
|
230
|
+
servicer.CreateAssetUploadURL,
|
|
231
|
+
request_deserializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateAssetUploadUrlRequest.FromString,
|
|
232
|
+
response_serializer=scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateAssetUploadUrlResponse.SerializeToString,
|
|
233
|
+
),
|
|
234
|
+
}
|
|
235
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
236
|
+
'scalekit.v1.environments.EnvironmentService', rpc_method_handlers)
|
|
237
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
# This class is part of an EXPERIMENTAL API.
|
|
241
|
+
class EnvironmentService(object):
|
|
242
|
+
"""Missing associated documentation comment in .proto file."""
|
|
243
|
+
|
|
244
|
+
@staticmethod
|
|
245
|
+
def CreateEnvironment(request,
|
|
246
|
+
target,
|
|
247
|
+
options=(),
|
|
248
|
+
channel_credentials=None,
|
|
249
|
+
call_credentials=None,
|
|
250
|
+
insecure=False,
|
|
251
|
+
compression=None,
|
|
252
|
+
wait_for_ready=None,
|
|
253
|
+
timeout=None,
|
|
254
|
+
metadata=None):
|
|
255
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/CreateEnvironment',
|
|
256
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateEnvironmentRequest.SerializeToString,
|
|
257
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateEnvironmentResponse.FromString,
|
|
258
|
+
options, channel_credentials,
|
|
259
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
260
|
+
|
|
261
|
+
@staticmethod
|
|
262
|
+
def UpdateEnvironment(request,
|
|
263
|
+
target,
|
|
264
|
+
options=(),
|
|
265
|
+
channel_credentials=None,
|
|
266
|
+
call_credentials=None,
|
|
267
|
+
insecure=False,
|
|
268
|
+
compression=None,
|
|
269
|
+
wait_for_ready=None,
|
|
270
|
+
timeout=None,
|
|
271
|
+
metadata=None):
|
|
272
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/UpdateEnvironment',
|
|
273
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentRequest.SerializeToString,
|
|
274
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentResponse.FromString,
|
|
275
|
+
options, channel_credentials,
|
|
276
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
277
|
+
|
|
278
|
+
@staticmethod
|
|
279
|
+
def UpdateEnvironmentDomain(request,
|
|
280
|
+
target,
|
|
281
|
+
options=(),
|
|
282
|
+
channel_credentials=None,
|
|
283
|
+
call_credentials=None,
|
|
284
|
+
insecure=False,
|
|
285
|
+
compression=None,
|
|
286
|
+
wait_for_ready=None,
|
|
287
|
+
timeout=None,
|
|
288
|
+
metadata=None):
|
|
289
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/UpdateEnvironmentDomain',
|
|
290
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentDomainRequest.SerializeToString,
|
|
291
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdateEnvironmentResponse.FromString,
|
|
292
|
+
options, channel_credentials,
|
|
293
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
294
|
+
|
|
295
|
+
@staticmethod
|
|
296
|
+
def GetEnvironment(request,
|
|
297
|
+
target,
|
|
298
|
+
options=(),
|
|
299
|
+
channel_credentials=None,
|
|
300
|
+
call_credentials=None,
|
|
301
|
+
insecure=False,
|
|
302
|
+
compression=None,
|
|
303
|
+
wait_for_ready=None,
|
|
304
|
+
timeout=None,
|
|
305
|
+
metadata=None):
|
|
306
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/GetEnvironment',
|
|
307
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentRequest.SerializeToString,
|
|
308
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentResponse.FromString,
|
|
309
|
+
options, channel_credentials,
|
|
310
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
311
|
+
|
|
312
|
+
@staticmethod
|
|
313
|
+
def ListEnvironment(request,
|
|
314
|
+
target,
|
|
315
|
+
options=(),
|
|
316
|
+
channel_credentials=None,
|
|
317
|
+
call_credentials=None,
|
|
318
|
+
insecure=False,
|
|
319
|
+
compression=None,
|
|
320
|
+
wait_for_ready=None,
|
|
321
|
+
timeout=None,
|
|
322
|
+
metadata=None):
|
|
323
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/ListEnvironment',
|
|
324
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.ListEnvironmentsRequest.SerializeToString,
|
|
325
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.ListEnvironmentsResponse.FromString,
|
|
326
|
+
options, channel_credentials,
|
|
327
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
328
|
+
|
|
329
|
+
@staticmethod
|
|
330
|
+
def DeleteEnvironment(request,
|
|
331
|
+
target,
|
|
332
|
+
options=(),
|
|
333
|
+
channel_credentials=None,
|
|
334
|
+
call_credentials=None,
|
|
335
|
+
insecure=False,
|
|
336
|
+
compression=None,
|
|
337
|
+
wait_for_ready=None,
|
|
338
|
+
timeout=None,
|
|
339
|
+
metadata=None):
|
|
340
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/DeleteEnvironment',
|
|
341
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.DeleteEnvironmentRequest.SerializeToString,
|
|
342
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
343
|
+
options, channel_credentials,
|
|
344
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
345
|
+
|
|
346
|
+
@staticmethod
|
|
347
|
+
def GetRequiredDNSRecords(request,
|
|
348
|
+
target,
|
|
349
|
+
options=(),
|
|
350
|
+
channel_credentials=None,
|
|
351
|
+
call_credentials=None,
|
|
352
|
+
insecure=False,
|
|
353
|
+
compression=None,
|
|
354
|
+
wait_for_ready=None,
|
|
355
|
+
timeout=None,
|
|
356
|
+
metadata=None):
|
|
357
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/GetRequiredDNSRecords',
|
|
358
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.GetDNSRecordsRequest.SerializeToString,
|
|
359
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.GetDNSRecordsResponse.FromString,
|
|
360
|
+
options, channel_credentials,
|
|
361
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
362
|
+
|
|
363
|
+
@staticmethod
|
|
364
|
+
def VerifyDNSRecords(request,
|
|
365
|
+
target,
|
|
366
|
+
options=(),
|
|
367
|
+
channel_credentials=None,
|
|
368
|
+
call_credentials=None,
|
|
369
|
+
insecure=False,
|
|
370
|
+
compression=None,
|
|
371
|
+
wait_for_ready=None,
|
|
372
|
+
timeout=None,
|
|
373
|
+
metadata=None):
|
|
374
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/VerifyDNSRecords',
|
|
375
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.GetDNSRecordsRequest.SerializeToString,
|
|
376
|
+
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
|
377
|
+
options, channel_credentials,
|
|
378
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
379
|
+
|
|
380
|
+
@staticmethod
|
|
381
|
+
def CreateCustomDomain(request,
|
|
382
|
+
target,
|
|
383
|
+
options=(),
|
|
384
|
+
channel_credentials=None,
|
|
385
|
+
call_credentials=None,
|
|
386
|
+
insecure=False,
|
|
387
|
+
compression=None,
|
|
388
|
+
wait_for_ready=None,
|
|
389
|
+
timeout=None,
|
|
390
|
+
metadata=None):
|
|
391
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/CreateCustomDomain',
|
|
392
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateCustomDomainRequest.SerializeToString,
|
|
393
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateCustomDomainResponse.FromString,
|
|
394
|
+
options, channel_credentials,
|
|
395
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
396
|
+
|
|
397
|
+
@staticmethod
|
|
398
|
+
def CheckCustomDomainStatus(request,
|
|
399
|
+
target,
|
|
400
|
+
options=(),
|
|
401
|
+
channel_credentials=None,
|
|
402
|
+
call_credentials=None,
|
|
403
|
+
insecure=False,
|
|
404
|
+
compression=None,
|
|
405
|
+
wait_for_ready=None,
|
|
406
|
+
timeout=None,
|
|
407
|
+
metadata=None):
|
|
408
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/CheckCustomDomainStatus',
|
|
409
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentRequest.SerializeToString,
|
|
410
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.GetEnvironmentResponse.FromString,
|
|
411
|
+
options, channel_credentials,
|
|
412
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
413
|
+
|
|
414
|
+
@staticmethod
|
|
415
|
+
def UpdatePortalCustomization(request,
|
|
416
|
+
target,
|
|
417
|
+
options=(),
|
|
418
|
+
channel_credentials=None,
|
|
419
|
+
call_credentials=None,
|
|
420
|
+
insecure=False,
|
|
421
|
+
compression=None,
|
|
422
|
+
wait_for_ready=None,
|
|
423
|
+
timeout=None,
|
|
424
|
+
metadata=None):
|
|
425
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/UpdatePortalCustomization',
|
|
426
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdatePortalCustomizationRequest.SerializeToString,
|
|
427
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.UpdatePortalCustomizationResponse.FromString,
|
|
428
|
+
options, channel_credentials,
|
|
429
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
430
|
+
|
|
431
|
+
@staticmethod
|
|
432
|
+
def GetPortalCustomization(request,
|
|
433
|
+
target,
|
|
434
|
+
options=(),
|
|
435
|
+
channel_credentials=None,
|
|
436
|
+
call_credentials=None,
|
|
437
|
+
insecure=False,
|
|
438
|
+
compression=None,
|
|
439
|
+
wait_for_ready=None,
|
|
440
|
+
timeout=None,
|
|
441
|
+
metadata=None):
|
|
442
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/GetPortalCustomization',
|
|
443
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.GetPortalCustomizationRequest.SerializeToString,
|
|
444
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.GetPortalCustomizationResponse.FromString,
|
|
445
|
+
options, channel_credentials,
|
|
446
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
447
|
+
|
|
448
|
+
@staticmethod
|
|
449
|
+
def CreateAssetUploadURL(request,
|
|
450
|
+
target,
|
|
451
|
+
options=(),
|
|
452
|
+
channel_credentials=None,
|
|
453
|
+
call_credentials=None,
|
|
454
|
+
insecure=False,
|
|
455
|
+
compression=None,
|
|
456
|
+
wait_for_ready=None,
|
|
457
|
+
timeout=None,
|
|
458
|
+
metadata=None):
|
|
459
|
+
return grpc.experimental.unary_unary(request, target, '/scalekit.v1.environments.EnvironmentService/CreateAssetUploadURL',
|
|
460
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateAssetUploadUrlRequest.SerializeToString,
|
|
461
|
+
scalekit_dot_v1_dot_environments_dot_environments__pb2.CreateAssetUploadUrlResponse.FromString,
|
|
462
|
+
options, channel_credentials,
|
|
463
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: scalekit/v1/errdetails/errdetails.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 google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'scalekit/v1/errdetails/errdetails.proto\x12\x16scalekit.v1.errdetails\x1a\x1egoogle/protobuf/duration.proto\"\x96\x05\n\tErrorInfo\x12\x1d\n\nerror_code\x18\x01 \x01(\tR\terrorCode\x12\x45\n\ndebug_info\x18\x02 \x01(\x0b\x32!.scalekit.v1.errdetails.DebugInfoH\x00R\tdebugInfo\x88\x01\x01\x12\x42\n\thelp_info\x18\x03 \x01(\x0b\x32 .scalekit.v1.errdetails.HelpInfoH\x01R\x08helpInfo\x88\x01\x01\x12g\n\x16localized_message_info\x18\x04 \x01(\x0b\x32,.scalekit.v1.errdetails.LocalizedMessageInfoH\x02R\x14localizedMessageInfo\x88\x01\x01\x12N\n\rresource_info\x18\x05 \x01(\x0b\x32$.scalekit.v1.errdetails.ResourceInfoH\x03R\x0cresourceInfo\x88\x01\x01\x12K\n\x0crequest_info\x18\x06 \x01(\x0b\x32#.scalekit.v1.errdetails.RequestInfoH\x04R\x0brequestInfo\x88\x01\x01\x12\x64\n\x15validation_error_info\x18\x08 \x01(\x0b\x32+.scalekit.v1.errdetails.ValidationErrorInfoH\x05R\x13validationErrorInfo\x88\x01\x01\x42\r\n\x0b_debug_infoB\x0c\n\n_help_infoB\x19\n\x17_localized_message_infoB\x10\n\x0e_resource_infoB\x0f\n\r_request_infoB\x18\n\x16_validation_error_info\"H\n\tDebugInfo\x12#\n\rstack_entries\x18\x01 \x03(\tR\x0cstackEntries\x12\x16\n\x06\x64\x65tail\x18\x02 \x01(\tR\x06\x64\x65tail\"\xe6\x01\n\x13ValidationErrorInfo\x12\x65\n\x10\x66ield_violations\x18\x01 \x03(\x0b\x32:.scalekit.v1.errdetails.ValidationErrorInfo.FieldViolationR\x0f\x66ieldViolations\x1ah\n\x0e\x46ieldViolation\x12\x14\n\x05\x66ield\x18\x01 \x01(\tR\x05\x66ield\x12 \n\x0b\x64\x65scription\x18\x02 \x01(\tR\x0b\x64\x65scription\x12\x1e\n\nconstraint\x18\x03 \x01(\tR\nconstraint\"O\n\x0bRequestInfo\x12\x1d\n\nrequest_id\x18\x01 \x01(\tR\trequestId\x12!\n\x0cserving_data\x18\x02 \x01(\tR\x0bservingData\"\x90\x01\n\x0cResourceInfo\x12#\n\rresource_type\x18\x01 \x01(\tR\x0cresourceType\x12#\n\rresource_name\x18\x02 \x01(\tR\x0cresourceName\x12\x14\n\x05owner\x18\x03 \x01(\tR\x05owner\x12 \n\x0b\x64\x65scription\x18\x04 \x01(\tR\x0b\x64\x65scription\"\x83\x01\n\x08HelpInfo\x12;\n\x05links\x18\x01 \x03(\x0b\x32%.scalekit.v1.errdetails.HelpInfo.LinkR\x05links\x1a:\n\x04Link\x12 \n\x0b\x64\x65scription\x18\x01 \x01(\tR\x0b\x64\x65scription\x12\x10\n\x03url\x18\x02 \x01(\tR\x03url\"H\n\x14LocalizedMessageInfo\x12\x16\n\x06locale\x18\x01 \x01(\tR\x06locale\x12\x18\n\x07message\x18\x02 \x01(\tR\x07messageB6Z4github.com/scalekit-inc/scalekit/pkg/grpc/errdetailsb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scalekit.v1.errdetails.errdetails_pb2', _globals)
|
|
23
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
24
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
25
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z4github.com/scalekit-inc/scalekit/pkg/grpc/errdetails'
|
|
26
|
+
_globals['_ERRORINFO']._serialized_start=100
|
|
27
|
+
_globals['_ERRORINFO']._serialized_end=762
|
|
28
|
+
_globals['_DEBUGINFO']._serialized_start=764
|
|
29
|
+
_globals['_DEBUGINFO']._serialized_end=836
|
|
30
|
+
_globals['_VALIDATIONERRORINFO']._serialized_start=839
|
|
31
|
+
_globals['_VALIDATIONERRORINFO']._serialized_end=1069
|
|
32
|
+
_globals['_VALIDATIONERRORINFO_FIELDVIOLATION']._serialized_start=965
|
|
33
|
+
_globals['_VALIDATIONERRORINFO_FIELDVIOLATION']._serialized_end=1069
|
|
34
|
+
_globals['_REQUESTINFO']._serialized_start=1071
|
|
35
|
+
_globals['_REQUESTINFO']._serialized_end=1150
|
|
36
|
+
_globals['_RESOURCEINFO']._serialized_start=1153
|
|
37
|
+
_globals['_RESOURCEINFO']._serialized_end=1297
|
|
38
|
+
_globals['_HELPINFO']._serialized_start=1300
|
|
39
|
+
_globals['_HELPINFO']._serialized_end=1431
|
|
40
|
+
_globals['_HELPINFO_LINK']._serialized_start=1373
|
|
41
|
+
_globals['_HELPINFO_LINK']._serialized_end=1431
|
|
42
|
+
_globals['_LOCALIZEDMESSAGEINFO']._serialized_start=1433
|
|
43
|
+
_globals['_LOCALIZEDMESSAGEINFO']._serialized_end=1505
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
from google.protobuf import duration_pb2 as _duration_pb2
|
|
2
|
+
from google.protobuf.internal import containers as _containers
|
|
3
|
+
from google.protobuf import descriptor as _descriptor
|
|
4
|
+
from google.protobuf import message as _message
|
|
5
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
6
|
+
|
|
7
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
8
|
+
|
|
9
|
+
class ErrorInfo(_message.Message):
|
|
10
|
+
__slots__ = ("error_code", "debug_info", "help_info", "localized_message_info", "resource_info", "request_info", "validation_error_info")
|
|
11
|
+
ERROR_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
12
|
+
DEBUG_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
HELP_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
LOCALIZED_MESSAGE_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
RESOURCE_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
REQUEST_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
VALIDATION_ERROR_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
error_code: str
|
|
19
|
+
debug_info: DebugInfo
|
|
20
|
+
help_info: HelpInfo
|
|
21
|
+
localized_message_info: LocalizedMessageInfo
|
|
22
|
+
resource_info: ResourceInfo
|
|
23
|
+
request_info: RequestInfo
|
|
24
|
+
validation_error_info: ValidationErrorInfo
|
|
25
|
+
def __init__(self, error_code: _Optional[str] = ..., debug_info: _Optional[_Union[DebugInfo, _Mapping]] = ..., help_info: _Optional[_Union[HelpInfo, _Mapping]] = ..., localized_message_info: _Optional[_Union[LocalizedMessageInfo, _Mapping]] = ..., resource_info: _Optional[_Union[ResourceInfo, _Mapping]] = ..., request_info: _Optional[_Union[RequestInfo, _Mapping]] = ..., validation_error_info: _Optional[_Union[ValidationErrorInfo, _Mapping]] = ...) -> None: ...
|
|
26
|
+
|
|
27
|
+
class DebugInfo(_message.Message):
|
|
28
|
+
__slots__ = ("stack_entries", "detail")
|
|
29
|
+
STACK_ENTRIES_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
DETAIL_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
stack_entries: _containers.RepeatedScalarFieldContainer[str]
|
|
32
|
+
detail: str
|
|
33
|
+
def __init__(self, stack_entries: _Optional[_Iterable[str]] = ..., detail: _Optional[str] = ...) -> None: ...
|
|
34
|
+
|
|
35
|
+
class ValidationErrorInfo(_message.Message):
|
|
36
|
+
__slots__ = ("field_violations",)
|
|
37
|
+
class FieldViolation(_message.Message):
|
|
38
|
+
__slots__ = ("field", "description", "constraint")
|
|
39
|
+
FIELD_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
CONSTRAINT_FIELD_NUMBER: _ClassVar[int]
|
|
42
|
+
field: str
|
|
43
|
+
description: str
|
|
44
|
+
constraint: str
|
|
45
|
+
def __init__(self, field: _Optional[str] = ..., description: _Optional[str] = ..., constraint: _Optional[str] = ...) -> None: ...
|
|
46
|
+
FIELD_VIOLATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
field_violations: _containers.RepeatedCompositeFieldContainer[ValidationErrorInfo.FieldViolation]
|
|
48
|
+
def __init__(self, field_violations: _Optional[_Iterable[_Union[ValidationErrorInfo.FieldViolation, _Mapping]]] = ...) -> None: ...
|
|
49
|
+
|
|
50
|
+
class RequestInfo(_message.Message):
|
|
51
|
+
__slots__ = ("request_id", "serving_data")
|
|
52
|
+
REQUEST_ID_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
SERVING_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
request_id: str
|
|
55
|
+
serving_data: str
|
|
56
|
+
def __init__(self, request_id: _Optional[str] = ..., serving_data: _Optional[str] = ...) -> None: ...
|
|
57
|
+
|
|
58
|
+
class ResourceInfo(_message.Message):
|
|
59
|
+
__slots__ = ("resource_type", "resource_name", "owner", "description")
|
|
60
|
+
RESOURCE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
RESOURCE_NAME_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
OWNER_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
resource_type: str
|
|
65
|
+
resource_name: str
|
|
66
|
+
owner: str
|
|
67
|
+
description: str
|
|
68
|
+
def __init__(self, resource_type: _Optional[str] = ..., resource_name: _Optional[str] = ..., owner: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ...
|
|
69
|
+
|
|
70
|
+
class HelpInfo(_message.Message):
|
|
71
|
+
__slots__ = ("links",)
|
|
72
|
+
class Link(_message.Message):
|
|
73
|
+
__slots__ = ("description", "url")
|
|
74
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
URL_FIELD_NUMBER: _ClassVar[int]
|
|
76
|
+
description: str
|
|
77
|
+
url: str
|
|
78
|
+
def __init__(self, description: _Optional[str] = ..., url: _Optional[str] = ...) -> None: ...
|
|
79
|
+
LINKS_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
links: _containers.RepeatedCompositeFieldContainer[HelpInfo.Link]
|
|
81
|
+
def __init__(self, links: _Optional[_Iterable[_Union[HelpInfo.Link, _Mapping]]] = ...) -> None: ...
|
|
82
|
+
|
|
83
|
+
class LocalizedMessageInfo(_message.Message):
|
|
84
|
+
__slots__ = ("locale", "message")
|
|
85
|
+
LOCALE_FIELD_NUMBER: _ClassVar[int]
|
|
86
|
+
MESSAGE_FIELD_NUMBER: _ClassVar[int]
|
|
87
|
+
locale: str
|
|
88
|
+
message: str
|
|
89
|
+
def __init__(self, locale: _Optional[str] = ..., message: _Optional[str] = ...) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: scalekit/v1/events/events.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.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
|
17
|
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
18
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fscalekit/v1/events/events.proto\x12\x12scalekit.v1.events\x1a\x1b\x62uf/validate/validate.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe1\x05\n\x05\x45vent\x12\x19\n\x02id\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x01\x18 R\x02id\x12\x31\n\x04type\x18\x02 \x01(\x0e\x32\x1d.scalekit.v1.events.EventTypeR\x04type\x12;\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ncreateTime\x12\x35\n\x05\x61\x63tor\x18\x04 \x01(\x0b\x32\x1f.scalekit.v1.events.Event.ActorR\x05\x61\x63tor\x12#\n\rtrace_context\x18\x05 \x01(\tR\x0ctraceContext\x12\x16\n\x06source\x18\x06 \x01(\tR\x06source\x12\x1d\n\nrequest_id\x18\x07 \x01(\tR\trequestId\x12.\n\x07payload\x18\x0b \x01(\x0b\x32\x14.google.protobuf.AnyR\x07payload\x12?\n\x10previous_payload\x18\x0c \x01(\x0b\x32\x14.google.protobuf.AnyR\x0fpreviousPayload\x1a\xc2\x02\n\x05\x41\x63tor\x12%\n\x0e\x65nvironment_id\x18\x01 \x01(\tR\renvironmentId\x12\'\n\x0forganization_id\x18\x02 \x01(\tR\x0eorganizationId\x12\x17\n\x07user_id\x18\x03 \x01(\tR\x06userId\x12\x45\n\tuser_type\x18\x04 \x01(\x0e\x32(.scalekit.v1.events.Event.Actor.UserTypeR\x08userType\x12\x17\n\x07ip_addr\x18\x05 \x01(\tR\x06ipAddr\x12\x1d\n\nuser_agent\x18\x06 \x01(\tR\tuserAgent\"Q\n\x08UserType\x12\x19\n\x15USER_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fUSER_TYPE_HUMAN\x10\x01\x12\x15\n\x11USER_TYPE_MACHINE\x10\x02J\x04\x08\x08\x10\x0b*F\n\tEventType\x12\x1a\n\x16\x45VENT_TYPE_UNSPECIFIED\x10\x00\x12\x17\n\x13ORGANIZATION_CREATE\x10\x0b\"\x04\x08\x01\x10\nB2Z0github.com/scalekit-inc/scalekit/pkg/grpc/eventsb\x06proto3')
|
|
22
|
+
|
|
23
|
+
_globals = globals()
|
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'scalekit.v1.events.events_pb2', _globals)
|
|
26
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
27
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
28
|
+
_globals['DESCRIPTOR']._serialized_options = b'Z0github.com/scalekit-inc/scalekit/pkg/grpc/events'
|
|
29
|
+
_globals['_EVENT'].fields_by_name['id']._loaded_options = None
|
|
30
|
+
_globals['_EVENT'].fields_by_name['id']._serialized_options = b'\272H\006r\004\020\001\030 '
|
|
31
|
+
_globals['_EVENTTYPE']._serialized_start=916
|
|
32
|
+
_globals['_EVENTTYPE']._serialized_end=986
|
|
33
|
+
_globals['_EVENT']._serialized_start=177
|
|
34
|
+
_globals['_EVENT']._serialized_end=914
|
|
35
|
+
_globals['_EVENT_ACTOR']._serialized_start=586
|
|
36
|
+
_globals['_EVENT_ACTOR']._serialized_end=908
|
|
37
|
+
_globals['_EVENT_ACTOR_USERTYPE']._serialized_start=827
|
|
38
|
+
_globals['_EVENT_ACTOR_USERTYPE']._serialized_end=908
|
|
39
|
+
# @@protoc_insertion_point(module_scope)
|