metal-stack-api 0.0.15__py3-none-any.whl → 0.0.17__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.
Files changed (32) hide show
  1. {metal_stack_api-0.0.15.dist-info → metal_stack_api-0.0.17.dist-info}/METADATA +1 -1
  2. {metal_stack_api-0.0.15.dist-info → metal_stack_api-0.0.17.dist-info}/RECORD +32 -32
  3. metalstack/admin/v2/filesystem_connecpy.py +195 -160
  4. metalstack/admin/v2/image_connecpy.py +241 -197
  5. metalstack/admin/v2/ip_connecpy.py +144 -118
  6. metalstack/admin/v2/machine_connecpy.py +144 -118
  7. metalstack/admin/v2/network_connecpy.py +291 -238
  8. metalstack/admin/v2/partition_connecpy.py +241 -197
  9. metalstack/admin/v2/size_connecpy.py +195 -160
  10. metalstack/admin/v2/tenant_connecpy.py +144 -118
  11. metalstack/admin/v2/token_connecpy.py +144 -118
  12. metalstack/api/v2/filesystem_connecpy.py +195 -216
  13. metalstack/api/v2/filesystem_pb2.py +47 -47
  14. metalstack/api/v2/filesystem_pb2.pyi +10 -2
  15. metalstack/api/v2/filesystem_pb2_grpc.py +0 -44
  16. metalstack/api/v2/health_connecpy.py +93 -76
  17. metalstack/api/v2/image_connecpy.py +195 -160
  18. metalstack/api/v2/ip_connecpy.py +291 -238
  19. metalstack/api/v2/machine_connecpy.py +291 -238
  20. metalstack/api/v2/method_connecpy.py +144 -118
  21. metalstack/api/v2/network_connecpy.py +341 -279
  22. metalstack/api/v2/partition_connecpy.py +144 -118
  23. metalstack/api/v2/project_connecpy.py +654 -538
  24. metalstack/api/v2/size_connecpy.py +144 -118
  25. metalstack/api/v2/tenant_connecpy.py +654 -538
  26. metalstack/api/v2/token_connecpy.py +341 -279
  27. metalstack/api/v2/user_connecpy.py +93 -76
  28. metalstack/api/v2/version_connecpy.py +93 -76
  29. metalstack/infra/v2/bmc_connecpy.py +93 -76
  30. metalstack/infra/v2/switch_connecpy.py +93 -76
  31. {metal_stack_api-0.0.15.dist-info → metal_stack_api-0.0.17.dist-info}/WHEEL +0 -0
  32. {metal_stack_api-0.0.15.dist-info → metal_stack_api-0.0.17.dist-info}/top_level.txt +0 -0
@@ -1,270 +1,249 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
2
+ # Generated by https://github.com/i2y/connecpy/v2/protoc-gen-connecpy. DO NOT EDIT!
3
3
  # source: metalstack/api/v2/filesystem.proto
4
4
 
5
- from typing import Optional, Protocol, Union
5
+ from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
6
+ from typing import Protocol
6
7
 
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
8
+ from connecpy.client import ConnecpyClient, ConnecpyClientSync
9
+ from connecpy.code import Code
10
+ from connecpy.exceptions import ConnecpyException
11
+ from connecpy.interceptor import Interceptor, InterceptorSync
12
+ from connecpy.method import IdempotencyLevel, MethodInfo
13
+ from connecpy.request import Headers, RequestContext
14
+ from connecpy.server import ConnecpyASGIApplication, ConnecpyWSGIApplication, Endpoint, EndpointSync
14
15
  import metalstack.api.v2.filesystem_pb2 as metalstack_dot_api_dot_v2_dot_filesystem__pb2
15
16
 
16
17
 
17
18
  class FilesystemService(Protocol):
