metal-stack-api 0.0.3__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/validate_pb2.py +450 -0
- buf/validate/validate_pb2.pyi +631 -0
- buf/validate/validate_pb2_grpc.py +4 -0
- metal_stack_api-0.0.3.dist-info/METADATA +26 -0
- metal_stack_api-0.0.3.dist-info/RECORD +107 -0
- metal_stack_api-0.0.3.dist-info/WHEEL +5 -0
- metal_stack_api-0.0.3.dist-info/top_level.txt +2 -0
- metalstack/__init__.py +0 -0
- metalstack/admin/__init__.py +0 -0
- metalstack/admin/v2/__init__.py +0 -0
- metalstack/admin/v2/filesystem_connecpy.py +214 -0
- metalstack/admin/v2/filesystem_pb2.py +60 -0
- metalstack/admin/v2/filesystem_pb2.pyi +45 -0
- metalstack/admin/v2/filesystem_pb2_grpc.py +169 -0
- metalstack/admin/v2/image_connecpy.py +270 -0
- metalstack/admin/v2/image_pb2.py +66 -0
- metalstack/admin/v2/image_pb2.pyi +58 -0
- metalstack/admin/v2/image_pb2_grpc.py +213 -0
- metalstack/admin/v2/ip_connecpy.py +158 -0
- metalstack/admin/v2/ip_pb2.py +53 -0
- metalstack/admin/v2/ip_pb2.pyi +39 -0
- metalstack/admin/v2/ip_pb2_grpc.py +125 -0
- metalstack/admin/v2/network_connecpy.py +326 -0
- metalstack/admin/v2/network_pb2.py +104 -0
- metalstack/admin/v2/network_pb2.pyi +122 -0
- metalstack/admin/v2/network_pb2_grpc.py +257 -0
- metalstack/admin/v2/partition_connecpy.py +270 -0
- metalstack/admin/v2/partition_pb2.py +72 -0
- metalstack/admin/v2/partition_pb2.pyi +90 -0
- metalstack/admin/v2/partition_pb2_grpc.py +213 -0
- metalstack/admin/v2/size_connecpy.py +214 -0
- metalstack/admin/v2/size_pb2.py +66 -0
- metalstack/admin/v2/size_pb2.pyi +54 -0
- metalstack/admin/v2/size_pb2_grpc.py +169 -0
- metalstack/admin/v2/tenant_connecpy.py +158 -0
- metalstack/admin/v2/tenant_pb2.py +58 -0
- metalstack/admin/v2/tenant_pb2.pyi +50 -0
- metalstack/admin/v2/tenant_pb2_grpc.py +125 -0
- metalstack/admin/v2/token_connecpy.py +158 -0
- metalstack/admin/v2/token_pb2.py +56 -0
- metalstack/admin/v2/token_pb2.pyi +34 -0
- metalstack/admin/v2/token_pb2_grpc.py +125 -0
- metalstack/api/__init__.py +0 -0
- metalstack/api/v2/__init__.py +0 -0
- metalstack/api/v2/common_pb2.py +66 -0
- metalstack/api/v2/common_pb2.pyi +128 -0
- metalstack/api/v2/common_pb2_grpc.py +4 -0
- metalstack/api/v2/filesystem_connecpy.py +270 -0
- metalstack/api/v2/filesystem_pb2.py +167 -0
- metalstack/api/v2/filesystem_pb2.pyi +229 -0
- metalstack/api/v2/filesystem_pb2_grpc.py +213 -0
- metalstack/api/v2/health_connecpy.py +102 -0
- metalstack/api/v2/health_pb2.py +70 -0
- metalstack/api/v2/health_pb2.pyi +80 -0
- metalstack/api/v2/health_pb2_grpc.py +81 -0
- metalstack/api/v2/image_connecpy.py +214 -0
- metalstack/api/v2/image_pb2.py +106 -0
- metalstack/api/v2/image_pb2.pyi +115 -0
- metalstack/api/v2/image_pb2_grpc.py +169 -0
- metalstack/api/v2/ip_connecpy.py +326 -0
- metalstack/api/v2/ip_pb2.py +159 -0
- metalstack/api/v2/ip_pb2.pyi +170 -0
- metalstack/api/v2/ip_pb2_grpc.py +257 -0
- metalstack/api/v2/methods_connecpy.py +158 -0
- metalstack/api/v2/methods_pb2.py +62 -0
- metalstack/api/v2/methods_pb2.pyi +50 -0
- metalstack/api/v2/methods_pb2_grpc.py +128 -0
- metalstack/api/v2/network_connecpy.py +382 -0
- metalstack/api/v2/network_pb2.py +191 -0
- metalstack/api/v2/network_pb2.pyi +247 -0
- metalstack/api/v2/network_pb2_grpc.py +301 -0
- metalstack/api/v2/partition_connecpy.py +158 -0
- metalstack/api/v2/partition_pb2.py +81 -0
- metalstack/api/v2/partition_pb2.pyi +79 -0
- metalstack/api/v2/partition_pb2_grpc.py +125 -0
- metalstack/api/v2/project_connecpy.py +718 -0
- metalstack/api/v2/project_pb2.py +156 -0
- metalstack/api/v2/project_pb2.pyi +230 -0
- metalstack/api/v2/project_pb2_grpc.py +565 -0
- metalstack/api/v2/size_connecpy.py +158 -0
- metalstack/api/v2/size_pb2.py +85 -0
- metalstack/api/v2/size_pb2.pyi +85 -0
- metalstack/api/v2/size_pb2_grpc.py +125 -0
- metalstack/api/v2/tenant_connecpy.py +718 -0
- metalstack/api/v2/tenant_pb2.py +140 -0
- metalstack/api/v2/tenant_pb2.pyi +236 -0
- metalstack/api/v2/tenant_pb2_grpc.py +565 -0
- metalstack/api/v2/token_connecpy.py +326 -0
- metalstack/api/v2/token_pb2.py +143 -0
- metalstack/api/v2/token_pb2.pyi +175 -0
- metalstack/api/v2/token_pb2_grpc.py +257 -0
- metalstack/api/v2/user_connecpy.py +102 -0
- metalstack/api/v2/user_pb2.py +48 -0
- metalstack/api/v2/user_pb2.pyi +38 -0
- metalstack/api/v2/user_pb2_grpc.py +81 -0
- metalstack/api/v2/version_connecpy.py +102 -0
- metalstack/api/v2/version_pb2.py +46 -0
- metalstack/api/v2/version_pb2.pyi +29 -0
- metalstack/api/v2/version_pb2_grpc.py +81 -0
- metalstack/infra/__init__.py +0 -0
- metalstack/infra/v2/__init__.py +0 -0
- metalstack/infra/v2/bmc_connecpy.py +102 -0
- metalstack/infra/v2/bmc_pb2.py +44 -0
- metalstack/infra/v2/bmc_pb2.pyi +14 -0
- metalstack/infra/v2/bmc_pb2_grpc.py +81 -0
|
@@ -0,0 +1,257 @@
|
|
|
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 metalstack.api.v2 import token_pb2 as metalstack_dot_api_dot_v2_dot_token__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class TokenServiceStub(object):
|
|
9
|
+
"""TokenService serves token related functions
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Get = channel.unary_unary(
|
|
19
|
+
'/metalstack.api.v2.TokenService/Get',
|
|
20
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceGetRequest.SerializeToString,
|
|
21
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceGetResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
self.Create = channel.unary_unary(
|
|
24
|
+
'/metalstack.api.v2.TokenService/Create',
|
|
25
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceCreateRequest.SerializeToString,
|
|
26
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceCreateResponse.FromString,
|
|
27
|
+
_registered_method=True)
|
|
28
|
+
self.Update = channel.unary_unary(
|
|
29
|
+
'/metalstack.api.v2.TokenService/Update',
|
|
30
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceUpdateRequest.SerializeToString,
|
|
31
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceUpdateResponse.FromString,
|
|
32
|
+
_registered_method=True)
|
|
33
|
+
self.List = channel.unary_unary(
|
|
34
|
+
'/metalstack.api.v2.TokenService/List',
|
|
35
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceListRequest.SerializeToString,
|
|
36
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceListResponse.FromString,
|
|
37
|
+
_registered_method=True)
|
|
38
|
+
self.Revoke = channel.unary_unary(
|
|
39
|
+
'/metalstack.api.v2.TokenService/Revoke',
|
|
40
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceRevokeRequest.SerializeToString,
|
|
41
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceRevokeResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class TokenServiceServicer(object):
|
|
46
|
+
"""TokenService serves token related functions
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def Get(self, request, context):
|
|
50
|
+
"""Get a token
|
|
51
|
+
"""
|
|
52
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
53
|
+
context.set_details('Method not implemented!')
|
|
54
|
+
raise NotImplementedError('Method not implemented!')
|
|
55
|
+
|
|
56
|
+
def Create(self, request, context):
|
|
57
|
+
"""Create a token to authenticate against the platform, the secret will be only visible in the response
|
|
58
|
+
"""
|
|
59
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
60
|
+
context.set_details('Method not implemented!')
|
|
61
|
+
raise NotImplementedError('Method not implemented!')
|
|
62
|
+
|
|
63
|
+
def Update(self, request, context):
|
|
64
|
+
"""Update a token
|
|
65
|
+
"""
|
|
66
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
+
context.set_details('Method not implemented!')
|
|
68
|
+
raise NotImplementedError('Method not implemented!')
|
|
69
|
+
|
|
70
|
+
def List(self, request, context):
|
|
71
|
+
"""List all your tokens
|
|
72
|
+
"""
|
|
73
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
+
context.set_details('Method not implemented!')
|
|
75
|
+
raise NotImplementedError('Method not implemented!')
|
|
76
|
+
|
|
77
|
+
def Revoke(self, request, context):
|
|
78
|
+
"""Revoke a token, no further usage is possible afterwards
|
|
79
|
+
"""
|
|
80
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
81
|
+
context.set_details('Method not implemented!')
|
|
82
|
+
raise NotImplementedError('Method not implemented!')
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def add_TokenServiceServicer_to_server(servicer, server):
|
|
86
|
+
rpc_method_handlers = {
|
|
87
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
88
|
+
servicer.Get,
|
|
89
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceGetRequest.FromString,
|
|
90
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceGetResponse.SerializeToString,
|
|
91
|
+
),
|
|
92
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
93
|
+
servicer.Create,
|
|
94
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceCreateRequest.FromString,
|
|
95
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceCreateResponse.SerializeToString,
|
|
96
|
+
),
|
|
97
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
98
|
+
servicer.Update,
|
|
99
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceUpdateRequest.FromString,
|
|
100
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceUpdateResponse.SerializeToString,
|
|
101
|
+
),
|
|
102
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
103
|
+
servicer.List,
|
|
104
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceListRequest.FromString,
|
|
105
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceListResponse.SerializeToString,
|
|
106
|
+
),
|
|
107
|
+
'Revoke': grpc.unary_unary_rpc_method_handler(
|
|
108
|
+
servicer.Revoke,
|
|
109
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceRevokeRequest.FromString,
|
|
110
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceRevokeResponse.SerializeToString,
|
|
111
|
+
),
|
|
112
|
+
}
|
|
113
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
114
|
+
'metalstack.api.v2.TokenService', rpc_method_handlers)
|
|
115
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
116
|
+
server.add_registered_method_handlers('metalstack.api.v2.TokenService', rpc_method_handlers)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
# This class is part of an EXPERIMENTAL API.
|
|
120
|
+
class TokenService(object):
|
|
121
|
+
"""TokenService serves token related functions
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
@staticmethod
|
|
125
|
+
def Get(request,
|
|
126
|
+
target,
|
|
127
|
+
options=(),
|
|
128
|
+
channel_credentials=None,
|
|
129
|
+
call_credentials=None,
|
|
130
|
+
insecure=False,
|
|
131
|
+
compression=None,
|
|
132
|
+
wait_for_ready=None,
|
|
133
|
+
timeout=None,
|
|
134
|
+
metadata=None):
|
|
135
|
+
return grpc.experimental.unary_unary(
|
|
136
|
+
request,
|
|
137
|
+
target,
|
|
138
|
+
'/metalstack.api.v2.TokenService/Get',
|
|
139
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceGetRequest.SerializeToString,
|
|
140
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceGetResponse.FromString,
|
|
141
|
+
options,
|
|
142
|
+
channel_credentials,
|
|
143
|
+
insecure,
|
|
144
|
+
call_credentials,
|
|
145
|
+
compression,
|
|
146
|
+
wait_for_ready,
|
|
147
|
+
timeout,
|
|
148
|
+
metadata,
|
|
149
|
+
_registered_method=True)
|
|
150
|
+
|
|
151
|
+
@staticmethod
|
|
152
|
+
def Create(request,
|
|
153
|
+
target,
|
|
154
|
+
options=(),
|
|
155
|
+
channel_credentials=None,
|
|
156
|
+
call_credentials=None,
|
|
157
|
+
insecure=False,
|
|
158
|
+
compression=None,
|
|
159
|
+
wait_for_ready=None,
|
|
160
|
+
timeout=None,
|
|
161
|
+
metadata=None):
|
|
162
|
+
return grpc.experimental.unary_unary(
|
|
163
|
+
request,
|
|
164
|
+
target,
|
|
165
|
+
'/metalstack.api.v2.TokenService/Create',
|
|
166
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceCreateRequest.SerializeToString,
|
|
167
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceCreateResponse.FromString,
|
|
168
|
+
options,
|
|
169
|
+
channel_credentials,
|
|
170
|
+
insecure,
|
|
171
|
+
call_credentials,
|
|
172
|
+
compression,
|
|
173
|
+
wait_for_ready,
|
|
174
|
+
timeout,
|
|
175
|
+
metadata,
|
|
176
|
+
_registered_method=True)
|
|
177
|
+
|
|
178
|
+
@staticmethod
|
|
179
|
+
def Update(request,
|
|
180
|
+
target,
|
|
181
|
+
options=(),
|
|
182
|
+
channel_credentials=None,
|
|
183
|
+
call_credentials=None,
|
|
184
|
+
insecure=False,
|
|
185
|
+
compression=None,
|
|
186
|
+
wait_for_ready=None,
|
|
187
|
+
timeout=None,
|
|
188
|
+
metadata=None):
|
|
189
|
+
return grpc.experimental.unary_unary(
|
|
190
|
+
request,
|
|
191
|
+
target,
|
|
192
|
+
'/metalstack.api.v2.TokenService/Update',
|
|
193
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceUpdateRequest.SerializeToString,
|
|
194
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceUpdateResponse.FromString,
|
|
195
|
+
options,
|
|
196
|
+
channel_credentials,
|
|
197
|
+
insecure,
|
|
198
|
+
call_credentials,
|
|
199
|
+
compression,
|
|
200
|
+
wait_for_ready,
|
|
201
|
+
timeout,
|
|
202
|
+
metadata,
|
|
203
|
+
_registered_method=True)
|
|
204
|
+
|
|
205
|
+
@staticmethod
|
|
206
|
+
def List(request,
|
|
207
|
+
target,
|
|
208
|
+
options=(),
|
|
209
|
+
channel_credentials=None,
|
|
210
|
+
call_credentials=None,
|
|
211
|
+
insecure=False,
|
|
212
|
+
compression=None,
|
|
213
|
+
wait_for_ready=None,
|
|
214
|
+
timeout=None,
|
|
215
|
+
metadata=None):
|
|
216
|
+
return grpc.experimental.unary_unary(
|
|
217
|
+
request,
|
|
218
|
+
target,
|
|
219
|
+
'/metalstack.api.v2.TokenService/List',
|
|
220
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceListRequest.SerializeToString,
|
|
221
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceListResponse.FromString,
|
|
222
|
+
options,
|
|
223
|
+
channel_credentials,
|
|
224
|
+
insecure,
|
|
225
|
+
call_credentials,
|
|
226
|
+
compression,
|
|
227
|
+
wait_for_ready,
|
|
228
|
+
timeout,
|
|
229
|
+
metadata,
|
|
230
|
+
_registered_method=True)
|
|
231
|
+
|
|
232
|
+
@staticmethod
|
|
233
|
+
def Revoke(request,
|
|
234
|
+
target,
|
|
235
|
+
options=(),
|
|
236
|
+
channel_credentials=None,
|
|
237
|
+
call_credentials=None,
|
|
238
|
+
insecure=False,
|
|
239
|
+
compression=None,
|
|
240
|
+
wait_for_ready=None,
|
|
241
|
+
timeout=None,
|
|
242
|
+
metadata=None):
|
|
243
|
+
return grpc.experimental.unary_unary(
|
|
244
|
+
request,
|
|
245
|
+
target,
|
|
246
|
+
'/metalstack.api.v2.TokenService/Revoke',
|
|
247
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceRevokeRequest.SerializeToString,
|
|
248
|
+
metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceRevokeResponse.FromString,
|
|
249
|
+
options,
|
|
250
|
+
channel_credentials,
|
|
251
|
+
insecure,
|
|
252
|
+
call_credentials,
|
|
253
|
+
compression,
|
|
254
|
+
wait_for_ready,
|
|
255
|
+
timeout,
|
|
256
|
+
metadata,
|
|
257
|
+
_registered_method=True)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
|
|
3
|
+
# source: metalstack/api/v2/user.proto
|
|
4
|
+
|
|
5
|
+
from typing import Optional, Protocol, Union
|
|
6
|
+
|
|
7
|
+
import httpx
|
|
8
|
+
|
|
9
|
+
from connecpy.async_client import AsyncConnecpyClient
|
|
10
|
+
from connecpy.base import Endpoint
|
|
11
|
+
from connecpy.server import ConnecpyServer
|
|
12
|
+
from connecpy.client import ConnecpyClient
|
|
13
|
+
from connecpy.context import ClientContext, ServiceContext
|
|
14
|
+
import metalstack.api.v2.user_pb2 as metalstack_dot_api_dot_v2_dot_user__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class UserService(Protocol):
|
|
18
|
+
async def Get(self, req: metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse: ...
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class UserServiceServer(ConnecpyServer):
|
|
22
|
+
def __init__(self, *, service: UserService, server_path_prefix=""):
|
|
23
|
+
super().__init__()
|
|
24
|
+
self._prefix = f"{server_path_prefix}/metalstack.api.v2.UserService"
|
|
25
|
+
self._endpoints = {
|
|
26
|
+
"Get": Endpoint[metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest, metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse](
|
|
27
|
+
service_name="UserService",
|
|
28
|
+
name="Get",
|
|
29
|
+
function=getattr(service, "Get"),
|
|
30
|
+
input=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest,
|
|
31
|
+
output=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse,
|
|
32
|
+
allowed_methods=("POST",),
|
|
33
|
+
),
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
def serviceName(self):
|
|
37
|
+
return "metalstack.api.v2.UserService"
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class UserServiceSync(Protocol):
|
|
41
|
+
def Get(self, req: metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse: ...
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class UserServiceServerSync(ConnecpyServer):
|
|
45
|
+
def __init__(self, *, service: UserServiceSync, server_path_prefix=""):
|
|
46
|
+
super().__init__()
|
|
47
|
+
self._prefix = f"{server_path_prefix}/metalstack.api.v2.UserService"
|
|
48
|
+
self._endpoints = {
|
|
49
|
+
"Get": Endpoint[metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest, metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse](
|
|
50
|
+
service_name="UserService",
|
|
51
|
+
name="Get",
|
|
52
|
+
function=getattr(service, "Get"),
|
|
53
|
+
input=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest,
|
|
54
|
+
output=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse,
|
|
55
|
+
allowed_methods=("POST",),
|
|
56
|
+
),
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def serviceName(self):
|
|
60
|
+
return "metalstack.api.v2.UserService"
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class UserServiceClient(ConnecpyClient):
|
|
64
|
+
def Get(
|
|
65
|
+
self,
|
|
66
|
+
request: metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest,
|
|
67
|
+
*,
|
|
68
|
+
ctx: Optional[ClientContext] = None,
|
|
69
|
+
server_path_prefix: str = "",
|
|
70
|
+
**kwargs,
|
|
71
|
+
) -> metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse:
|
|
72
|
+
method = "POST"
|
|
73
|
+
return self._make_request(
|
|
74
|
+
url=f"{server_path_prefix}/metalstack.api.v2.UserService/Get",
|
|
75
|
+
ctx=ctx,
|
|
76
|
+
request=request,
|
|
77
|
+
response_class=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse,
|
|
78
|
+
method=method,
|
|
79
|
+
**kwargs,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class AsyncUserServiceClient(AsyncConnecpyClient):
|
|
84
|
+
async def Get(
|
|
85
|
+
self,
|
|
86
|
+
request: metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest,
|
|
87
|
+
*,
|
|
88
|
+
ctx: Optional[ClientContext] = None,
|
|
89
|
+
server_path_prefix: str = "",
|
|
90
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
91
|
+
**kwargs,
|
|
92
|
+
) -> metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse:
|
|
93
|
+
method = "POST"
|
|
94
|
+
return await self._make_request(
|
|
95
|
+
url=f"{server_path_prefix}/metalstack.api.v2.UserService/Get",
|
|
96
|
+
ctx=ctx,
|
|
97
|
+
request=request,
|
|
98
|
+
response_class=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse,
|
|
99
|
+
method=method,
|
|
100
|
+
session=session,
|
|
101
|
+
**kwargs,
|
|
102
|
+
)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: metalstack/api/v2/user.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'metalstack/api/v2/user.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
26
|
+
from metalstack.api.v2 import project_pb2 as metalstack_dot_api_dot_v2_dot_project__pb2
|
|
27
|
+
from metalstack.api.v2 import tenant_pb2 as metalstack_dot_api_dot_v2_dot_tenant__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cmetalstack/api/v2/user.proto\x12\x11metalstack.api.v2\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/project.proto\x1a\x1emetalstack/api/v2/tenant.proto\"\x94\x02\n\x04User\x12\x14\n\x05login\x18\x01 \x01(\tR\x05login\x12\x12\n\x04name\x18\x02 \x01(\tR\x04name\x12\x14\n\x05\x65mail\x18\x03 \x01(\tR\x05\x65mail\x12\x1d\n\navatar_url\x18\x05 \x01(\tR\tavatarUrl\x12\x33\n\x07tenants\x18\x08 \x03(\x0b\x32\x19.metalstack.api.v2.TenantR\x07tenants\x12\x36\n\x08projects\x18\t \x03(\x0b\x32\x1a.metalstack.api.v2.ProjectR\x08projects\x12@\n\x0e\x64\x65\x66\x61ult_tenant\x18\n \x01(\x0b\x32\x19.metalstack.api.v2.TenantR\rdefaultTenant\"\x17\n\x15UserServiceGetRequest\"E\n\x16UserServiceGetResponse\x12+\n\x04user\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.UserR\x04user2s\n\x0bUserService\x12\x64\n\x03Get\x12(.metalstack.api.v2.UserServiceGetRequest\x1a).metalstack.api.v2.UserServiceGetResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x01\x42\xbf\x01\n\x15\x63om.metalstack.api.v2B\tUserProtoP\x01Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\xa2\x02\x03MAX\xaa\x02\x11Metalstack.Api.V2\xca\x02\x11Metalstack\\Api\\V2\xe2\x02\x1dMetalstack\\Api\\V2\\GPBMetadata\xea\x02\x13Metalstack::Api::V2b\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.api.v2.user_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\025com.metalstack.api.v2B\tUserProtoP\001Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\242\002\003MAX\252\002\021Metalstack.Api.V2\312\002\021Metalstack\\Api\\V2\342\002\035Metalstack\\Api\\V2\\GPBMetadata\352\002\023Metalstack::Api::V2'
|
|
38
|
+
_globals['_USERSERVICE'].methods_by_name['Get']._loaded_options = None
|
|
39
|
+
_globals['_USERSERVICE'].methods_by_name['Get']._serialized_options = b'\330\363\030\003\340\363\030\001'
|
|
40
|
+
_globals['_USER']._serialized_start=149
|
|
41
|
+
_globals['_USER']._serialized_end=425
|
|
42
|
+
_globals['_USERSERVICEGETREQUEST']._serialized_start=427
|
|
43
|
+
_globals['_USERSERVICEGETREQUEST']._serialized_end=450
|
|
44
|
+
_globals['_USERSERVICEGETRESPONSE']._serialized_start=452
|
|
45
|
+
_globals['_USERSERVICEGETRESPONSE']._serialized_end=521
|
|
46
|
+
_globals['_USERSERVICE']._serialized_start=523
|
|
47
|
+
_globals['_USERSERVICE']._serialized_end=638
|
|
48
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from metalstack.api.v2 import common_pb2 as _common_pb2
|
|
2
|
+
from metalstack.api.v2 import project_pb2 as _project_pb2
|
|
3
|
+
from metalstack.api.v2 import tenant_pb2 as _tenant_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import message as _message
|
|
7
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
8
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class User(_message.Message):
|
|
13
|
+
__slots__ = ("login", "name", "email", "avatar_url", "tenants", "projects", "default_tenant")
|
|
14
|
+
LOGIN_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
AVATAR_URL_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
TENANTS_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
PROJECTS_FIELD_NUMBER: _ClassVar[int]
|
|
20
|
+
DEFAULT_TENANT_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
login: str
|
|
22
|
+
name: str
|
|
23
|
+
email: str
|
|
24
|
+
avatar_url: str
|
|
25
|
+
tenants: _containers.RepeatedCompositeFieldContainer[_tenant_pb2.Tenant]
|
|
26
|
+
projects: _containers.RepeatedCompositeFieldContainer[_project_pb2.Project]
|
|
27
|
+
default_tenant: _tenant_pb2.Tenant
|
|
28
|
+
def __init__(self, login: _Optional[str] = ..., name: _Optional[str] = ..., email: _Optional[str] = ..., avatar_url: _Optional[str] = ..., tenants: _Optional[_Iterable[_Union[_tenant_pb2.Tenant, _Mapping]]] = ..., projects: _Optional[_Iterable[_Union[_project_pb2.Project, _Mapping]]] = ..., default_tenant: _Optional[_Union[_tenant_pb2.Tenant, _Mapping]] = ...) -> None: ...
|
|
29
|
+
|
|
30
|
+
class UserServiceGetRequest(_message.Message):
|
|
31
|
+
__slots__ = ()
|
|
32
|
+
def __init__(self) -> None: ...
|
|
33
|
+
|
|
34
|
+
class UserServiceGetResponse(_message.Message):
|
|
35
|
+
__slots__ = ("user",)
|
|
36
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
user: User
|
|
38
|
+
def __init__(self, user: _Optional[_Union[User, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,81 @@
|
|
|
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 metalstack.api.v2 import user_pb2 as metalstack_dot_api_dot_v2_dot_user__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UserServiceStub(object):
|
|
9
|
+
"""UserService exposes rpc calls for users
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Get = channel.unary_unary(
|
|
19
|
+
'/metalstack.api.v2.UserService/Get',
|
|
20
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest.SerializeToString,
|
|
21
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class UserServiceServicer(object):
|
|
26
|
+
"""UserService exposes rpc calls for users
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
def Get(self, request, context):
|
|
30
|
+
"""Get a User
|
|
31
|
+
"""
|
|
32
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
33
|
+
context.set_details('Method not implemented!')
|
|
34
|
+
raise NotImplementedError('Method not implemented!')
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def add_UserServiceServicer_to_server(servicer, server):
|
|
38
|
+
rpc_method_handlers = {
|
|
39
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
40
|
+
servicer.Get,
|
|
41
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest.FromString,
|
|
42
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse.SerializeToString,
|
|
43
|
+
),
|
|
44
|
+
}
|
|
45
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
46
|
+
'metalstack.api.v2.UserService', rpc_method_handlers)
|
|
47
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
48
|
+
server.add_registered_method_handlers('metalstack.api.v2.UserService', rpc_method_handlers)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# This class is part of an EXPERIMENTAL API.
|
|
52
|
+
class UserService(object):
|
|
53
|
+
"""UserService exposes rpc calls for users
|
|
54
|
+
"""
|
|
55
|
+
|
|
56
|
+
@staticmethod
|
|
57
|
+
def Get(request,
|
|
58
|
+
target,
|
|
59
|
+
options=(),
|
|
60
|
+
channel_credentials=None,
|
|
61
|
+
call_credentials=None,
|
|
62
|
+
insecure=False,
|
|
63
|
+
compression=None,
|
|
64
|
+
wait_for_ready=None,
|
|
65
|
+
timeout=None,
|
|
66
|
+
metadata=None):
|
|
67
|
+
return grpc.experimental.unary_unary(
|
|
68
|
+
request,
|
|
69
|
+
target,
|
|
70
|
+
'/metalstack.api.v2.UserService/Get',
|
|
71
|
+
metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetRequest.SerializeToString,
|
|
72
|
+
metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse.FromString,
|
|
73
|
+
options,
|
|
74
|
+
channel_credentials,
|
|
75
|
+
insecure,
|
|
76
|
+
call_credentials,
|
|
77
|
+
compression,
|
|
78
|
+
wait_for_ready,
|
|
79
|
+
timeout,
|
|
80
|
+
metadata,
|
|
81
|
+
_registered_method=True)
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
|
|
3
|
+
# source: metalstack/api/v2/version.proto
|
|
4
|
+
|
|
5
|
+
from typing import Optional, Protocol, Union
|
|
6
|
+
|
|
7
|
+
import httpx
|
|
8
|
+
|
|
9
|
+
from connecpy.async_client import AsyncConnecpyClient
|
|
10
|
+
from connecpy.base import Endpoint
|
|
11
|
+
from connecpy.server import ConnecpyServer
|
|
12
|
+
from connecpy.client import ConnecpyClient
|
|
13
|
+
from connecpy.context import ClientContext, ServiceContext
|
|
14
|
+
import metalstack.api.v2.version_pb2 as metalstack_dot_api_dot_v2_dot_version__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class VersionService(Protocol):
|
|
18
|
+
async def Get(self, req: metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse: ...
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class VersionServiceServer(ConnecpyServer):
|
|
22
|
+
def __init__(self, *, service: VersionService, server_path_prefix=""):
|
|
23
|
+
super().__init__()
|
|
24
|
+
self._prefix = f"{server_path_prefix}/metalstack.api.v2.VersionService"
|
|
25
|
+
self._endpoints = {
|
|
26
|
+
"Get": Endpoint[metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest, metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse](
|
|
27
|
+
service_name="VersionService",
|
|
28
|
+
name="Get",
|
|
29
|
+
function=getattr(service, "Get"),
|
|
30
|
+
input=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest,
|
|
31
|
+
output=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse,
|
|
32
|
+
allowed_methods=("POST",),
|
|
33
|
+
),
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
def serviceName(self):
|
|
37
|
+
return "metalstack.api.v2.VersionService"
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class VersionServiceSync(Protocol):
|
|
41
|
+
def Get(self, req: metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse: ...
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class VersionServiceServerSync(ConnecpyServer):
|
|
45
|
+
def __init__(self, *, service: VersionServiceSync, server_path_prefix=""):
|
|
46
|
+
super().__init__()
|
|
47
|
+
self._prefix = f"{server_path_prefix}/metalstack.api.v2.VersionService"
|
|
48
|
+
self._endpoints = {
|
|
49
|
+
"Get": Endpoint[metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest, metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse](
|
|
50
|
+
service_name="VersionService",
|
|
51
|
+
name="Get",
|
|
52
|
+
function=getattr(service, "Get"),
|
|
53
|
+
input=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest,
|
|
54
|
+
output=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse,
|
|
55
|
+
allowed_methods=("POST",),
|
|
56
|
+
),
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def serviceName(self):
|
|
60
|
+
return "metalstack.api.v2.VersionService"
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
class VersionServiceClient(ConnecpyClient):
|
|
64
|
+
def Get(
|
|
65
|
+
self,
|
|
66
|
+
request: metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest,
|
|
67
|
+
*,
|
|
68
|
+
ctx: Optional[ClientContext] = None,
|
|
69
|
+
server_path_prefix: str = "",
|
|
70
|
+
**kwargs,
|
|
71
|
+
) -> metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse:
|
|
72
|
+
method = "POST"
|
|
73
|
+
return self._make_request(
|
|
74
|
+
url=f"{server_path_prefix}/metalstack.api.v2.VersionService/Get",
|
|
75
|
+
ctx=ctx,
|
|
76
|
+
request=request,
|
|
77
|
+
response_class=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse,
|
|
78
|
+
method=method,
|
|
79
|
+
**kwargs,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class AsyncVersionServiceClient(AsyncConnecpyClient):
|
|
84
|
+
async def Get(
|
|
85
|
+
self,
|
|
86
|
+
request: metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetRequest,
|
|
87
|
+
*,
|
|
88
|
+
ctx: Optional[ClientContext] = None,
|
|
89
|
+
server_path_prefix: str = "",
|
|
90
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
91
|
+
**kwargs,
|
|
92
|
+
) -> metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse:
|
|
93
|
+
method = "POST"
|
|
94
|
+
return await self._make_request(
|
|
95
|
+
url=f"{server_path_prefix}/metalstack.api.v2.VersionService/Get",
|
|
96
|
+
ctx=ctx,
|
|
97
|
+
request=request,
|
|
98
|
+
response_class=metalstack_dot_api_dot_v2_dot_version__pb2.VersionServiceGetResponse,
|
|
99
|
+
method=method,
|
|
100
|
+
session=session,
|
|
101
|
+
**kwargs,
|
|
102
|
+
)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: metalstack/api/v2/version.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'metalstack/api/v2/version.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/api/v2/version.proto\x12\x11metalstack.api.v2\x1a\x1emetalstack/api/v2/common.proto\"y\n\x07Version\x12\x18\n\x07version\x18\x01 \x01(\tR\x07version\x12\x1a\n\x08revision\x18\x02 \x01(\tR\x08revision\x12\x19\n\x08git_sha1\x18\x03 \x01(\tR\x07gitSha1\x12\x1d\n\nbuild_date\x18\x04 \x01(\tR\tbuildDate\"\x1a\n\x18VersionServiceGetRequest\"Q\n\x19VersionServiceGetResponse\x12\x34\n\x07version\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.VersionR\x07version2|\n\x0eVersionService\x12j\n\x03Get\x12+.metalstack.api.v2.VersionServiceGetRequest\x1a,.metalstack.api.v2.VersionServiceGetResponse\"\x08\xd8\xf3\x18\x01\xe0\xf3\x18\x02\x42\xc2\x01\n\x15\x63om.metalstack.api.v2B\x0cVersionProtoP\x01Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\xa2\x02\x03MAX\xaa\x02\x11Metalstack.Api.V2\xca\x02\x11Metalstack\\Api\\V2\xe2\x02\x1dMetalstack\\Api\\V2\\GPBMetadata\xea\x02\x13Metalstack::Api::V2b\x06proto3')
|
|
29
|
+
|
|
30
|
+
_globals = globals()
|
|
31
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
32
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.api.v2.version_pb2', _globals)
|
|
33
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
34
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
35
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\025com.metalstack.api.v2B\014VersionProtoP\001Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\242\002\003MAX\252\002\021Metalstack.Api.V2\312\002\021Metalstack\\Api\\V2\342\002\035Metalstack\\Api\\V2\\GPBMetadata\352\002\023Metalstack::Api::V2'
|
|
36
|
+
_globals['_VERSIONSERVICE'].methods_by_name['Get']._loaded_options = None
|
|
37
|
+
_globals['_VERSIONSERVICE'].methods_by_name['Get']._serialized_options = b'\330\363\030\001\340\363\030\002'
|
|
38
|
+
_globals['_VERSION']._serialized_start=86
|
|
39
|
+
_globals['_VERSION']._serialized_end=207
|
|
40
|
+
_globals['_VERSIONSERVICEGETREQUEST']._serialized_start=209
|
|
41
|
+
_globals['_VERSIONSERVICEGETREQUEST']._serialized_end=235
|
|
42
|
+
_globals['_VERSIONSERVICEGETRESPONSE']._serialized_start=237
|
|
43
|
+
_globals['_VERSIONSERVICEGETRESPONSE']._serialized_end=318
|
|
44
|
+
_globals['_VERSIONSERVICE']._serialized_start=320
|
|
45
|
+
_globals['_VERSIONSERVICE']._serialized_end=444
|
|
46
|
+
# @@protoc_insertion_point(module_scope)
|