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,270 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
|
|
3
|
+
# source: metalstack/admin/v2/image.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.admin.v2.image_pb2 as metalstack_dot_admin_dot_v2_dot_image__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class ImageService(Protocol):
|
|
18
|
+
async def Create(self, req: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse: ...
|
|
19
|
+
async def Update(self, req: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse: ...
|
|
20
|
+
async def Delete(self, req: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse: ...
|
|
21
|
+
async def Usage(self, req: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse: ...
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ImageServiceServer(ConnecpyServer):
|
|
25
|
+
def __init__(self, *, service: ImageService, server_path_prefix=""):
|
|
26
|
+
super().__init__()
|
|
27
|
+
self._prefix = f"{server_path_prefix}/metalstack.admin.v2.ImageService"
|
|
28
|
+
self._endpoints = {
|
|
29
|
+
"Create": Endpoint[metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest, metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse](
|
|
30
|
+
service_name="ImageService",
|
|
31
|
+
name="Create",
|
|
32
|
+
function=getattr(service, "Create"),
|
|
33
|
+
input=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest,
|
|
34
|
+
output=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse,
|
|
35
|
+
allowed_methods=("POST",),
|
|
36
|
+
),
|
|
37
|
+
"Update": Endpoint[metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest, metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse](
|
|
38
|
+
service_name="ImageService",
|
|
39
|
+
name="Update",
|
|
40
|
+
function=getattr(service, "Update"),
|
|
41
|
+
input=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest,
|
|
42
|
+
output=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse,
|
|
43
|
+
allowed_methods=("POST",),
|
|
44
|
+
),
|
|
45
|
+
"Delete": Endpoint[metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest, metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse](
|
|
46
|
+
service_name="ImageService",
|
|
47
|
+
name="Delete",
|
|
48
|
+
function=getattr(service, "Delete"),
|
|
49
|
+
input=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest,
|
|
50
|
+
output=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse,
|
|
51
|
+
allowed_methods=("POST",),
|
|
52
|
+
),
|
|
53
|
+
"Usage": Endpoint[metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest, metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse](
|
|
54
|
+
service_name="ImageService",
|
|
55
|
+
name="Usage",
|
|
56
|
+
function=getattr(service, "Usage"),
|
|
57
|
+
input=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest,
|
|
58
|
+
output=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse,
|
|
59
|
+
allowed_methods=("POST",),
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
def serviceName(self):
|
|
64
|
+
return "metalstack.admin.v2.ImageService"
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
class ImageServiceSync(Protocol):
|
|
68
|
+
def Create(self, req: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse: ...
|
|
69
|
+
def Update(self, req: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse: ...
|
|
70
|
+
def Delete(self, req: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse: ...
|
|
71
|
+
def Usage(self, req: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse: ...
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class ImageServiceServerSync(ConnecpyServer):
|
|
75
|
+
def __init__(self, *, service: ImageServiceSync, server_path_prefix=""):
|
|
76
|
+
super().__init__()
|
|
77
|
+
self._prefix = f"{server_path_prefix}/metalstack.admin.v2.ImageService"
|
|
78
|
+
self._endpoints = {
|
|
79
|
+
"Create": Endpoint[metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest, metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse](
|
|
80
|
+
service_name="ImageService",
|
|
81
|
+
name="Create",
|
|
82
|
+
function=getattr(service, "Create"),
|
|
83
|
+
input=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest,
|
|
84
|
+
output=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse,
|
|
85
|
+
allowed_methods=("POST",),
|
|
86
|
+
),
|
|
87
|
+
"Update": Endpoint[metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest, metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse](
|
|
88
|
+
service_name="ImageService",
|
|
89
|
+
name="Update",
|
|
90
|
+
function=getattr(service, "Update"),
|
|
91
|
+
input=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest,
|
|
92
|
+
output=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse,
|
|
93
|
+
allowed_methods=("POST",),
|
|
94
|
+
),
|
|
95
|
+
"Delete": Endpoint[metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest, metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse](
|
|
96
|
+
service_name="ImageService",
|
|
97
|
+
name="Delete",
|
|
98
|
+
function=getattr(service, "Delete"),
|
|
99
|
+
input=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest,
|
|
100
|
+
output=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse,
|
|
101
|
+
allowed_methods=("POST",),
|
|
102
|
+
),
|
|
103
|
+
"Usage": Endpoint[metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest, metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse](
|
|
104
|
+
service_name="ImageService",
|
|
105
|
+
name="Usage",
|
|
106
|
+
function=getattr(service, "Usage"),
|
|
107
|
+
input=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest,
|
|
108
|
+
output=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse,
|
|
109
|
+
allowed_methods=("POST",),
|
|
110
|
+
),
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
def serviceName(self):
|
|
114
|
+
return "metalstack.admin.v2.ImageService"
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
class ImageServiceClient(ConnecpyClient):
|
|
118
|
+
def Create(
|
|
119
|
+
self,
|
|
120
|
+
request: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest,
|
|
121
|
+
*,
|
|
122
|
+
ctx: Optional[ClientContext] = None,
|
|
123
|
+
server_path_prefix: str = "",
|
|
124
|
+
**kwargs,
|
|
125
|
+
) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse:
|
|
126
|
+
method = "POST"
|
|
127
|
+
return self._make_request(
|
|
128
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.ImageService/Create",
|
|
129
|
+
ctx=ctx,
|
|
130
|
+
request=request,
|
|
131
|
+
response_class=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse,
|
|
132
|
+
method=method,
|
|
133
|
+
**kwargs,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
def Update(
|
|
137
|
+
self,
|
|
138
|
+
request: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest,
|
|
139
|
+
*,
|
|
140
|
+
ctx: Optional[ClientContext] = None,
|
|
141
|
+
server_path_prefix: str = "",
|
|
142
|
+
**kwargs,
|
|
143
|
+
) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse:
|
|
144
|
+
method = "POST"
|
|
145
|
+
return self._make_request(
|
|
146
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.ImageService/Update",
|
|
147
|
+
ctx=ctx,
|
|
148
|
+
request=request,
|
|
149
|
+
response_class=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse,
|
|
150
|
+
method=method,
|
|
151
|
+
**kwargs,
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
def Delete(
|
|
155
|
+
self,
|
|
156
|
+
request: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest,
|
|
157
|
+
*,
|
|
158
|
+
ctx: Optional[ClientContext] = None,
|
|
159
|
+
server_path_prefix: str = "",
|
|
160
|
+
**kwargs,
|
|
161
|
+
) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse:
|
|
162
|
+
method = "POST"
|
|
163
|
+
return self._make_request(
|
|
164
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.ImageService/Delete",
|
|
165
|
+
ctx=ctx,
|
|
166
|
+
request=request,
|
|
167
|
+
response_class=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse,
|
|
168
|
+
method=method,
|
|
169
|
+
**kwargs,
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
def Usage(
|
|
173
|
+
self,
|
|
174
|
+
request: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest,
|
|
175
|
+
*,
|
|
176
|
+
ctx: Optional[ClientContext] = None,
|
|
177
|
+
server_path_prefix: str = "",
|
|
178
|
+
**kwargs,
|
|
179
|
+
) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse:
|
|
180
|
+
method = "POST"
|
|
181
|
+
return self._make_request(
|
|
182
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.ImageService/Usage",
|
|
183
|
+
ctx=ctx,
|
|
184
|
+
request=request,
|
|
185
|
+
response_class=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse,
|
|
186
|
+
method=method,
|
|
187
|
+
**kwargs,
|
|
188
|
+
)
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
class AsyncImageServiceClient(AsyncConnecpyClient):
|
|
192
|
+
async def Create(
|
|
193
|
+
self,
|
|
194
|
+
request: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest,
|
|
195
|
+
*,
|
|
196
|
+
ctx: Optional[ClientContext] = None,
|
|
197
|
+
server_path_prefix: str = "",
|
|
198
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
199
|
+
**kwargs,
|
|
200
|
+
) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse:
|
|
201
|
+
method = "POST"
|
|
202
|
+
return await self._make_request(
|
|
203
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.ImageService/Create",
|
|
204
|
+
ctx=ctx,
|
|
205
|
+
request=request,
|
|
206
|
+
response_class=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse,
|
|
207
|
+
method=method,
|
|
208
|
+
session=session,
|
|
209
|
+
**kwargs,
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
async def Update(
|
|
213
|
+
self,
|
|
214
|
+
request: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest,
|
|
215
|
+
*,
|
|
216
|
+
ctx: Optional[ClientContext] = None,
|
|
217
|
+
server_path_prefix: str = "",
|
|
218
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
219
|
+
**kwargs,
|
|
220
|
+
) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse:
|
|
221
|
+
method = "POST"
|
|
222
|
+
return await self._make_request(
|
|
223
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.ImageService/Update",
|
|
224
|
+
ctx=ctx,
|
|
225
|
+
request=request,
|
|
226
|
+
response_class=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse,
|
|
227
|
+
method=method,
|
|
228
|
+
session=session,
|
|
229
|
+
**kwargs,
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
async def Delete(
|
|
233
|
+
self,
|
|
234
|
+
request: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest,
|
|
235
|
+
*,
|
|
236
|
+
ctx: Optional[ClientContext] = None,
|
|
237
|
+
server_path_prefix: str = "",
|
|
238
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
239
|
+
**kwargs,
|
|
240
|
+
) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse:
|
|
241
|
+
method = "POST"
|
|
242
|
+
return await self._make_request(
|
|
243
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.ImageService/Delete",
|
|
244
|
+
ctx=ctx,
|
|
245
|
+
request=request,
|
|
246
|
+
response_class=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse,
|
|
247
|
+
method=method,
|
|
248
|
+
session=session,
|
|
249
|
+
**kwargs,
|
|
250
|
+
)
|
|
251
|
+
|
|
252
|
+
async def Usage(
|
|
253
|
+
self,
|
|
254
|
+
request: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest,
|
|
255
|
+
*,
|
|
256
|
+
ctx: Optional[ClientContext] = None,
|
|
257
|
+
server_path_prefix: str = "",
|
|
258
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
259
|
+
**kwargs,
|
|
260
|
+
) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse:
|
|
261
|
+
method = "POST"
|
|
262
|
+
return await self._make_request(
|
|
263
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.ImageService/Usage",
|
|
264
|
+
ctx=ctx,
|
|
265
|
+
request=request,
|
|
266
|
+
response_class=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse,
|
|
267
|
+
method=method,
|
|
268
|
+
session=session,
|
|
269
|
+
**kwargs,
|
|
270
|
+
)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: metalstack/admin/v2/image.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/admin/v2/image.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
27
|
+
from metalstack.api.v2 import image_pb2 as metalstack_dot_api_dot_v2_dot_image__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/admin/v2/image.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1dmetalstack/api/v2/image.proto\"K\n\x19ImageServiceCreateRequest\x12.\n\x05image\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.ImageR\x05image\"L\n\x1aImageServiceCreateResponse\x12.\n\x05image\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.ImageR\x05image\"K\n\x19ImageServiceUpdateRequest\x12.\n\x05image\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.ImageR\x05image\"L\n\x1aImageServiceUpdateResponse\x12.\n\x05image\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.ImageR\x05image\"7\n\x19ImageServiceDeleteRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"L\n\x1aImageServiceDeleteResponse\x12.\n\x05image\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.ImageR\x05image\"O\n\x18ImageServiceUsageRequest\x12\x33\n\x05query\x18\x01 \x01(\x0b\x32\x1d.metalstack.api.v2.ImageQueryR\x05query\"[\n\x19ImageServiceUsageResponse\x12>\n\x0bimage_usage\x18\x01 \x03(\x0b\x32\x1d.metalstack.api.v2.ImageUsageR\nimageUsage2\xe0\x03\n\x0cImageService\x12t\n\x06\x43reate\x12..metalstack.admin.v2.ImageServiceCreateRequest\x1a/.metalstack.admin.v2.ImageServiceCreateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12t\n\x06Update\x12..metalstack.admin.v2.ImageServiceUpdateRequest\x1a/.metalstack.admin.v2.ImageServiceUpdateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12t\n\x06\x44\x65lete\x12..metalstack.admin.v2.ImageServiceDeleteRequest\x1a/.metalstack.admin.v2.ImageServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12n\n\x05Usage\x12-.metalstack.admin.v2.ImageServiceUsageRequest\x1a..metalstack.admin.v2.ImageServiceUsageResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x42\xce\x01\n\x17\x63om.metalstack.admin.v2B\nImageProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.admin.v2.image_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\nImageProtoP\001Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\242\002\003MAX\252\002\023Metalstack.Admin.V2\312\002\023Metalstack\\Admin\\V2\342\002\037Metalstack\\Admin\\V2\\GPBMetadata\352\002\025Metalstack::Admin::V2'
|
|
38
|
+
_globals['_IMAGESERVICEDELETEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
39
|
+
_globals['_IMAGESERVICEDELETEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
|
|
40
|
+
_globals['_IMAGESERVICE'].methods_by_name['Create']._loaded_options = None
|
|
41
|
+
_globals['_IMAGESERVICE'].methods_by_name['Create']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
42
|
+
_globals['_IMAGESERVICE'].methods_by_name['Update']._loaded_options = None
|
|
43
|
+
_globals['_IMAGESERVICE'].methods_by_name['Update']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
44
|
+
_globals['_IMAGESERVICE'].methods_by_name['Delete']._loaded_options = None
|
|
45
|
+
_globals['_IMAGESERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
46
|
+
_globals['_IMAGESERVICE'].methods_by_name['Usage']._loaded_options = None
|
|
47
|
+
_globals['_IMAGESERVICE'].methods_by_name['Usage']._serialized_options = b'\322\363\030\002\001\002'
|
|
48
|
+
_globals['_IMAGESERVICECREATEREQUEST']._serialized_start=148
|
|
49
|
+
_globals['_IMAGESERVICECREATEREQUEST']._serialized_end=223
|
|
50
|
+
_globals['_IMAGESERVICECREATERESPONSE']._serialized_start=225
|
|
51
|
+
_globals['_IMAGESERVICECREATERESPONSE']._serialized_end=301
|
|
52
|
+
_globals['_IMAGESERVICEUPDATEREQUEST']._serialized_start=303
|
|
53
|
+
_globals['_IMAGESERVICEUPDATEREQUEST']._serialized_end=378
|
|
54
|
+
_globals['_IMAGESERVICEUPDATERESPONSE']._serialized_start=380
|
|
55
|
+
_globals['_IMAGESERVICEUPDATERESPONSE']._serialized_end=456
|
|
56
|
+
_globals['_IMAGESERVICEDELETEREQUEST']._serialized_start=458
|
|
57
|
+
_globals['_IMAGESERVICEDELETEREQUEST']._serialized_end=513
|
|
58
|
+
_globals['_IMAGESERVICEDELETERESPONSE']._serialized_start=515
|
|
59
|
+
_globals['_IMAGESERVICEDELETERESPONSE']._serialized_end=591
|
|
60
|
+
_globals['_IMAGESERVICEUSAGEREQUEST']._serialized_start=593
|
|
61
|
+
_globals['_IMAGESERVICEUSAGEREQUEST']._serialized_end=672
|
|
62
|
+
_globals['_IMAGESERVICEUSAGERESPONSE']._serialized_start=674
|
|
63
|
+
_globals['_IMAGESERVICEUSAGERESPONSE']._serialized_end=765
|
|
64
|
+
_globals['_IMAGESERVICE']._serialized_start=768
|
|
65
|
+
_globals['_IMAGESERVICE']._serialized_end=1248
|
|
66
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from metalstack.api.v2 import common_pb2 as _common_pb2
|
|
3
|
+
from metalstack.api.v2 import image_pb2 as _image_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 ImageServiceCreateRequest(_message.Message):
|
|
13
|
+
__slots__ = ("image",)
|
|
14
|
+
IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
image: _image_pb2.Image
|
|
16
|
+
def __init__(self, image: _Optional[_Union[_image_pb2.Image, _Mapping]] = ...) -> None: ...
|
|
17
|
+
|
|
18
|
+
class ImageServiceCreateResponse(_message.Message):
|
|
19
|
+
__slots__ = ("image",)
|
|
20
|
+
IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
image: _image_pb2.Image
|
|
22
|
+
def __init__(self, image: _Optional[_Union[_image_pb2.Image, _Mapping]] = ...) -> None: ...
|
|
23
|
+
|
|
24
|
+
class ImageServiceUpdateRequest(_message.Message):
|
|
25
|
+
__slots__ = ("image",)
|
|
26
|
+
IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
image: _image_pb2.Image
|
|
28
|
+
def __init__(self, image: _Optional[_Union[_image_pb2.Image, _Mapping]] = ...) -> None: ...
|
|
29
|
+
|
|
30
|
+
class ImageServiceUpdateResponse(_message.Message):
|
|
31
|
+
__slots__ = ("image",)
|
|
32
|
+
IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
image: _image_pb2.Image
|
|
34
|
+
def __init__(self, image: _Optional[_Union[_image_pb2.Image, _Mapping]] = ...) -> None: ...
|
|
35
|
+
|
|
36
|
+
class ImageServiceDeleteRequest(_message.Message):
|
|
37
|
+
__slots__ = ("id",)
|
|
38
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
id: str
|
|
40
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
41
|
+
|
|
42
|
+
class ImageServiceDeleteResponse(_message.Message):
|
|
43
|
+
__slots__ = ("image",)
|
|
44
|
+
IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
image: _image_pb2.Image
|
|
46
|
+
def __init__(self, image: _Optional[_Union[_image_pb2.Image, _Mapping]] = ...) -> None: ...
|
|
47
|
+
|
|
48
|
+
class ImageServiceUsageRequest(_message.Message):
|
|
49
|
+
__slots__ = ("query",)
|
|
50
|
+
QUERY_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
query: _image_pb2.ImageQuery
|
|
52
|
+
def __init__(self, query: _Optional[_Union[_image_pb2.ImageQuery, _Mapping]] = ...) -> None: ...
|
|
53
|
+
|
|
54
|
+
class ImageServiceUsageResponse(_message.Message):
|
|
55
|
+
__slots__ = ("image_usage",)
|
|
56
|
+
IMAGE_USAGE_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
image_usage: _containers.RepeatedCompositeFieldContainer[_image_pb2.ImageUsage]
|
|
58
|
+
def __init__(self, image_usage: _Optional[_Iterable[_Union[_image_pb2.ImageUsage, _Mapping]]] = ...) -> None: ...
|
|
@@ -0,0 +1,213 @@
|
|
|
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.admin.v2 import image_pb2 as metalstack_dot_admin_dot_v2_dot_image__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ImageServiceStub(object):
|
|
9
|
+
"""ImageService serves image related functions
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Create = channel.unary_unary(
|
|
19
|
+
'/metalstack.admin.v2.ImageService/Create',
|
|
20
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest.SerializeToString,
|
|
21
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
self.Update = channel.unary_unary(
|
|
24
|
+
'/metalstack.admin.v2.ImageService/Update',
|
|
25
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest.SerializeToString,
|
|
26
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse.FromString,
|
|
27
|
+
_registered_method=True)
|
|
28
|
+
self.Delete = channel.unary_unary(
|
|
29
|
+
'/metalstack.admin.v2.ImageService/Delete',
|
|
30
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest.SerializeToString,
|
|
31
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse.FromString,
|
|
32
|
+
_registered_method=True)
|
|
33
|
+
self.Usage = channel.unary_unary(
|
|
34
|
+
'/metalstack.admin.v2.ImageService/Usage',
|
|
35
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest.SerializeToString,
|
|
36
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse.FromString,
|
|
37
|
+
_registered_method=True)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class ImageServiceServicer(object):
|
|
41
|
+
"""ImageService serves image related functions
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
def Create(self, request, context):
|
|
45
|
+
"""Create a image
|
|
46
|
+
"""
|
|
47
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
48
|
+
context.set_details('Method not implemented!')
|
|
49
|
+
raise NotImplementedError('Method not implemented!')
|
|
50
|
+
|
|
51
|
+
def Update(self, request, context):
|
|
52
|
+
"""Update a image
|
|
53
|
+
"""
|
|
54
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
55
|
+
context.set_details('Method not implemented!')
|
|
56
|
+
raise NotImplementedError('Method not implemented!')
|
|
57
|
+
|
|
58
|
+
def Delete(self, request, context):
|
|
59
|
+
"""Delete a image
|
|
60
|
+
"""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def Usage(self, request, context):
|
|
66
|
+
"""Usage of images
|
|
67
|
+
"""
|
|
68
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
69
|
+
context.set_details('Method not implemented!')
|
|
70
|
+
raise NotImplementedError('Method not implemented!')
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def add_ImageServiceServicer_to_server(servicer, server):
|
|
74
|
+
rpc_method_handlers = {
|
|
75
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
76
|
+
servicer.Create,
|
|
77
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest.FromString,
|
|
78
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse.SerializeToString,
|
|
79
|
+
),
|
|
80
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
81
|
+
servicer.Update,
|
|
82
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest.FromString,
|
|
83
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse.SerializeToString,
|
|
84
|
+
),
|
|
85
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
86
|
+
servicer.Delete,
|
|
87
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest.FromString,
|
|
88
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse.SerializeToString,
|
|
89
|
+
),
|
|
90
|
+
'Usage': grpc.unary_unary_rpc_method_handler(
|
|
91
|
+
servicer.Usage,
|
|
92
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest.FromString,
|
|
93
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse.SerializeToString,
|
|
94
|
+
),
|
|
95
|
+
}
|
|
96
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
97
|
+
'metalstack.admin.v2.ImageService', rpc_method_handlers)
|
|
98
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
99
|
+
server.add_registered_method_handlers('metalstack.admin.v2.ImageService', rpc_method_handlers)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# This class is part of an EXPERIMENTAL API.
|
|
103
|
+
class ImageService(object):
|
|
104
|
+
"""ImageService serves image related functions
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
@staticmethod
|
|
108
|
+
def Create(request,
|
|
109
|
+
target,
|
|
110
|
+
options=(),
|
|
111
|
+
channel_credentials=None,
|
|
112
|
+
call_credentials=None,
|
|
113
|
+
insecure=False,
|
|
114
|
+
compression=None,
|
|
115
|
+
wait_for_ready=None,
|
|
116
|
+
timeout=None,
|
|
117
|
+
metadata=None):
|
|
118
|
+
return grpc.experimental.unary_unary(
|
|
119
|
+
request,
|
|
120
|
+
target,
|
|
121
|
+
'/metalstack.admin.v2.ImageService/Create',
|
|
122
|
+
metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest.SerializeToString,
|
|
123
|
+
metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse.FromString,
|
|
124
|
+
options,
|
|
125
|
+
channel_credentials,
|
|
126
|
+
insecure,
|
|
127
|
+
call_credentials,
|
|
128
|
+
compression,
|
|
129
|
+
wait_for_ready,
|
|
130
|
+
timeout,
|
|
131
|
+
metadata,
|
|
132
|
+
_registered_method=True)
|
|
133
|
+
|
|
134
|
+
@staticmethod
|
|
135
|
+
def Update(request,
|
|
136
|
+
target,
|
|
137
|
+
options=(),
|
|
138
|
+
channel_credentials=None,
|
|
139
|
+
call_credentials=None,
|
|
140
|
+
insecure=False,
|
|
141
|
+
compression=None,
|
|
142
|
+
wait_for_ready=None,
|
|
143
|
+
timeout=None,
|
|
144
|
+
metadata=None):
|
|
145
|
+
return grpc.experimental.unary_unary(
|
|
146
|
+
request,
|
|
147
|
+
target,
|
|
148
|
+
'/metalstack.admin.v2.ImageService/Update',
|
|
149
|
+
metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateRequest.SerializeToString,
|
|
150
|
+
metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUpdateResponse.FromString,
|
|
151
|
+
options,
|
|
152
|
+
channel_credentials,
|
|
153
|
+
insecure,
|
|
154
|
+
call_credentials,
|
|
155
|
+
compression,
|
|
156
|
+
wait_for_ready,
|
|
157
|
+
timeout,
|
|
158
|
+
metadata,
|
|
159
|
+
_registered_method=True)
|
|
160
|
+
|
|
161
|
+
@staticmethod
|
|
162
|
+
def Delete(request,
|
|
163
|
+
target,
|
|
164
|
+
options=(),
|
|
165
|
+
channel_credentials=None,
|
|
166
|
+
call_credentials=None,
|
|
167
|
+
insecure=False,
|
|
168
|
+
compression=None,
|
|
169
|
+
wait_for_ready=None,
|
|
170
|
+
timeout=None,
|
|
171
|
+
metadata=None):
|
|
172
|
+
return grpc.experimental.unary_unary(
|
|
173
|
+
request,
|
|
174
|
+
target,
|
|
175
|
+
'/metalstack.admin.v2.ImageService/Delete',
|
|
176
|
+
metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteRequest.SerializeToString,
|
|
177
|
+
metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceDeleteResponse.FromString,
|
|
178
|
+
options,
|
|
179
|
+
channel_credentials,
|
|
180
|
+
insecure,
|
|
181
|
+
call_credentials,
|
|
182
|
+
compression,
|
|
183
|
+
wait_for_ready,
|
|
184
|
+
timeout,
|
|
185
|
+
metadata,
|
|
186
|
+
_registered_method=True)
|
|
187
|
+
|
|
188
|
+
@staticmethod
|
|
189
|
+
def Usage(request,
|
|
190
|
+
target,
|
|
191
|
+
options=(),
|
|
192
|
+
channel_credentials=None,
|
|
193
|
+
call_credentials=None,
|
|
194
|
+
insecure=False,
|
|
195
|
+
compression=None,
|
|
196
|
+
wait_for_ready=None,
|
|
197
|
+
timeout=None,
|
|
198
|
+
metadata=None):
|
|
199
|
+
return grpc.experimental.unary_unary(
|
|
200
|
+
request,
|
|
201
|
+
target,
|
|
202
|
+
'/metalstack.admin.v2.ImageService/Usage',
|
|
203
|
+
metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageRequest.SerializeToString,
|
|
204
|
+
metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceUsageResponse.FromString,
|
|
205
|
+
options,
|
|
206
|
+
channel_credentials,
|
|
207
|
+
insecure,
|
|
208
|
+
call_credentials,
|
|
209
|
+
compression,
|
|
210
|
+
wait_for_ready,
|
|
211
|
+
timeout,
|
|
212
|
+
metadata,
|
|
213
|
+
_registered_method=True)
|