metal-stack-api 0.0.62__tar.gz → 0.1.1__tar.gz
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.
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/PKG-INFO +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metal_stack_api.egg-info/PKG-INFO +3 -3
- metal_stack_api-0.1.1/metal_stack_api.egg-info/requires.txt +2 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/audit_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/audit_pb2.py +7 -7
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/component_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/component_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/filesystem_connect.py +78 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/filesystem_pb2.py +26 -6
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/filesystem_pb2.pyi +30 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/image_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/image_pb2.py +6 -6
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/ip_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/ip_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/machine_connect.py +78 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/machine_pb2.py +22 -10
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/machine_pb2.pyi +16 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/network_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/network_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/partition_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/partition_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/project_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/project_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/size_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/size_imageconstraint_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/size_imageconstraint_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/size_pb2.py +8 -8
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/size_reservation_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/size_reservation_pb2.py +18 -18
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/switch_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/switch_pb2.py +9 -9
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/task_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/task_pb2.py +9 -9
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/tenant_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/tenant_pb2.py +7 -7
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/token_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/token_pb2.py +8 -8
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/vpn_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/vpn_pb2.py +7 -7
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/audit_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/audit_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/common_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/component_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/filesystem_connect.py +11 -65
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/filesystem_pb2.py +32 -50
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/filesystem_pb2.pyi +0 -30
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/health_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/health_pb2.py +9 -9
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/health_pb2.pyi +2 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/image_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/image_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/ip_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/ip_pb2.py +8 -8
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/machine_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/machine_pb2.py +46 -44
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/method_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/method_pb2.py +7 -7
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/network_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/network_pb2.py +8 -8
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/partition_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/partition_pb2.py +21 -19
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/predefined_rules_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/project_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/project_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/size_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/size_imageconstraint_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/size_imageconstraint_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/size_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/size_reservation_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/size_reservation_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/switch_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/tenant_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/tenant_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/token_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/token_pb2.py +11 -11
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/user_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/user_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/version_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/version_pb2.py +3 -3
- metal_stack_api-0.1.1/metalstack/api/v2/vpn_pb2.py +46 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/vpn_pb2.pyi +2 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/bmc_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/bmc_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/boot_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/boot_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/component_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/component_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/event_connect.py +13 -2
- metal_stack_api-0.1.1/metalstack/infra/v2/event_pb2.py +51 -0
- metal_stack_api-0.1.1/metalstack/infra/v2/event_pb2.pyi +32 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/switch_connect.py +13 -2
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/switch_pb2.py +3 -3
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/setup.py +2 -2
- metal_stack_api-0.0.62/metal_stack_api.egg-info/requires.txt +0 -2
- metal_stack_api-0.0.62/metalstack/api/v2/vpn_pb2.py +0 -38
- metal_stack_api-0.0.62/metalstack/infra/v2/event_pb2.py +0 -78
- metal_stack_api-0.0.62/metalstack/infra/v2/event_pb2.pyi +0 -71
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/README.md +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metal_stack_api.egg-info/SOURCES.txt +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metal_stack_api.egg-info/dependency_links.txt +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metal_stack_api.egg-info/top_level.txt +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/__init__.py +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/__init__.py +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/__init__.py +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/audit_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/component_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/image_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/ip_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/network_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/partition_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/project_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/size_imageconstraint_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/size_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/size_reservation_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/task_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/tenant_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/token_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/admin/v2/vpn_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/__init__.py +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/__init__.py +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/audit_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/common_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/component_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/image_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/ip_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/machine_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/method_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/network_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/partition_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/predefined_rules_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/project_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/size_imageconstraint_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/size_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/size_reservation_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/tenant_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/token_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/user_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/api/v2/version_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/client/__init__.py +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/client/client.py +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/__init__.py +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/__init__.py +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/bmc_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/boot_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/component_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/metalstack/infra/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.62 → metal_stack_api-0.1.1}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metal-stack-api
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Python API client for metal-stack api
|
|
5
5
|
Home-page: https://github.com/metal-stack/api
|
|
6
6
|
Author: metal-stack authors
|
|
@@ -13,8 +13,8 @@ Classifier: Programming Language :: Python :: 3
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Requires-Dist:
|
|
17
|
-
Requires-Dist: protovalidate>=1.
|
|
16
|
+
Requires-Dist: connectrpc>=0.10.0
|
|
17
|
+
Requires-Dist: protovalidate>=1.2.0
|
|
18
18
|
Dynamic: author
|
|
19
19
|
Dynamic: classifier
|
|
20
20
|
Dynamic: description
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: metal-stack-api
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Python API client for metal-stack api
|
|
5
5
|
Home-page: https://github.com/metal-stack/api
|
|
6
6
|
Author: metal-stack authors
|
|
@@ -13,8 +13,8 @@ Classifier: Programming Language :: Python :: 3
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
|
-
Requires-Dist:
|
|
17
|
-
Requires-Dist: protovalidate>=1.
|
|
16
|
+
Requires-Dist: connectrpc>=0.10.0
|
|
17
|
+
Requires-Dist: protovalidate>=1.2.0
|
|
18
18
|
Dynamic: author
|
|
19
19
|
Dynamic: classifier
|
|
20
20
|
Dynamic: description
|
|
@@ -7,6 +7,8 @@ from typing import Protocol
|
|
|
7
7
|
|
|
8
8
|
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
9
9
|
from connectrpc.code import Code
|
|
10
|
+
from connectrpc.codec import Codec
|
|
11
|
+
from connectrpc.compression import Compression
|
|
10
12
|
from connectrpc.errors import ConnectError
|
|
11
13
|
from connectrpc.interceptor import Interceptor, InterceptorSync
|
|
12
14
|
from connectrpc.method import IdempotencyLevel, MethodInfo
|
|
@@ -24,7 +26,7 @@ class AuditService(Protocol):
|
|
|
24
26
|
|
|
25
27
|
|
|
26
28
|
class AuditServiceASGIApplication(ConnectASGIApplication[AuditService]):
|
|
27
|
-
def __init__(self, service: AuditService | AsyncGenerator[AuditService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
29
|
+
def __init__(self, service: AuditService | AsyncGenerator[AuditService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
|
28
30
|
super().__init__(
|
|
29
31
|
service=service,
|
|
30
32
|
endpoints=lambda svc: {
|
|
@@ -51,6 +53,8 @@ class AuditServiceASGIApplication(ConnectASGIApplication[AuditService]):
|
|
|
51
53
|
},
|
|
52
54
|
interceptors=interceptors,
|
|
53
55
|
read_max_bytes=read_max_bytes,
|
|
56
|
+
compressions=compressions,
|
|
57
|
+
codecs=codecs,
|
|
54
58
|
)
|
|
55
59
|
|
|
56
60
|
@property
|
|
@@ -101,6 +105,9 @@ class AuditServiceClient(ConnectClient):
|
|
|
101
105
|
)
|
|
102
106
|
|
|
103
107
|
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
104
111
|
class AuditServiceSync(Protocol):
|
|
105
112
|
def get(self, request: metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetResponse:
|
|
106
113
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
@@ -109,7 +116,7 @@ class AuditServiceSync(Protocol):
|
|
|
109
116
|
|
|
110
117
|
|
|
111
118
|
class AuditServiceWSGIApplication(ConnectWSGIApplication):
|
|
112
|
-
def __init__(self, service: AuditServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
119
|
+
def __init__(self, service: AuditServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
|
113
120
|
super().__init__(
|
|
114
121
|
endpoints={
|
|
115
122
|
"/metalstack.admin.v2.AuditService/Get": EndpointSync.unary(
|
|
@@ -135,6 +142,8 @@ class AuditServiceWSGIApplication(ConnectWSGIApplication):
|
|
|
135
142
|
},
|
|
136
143
|
interceptors=interceptors,
|
|
137
144
|
read_max_bytes=read_max_bytes,
|
|
145
|
+
compressions=compressions,
|
|
146
|
+
codecs=codecs,
|
|
138
147
|
)
|
|
139
148
|
|
|
140
149
|
@property
|
|
@@ -183,3 +192,5 @@ class AuditServiceClientSync(ConnectClientSync):
|
|
|
183
192
|
headers=headers,
|
|
184
193
|
timeout_ms=timeout_ms,
|
|
185
194
|
)
|
|
195
|
+
|
|
196
|
+
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/audit.proto
|
|
5
|
-
# Protobuf Python Version: 7.
|
|
5
|
+
# Protobuf Python Version: 7.35.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
7,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
35,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/audit.proto'
|
|
19
19
|
)
|
|
@@ -27,7 +27,7 @@ from metalstack.api.v2 import audit_pb2 as metalstack_dot_api_dot_v2_dot_audit__
|
|
|
27
27
|
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/admin/v2/audit.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1dmetalstack/api/v2/audit.proto\x1a\x1emetalstack/api/v2/common.proto\"N\n\x17\x41uditServiceListRequest\x12\x33\n\x05query\x18\x01 \x01(\x0b\x32\x1d.metalstack.api.v2.AuditQueryR\x05query\"Q\n\x18\x41uditServiceListResponse\x12\x35\n\x06traces\x18\x01 \x03(\x0b\x32\x1d.metalstack.api.v2.AuditTraceR\x06traces\"\x84\x01\n\x16\x41uditServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x42\n\x05phase\x18\x02 \x01(\x0e\x32\x1d.metalstack.api.v2.AuditPhaseB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x05phase\x88\x01\x01\x42\x08\n\x06_phase\"N\n\x17\x41uditServiceGetResponse\x12\x33\n\x05trace\x18\x01 \x01(\x0b\x32\x1d.metalstack.api.v2.AuditTraceR\x05trace2\
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/admin/v2/audit.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1dmetalstack/api/v2/audit.proto\x1a\x1emetalstack/api/v2/common.proto\"N\n\x17\x41uditServiceListRequest\x12\x33\n\x05query\x18\x01 \x01(\x0b\x32\x1d.metalstack.api.v2.AuditQueryR\x05query\"Q\n\x18\x41uditServiceListResponse\x12\x35\n\x06traces\x18\x01 \x03(\x0b\x32\x1d.metalstack.api.v2.AuditTraceR\x06traces\"\x84\x01\n\x16\x41uditServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x42\n\x05phase\x18\x02 \x01(\x0e\x32\x1d.metalstack.api.v2.AuditPhaseB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x05phase\x88\x01\x01\x42\x08\n\x06_phase\"N\n\x17\x41uditServiceGetResponse\x12\x33\n\x05trace\x18\x01 \x01(\x0b\x32\x1d.metalstack.api.v2.AuditTraceR\x05trace2\xed\x01\n\x0c\x41uditService\x12l\n\x03Get\x12+.metalstack.admin.v2.AuditServiceGetRequest\x1a,.metalstack.admin.v2.AuditServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12o\n\x04List\x12,.metalstack.admin.v2.AuditServiceListRequest\x1a-.metalstack.admin.v2.AuditServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x42\xce\x01\n\x17\x63om.metalstack.admin.v2B\nAuditProtoP\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
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -40,9 +40,9 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
40
40
|
_globals['_AUDITSERVICEGETREQUEST'].fields_by_name['phase']._loaded_options = None
|
|
41
41
|
_globals['_AUDITSERVICEGETREQUEST'].fields_by_name['phase']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
42
42
|
_globals['_AUDITSERVICE'].methods_by_name['Get']._loaded_options = None
|
|
43
|
-
_globals['_AUDITSERVICE'].methods_by_name['Get']._serialized_options = b'\322\363\030\002\001\002'
|
|
43
|
+
_globals['_AUDITSERVICE'].methods_by_name['Get']._serialized_options = b'\322\363\030\002\001\002\340\363\030\001'
|
|
44
44
|
_globals['_AUDITSERVICE'].methods_by_name['List']._loaded_options = None
|
|
45
|
-
_globals['_AUDITSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002'
|
|
45
|
+
_globals['_AUDITSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\001'
|
|
46
46
|
_globals['_AUDITSERVICELISTREQUEST']._serialized_start=148
|
|
47
47
|
_globals['_AUDITSERVICELISTREQUEST']._serialized_end=226
|
|
48
48
|
_globals['_AUDITSERVICELISTRESPONSE']._serialized_start=228
|
|
@@ -52,5 +52,5 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
52
52
|
_globals['_AUDITSERVICEGETRESPONSE']._serialized_start=446
|
|
53
53
|
_globals['_AUDITSERVICEGETRESPONSE']._serialized_end=524
|
|
54
54
|
_globals['_AUDITSERVICE']._serialized_start=527
|
|
55
|
-
_globals['_AUDITSERVICE']._serialized_end=
|
|
55
|
+
_globals['_AUDITSERVICE']._serialized_end=764
|
|
56
56
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -7,6 +7,8 @@ from typing import Protocol
|
|
|
7
7
|
|
|
8
8
|
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
9
9
|
from connectrpc.code import Code
|
|
10
|
+
from connectrpc.codec import Codec
|
|
11
|
+
from connectrpc.compression import Compression
|
|
10
12
|
from connectrpc.errors import ConnectError
|
|
11
13
|
from connectrpc.interceptor import Interceptor, InterceptorSync
|
|
12
14
|
from connectrpc.method import IdempotencyLevel, MethodInfo
|
|
@@ -27,7 +29,7 @@ class ComponentService(Protocol):
|
|
|
27
29
|
|
|
28
30
|
|
|
29
31
|
class ComponentServiceASGIApplication(ConnectASGIApplication[ComponentService]):
|
|
30
|
-
def __init__(self, service: ComponentService | AsyncGenerator[ComponentService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
32
|
+
def __init__(self, service: ComponentService | AsyncGenerator[ComponentService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
|
31
33
|
super().__init__(
|
|
32
34
|
service=service,
|
|
33
35
|
endpoints=lambda svc: {
|
|
@@ -64,6 +66,8 @@ class ComponentServiceASGIApplication(ConnectASGIApplication[ComponentService]):
|
|
|
64
66
|
},
|
|
65
67
|
interceptors=interceptors,
|
|
66
68
|
read_max_bytes=read_max_bytes,
|
|
69
|
+
compressions=compressions,
|
|
70
|
+
codecs=codecs,
|
|
67
71
|
)
|
|
68
72
|
|
|
69
73
|
@property
|
|
@@ -134,6 +138,9 @@ class ComponentServiceClient(ConnectClient):
|
|
|
134
138
|
)
|
|
135
139
|
|
|
136
140
|
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
137
144
|
class ComponentServiceSync(Protocol):
|
|
138
145
|
def get(self, request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetResponse:
|
|
139
146
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
@@ -144,7 +151,7 @@ class ComponentServiceSync(Protocol):
|
|
|
144
151
|
|
|
145
152
|
|
|
146
153
|
class ComponentServiceWSGIApplication(ConnectWSGIApplication):
|
|
147
|
-
def __init__(self, service: ComponentServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
154
|
+
def __init__(self, service: ComponentServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
|
148
155
|
super().__init__(
|
|
149
156
|
endpoints={
|
|
150
157
|
"/metalstack.admin.v2.ComponentService/Get": EndpointSync.unary(
|
|
@@ -180,6 +187,8 @@ class ComponentServiceWSGIApplication(ConnectWSGIApplication):
|
|
|
180
187
|
},
|
|
181
188
|
interceptors=interceptors,
|
|
182
189
|
read_max_bytes=read_max_bytes,
|
|
190
|
+
compressions=compressions,
|
|
191
|
+
codecs=codecs,
|
|
183
192
|
)
|
|
184
193
|
|
|
185
194
|
@property
|
|
@@ -248,3 +257,5 @@ class ComponentServiceClientSync(ConnectClientSync):
|
|
|
248
257
|
headers=headers,
|
|
249
258
|
timeout_ms=timeout_ms,
|
|
250
259
|
)
|
|
260
|
+
|
|
261
|
+
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/component.proto
|
|
5
|
-
# Protobuf Python Version: 7.
|
|
5
|
+
# Protobuf Python Version: 7.35.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
7,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
35,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/component.proto'
|
|
19
19
|
)
|
|
@@ -7,6 +7,8 @@ from typing import Protocol
|
|
|
7
7
|
|
|
8
8
|
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
9
9
|
from connectrpc.code import Code
|
|
10
|
+
from connectrpc.codec import Codec
|
|
11
|
+
from connectrpc.compression import Compression
|
|
10
12
|
from connectrpc.errors import ConnectError
|
|
11
13
|
from connectrpc.interceptor import Interceptor, InterceptorSync
|
|
12
14
|
from connectrpc.method import IdempotencyLevel, MethodInfo
|
|
@@ -25,9 +27,12 @@ class FilesystemService(Protocol):
|
|
|
25
27
|
async def delete(self, request: metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceDeleteResponse:
|
|
26
28
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
27
29
|
|
|
30
|
+
async def match(self, request: metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse:
|
|
31
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
32
|
+
|
|
28
33
|
|
|
29
34
|
class FilesystemServiceASGIApplication(ConnectASGIApplication[FilesystemService]):
|
|
30
|
-
def __init__(self, service: FilesystemService | AsyncGenerator[FilesystemService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
35
|
+
def __init__(self, service: FilesystemService | AsyncGenerator[FilesystemService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
|
31
36
|
super().__init__(
|
|
32
37
|
service=service,
|
|
33
38
|
endpoints=lambda svc: {
|
|
@@ -61,9 +66,21 @@ class FilesystemServiceASGIApplication(ConnectASGIApplication[FilesystemService]
|
|
|
61
66
|
),
|
|
62
67
|
function=svc.delete,
|
|
63
68
|
),
|
|
69
|
+
"/metalstack.admin.v2.FilesystemService/Match": Endpoint.unary(
|
|
70
|
+
method=MethodInfo(
|
|
71
|
+
name="Match",
|
|
72
|
+
service_name="metalstack.admin.v2.FilesystemService",
|
|
73
|
+
input=metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
|
|
74
|
+
output=metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
|
|
75
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
76
|
+
),
|
|
77
|
+
function=svc.match,
|
|
78
|
+
),
|
|
64
79
|
},
|
|
65
80
|
interceptors=interceptors,
|
|
66
81
|
read_max_bytes=read_max_bytes,
|
|
82
|
+
compressions=compressions,
|
|
83
|
+
codecs=codecs,
|
|
67
84
|
)
|
|
68
85
|
|
|
69
86
|
@property
|
|
@@ -133,6 +150,29 @@ class FilesystemServiceClient(ConnectClient):
|
|
|
133
150
|
timeout_ms=timeout_ms,
|
|
134
151
|
)
|
|
135
152
|
|
|
153
|
+
async def match(
|
|
154
|
+
self,
|
|
155
|
+
request: metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
|
|
156
|
+
*,
|
|
157
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
158
|
+
timeout_ms: int | None = None,
|
|
159
|
+
) -> metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse:
|
|
160
|
+
return await self.execute_unary(
|
|
161
|
+
request=request,
|
|
162
|
+
method=MethodInfo(
|
|
163
|
+
name="Match",
|
|
164
|
+
service_name="metalstack.admin.v2.FilesystemService",
|
|
165
|
+
input=metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
|
|
166
|
+
output=metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
|
|
167
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
168
|
+
),
|
|
169
|
+
headers=headers,
|
|
170
|
+
timeout_ms=timeout_ms,
|
|
171
|
+
)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
136
176
|
|
|
137
177
|
class FilesystemServiceSync(Protocol):
|
|
138
178
|
def create(self, request: metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceCreateResponse:
|
|
@@ -141,10 +181,12 @@ class FilesystemServiceSync(Protocol):
|
|
|
141
181
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
142
182
|
def delete(self, request: metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceDeleteResponse:
|
|
143
183
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
184
|
+
def match(self, request: metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse:
|
|
185
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
144
186
|
|
|
145
187
|
|
|
146
188
|
class FilesystemServiceWSGIApplication(ConnectWSGIApplication):
|
|
147
|
-
def __init__(self, service: FilesystemServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
189
|
+
def __init__(self, service: FilesystemServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
|
148
190
|
super().__init__(
|
|
149
191
|
endpoints={
|
|
150
192
|
"/metalstack.admin.v2.FilesystemService/Create": EndpointSync.unary(
|
|
@@ -177,9 +219,21 @@ class FilesystemServiceWSGIApplication(ConnectWSGIApplication):
|
|
|
177
219
|
),
|
|
178
220
|
function=service.delete,
|
|
179
221
|
),
|
|
222
|
+
"/metalstack.admin.v2.FilesystemService/Match": EndpointSync.unary(
|
|
223
|
+
method=MethodInfo(
|
|
224
|
+
name="Match",
|
|
225
|
+
service_name="metalstack.admin.v2.FilesystemService",
|
|
226
|
+
input=metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
|
|
227
|
+
output=metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
|
|
228
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
229
|
+
),
|
|
230
|
+
function=service.match,
|
|
231
|
+
),
|
|
180
232
|
},
|
|
181
233
|
interceptors=interceptors,
|
|
182
234
|
read_max_bytes=read_max_bytes,
|
|
235
|
+
compressions=compressions,
|
|
236
|
+
codecs=codecs,
|
|
183
237
|
)
|
|
184
238
|
|
|
185
239
|
@property
|
|
@@ -248,3 +302,25 @@ class FilesystemServiceClientSync(ConnectClientSync):
|
|
|
248
302
|
headers=headers,
|
|
249
303
|
timeout_ms=timeout_ms,
|
|
250
304
|
)
|
|
305
|
+
|
|
306
|
+
def match(
|
|
307
|
+
self,
|
|
308
|
+
request: metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
|
|
309
|
+
*,
|
|
310
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
311
|
+
timeout_ms: int | None = None,
|
|
312
|
+
) -> metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse:
|
|
313
|
+
return self.execute_unary(
|
|
314
|
+
request=request,
|
|
315
|
+
method=MethodInfo(
|
|
316
|
+
name="Match",
|
|
317
|
+
service_name="metalstack.admin.v2.FilesystemService",
|
|
318
|
+
input=metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchRequest,
|
|
319
|
+
output=metalstack_dot_admin_dot_v2_dot_filesystem__pb2.FilesystemServiceMatchResponse,
|
|
320
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
321
|
+
),
|
|
322
|
+
headers=headers,
|
|
323
|
+
timeout_ms=timeout_ms,
|
|
324
|
+
)
|
|
325
|
+
|
|
326
|
+
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/filesystem.proto
|
|
5
|
-
# Protobuf Python Version: 7.
|
|
5
|
+
# Protobuf Python Version: 7.35.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
7,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
35,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/filesystem.proto'
|
|
19
19
|
)
|
|
@@ -28,7 +28,7 @@ from metalstack.api.v2 import filesystem_pb2 as metalstack_dot_api_dot_v2_dot_fi
|
|
|
28
28
|
from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$metalstack/admin/v2/filesystem.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\"metalstack/api/v2/filesystem.proto\x1a(metalstack/api/v2/predefined_rules.proto\"r\n\x1e\x46ilesystemServiceCreateRequest\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"s\n\x1f\x46ilesystemServiceCreateResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"\xf7\x04\n\x1e\x46ilesystemServiceUpdateRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x02id\x12\x46\n\x0bupdate_meta\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.UpdateMetaB\x06\xbaH\x03\xc8\x01\x01R\nupdateMeta\x12$\n\x04name\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x04name\x88\x01\x01\x12\x32\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\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\"s\n\x1f\x46ilesystemServiceUpdateResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"=\n\x1e\x46ilesystemServiceDeleteRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x02id\"s\n\x1f\x46ilesystemServiceDeleteResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n$metalstack/admin/v2/filesystem.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\"metalstack/api/v2/filesystem.proto\x1a(metalstack/api/v2/predefined_rules.proto\"r\n\x1e\x46ilesystemServiceCreateRequest\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"s\n\x1f\x46ilesystemServiceCreateResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"\xf7\x04\n\x1e\x46ilesystemServiceUpdateRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x02id\x12\x46\n\x0bupdate_meta\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.UpdateMetaB\x06\xbaH\x03\xc8\x01\x01R\nupdateMeta\x12$\n\x04name\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x04name\x88\x01\x01\x12\x32\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\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\"s\n\x1f\x46ilesystemServiceUpdateResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"=\n\x1e\x46ilesystemServiceDeleteRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x02id\"s\n\x1f\x46ilesystemServiceDeleteResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout\"\xf9\x01\n\x1d\x46ilesystemServiceMatchRequest\x12N\n\x0esize_and_image\x18\x01 \x01(\x0b\x32&.metalstack.admin.v2.MatchImageAndSizeH\x00R\x0csizeAndImage\x12x\n\x1cmachine_and_filesystemlayout\x18\x02 \x01(\x0b\x32\x34.metalstack.admin.v2.MatchMachineAndFilesystemLayoutH\x00R\x1amachineAndFilesystemlayoutB\x0e\n\x05match\x12\x05\xbaH\x02\x08\x01\"W\n\x11MatchImageAndSize\x12\x1f\n\x04size\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x04size\x12!\n\x05image\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x05image\"\x7f\n\x1fMatchMachineAndFilesystemLayout\x12\"\n\x07machine\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x07machine\x12\x38\n\x11\x66ilesystem_layout\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x10\x66ilesystemLayout\"r\n\x1e\x46ilesystemServiceMatchResponse\x12P\n\x11\x66ilesystem_layout\x18\x01 \x01(\x0b\x32#.metalstack.api.v2.FilesystemLayoutR\x10\x66ilesystemLayout2\x91\x04\n\x11\x46ilesystemService\x12~\n\x06\x43reate\x12\x33.metalstack.admin.v2.FilesystemServiceCreateRequest\x1a\x34.metalstack.admin.v2.FilesystemServiceCreateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12~\n\x06Update\x12\x33.metalstack.admin.v2.FilesystemServiceUpdateRequest\x1a\x34.metalstack.admin.v2.FilesystemServiceUpdateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12~\n\x06\x44\x65lete\x12\x33.metalstack.admin.v2.FilesystemServiceDeleteRequest\x1a\x34.metalstack.admin.v2.FilesystemServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12|\n\x05Match\x12\x32.metalstack.admin.v2.FilesystemServiceMatchRequest\x1a\x33.metalstack.admin.v2.FilesystemServiceMatchResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xd3\x01\n\x17\x63om.metalstack.admin.v2B\x0f\x46ilesystemProtoP\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')
|
|
32
32
|
|
|
33
33
|
_globals = globals()
|
|
34
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -46,12 +46,24 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
46
46
|
_globals['_FILESYSTEMSERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
|
|
47
47
|
_globals['_FILESYSTEMSERVICEDELETEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
48
48
|
_globals['_FILESYSTEMSERVICEDELETEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
49
|
+
_globals['_FILESYSTEMSERVICEMATCHREQUEST'].oneofs_by_name['match']._loaded_options = None
|
|
50
|
+
_globals['_FILESYSTEMSERVICEMATCHREQUEST'].oneofs_by_name['match']._serialized_options = b'\272H\002\010\001'
|
|
51
|
+
_globals['_MATCHIMAGEANDSIZE'].fields_by_name['size']._loaded_options = None
|
|
52
|
+
_globals['_MATCHIMAGEANDSIZE'].fields_by_name['size']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
53
|
+
_globals['_MATCHIMAGEANDSIZE'].fields_by_name['image']._loaded_options = None
|
|
54
|
+
_globals['_MATCHIMAGEANDSIZE'].fields_by_name['image']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
55
|
+
_globals['_MATCHMACHINEANDFILESYSTEMLAYOUT'].fields_by_name['machine']._loaded_options = None
|
|
56
|
+
_globals['_MATCHMACHINEANDFILESYSTEMLAYOUT'].fields_by_name['machine']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
57
|
+
_globals['_MATCHMACHINEANDFILESYSTEMLAYOUT'].fields_by_name['filesystem_layout']._loaded_options = None
|
|
58
|
+
_globals['_MATCHMACHINEANDFILESYSTEMLAYOUT'].fields_by_name['filesystem_layout']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
49
59
|
_globals['_FILESYSTEMSERVICE'].methods_by_name['Create']._loaded_options = None
|
|
50
60
|
_globals['_FILESYSTEMSERVICE'].methods_by_name['Create']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
51
61
|
_globals['_FILESYSTEMSERVICE'].methods_by_name['Update']._loaded_options = None
|
|
52
62
|
_globals['_FILESYSTEMSERVICE'].methods_by_name['Update']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
53
63
|
_globals['_FILESYSTEMSERVICE'].methods_by_name['Delete']._loaded_options = None
|
|
54
64
|
_globals['_FILESYSTEMSERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
65
|
+
_globals['_FILESYSTEMSERVICE'].methods_by_name['Match']._loaded_options = None
|
|
66
|
+
_globals['_FILESYSTEMSERVICE'].methods_by_name['Match']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
|
|
55
67
|
_globals['_FILESYSTEMSERVICECREATEREQUEST']._serialized_start=200
|
|
56
68
|
_globals['_FILESYSTEMSERVICECREATEREQUEST']._serialized_end=314
|
|
57
69
|
_globals['_FILESYSTEMSERVICECREATERESPONSE']._serialized_start=316
|
|
@@ -64,6 +76,14 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
64
76
|
_globals['_FILESYSTEMSERVICEDELETEREQUEST']._serialized_end=1245
|
|
65
77
|
_globals['_FILESYSTEMSERVICEDELETERESPONSE']._serialized_start=1247
|
|
66
78
|
_globals['_FILESYSTEMSERVICEDELETERESPONSE']._serialized_end=1362
|
|
67
|
-
_globals['
|
|
68
|
-
_globals['
|
|
79
|
+
_globals['_FILESYSTEMSERVICEMATCHREQUEST']._serialized_start=1365
|
|
80
|
+
_globals['_FILESYSTEMSERVICEMATCHREQUEST']._serialized_end=1614
|
|
81
|
+
_globals['_MATCHIMAGEANDSIZE']._serialized_start=1616
|
|
82
|
+
_globals['_MATCHIMAGEANDSIZE']._serialized_end=1703
|
|
83
|
+
_globals['_MATCHMACHINEANDFILESYSTEMLAYOUT']._serialized_start=1705
|
|
84
|
+
_globals['_MATCHMACHINEANDFILESYSTEMLAYOUT']._serialized_end=1832
|
|
85
|
+
_globals['_FILESYSTEMSERVICEMATCHRESPONSE']._serialized_start=1834
|
|
86
|
+
_globals['_FILESYSTEMSERVICEMATCHRESPONSE']._serialized_end=1948
|
|
87
|
+
_globals['_FILESYSTEMSERVICE']._serialized_start=1951
|
|
88
|
+
_globals['_FILESYSTEMSERVICE']._serialized_end=2480
|
|
69
89
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -63,3 +63,33 @@ class FilesystemServiceDeleteResponse(_message.Message):
|
|
|
63
63
|
FILESYSTEM_LAYOUT_FIELD_NUMBER: _ClassVar[int]
|
|
64
64
|
filesystem_layout: _filesystem_pb2.FilesystemLayout
|
|
65
65
|
def __init__(self, filesystem_layout: _Optional[_Union[_filesystem_pb2.FilesystemLayout, _Mapping]] = ...) -> None: ...
|
|
66
|
+
|
|
67
|
+
class FilesystemServiceMatchRequest(_message.Message):
|
|
68
|
+
__slots__ = ("size_and_image", "machine_and_filesystemlayout")
|
|
69
|
+
SIZE_AND_IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
+
MACHINE_AND_FILESYSTEMLAYOUT_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
size_and_image: MatchImageAndSize
|
|
72
|
+
machine_and_filesystemlayout: MatchMachineAndFilesystemLayout
|
|
73
|
+
def __init__(self, size_and_image: _Optional[_Union[MatchImageAndSize, _Mapping]] = ..., machine_and_filesystemlayout: _Optional[_Union[MatchMachineAndFilesystemLayout, _Mapping]] = ...) -> None: ...
|
|
74
|
+
|
|
75
|
+
class MatchImageAndSize(_message.Message):
|
|
76
|
+
__slots__ = ("size", "image")
|
|
77
|
+
SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
IMAGE_FIELD_NUMBER: _ClassVar[int]
|
|
79
|
+
size: str
|
|
80
|
+
image: str
|
|
81
|
+
def __init__(self, size: _Optional[str] = ..., image: _Optional[str] = ...) -> None: ...
|
|
82
|
+
|
|
83
|
+
class MatchMachineAndFilesystemLayout(_message.Message):
|
|
84
|
+
__slots__ = ("machine", "filesystem_layout")
|
|
85
|
+
MACHINE_FIELD_NUMBER: _ClassVar[int]
|
|
86
|
+
FILESYSTEM_LAYOUT_FIELD_NUMBER: _ClassVar[int]
|
|
87
|
+
machine: str
|
|
88
|
+
filesystem_layout: str
|
|
89
|
+
def __init__(self, machine: _Optional[str] = ..., filesystem_layout: _Optional[str] = ...) -> None: ...
|
|
90
|
+
|
|
91
|
+
class FilesystemServiceMatchResponse(_message.Message):
|
|
92
|
+
__slots__ = ("filesystem_layout",)
|
|
93
|
+
FILESYSTEM_LAYOUT_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
filesystem_layout: _filesystem_pb2.FilesystemLayout
|
|
95
|
+
def __init__(self, filesystem_layout: _Optional[_Union[_filesystem_pb2.FilesystemLayout, _Mapping]] = ...) -> None: ...
|
|
@@ -7,6 +7,8 @@ from typing import Protocol
|
|
|
7
7
|
|
|
8
8
|
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
9
9
|
from connectrpc.code import Code
|
|
10
|
+
from connectrpc.codec import Codec
|
|
11
|
+
from connectrpc.compression import Compression
|
|
10
12
|
from connectrpc.errors import ConnectError
|
|
11
13
|
from connectrpc.interceptor import Interceptor, InterceptorSync
|
|
12
14
|
from connectrpc.method import IdempotencyLevel, MethodInfo
|
|
@@ -30,7 +32,7 @@ class ImageService(Protocol):
|
|
|
30
32
|
|
|
31
33
|
|
|
32
34
|
class ImageServiceASGIApplication(ConnectASGIApplication[ImageService]):
|
|
33
|
-
def __init__(self, service: ImageService | AsyncGenerator[ImageService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
35
|
+
def __init__(self, service: ImageService | AsyncGenerator[ImageService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
|
34
36
|
super().__init__(
|
|
35
37
|
service=service,
|
|
36
38
|
endpoints=lambda svc: {
|
|
@@ -77,6 +79,8 @@ class ImageServiceASGIApplication(ConnectASGIApplication[ImageService]):
|
|
|
77
79
|
},
|
|
78
80
|
interceptors=interceptors,
|
|
79
81
|
read_max_bytes=read_max_bytes,
|
|
82
|
+
compressions=compressions,
|
|
83
|
+
codecs=codecs,
|
|
80
84
|
)
|
|
81
85
|
|
|
82
86
|
@property
|
|
@@ -167,6 +171,9 @@ class ImageServiceClient(ConnectClient):
|
|
|
167
171
|
)
|
|
168
172
|
|
|
169
173
|
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
170
177
|
class ImageServiceSync(Protocol):
|
|
171
178
|
def create(self, request: metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_image__pb2.ImageServiceCreateResponse:
|
|
172
179
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
@@ -179,7 +186,7 @@ class ImageServiceSync(Protocol):
|
|
|
179
186
|
|
|
180
187
|
|
|
181
188
|
class ImageServiceWSGIApplication(ConnectWSGIApplication):
|
|
182
|
-
def __init__(self, service: ImageServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
189
|
+
def __init__(self, service: ImageServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None, compressions: Iterable[Compression] | None = None, codecs: Iterable[Codec] | None = None) -> None:
|
|
183
190
|
super().__init__(
|
|
184
191
|
endpoints={
|
|
185
192
|
"/metalstack.admin.v2.ImageService/Create": EndpointSync.unary(
|
|
@@ -225,6 +232,8 @@ class ImageServiceWSGIApplication(ConnectWSGIApplication):
|
|
|
225
232
|
},
|
|
226
233
|
interceptors=interceptors,
|
|
227
234
|
read_max_bytes=read_max_bytes,
|
|
235
|
+
compressions=compressions,
|
|
236
|
+
codecs=codecs,
|
|
228
237
|
)
|
|
229
238
|
|
|
230
239
|
@property
|
|
@@ -313,3 +322,5 @@ class ImageServiceClientSync(ConnectClientSync):
|
|
|
313
322
|
headers=headers,
|
|
314
323
|
timeout_ms=timeout_ms,
|
|
315
324
|
)
|
|
325
|
+
|
|
326
|
+
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/image.proto
|
|
5
|
-
# Protobuf Python Version: 7.
|
|
5
|
+
# Protobuf Python Version: 7.35.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
7,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
35,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/image.proto'
|
|
19
19
|
)
|
|
@@ -29,7 +29,7 @@ from metalstack.api.v2 import image_pb2 as metalstack_dot_api_dot_v2_dot_image__
|
|
|
29
29
|
from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/admin/v2/image.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1dmetalstack/api/v2/image.proto\x1a(metalstack/api/v2/predefined_rules.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\"\x82\x04\n\x19ImageServiceUpdateRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x02id\x12\x46\n\x0bupdate_meta\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.UpdateMetaB\x06\xbaH\x03\xc8\x01\x01R\nupdateMeta\x12\"\n\x03url\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xe0\xb3\xae\xb1\x02\x01H\x00R\x03url\x88\x01\x01\x12$\n\x04name\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x01R\x04name\x88\x01\x01\x12\x32\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x02R\x0b\x64\x65scription\x88\x01\x01\x12L\n\x08\x66\x65\x61tures\x18\x06 \x03(\x0e\x32\x1f.metalstack.api.v2.ImageFeatureB\x0f\xbaH\x0c\x92\x01\t\x18\x01\"\x05\x82\x01\x02\x10\x01R\x08\x66\x65\x61tures\x12X\n\x0e\x63lassification\x18\x07 \x01(\x0e\x32&.metalstack.api.v2.ImageClassificationB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x0e\x63lassification\x12\x39\n\nexpires_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAtB\x06\n\x04_urlB\x07\n\x05_nameB\x0e\n\x0c_description\"L\n\x1aImageServiceUpdateResponse\x12.\n\x05image\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.ImageR\x05image\"8\n\x19ImageServiceDeleteRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\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\
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/admin/v2/image.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1dmetalstack/api/v2/image.proto\x1a(metalstack/api/v2/predefined_rules.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\"\x82\x04\n\x19ImageServiceUpdateRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x02id\x12\x46\n\x0bupdate_meta\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.UpdateMetaB\x06\xbaH\x03\xc8\x01\x01R\nupdateMeta\x12\"\n\x03url\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xe0\xb3\xae\xb1\x02\x01H\x00R\x03url\x88\x01\x01\x12$\n\x04name\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x01R\x04name\x88\x01\x01\x12\x32\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x02R\x0b\x64\x65scription\x88\x01\x01\x12L\n\x08\x66\x65\x61tures\x18\x06 \x03(\x0e\x32\x1f.metalstack.api.v2.ImageFeatureB\x0f\xbaH\x0c\x92\x01\t\x18\x01\"\x05\x82\x01\x02\x10\x01R\x08\x66\x65\x61tures\x12X\n\x0e\x63lassification\x18\x07 \x01(\x0e\x32&.metalstack.api.v2.ImageClassificationB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x0e\x63lassification\x12\x39\n\nexpires_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\texpiresAtB\x06\n\x04_urlB\x07\n\x05_nameB\x0e\n\x0c_description\"L\n\x1aImageServiceUpdateResponse\x12.\n\x05image\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.ImageR\x05image\"8\n\x19ImageServiceDeleteRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\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\xe4\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\x12r\n\x05Usage\x12-.metalstack.admin.v2.ImageServiceUsageRequest\x1a..metalstack.admin.v2.ImageServiceUsageResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\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')
|
|
33
33
|
|
|
34
34
|
_globals = globals()
|
|
35
35
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -60,7 +60,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
60
60
|
_globals['_IMAGESERVICE'].methods_by_name['Delete']._loaded_options = None
|
|
61
61
|
_globals['_IMAGESERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
62
62
|
_globals['_IMAGESERVICE'].methods_by_name['Usage']._loaded_options = None
|
|
63
|
-
_globals['_IMAGESERVICE'].methods_by_name['Usage']._serialized_options = b'\322\363\030\002\001\002'
|
|
63
|
+
_globals['_IMAGESERVICE'].methods_by_name['Usage']._serialized_options = b'\322\363\030\002\001\002\340\363\030\001'
|
|
64
64
|
_globals['_IMAGESERVICECREATEREQUEST']._serialized_start=223
|
|
65
65
|
_globals['_IMAGESERVICECREATEREQUEST']._serialized_end=298
|
|
66
66
|
_globals['_IMAGESERVICECREATERESPONSE']._serialized_start=300
|
|
@@ -78,5 +78,5 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
78
78
|
_globals['_IMAGESERVICEUSAGERESPONSE']._serialized_start=1190
|
|
79
79
|
_globals['_IMAGESERVICEUSAGERESPONSE']._serialized_end=1281
|
|
80
80
|
_globals['_IMAGESERVICE']._serialized_start=1284
|
|
81
|
-
_globals['_IMAGESERVICE']._serialized_end=
|
|
81
|
+
_globals['_IMAGESERVICE']._serialized_end=1768
|
|
82
82
|
# @@protoc_insertion_point(module_scope)
|