18
- async def Get(self, req: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse: ...
19
- async def List(self, req: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse: ...
20
- async def Try(self, req: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse: ...
21
- async def Match(self, req: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse: ...
22
-
23
-
24
- class FilesystemServiceServer(ConnecpyServer):
25
- def __init__(self, *, service: FilesystemService, server_path_prefix=""):
26
- super().__init__()
27
- self._prefix = f"{server_path_prefix}/metalstack.api.v2.FilesystemService"
28
- self._endpoints = {
29
- "Get": Endpoint[metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest, metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse](
30
- service_name="FilesystemService",
31
- name="Get",
32
- function=getattr(service, "Get"),
33
- input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest,
34
- output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse,
35
- allowed_methods=("POST",),
36
- ),
37
- "List": Endpoint[metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest, metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse](
38
- service_name="FilesystemService",
39
- name="List",
40
- function=getattr(service, "List"),
41
- input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest,
42
- output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse,
43
- allowed_methods=("POST",),
44
- ),
45
- "Try": Endpoint[metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryRequest, metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse](
46
- service_name="FilesystemService",
47
- name="Try",
48
- function=getattr(service, "Try"),
49
- input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryRequest,
50
- output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse,
51
- allowed_methods=("POST",),
52
- ),
53
- "Match": Endpoint[metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest, metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse](
54
- service_name="FilesystemService",
55
- name="Match",
56
- function=getattr(service, "Match"),
57
- input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
58
- output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
59
- allowed_methods=("POST",),
60
- ),
61
- }
62
-
63
- def serviceName(self):
64
- return "metalstack.api.v2.FilesystemService"
65
-
66
-
67
- class FilesystemServiceSync(Protocol):
68
- def Get(self, req: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse: ...
69
- def List(self, req: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse: ...
70
- def Try(self, req: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse: ...
71
- def Match(self, req: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse: ...
72
-
73
-
74
- class FilesystemServiceServerSync(ConnecpyServer):
75
- def __init__(self, *, service: FilesystemServiceSync, server_path_prefix=""):
76
- super().__init__()
77
- self._prefix = f"{server_path_prefix}/metalstack.api.v2.FilesystemService"
78
- self._endpoints = {
79
- "Get": Endpoint[metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest, metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse](
80
- service_name="FilesystemService",
81
- name="Get",
82
- function=getattr(service, "Get"),
83
- input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest,
84
- output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse,
85
- allowed_methods=("POST",),
86
- ),
87
- "List": Endpoint[metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest, metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse](
88
- service_name="FilesystemService",
89
- name="List",
90
- function=getattr(service, "List"),
91
- input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest,
92
- output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse,
93
- allowed_methods=("POST",),
94
- ),
95
- "Try": Endpoint[metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryRequest, metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse](
96
- service_name="FilesystemService",
97
- name="Try",
98
- function=getattr(service, "Try"),
99
- input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryRequest,
100
- output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse,
101
- allowed_methods=("POST",),
102
- ),
103
- "Match": Endpoint[metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest, metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse](
104
- service_name="FilesystemService",
105
- name="Match",
106
- function=getattr(service, "Match"),
107
- input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
108
- output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
109
- allowed_methods=("POST",),
110
- ),
111
- }
19
+ async def get(self, request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse:
20
+ raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
21
+
22
+ async def list(self, request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse:
23
+ raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
24
+
25
+ async def match(self, request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse:
26
+ raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
27
+
28
+
29
+ class FilesystemServiceASGIApplication(ConnecpyASGIApplication):
30
+ def __init__(self, service: FilesystemService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None):
31
+ super().__init__(
32
+ endpoints={
33
+ "/metalstack.api.v2.FilesystemService/Get": Endpoint.unary(
34
+ method=MethodInfo(
35
+ name="Get",
36
+ service_name="metalstack.api.v2.FilesystemService",
37
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest,
38
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse,
39
+ idempotency_level=IdempotencyLevel.UNKNOWN,
40
+ ),
41
+ function=service.get,
42
+ ),
43
+ "/metalstack.api.v2.FilesystemService/List": Endpoint.unary(
44
+ method=MethodInfo(
45
+ name="List",
46
+ service_name="metalstack.api.v2.FilesystemService",
47
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest,
48
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse,
49
+ idempotency_level=IdempotencyLevel.UNKNOWN,
50
+ ),
51
+ function=service.list,
52
+ ),
53
+ "/metalstack.api.v2.FilesystemService/Match": Endpoint.unary(
54
+ method=MethodInfo(
55
+ name="Match",
56
+ service_name="metalstack.api.v2.FilesystemService",
57
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
58
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
59
+ idempotency_level=IdempotencyLevel.UNKNOWN,
60
+ ),
61
+ function=service.match,
62
+ ),
63
+ },
64
+ interceptors=interceptors,
65
+ read_max_bytes=read_max_bytes,
66
+ )
112
67
 
113
- def serviceName(self):
114
- return "metalstack.api.v2.FilesystemService"
68
+ @property
69
+ def path(self):
70
+ """Returns the URL path to mount the application to when serving multiple applications."""
71
+ return "/metalstack.api.v2.FilesystemService"
115
72
 
116
73
 
117
74
  class FilesystemServiceClient(ConnecpyClient):
118
- def Get(
75
+ async def get(
119
76
  self,
120
77
  request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest,
121
78
  *,
122
- ctx: Optional[ClientContext] = None,
123
- server_path_prefix: str = "",
124
- **kwargs,
79
+ headers: Headers | Mapping[str, str] | None = None,
80
+ timeout_ms: int | None = None,
125
81
  ) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse:
126
- method = "POST"
127
- return self._make_request(
128
- url=f"{server_path_prefix}/metalstack.api.v2.FilesystemService/Get",
129
- ctx=ctx,
82
+ return await self.execute_unary(
130
83
  request=request,
131
- response_class=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse,
132
- method=method,
133
- **kwargs,
84
+ method=MethodInfo(
85
+ name="Get",
86
+ service_name="metalstack.api.v2.FilesystemService",
87
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest,
88
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse,
89
+ idempotency_level=IdempotencyLevel.UNKNOWN,
90
+ ),
91
+ headers=headers,
92
+ timeout_ms=timeout_ms,
134
93
  )
135
94
 
136
- def List(
95
+ async def list(
137
96
  self,
138
97
  request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest,
139
98
  *,
140
- ctx: Optional[ClientContext] = None,
141
- server_path_prefix: str = "",
142
- **kwargs,
99
+ headers: Headers | Mapping[str, str] | None = None,
100
+ timeout_ms: int | None = None,
143
101
  ) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse:
144
- method = "POST"
145
- return self._make_request(
146
- url=f"{server_path_prefix}/metalstack.api.v2.FilesystemService/List",
147
- ctx=ctx,
148
- request=request,
149
- response_class=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse,
150
- method=method,
151
- **kwargs,
152
- )
153
-
154
- def Try(
155
- self,
156
- request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryRequest,
157
- *,
158
- ctx: Optional[ClientContext] = None,
159
- server_path_prefix: str = "",
160
- **kwargs,
161
- ) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse:
162
- method = "POST"
163
- return self._make_request(
164
- url=f"{server_path_prefix}/metalstack.api.v2.FilesystemService/Try",
165
- ctx=ctx,
102
+ return await self.execute_unary(
166
103
  request=request,
167
- response_class=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse,
168
- method=method,
169
- **kwargs,
104
+ method=MethodInfo(
105
+ name="List",
106
+ service_name="metalstack.api.v2.FilesystemService",
107
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest,
108
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse,
109
+ idempotency_level=IdempotencyLevel.UNKNOWN,
110
+ ),
111
+ headers=headers,
112
+ timeout_ms=timeout_ms,
170
113
  )
171
114
 
172
- def Match(
115
+ async def match(
173
116
  self,
174
117
  request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
175
118
  *,
176
- ctx: Optional[ClientContext] = None,
177
- server_path_prefix: str = "",
178
- **kwargs,
119
+ headers: Headers | Mapping[str, str] | None = None,
120
+ timeout_ms: int | None = None,
179
121
  ) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse:
180
- method = "POST"
181
- return self._make_request(
182
- url=f"{server_path_prefix}/metalstack.api.v2.FilesystemService/Match",
183
- ctx=ctx,
122
+ return await self.execute_unary(
184
123
  request=request,
185
- response_class=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
186
- method=method,
187
- **kwargs,
124
+ method=MethodInfo(
125
+ name="Match",
126
+ service_name="metalstack.api.v2.FilesystemService",
127
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
128
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
129
+ idempotency_level=IdempotencyLevel.UNKNOWN,
130
+ ),
131
+ headers=headers,
132
+ timeout_ms=timeout_ms,
133
+ )
134
+
135
+
136
+ class FilesystemServiceSync(Protocol):
137
+ def get(self, request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse:
138
+ raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
139
+ def list(self, request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse:
140
+ raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
141
+ def match(self, request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse:
142
+ raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
143
+
144
+
145
+ class FilesystemServiceWSGIApplication(ConnecpyWSGIApplication):
146
+ def __init__(self, service: FilesystemServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None):
147
+ super().__init__(
148
+ endpoints={
149
+ "/metalstack.api.v2.FilesystemService/Get": EndpointSync.unary(
150
+ method=MethodInfo(
151
+ name="Get",
152
+ service_name="metalstack.api.v2.FilesystemService",
153
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest,
154
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse,
155
+ idempotency_level=IdempotencyLevel.UNKNOWN,
156
+ ),
157
+ function=service.get,
158
+ ),
159
+ "/metalstack.api.v2.FilesystemService/List": EndpointSync.unary(
160
+ method=MethodInfo(
161
+ name="List",
162
+ service_name="metalstack.api.v2.FilesystemService",
163
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest,
164
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse,
165
+ idempotency_level=IdempotencyLevel.UNKNOWN,
166
+ ),
167
+ function=service.list,
168
+ ),
169
+ "/metalstack.api.v2.FilesystemService/Match": EndpointSync.unary(
170
+ method=MethodInfo(
171
+ name="Match",
172
+ service_name="metalstack.api.v2.FilesystemService",
173
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
174
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
175
+ idempotency_level=IdempotencyLevel.UNKNOWN,
176
+ ),
177
+ function=service.match,
178
+ ),
179
+ },
180
+ interceptors=interceptors,
181
+ read_max_bytes=read_max_bytes,
188
182
  )
189
183
 
184
+ @property
185
+ def path(self):
186
+ """Returns the URL path to mount the application to when serving multiple applications."""
187
+ return "/metalstack.api.v2.FilesystemService"
190
188
 
191
- class AsyncFilesystemServiceClient(AsyncConnecpyClient):
192
- async def Get(
189
+
190
+ class FilesystemServiceClientSync(ConnecpyClientSync):
191
+ def get(
193
192
  self,
194
193
  request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest,
195
194
  *,
196
- ctx: Optional[ClientContext] = None,
197
- server_path_prefix: str = "",
198
- session: Union[httpx.AsyncClient, None] = None,
199
- **kwargs,
195
+ headers: Headers | Mapping[str, str] | None = None,
196
+ timeout_ms: int | None = None,
200
197
  ) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse:
201
- method = "POST"
202
- return await self._make_request(
203
- url=f"{server_path_prefix}/metalstack.api.v2.FilesystemService/Get",
204
- ctx=ctx,
198
+ return self.execute_unary(
205
199
  request=request,
206
- response_class=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse,
207
- method=method,
208
- session=session,
209
- **kwargs,
200
+ method=MethodInfo(
201
+ name="Get",
202
+ service_name="metalstack.api.v2.FilesystemService",
203
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetRequest,
204
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceGetResponse,
205
+ idempotency_level=IdempotencyLevel.UNKNOWN,
206
+ ),
207
+ headers=headers,
208
+ timeout_ms=timeout_ms,
210
209
  )
211
210
 
212
- async def List(
211
+ def list(
213
212
  self,
214
213
  request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest,
215
214
  *,
216
- ctx: Optional[ClientContext] = None,
217
- server_path_prefix: str = "",
218
- session: Union[httpx.AsyncClient, None] = None,
219
- **kwargs,
215
+ headers: Headers | Mapping[str, str] | None = None,
216
+ timeout_ms: int | None = None,
220
217
  ) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse:
221
- method = "POST"
222
- return await self._make_request(
223
- url=f"{server_path_prefix}/metalstack.api.v2.FilesystemService/List",
224
- ctx=ctx,
225
- request=request,
226
- response_class=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse,
227
- method=method,
228
- session=session,
229
- **kwargs,
230
- )
231
-
232
- async def Try(
233
- self,
234
- request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryRequest,
235
- *,
236
- ctx: Optional[ClientContext] = None,
237
- server_path_prefix: str = "",
238
- session: Union[httpx.AsyncClient, None] = None,
239
- **kwargs,
240
- ) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse:
241
- method = "POST"
242
- return await self._make_request(
243
- url=f"{server_path_prefix}/metalstack.api.v2.FilesystemService/Try",
244
- ctx=ctx,
218
+ return self.execute_unary(
245
219
  request=request,
246
- response_class=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceTryResponse,
247
- method=method,
248
- session=session,
249
- **kwargs,
220
+ method=MethodInfo(
221
+ name="List",
222
+ service_name="metalstack.api.v2.FilesystemService",
223
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListRequest,
224
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceListResponse,
225
+ idempotency_level=IdempotencyLevel.UNKNOWN,
226
+ ),
227
+ headers=headers,
228
+ timeout_ms=timeout_ms,
250
229
  )
251
230
 
252
- async def Match(
231
+ def match(
253
232
  self,
254
233
  request: metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
255
234
  *,
256
- ctx: Optional[ClientContext] = None,
257
- server_path_prefix: str = "",
258
- session: Union[httpx.AsyncClient, None] = None,
259
- **kwargs,
235
+ headers: Headers | Mapping[str, str] | None = None,
236
+ timeout_ms: int | None = None,
260
237
  ) -> metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse:
261
- method = "POST"
262
- return await self._make_request(
263
- url=f"{server_path_prefix}/metalstack.api.v2.FilesystemService/Match",
264
- ctx=ctx,
238
+ return self.execute_unary(
265
239
  request=request,
266
- response_class=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
267
- method=method,
268
- session=session,
269
- **kwargs,
240
+ method=MethodInfo(
241
+ name="Match",
242
+ service_name="metalstack.api.v2.FilesystemService",
243
+ input=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
244
+ output=metalstack_dot_api_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
245
+ idempotency_level=IdempotencyLevel.UNKNOWN,
246
+ ),
247
+ headers=headers,
248
+ timeout_ms=timeout_ms,
270
249
  )
@@ -26,7 +26,7 @@ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
26
  from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
27
27
 
28
28
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"metalstack/api/v2/filesystem.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\"9\n\x1b\x46ilesystemServiceGetRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"F\n\x1c\x46ilesystemServiceListRequest\x12\x1f\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x02id\x88\x01\x01\x42\x05\n\x03_id\"p\n\x1c\x46ilesystemServiceGetResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"s\n\x1d\x46ilesystemServiceListResponse\x12R\n\x12\x66ilesystem_layouts\x18\x01 \x03(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x11\x66ilesystemLayouts\"_\n\x1b\x46ilesystemServiceTryRequest\x12\x1e\n\x04size\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x04size\x12 \n\x05image\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05image\"|\n\x1d\x46ilesystemServiceMatchRequest\x12\"\n\x07machine\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07machine\x12\x37\n\x11\x66ilesystem_layout\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x10\x66ilesystemLayout\"p\n\x1c\x46ilesystemServiceTryResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"r\n\x1e\x46ilesystemServiceMatchResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"\xcb\x04\n\x10\x46ilesystemLayout\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\x12+\n\x04meta\x18\x02 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12#\n\x04name\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12?\n\x0b\x66ilesystems\x18\x05 \x03(\x0b\x32\x1d.metalstack.api.v2.FilesystemR\x0b\x66ilesystems\x12-\n\x05\x64isks\x18\x06 \x03(\x0b\x32\x17.metalstack.api.v2.DiskR\x05\x64isks\x12+\n\x04raid\x18\x07 \x03(\x0b\x32\x17.metalstack.api.v2.RaidR\x04raid\x12\x43\n\rvolume_groups\x18\x08 \x03(\x0b\x32\x1e.metalstack.api.v2.VolumeGroupR\x0cvolumeGroups\x12I\n\x0flogical_volumes\x18\t \x03(\x0b\x32 .metalstack.api.v2.LogicalVolumeR\x0elogicalVolumes\x12P\n\x0b\x63onstraints\x18\n \x01(\x0b\x32..metalstack.api.v2.FilesystemLayoutConstraintsR\x0b\x63onstraintsB\x07\n\x05_nameB\x0e\n\x0c_description\"\xc2\x01\n\x1b\x46ilesystemLayoutConstraints\x12\x14\n\x05sizes\x18\x01 \x03(\tR\x05sizes\x12R\n\x06images\x18\x02 \x03(\x0b\x32:.metalstack.api.v2.FilesystemLayoutConstraints.ImagesEntryR\x06images\x1a\x39\n\x0bImagesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xb6\x03\n\nFilesystem\x12\"\n\x06\x64\x65vice\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x06\x64\x65vice\x12>\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x19.metalstack.api.v2.FormatB\x0b\xbaH\x08\x82\x01\x02\x10\x01\xc8\x01\x01R\x06\x66ormat\x12#\n\x04name\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12#\n\x04path\x18\x05 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80 H\x02R\x04path\x88\x01\x01\x12%\n\x05label\x18\x06 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x03R\x05label\x88\x01\x01\x12\x38\n\rmount_options\x18\x07 \x03(\tB\x13\xbaH\x10\x92\x01\r\x10 \x18\x01\"\x07r\x05\x10\x01\x18\x80\x01R\x0cmountOptions\x12:\n\x0e\x63reate_options\x18\x08 \x03(\tB\x13\xbaH\x10\x92\x01\r\x10 \x18\x01\"\x07r\x05\x10\x01\x18\x80\x01R\rcreateOptionsB\x07\n\x05_nameB\x0e\n\x0c_descriptionB\x07\n\x05_pathB\x08\n\x06_label\"l\n\x04\x44isk\x12\"\n\x06\x64\x65vice\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x06\x64\x65vice\x12@\n\npartitions\x18\x02 \x03(\x0b\x32 .metalstack.api.v2.DiskPartitionR\npartitions\"\xd4\x01\n\x04Raid\x12\x1d\n\narray_name\x18\x01 \x01(\tR\tarrayName\x12\x18\n\x07\x64\x65vices\x18\x02 \x03(\tR\x07\x64\x65vices\x12?\n\x05level\x18\x03 \x01(\x0e\x32\x1c.metalstack.api.v2.RaidLevelB\x0b\xbaH\x08\x82\x01\x02\x10\x01\xc8\x01\x01R\x05level\x12:\n\x0e\x63reate_options\x18\x04 \x03(\tB\x13\xbaH\x10\x92\x01\r\x10 \x18\x01\"\x07r\x05\x10\x01\x18\x80\x01R\rcreateOptions\x12\x16\n\x06spares\x18\x05 \x01(\x05R\x06spares\"\xb6\x01\n\rDiskPartition\x12\x16\n\x06number\x18\x01 \x01(\rR\x06number\x12\x19\n\x05label\x18\x02 \x01(\tH\x00R\x05label\x88\x01\x01\x12\x12\n\x04size\x18\x03 \x01(\x04R\x04size\x12G\n\x08gpt_type\x18\x04 \x01(\x0e\x32\x1a.metalstack.api.v2.GPTTypeB\x0b\xbaH\x08\x82\x01\x02\x10\x01\xc8\x01\x01H\x01R\x07gptType\x88\x01\x01\x42\x08\n\x06_labelB\x0b\n\t_gpt_type\"[\n\x0bVolumeGroup\x12\x1e\n\x04name\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x04name\x12\x18\n\x07\x64\x65vices\x18\x02 \x03(\tR\x07\x64\x65vices\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\"\xb3\x01\n\rLogicalVolume\x12\x1e\n\x04name\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x04name\x12-\n\x0cvolume_group\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x0bvolumeGroup\x12\x12\n\x04size\x18\x03 \x01(\x04R\x04size\x12?\n\x08lvm_type\x18\x04 \x01(\x0e\x32\x1a.metalstack.api.v2.LVMTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07lvmType*\x86\x01\n\x07LVMType\x12\x18\n\x14LVM_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x0fLVM_TYPE_LINEAR\x10\x01\x1a\n\x82\xb2\x19\x06linear\x12!\n\x10LVM_TYPE_STRIPED\x10\x02\x1a\x0b\x82\xb2\x19\x07striped\x12\x1d\n\x0eLVM_TYPE_RAID1\x10\x03\x1a\t\x82\xb2\x19\x05raid1*\xc4\x01\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\x19\n\x0b\x46ORMAT_VFAT\x10\x01\x1a\x08\x82\xb2\x19\x04vfat\x12\x19\n\x0b\x46ORMAT_EXT3\x10\x02\x1a\x08\x82\xb2\x19\x04\x65xt3\x12\x19\n\x0b\x46ORMAT_EXT4\x10\x03\x1a\x08\x82\xb2\x19\x04\x65xt4\x12\x19\n\x0b\x46ORMAT_SWAP\x10\x04\x1a\x08\x82\xb2\x19\x04swap\x12\x1b\n\x0c\x46ORMAT_TMPFS\x10\x05\x1a\t\x82\xb2\x19\x05tmpfs\x12\x19\n\x0b\x46ORMAT_NONE\x10\x06\x1a\x08\x82\xb2\x19\x04none*\xa3\x01\n\x07GPTType\x12\x18\n\x14GPT_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\rGPT_TYPE_BOOT\x10\x01\x1a\x08\x82\xb2\x19\x04\x65\x66\x30\x30\x12\x1c\n\x0eGPT_TYPE_LINUX\x10\x02\x1a\x08\x82\xb2\x19\x04\x38\x33\x30\x30\x12!\n\x13GPT_TYPE_LINUX_RAID\x10\x03\x1a\x08\x82\xb2\x19\x04\x66\x64\x30\x30\x12 \n\x12GPT_TYPE_LINUX_LVM\x10\x04\x1a\x08\x82\xb2\x19\x04\x38\x65\x30\x30*K\n\tRaidLevel\x12\x1a\n\x16RAID_LEVEL_UNSPECIFIED\x10\x00\x12\x10\n\x0cRAID_LEVEL_0\x10\x01\x12\x10\n\x0cRAID_LEVEL_1\x10\x02\x32\xe4\x03\n\x11\x46ilesystemService\x12p\n\x03Get\x12..metalstack.api.v2.FilesystemServiceGetRequest\x1a/.metalstack.api.v2.FilesystemServiceGetResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x12s\n\x04List\x12/.metalstack.api.v2.FilesystemServiceListRequest\x1a\x30.metalstack.api.v2.FilesystemServiceListResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x12p\n\x03Try\x12..metalstack.api.v2.FilesystemServiceTryRequest\x1a/.metalstack.api.v2.FilesystemServiceTryResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x12v\n\x05Match\x12\x30.metalstack.api.v2.FilesystemServiceMatchRequest\x1a\x31.metalstack.api.v2.FilesystemServiceMatchResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x42\xc5\x01\n\x15\x63om.metalstack.api.v2B\x0f\x46ilesystemProtoP\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
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"metalstack/api/v2/filesystem.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\"9\n\x1b\x46ilesystemServiceGetRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"F\n\x1c\x46ilesystemServiceListRequest\x12\x1f\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x02id\x88\x01\x01\x42\x05\n\x03_id\"p\n\x1c\x46ilesystemServiceGetResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"s\n\x1d\x46ilesystemServiceListResponse\x12R\n\x12\x66ilesystem_layouts\x18\x01 \x03(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x11\x66ilesystemLayouts\"\xdb\x01\n\x1d\x46ilesystemServiceMatchRequest\x12L\n\x0esize_and_image\x18\x01 \x01(\x0b\x32$.metalstack.api.v2.MatchImageAndSizeH\x00R\x0csizeAndImage\x12\x63\n\x1cmachine_and_filesystemlayout\x18\x02 \x01(\x0b\x32\x1f.metalstack.api.v2.MatchMachineH\x00R\x1amachineAndFilesystemlayoutB\x07\n\x05match\"U\n\x11MatchImageAndSize\x12\x1e\n\x04size\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x04size\x12 \n\x05image\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x05image\"k\n\x0cMatchMachine\x12\"\n\x07machine\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07machine\x12\x37\n\x11\x66ilesystem_layout\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x10\x66ilesystemLayout\"p\n\x1c\x46ilesystemServiceTryResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"r\n\x1e\x46ilesystemServiceMatchResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"\xcb\x04\n\x10\x46ilesystemLayout\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\x12+\n\x04meta\x18\x02 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12#\n\x04name\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12?\n\x0b\x66ilesystems\x18\x05 \x03(\x0b\x32\x1d.metalstack.api.v2.FilesystemR\x0b\x66ilesystems\x12-\n\x05\x64isks\x18\x06 \x03(\x0b\x32\x17.metalstack.api.v2.DiskR\x05\x64isks\x12+\n\x04raid\x18\x07 \x03(\x0b\x32\x17.metalstack.api.v2.RaidR\x04raid\x12\x43\n\rvolume_groups\x18\x08 \x03(\x0b\x32\x1e.metalstack.api.v2.VolumeGroupR\x0cvolumeGroups\x12I\n\x0flogical_volumes\x18\t \x03(\x0b\x32 .metalstack.api.v2.LogicalVolumeR\x0elogicalVolumes\x12P\n\x0b\x63onstraints\x18\n \x01(\x0b\x32..metalstack.api.v2.FilesystemLayoutConstraintsR\x0b\x63onstraintsB\x07\n\x05_nameB\x0e\n\x0c_description\"\xc2\x01\n\x1b\x46ilesystemLayoutConstraints\x12\x14\n\x05sizes\x18\x01 \x03(\tR\x05sizes\x12R\n\x06images\x18\x02 \x03(\x0b\x32:.metalstack.api.v2.FilesystemLayoutConstraints.ImagesEntryR\x06images\x1a\x39\n\x0bImagesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xb6\x03\n\nFilesystem\x12\"\n\x06\x64\x65vice\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x06\x64\x65vice\x12>\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x19.metalstack.api.v2.FormatB\x0b\xbaH\x08\x82\x01\x02\x10\x01\xc8\x01\x01R\x06\x66ormat\x12#\n\x04name\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12#\n\x04path\x18\x05 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80 H\x02R\x04path\x88\x01\x01\x12%\n\x05label\x18\x06 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x03R\x05label\x88\x01\x01\x12\x38\n\rmount_options\x18\x07 \x03(\tB\x13\xbaH\x10\x92\x01\r\x10 \x18\x01\"\x07r\x05\x10\x01\x18\x80\x01R\x0cmountOptions\x12:\n\x0e\x63reate_options\x18\x08 \x03(\tB\x13\xbaH\x10\x92\x01\r\x10 \x18\x01\"\x07r\x05\x10\x01\x18\x80\x01R\rcreateOptionsB\x07\n\x05_nameB\x0e\n\x0c_descriptionB\x07\n\x05_pathB\x08\n\x06_label\"l\n\x04\x44isk\x12\"\n\x06\x64\x65vice\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x06\x64\x65vice\x12@\n\npartitions\x18\x02 \x03(\x0b\x32 .metalstack.api.v2.DiskPartitionR\npartitions\"\xd4\x01\n\x04Raid\x12\x1d\n\narray_name\x18\x01 \x01(\tR\tarrayName\x12\x18\n\x07\x64\x65vices\x18\x02 \x03(\tR\x07\x64\x65vices\x12?\n\x05level\x18\x03 \x01(\x0e\x32\x1c.metalstack.api.v2.RaidLevelB\x0b\xbaH\x08\x82\x01\x02\x10\x01\xc8\x01\x01R\x05level\x12:\n\x0e\x63reate_options\x18\x04 \x03(\tB\x13\xbaH\x10\x92\x01\r\x10 \x18\x01\"\x07r\x05\x10\x01\x18\x80\x01R\rcreateOptions\x12\x16\n\x06spares\x18\x05 \x01(\x05R\x06spares\"\xb6\x01\n\rDiskPartition\x12\x16\n\x06number\x18\x01 \x01(\rR\x06number\x12\x19\n\x05label\x18\x02 \x01(\tH\x00R\x05label\x88\x01\x01\x12\x12\n\x04size\x18\x03 \x01(\x04R\x04size\x12G\n\x08gpt_type\x18\x04 \x01(\x0e\x32\x1a.metalstack.api.v2.GPTTypeB\x0b\xbaH\x08\x82\x01\x02\x10\x01\xc8\x01\x01H\x01R\x07gptType\x88\x01\x01\x42\x08\n\x06_labelB\x0b\n\t_gpt_type\"[\n\x0bVolumeGroup\x12\x1e\n\x04name\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x04name\x12\x18\n\x07\x64\x65vices\x18\x02 \x03(\tR\x07\x64\x65vices\x12\x12\n\x04tags\x18\x03 \x03(\tR\x04tags\"\xb3\x01\n\rLogicalVolume\x12\x1e\n\x04name\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x04name\x12-\n\x0cvolume_group\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x0bvolumeGroup\x12\x12\n\x04size\x18\x03 \x01(\x04R\x04size\x12?\n\x08lvm_type\x18\x04 \x01(\x0e\x32\x1a.metalstack.api.v2.LVMTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07lvmType*\x86\x01\n\x07LVMType\x12\x18\n\x14LVM_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x0fLVM_TYPE_LINEAR\x10\x01\x1a\n\x82\xb2\x19\x06linear\x12!\n\x10LVM_TYPE_STRIPED\x10\x02\x1a\x0b\x82\xb2\x19\x07striped\x12\x1d\n\x0eLVM_TYPE_RAID1\x10\x03\x1a\t\x82\xb2\x19\x05raid1*\xc4\x01\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\x19\n\x0b\x46ORMAT_VFAT\x10\x01\x1a\x08\x82\xb2\x19\x04vfat\x12\x19\n\x0b\x46ORMAT_EXT3\x10\x02\x1a\x08\x82\xb2\x19\x04\x65xt3\x12\x19\n\x0b\x46ORMAT_EXT4\x10\x03\x1a\x08\x82\xb2\x19\x04\x65xt4\x12\x19\n\x0b\x46ORMAT_SWAP\x10\x04\x1a\x08\x82\xb2\x19\x04swap\x12\x1b\n\x0c\x46ORMAT_TMPFS\x10\x05\x1a\t\x82\xb2\x19\x05tmpfs\x12\x19\n\x0b\x46ORMAT_NONE\x10\x06\x1a\x08\x82\xb2\x19\x04none*\xa3\x01\n\x07GPTType\x12\x18\n\x14GPT_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\rGPT_TYPE_BOOT\x10\x01\x1a\x08\x82\xb2\x19\x04\x65\x66\x30\x30\x12\x1c\n\x0eGPT_TYPE_LINUX\x10\x02\x1a\x08\x82\xb2\x19\x04\x38\x33\x30\x30\x12!\n\x13GPT_TYPE_LINUX_RAID\x10\x03\x1a\x08\x82\xb2\x19\x04\x66\x64\x30\x30\x12 \n\x12GPT_TYPE_LINUX_LVM\x10\x04\x1a\x08\x82\xb2\x19\x04\x38\x65\x30\x30*K\n\tRaidLevel\x12\x1a\n\x16RAID_LEVEL_UNSPECIFIED\x10\x00\x12\x10\n\x0cRAID_LEVEL_0\x10\x01\x12\x10\n\x0cRAID_LEVEL_1\x10\x02\x32\xf2\x02\n\x11\x46ilesystemService\x12p\n\x03Get\x12..metalstack.api.v2.FilesystemServiceGetRequest\x1a/.metalstack.api.v2.FilesystemServiceGetResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x12s\n\x04List\x12/.metalstack.api.v2.FilesystemServiceListRequest\x1a\x30.metalstack.api.v2.FilesystemServiceListResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x12v\n\x05Match\x12\x30.metalstack.api.v2.FilesystemServiceMatchRequest\x1a\x31.metalstack.api.v2.FilesystemServiceMatchResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x42\xc5\x01\n\x15\x63om.metalstack.api.v2B\x0f\x46ilesystemProtoP\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')
30
30
 
31
31
  _globals = globals()
32
32
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -64,14 +64,14 @@ if not _descriptor._USE_C_DESCRIPTORS:
64
64
  _globals['_FILESYSTEMSERVICEGETREQUEST'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
65
65
  _globals['_FILESYSTEMSERVICELISTREQUEST'].fields_by_name['id']._loaded_options = None
66
66
  _globals['_FILESYSTEMSERVICELISTREQUEST'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
67
- _globals['_FILESYSTEMSERVICETRYREQUEST'].fields_by_name['size']._loaded_options = None
68
- _globals['_FILESYSTEMSERVICETRYREQUEST'].fields_by_name['size']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
69
- _globals['_FILESYSTEMSERVICETRYREQUEST'].fields_by_name['image']._loaded_options = None
70
- _globals['_FILESYSTEMSERVICETRYREQUEST'].fields_by_name['image']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
71
- _globals['_FILESYSTEMSERVICEMATCHREQUEST'].fields_by_name['machine']._loaded_options = None
72
- _globals['_FILESYSTEMSERVICEMATCHREQUEST'].fields_by_name['machine']._serialized_options = b'\272H\005r\003\260\001\001'
73
- _globals['_FILESYSTEMSERVICEMATCHREQUEST'].fields_by_name['filesystem_layout']._loaded_options = None
74
- _globals['_FILESYSTEMSERVICEMATCHREQUEST'].fields_by_name['filesystem_layout']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
67
+ _globals['_MATCHIMAGEANDSIZE'].fields_by_name['size']._loaded_options = None
68
+ _globals['_MATCHIMAGEANDSIZE'].fields_by_name['size']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
69
+ _globals['_MATCHIMAGEANDSIZE'].fields_by_name['image']._loaded_options = None
70
+ _globals['_MATCHIMAGEANDSIZE'].fields_by_name['image']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
71
+ _globals['_MATCHMACHINE'].fields_by_name['machine']._loaded_options = None
72
+ _globals['_MATCHMACHINE'].fields_by_name['machine']._serialized_options = b'\272H\005r\003\260\001\001'
73
+ _globals['_MATCHMACHINE'].fields_by_name['filesystem_layout']._loaded_options = None
74
+ _globals['_MATCHMACHINE'].fields_by_name['filesystem_layout']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
75
75
  _globals['_FILESYSTEMLAYOUT'].fields_by_name['id']._loaded_options = None
76
76
  _globals['_FILESYSTEMLAYOUT'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
77
77
  _globals['_FILESYSTEMLAYOUT'].fields_by_name['name']._loaded_options = None
@@ -116,18 +116,16 @@ if not _descriptor._USE_C_DESCRIPTORS:
116
116
  _globals['_FILESYSTEMSERVICE'].methods_by_name['Get']._serialized_options = b'\330\363\030\003\340\363\030\002'
117
117
  _globals['_FILESYSTEMSERVICE'].methods_by_name['List']._loaded_options = None
118
118
  _globals['_FILESYSTEMSERVICE'].methods_by_name['List']._serialized_options = b'\330\363\030\003\340\363\030\002'
119
- _globals['_FILESYSTEMSERVICE'].methods_by_name['Try']._loaded_options = None
120
- _globals['_FILESYSTEMSERVICE'].methods_by_name['Try']._serialized_options = b'\330\363\030\003\340\363\030\002'
121
119
  _globals['_FILESYSTEMSERVICE'].methods_by_name['Match']._loaded_options = None
122
120
  _globals['_FILESYSTEMSERVICE'].methods_by_name['Match']._serialized_options = b'\330\363\030\003\340\363\030\002'
123
- _globals['_LVMTYPE']._serialized_start=2947
124
- _globals['_LVMTYPE']._serialized_end=3081
125
- _globals['_FORMAT']._serialized_start=3084
126
- _globals['_FORMAT']._serialized_end=3280
127
- _globals['_GPTTYPE']._serialized_start=3283
128
- _globals['_GPTTYPE']._serialized_end=3446
129
- _globals['_RAIDLEVEL']._serialized_start=3448
130
- _globals['_RAIDLEVEL']._serialized_end=3523
121
+ _globals['_LVMTYPE']._serialized_start=3142
122
+ _globals['_LVMTYPE']._serialized_end=3276
123
+ _globals['_FORMAT']._serialized_start=3279
124
+ _globals['_FORMAT']._serialized_end=3475
125
+ _globals['_GPTTYPE']._serialized_start=3478
126
+ _globals['_GPTTYPE']._serialized_end=3641
127
+ _globals['_RAIDLEVEL']._serialized_start=3643
128
+ _globals['_RAIDLEVEL']._serialized_end=3718
131
129
  _globals['_FILESYSTEMSERVICEGETREQUEST']._serialized_start=118
132
130
  _globals['_FILESYSTEMSERVICEGETREQUEST']._serialized_end=175
133
131
  _globals['_FILESYSTEMSERVICELISTREQUEST']._serialized_start=177
@@ -136,32 +134,34 @@ if not _descriptor._USE_C_DESCRIPTORS:
136
134
  _globals['_FILESYSTEMSERVICEGETRESPONSE']._serialized_end=361
137
135
  _globals['_FILESYSTEMSERVICELISTRESPONSE']._serialized_start=363
138
136
  _globals['_FILESYSTEMSERVICELISTRESPONSE']._serialized_end=478
139
- _globals['_FILESYSTEMSERVICETRYREQUEST']._serialized_start=480
140
- _globals['_FILESYSTEMSERVICETRYREQUEST']._serialized_end=575
141
- _globals['_FILESYSTEMSERVICEMATCHREQUEST']._serialized_start=577
142
- _globals['_FILESYSTEMSERVICEMATCHREQUEST']._serialized_end=701
143
- _globals['_FILESYSTEMSERVICETRYRESPONSE']._serialized_start=703
144
- _globals['_FILESYSTEMSERVICETRYRESPONSE']._serialized_end=815
145
- _globals['_FILESYSTEMSERVICEMATCHRESPONSE']._serialized_start=817
146
- _globals['_FILESYSTEMSERVICEMATCHRESPONSE']._serialized_end=931
147
- _globals['_FILESYSTEMLAYOUT']._serialized_start=934
148
- _globals['_FILESYSTEMLAYOUT']._serialized_end=1521
149
- _globals['_FILESYSTEMLAYOUTCONSTRAINTS']._serialized_start=1524
150
- _globals['_FILESYSTEMLAYOUTCONSTRAINTS']._serialized_end=1718
151
- _globals['_FILESYSTEMLAYOUTCONSTRAINTS_IMAGESENTRY']._serialized_start=1661
152
- _globals['_FILESYSTEMLAYOUTCONSTRAINTS_IMAGESENTRY']._serialized_end=1718
153
- _globals['_FILESYSTEM']._serialized_start=1721
154
- _globals['_FILESYSTEM']._serialized_end=2159
155
- _globals['_DISK']._serialized_start=2161
156
- _globals['_DISK']._serialized_end=2269
157
- _globals['_RAID']._serialized_start=2272
158
- _globals['_RAID']._serialized_end=2484
159
- _globals['_DISKPARTITION']._serialized_start=2487
160
- _globals['_DISKPARTITION']._serialized_end=2669
161
- _globals['_VOLUMEGROUP']._serialized_start=2671
162
- _globals['_VOLUMEGROUP']._serialized_end=2762
163
- _globals['_LOGICALVOLUME']._serialized_start=2765
164
- _globals['_LOGICALVOLUME']._serialized_end=2944
165
- _globals['_FILESYSTEMSERVICE']._serialized_start=3526
166
- _globals['_FILESYSTEMSERVICE']._serialized_end=4010
137
+ _globals['_FILESYSTEMSERVICEMATCHREQUEST']._serialized_start=481
138
+ _globals['_FILESYSTEMSERVICEMATCHREQUEST']._serialized_end=700
139
+ _globals['_MATCHIMAGEANDSIZE']._serialized_start=702
140
+ _globals['_MATCHIMAGEANDSIZE']._serialized_end=787
141
+ _globals['_MATCHMACHINE']._serialized_start=789
142
+ _globals['_MATCHMACHINE']._serialized_end=896
143
+ _globals['_FILESYSTEMSERVICETRYRESPONSE']._serialized_start=898
144
+ _globals['_FILESYSTEMSERVICETRYRESPONSE']._serialized_end=1010
145
+ _globals['_FILESYSTEMSERVICEMATCHRESPONSE']._serialized_start=1012
146
+ _globals['_FILESYSTEMSERVICEMATCHRESPONSE']._serialized_end=1126
147
+ _globals['_FILESYSTEMLAYOUT']._serialized_start=1129
148
+ _globals['_FILESYSTEMLAYOUT']._serialized_end=1716
149
+ _globals['_FILESYSTEMLAYOUTCONSTRAINTS']._serialized_start=1719
150
+ _globals['_FILESYSTEMLAYOUTCONSTRAINTS']._serialized_end=1913
151
+ _globals['_FILESYSTEMLAYOUTCONSTRAINTS_IMAGESENTRY']._serialized_start=1856
152
+ _globals['_FILESYSTEMLAYOUTCONSTRAINTS_IMAGESENTRY']._serialized_end=1913
153
+ _globals['_FILESYSTEM']._serialized_start=1916
154
+ _globals['_FILESYSTEM']._serialized_end=2354
155
+ _globals['_DISK']._serialized_start=2356
156
+ _globals['_DISK']._serialized_end=2464
157
+ _globals['_RAID']._serialized_start=2467
158
+ _globals['_RAID']._serialized_end=2679
159
+ _globals['_DISKPARTITION']._serialized_start=2682
160
+ _globals['_DISKPARTITION']._serialized_end=2864
161
+ _globals['_VOLUMEGROUP']._serialized_start=2866
162
+ _globals['_VOLUMEGROUP']._serialized_end=2957
163
+ _globals['_LOGICALVOLUME']._serialized_start=2960
164
+ _globals['_LOGICALVOLUME']._serialized_end=3139
165
+ _globals['_FILESYSTEMSERVICE']._serialized_start=3721
166
+ _globals['_FILESYSTEMSERVICE']._serialized_end=4091
167
167
  # @@protoc_insertion_point(module_scope)