metal-stack-api 0.0.52__tar.gz → 0.0.55__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.52 → metal_stack_api-0.0.55}/PKG-INFO +1 -1
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metal_stack_api.egg-info/PKG-INFO +1 -1
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metal_stack_api.egg-info/SOURCES.txt +6 -0
- metal_stack_api-0.0.55/metalstack/admin/v2/audit_connect.py +185 -0
- metal_stack_api-0.0.55/metalstack/admin/v2/audit_pb2.py +56 -0
- metal_stack_api-0.0.55/metalstack/admin/v2/audit_pb2.pyi +36 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/partition_pb2.py +24 -24
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/partition_pb2.pyi +6 -6
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/switch_connect.py +65 -0
- metal_stack_api-0.0.55/metalstack/admin/v2/switch_pb2.py +113 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/switch_pb2.pyi +15 -0
- metal_stack_api-0.0.55/metalstack/api/v2/audit_connect.py +185 -0
- metal_stack_api-0.0.55/metalstack/api/v2/audit_pb2.py +87 -0
- metal_stack_api-0.0.55/metalstack/api/v2/audit_pb2.pyi +102 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/machine_pb2.py +116 -116
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/machine_pb2.pyi +12 -12
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/partition_pb2.py +24 -24
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/partition_pb2.pyi +6 -6
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/switch_pb2.py +34 -29
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/switch_pb2.pyi +23 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/client/client.py +8 -0
- metal_stack_api-0.0.52/metalstack/admin/v2/switch_pb2.py +0 -106
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/README.md +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metal_stack_api.egg-info/dependency_links.txt +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metal_stack_api.egg-info/requires.txt +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metal_stack_api.egg-info/top_level.txt +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/__init__.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/__init__.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/__init__.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/component_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/component_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/component_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/filesystem_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/filesystem_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/filesystem_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/image_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/image_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/image_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/ip_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/ip_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/ip_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/machine_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/machine_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/machine_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/network_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/network_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/network_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/partition_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/project_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/project_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/project_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/size_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/size_imageconstraint_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/size_imageconstraint_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/size_imageconstraint_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/size_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/size_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/size_reservation_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/size_reservation_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/size_reservation_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/task_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/task_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/task_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/tenant_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/tenant_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/tenant_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/token_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/token_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/token_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/vpn_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/vpn_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/admin/v2/vpn_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/__init__.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/__init__.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/common_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/common_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/component_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/component_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/filesystem_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/filesystem_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/filesystem_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/health_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/health_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/health_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/image_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/image_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/image_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/ip_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/ip_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/ip_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/machine_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/method_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/method_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/method_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/network_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/network_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/network_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/partition_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/predefined_rules_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/predefined_rules_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/project_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/project_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/project_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/size_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/size_imageconstraint_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/size_imageconstraint_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/size_imageconstraint_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/size_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/size_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/size_reservation_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/size_reservation_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/size_reservation_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/tenant_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/tenant_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/tenant_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/token_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/token_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/token_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/user_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/user_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/user_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/version_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/version_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/version_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/vpn_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/api/v2/vpn_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/client/__init__.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/__init__.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/__init__.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/bmc_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/bmc_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/bmc_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/boot_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/boot_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/boot_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/component_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/component_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/component_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/event_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/event_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/event_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/switch_connect.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/switch_pb2.py +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/metalstack/infra/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/setup.cfg +0 -0
- {metal_stack_api-0.0.52 → metal_stack_api-0.0.55}/setup.py +0 -0
|
@@ -8,6 +8,9 @@ metal_stack_api.egg-info/top_level.txt
|
|
|
8
8
|
metalstack/__init__.py
|
|
9
9
|
metalstack/admin/__init__.py
|
|
10
10
|
metalstack/admin/v2/__init__.py
|
|
11
|
+
metalstack/admin/v2/audit_connect.py
|
|
12
|
+
metalstack/admin/v2/audit_pb2.py
|
|
13
|
+
metalstack/admin/v2/audit_pb2.pyi
|
|
11
14
|
metalstack/admin/v2/component_connect.py
|
|
12
15
|
metalstack/admin/v2/component_pb2.py
|
|
13
16
|
metalstack/admin/v2/component_pb2.pyi
|
|
@@ -58,6 +61,9 @@ metalstack/admin/v2/vpn_pb2.py
|
|
|
58
61
|
metalstack/admin/v2/vpn_pb2.pyi
|
|
59
62
|
metalstack/api/__init__.py
|
|
60
63
|
metalstack/api/v2/__init__.py
|
|
64
|
+
metalstack/api/v2/audit_connect.py
|
|
65
|
+
metalstack/api/v2/audit_pb2.py
|
|
66
|
+
metalstack/api/v2/audit_pb2.pyi
|
|
61
67
|
metalstack/api/v2/common_pb2.py
|
|
62
68
|
metalstack/api/v2/common_pb2.pyi
|
|
63
69
|
metalstack/api/v2/component_pb2.py
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
|
+
# source: metalstack/admin/v2/audit.proto
|
|
4
|
+
|
|
5
|
+
from collections.abc import AsyncGenerator, AsyncIterator, Iterable, Iterator, Mapping
|
|
6
|
+
from typing import Protocol
|
|
7
|
+
|
|
8
|
+
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
9
|
+
from connectrpc.code import Code
|
|
10
|
+
from connectrpc.errors import ConnectError
|
|
11
|
+
from connectrpc.interceptor import Interceptor, InterceptorSync
|
|
12
|
+
from connectrpc.method import IdempotencyLevel, MethodInfo
|
|
13
|
+
from connectrpc.request import Headers, RequestContext
|
|
14
|
+
from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync
|
|
15
|
+
import metalstack.admin.v2.audit_pb2 as metalstack_dot_admin_dot_v2_dot_audit__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class AuditService(Protocol):
|
|
19
|
+
async def get(self, request: metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetResponse:
|
|
20
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
|
+
|
|
22
|
+
async def list(self, request: metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListResponse:
|
|
23
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class AuditServiceASGIApplication(ConnectASGIApplication[AuditService]):
|
|
27
|
+
def __init__(self, service: AuditService | AsyncGenerator[AuditService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
28
|
+
super().__init__(
|
|
29
|
+
service=service,
|
|
30
|
+
endpoints=lambda svc: {
|
|
31
|
+
"/metalstack.admin.v2.AuditService/Get": Endpoint.unary(
|
|
32
|
+
method=MethodInfo(
|
|
33
|
+
name="Get",
|
|
34
|
+
service_name="metalstack.admin.v2.AuditService",
|
|
35
|
+
input=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetRequest,
|
|
36
|
+
output=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetResponse,
|
|
37
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
38
|
+
),
|
|
39
|
+
function=svc.get,
|
|
40
|
+
),
|
|
41
|
+
"/metalstack.admin.v2.AuditService/List": Endpoint.unary(
|
|
42
|
+
method=MethodInfo(
|
|
43
|
+
name="List",
|
|
44
|
+
service_name="metalstack.admin.v2.AuditService",
|
|
45
|
+
input=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListRequest,
|
|
46
|
+
output=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListResponse,
|
|
47
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
48
|
+
),
|
|
49
|
+
function=svc.list,
|
|
50
|
+
),
|
|
51
|
+
},
|
|
52
|
+
interceptors=interceptors,
|
|
53
|
+
read_max_bytes=read_max_bytes,
|
|
54
|
+
)
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def path(self) -> str:
|
|
58
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
59
|
+
return "/metalstack.admin.v2.AuditService"
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class AuditServiceClient(ConnectClient):
|
|
63
|
+
async def get(
|
|
64
|
+
self,
|
|
65
|
+
request: metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetRequest,
|
|
66
|
+
*,
|
|
67
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
68
|
+
timeout_ms: int | None = None,
|
|
69
|
+
) -> metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetResponse:
|
|
70
|
+
return await self.execute_unary(
|
|
71
|
+
request=request,
|
|
72
|
+
method=MethodInfo(
|
|
73
|
+
name="Get",
|
|
74
|
+
service_name="metalstack.admin.v2.AuditService",
|
|
75
|
+
input=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetRequest,
|
|
76
|
+
output=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetResponse,
|
|
77
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
78
|
+
),
|
|
79
|
+
headers=headers,
|
|
80
|
+
timeout_ms=timeout_ms,
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
async def list(
|
|
84
|
+
self,
|
|
85
|
+
request: metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListRequest,
|
|
86
|
+
*,
|
|
87
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
88
|
+
timeout_ms: int | None = None,
|
|
89
|
+
) -> metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListResponse:
|
|
90
|
+
return await self.execute_unary(
|
|
91
|
+
request=request,
|
|
92
|
+
method=MethodInfo(
|
|
93
|
+
name="List",
|
|
94
|
+
service_name="metalstack.admin.v2.AuditService",
|
|
95
|
+
input=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListRequest,
|
|
96
|
+
output=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListResponse,
|
|
97
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
98
|
+
),
|
|
99
|
+
headers=headers,
|
|
100
|
+
timeout_ms=timeout_ms,
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
class AuditServiceSync(Protocol):
|
|
105
|
+
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
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
107
|
+
def list(self, request: metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListResponse:
|
|
108
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class AuditServiceWSGIApplication(ConnectWSGIApplication):
|
|
112
|
+
def __init__(self, service: AuditServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
113
|
+
super().__init__(
|
|
114
|
+
endpoints={
|
|
115
|
+
"/metalstack.admin.v2.AuditService/Get": EndpointSync.unary(
|
|
116
|
+
method=MethodInfo(
|
|
117
|
+
name="Get",
|
|
118
|
+
service_name="metalstack.admin.v2.AuditService",
|
|
119
|
+
input=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetRequest,
|
|
120
|
+
output=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetResponse,
|
|
121
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
122
|
+
),
|
|
123
|
+
function=service.get,
|
|
124
|
+
),
|
|
125
|
+
"/metalstack.admin.v2.AuditService/List": EndpointSync.unary(
|
|
126
|
+
method=MethodInfo(
|
|
127
|
+
name="List",
|
|
128
|
+
service_name="metalstack.admin.v2.AuditService",
|
|
129
|
+
input=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListRequest,
|
|
130
|
+
output=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListResponse,
|
|
131
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
132
|
+
),
|
|
133
|
+
function=service.list,
|
|
134
|
+
),
|
|
135
|
+
},
|
|
136
|
+
interceptors=interceptors,
|
|
137
|
+
read_max_bytes=read_max_bytes,
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
@property
|
|
141
|
+
def path(self) -> str:
|
|
142
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
143
|
+
return "/metalstack.admin.v2.AuditService"
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
class AuditServiceClientSync(ConnectClientSync):
|
|
147
|
+
def get(
|
|
148
|
+
self,
|
|
149
|
+
request: metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetRequest,
|
|
150
|
+
*,
|
|
151
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
152
|
+
timeout_ms: int | None = None,
|
|
153
|
+
) -> metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetResponse:
|
|
154
|
+
return self.execute_unary(
|
|
155
|
+
request=request,
|
|
156
|
+
method=MethodInfo(
|
|
157
|
+
name="Get",
|
|
158
|
+
service_name="metalstack.admin.v2.AuditService",
|
|
159
|
+
input=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetRequest,
|
|
160
|
+
output=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceGetResponse,
|
|
161
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
162
|
+
),
|
|
163
|
+
headers=headers,
|
|
164
|
+
timeout_ms=timeout_ms,
|
|
165
|
+
)
|
|
166
|
+
|
|
167
|
+
def list(
|
|
168
|
+
self,
|
|
169
|
+
request: metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListRequest,
|
|
170
|
+
*,
|
|
171
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
172
|
+
timeout_ms: int | None = None,
|
|
173
|
+
) -> metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListResponse:
|
|
174
|
+
return self.execute_unary(
|
|
175
|
+
request=request,
|
|
176
|
+
method=MethodInfo(
|
|
177
|
+
name="List",
|
|
178
|
+
service_name="metalstack.admin.v2.AuditService",
|
|
179
|
+
input=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListRequest,
|
|
180
|
+
output=metalstack_dot_admin_dot_v2_dot_audit__pb2.AuditServiceListResponse,
|
|
181
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
182
|
+
),
|
|
183
|
+
headers=headers,
|
|
184
|
+
timeout_ms=timeout_ms,
|
|
185
|
+
)
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: metalstack/admin/v2/audit.proto
|
|
5
|
+
# Protobuf Python Version: 6.33.5
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
33,
|
|
16
|
+
5,
|
|
17
|
+
'',
|
|
18
|
+
'metalstack/admin/v2/audit.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from metalstack.api.v2 import audit_pb2 as metalstack_dot_api_dot_v2_dot_audit__pb2
|
|
27
|
+
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
28
|
+
|
|
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\xe5\x01\n\x0c\x41uditService\x12h\n\x03Get\x12+.metalstack.admin.v2.AuditServiceGetRequest\x1a,.metalstack.admin.v2.AuditServiceGetResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x12k\n\x04List\x12,.metalstack.admin.v2.AuditServiceListRequest\x1a-.metalstack.admin.v2.AuditServiceListResponse\"\x06\xd2\xf3\x18\x02\x01\x02\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
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.admin.v2.audit_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\nAuditProtoP\001Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\242\002\003MAX\252\002\023Metalstack.Admin.V2\312\002\023Metalstack\\Admin\\V2\342\002\037Metalstack\\Admin\\V2\\GPBMetadata\352\002\025Metalstack::Admin::V2'
|
|
38
|
+
_globals['_AUDITSERVICEGETREQUEST'].fields_by_name['uuid']._loaded_options = None
|
|
39
|
+
_globals['_AUDITSERVICEGETREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
40
|
+
_globals['_AUDITSERVICEGETREQUEST'].fields_by_name['phase']._loaded_options = None
|
|
41
|
+
_globals['_AUDITSERVICEGETREQUEST'].fields_by_name['phase']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
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'
|
|
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'
|
|
46
|
+
_globals['_AUDITSERVICELISTREQUEST']._serialized_start=148
|
|
47
|
+
_globals['_AUDITSERVICELISTREQUEST']._serialized_end=226
|
|
48
|
+
_globals['_AUDITSERVICELISTRESPONSE']._serialized_start=228
|
|
49
|
+
_globals['_AUDITSERVICELISTRESPONSE']._serialized_end=309
|
|
50
|
+
_globals['_AUDITSERVICEGETREQUEST']._serialized_start=312
|
|
51
|
+
_globals['_AUDITSERVICEGETREQUEST']._serialized_end=444
|
|
52
|
+
_globals['_AUDITSERVICEGETRESPONSE']._serialized_start=446
|
|
53
|
+
_globals['_AUDITSERVICEGETRESPONSE']._serialized_end=524
|
|
54
|
+
_globals['_AUDITSERVICE']._serialized_start=527
|
|
55
|
+
_globals['_AUDITSERVICE']._serialized_end=756
|
|
56
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from metalstack.api.v2 import audit_pb2 as _audit_pb2
|
|
3
|
+
from metalstack.api.v2 import common_pb2 as _common_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import message as _message
|
|
7
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
8
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class AuditServiceListRequest(_message.Message):
|
|
13
|
+
__slots__ = ("query",)
|
|
14
|
+
QUERY_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
query: _audit_pb2.AuditQuery
|
|
16
|
+
def __init__(self, query: _Optional[_Union[_audit_pb2.AuditQuery, _Mapping]] = ...) -> None: ...
|
|
17
|
+
|
|
18
|
+
class AuditServiceListResponse(_message.Message):
|
|
19
|
+
__slots__ = ("traces",)
|
|
20
|
+
TRACES_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
traces: _containers.RepeatedCompositeFieldContainer[_audit_pb2.AuditTrace]
|
|
22
|
+
def __init__(self, traces: _Optional[_Iterable[_Union[_audit_pb2.AuditTrace, _Mapping]]] = ...) -> None: ...
|
|
23
|
+
|
|
24
|
+
class AuditServiceGetRequest(_message.Message):
|
|
25
|
+
__slots__ = ("uuid", "phase")
|
|
26
|
+
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
PHASE_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
uuid: str
|
|
29
|
+
phase: _audit_pb2.AuditPhase
|
|
30
|
+
def __init__(self, uuid: _Optional[str] = ..., phase: _Optional[_Union[_audit_pb2.AuditPhase, str]] = ...) -> None: ...
|
|
31
|
+
|
|
32
|
+
class AuditServiceGetResponse(_message.Message):
|
|
33
|
+
__slots__ = ("trace",)
|
|
34
|
+
TRACE_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
trace: _audit_pb2.AuditTrace
|
|
36
|
+
def __init__(self, trace: _Optional[_Union[_audit_pb2.AuditTrace, _Mapping]] = ...) -> None: ...
|
|
@@ -28,7 +28,7 @@ from metalstack.api.v2 import partition_pb2 as metalstack_dot_api_dot_v2_dot_par
|
|
|
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/partition.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a!metalstack/api/v2/partition.proto\x1a(metalstack/api/v2/predefined_rules.proto\"[\n\x1dPartitionServiceCreateRequest\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#metalstack/admin/v2/partition.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a!metalstack/api/v2/partition.proto\x1a(metalstack/api/v2/predefined_rules.proto\"[\n\x1dPartitionServiceCreateRequest\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\xb7\x04\n\x1dPartitionServiceUpdateRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xd0\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\x32\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x00R\x0b\x64\x65scription\x88\x01\x01\x12\\\n\x12\x62oot_configuration\x18\x04 \x01(\x0b\x32-.metalstack.api.v2.PartitionBootConfigurationR\x11\x62ootConfiguration\x12G\n\x0b\x64ns_servers\x18\x05 \x03(\x0b\x32\x1c.metalstack.api.v2.DNSServerB\x08\xbaH\x05\x92\x01\x02\x10\x03R\ndnsServers\x12G\n\x0bntp_servers\x18\x06 \x03(\x0b\x32\x1c.metalstack.api.v2.NTPServerB\x08\xbaH\x05\x92\x01\x02\x10\nR\nntpServers\x12\x34\n\x16mgmt_service_addresses\x18\x07 \x03(\tR\x14mgmtServiceAddresses\x12<\n\x06labels\x18\x08 \x01(\x0b\x32\x1f.metalstack.api.v2.UpdateLabelsH\x01R\x06labels\x88\x01\x01\x42\x0e\n\x0c_descriptionB\t\n\x07_labels\"<\n\x1dPartitionServiceDeleteRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01R\x02id\"\\\n\x1ePartitionServiceCreateResponse\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\\\n\x1ePartitionServiceUpdateResponse\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\\\n\x1ePartitionServiceDeleteResponse\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\xae\x01\n\x1fPartitionServiceCapacityRequest\x12 \n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01H\x00R\x02id\x88\x01\x01\x12$\n\x04size\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x01R\x04size\x88\x01\x01\x12\'\n\x07project\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x02R\x07project\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_sizeB\n\n\x08_project\"y\n PartitionServiceCapacityResponse\x12U\n\x12partition_capacity\x18\x01 \x03(\x0b\x32&.metalstack.admin.v2.PartitionCapacityR\x11partitionCapacity\"\xa0\x01\n\x11PartitionCapacity\x12)\n\tpartition\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01R\tpartition\x12`\n\x17machine_size_capacities\x18\x02 \x03(\x0b\x32(.metalstack.admin.v2.MachineSizeCapacityR\x15machineSizeCapacities\"\x83\x04\n\x13MachineSizeCapacity\x12\x1f\n\x04size\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x04size\x12\x14\n\x05total\x18\x03 \x01(\x03R\x05total\x12\x1f\n\x0bphoned_home\x18\x04 \x01(\x03R\nphonedHome\x12\x18\n\x07waiting\x18\x05 \x01(\x03R\x07waiting\x12\x14\n\x05other\x18\x06 \x01(\x03R\x05other\x12%\n\x0eother_machines\x18\x07 \x03(\tR\rotherMachines\x12\x1c\n\tallocated\x18\x08 \x01(\x03R\tallocated\x12 \n\x0b\x61llocatable\x18\t \x01(\x03R\x0b\x61llocatable\x12\x12\n\x04\x66ree\x18\n \x01(\x03R\x04\x66ree\x12 \n\x0bunavailable\x18\x0b \x01(\x03R\x0bunavailable\x12\x16\n\x06\x66\x61ulty\x18\x0c \x01(\x03R\x06\x66\x61ulty\x12\'\n\x0f\x66\x61ulty_machines\x18\r \x03(\tR\x0e\x66\x61ultyMachines\x12\"\n\x0creservations\x18\x0e \x01(\x03R\x0creservations\x12+\n\x11used_reservations\x18\x0f \x01(\x03R\x10usedReservations\x12\x35\n\x16remaining_reservations\x18\x10 \x01(\x03R\x15remainingReservations2\x92\x04\n\x10PartitionService\x12|\n\x06\x43reate\x12\x32.metalstack.admin.v2.PartitionServiceCreateRequest\x1a\x33.metalstack.admin.v2.PartitionServiceCreateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12|\n\x06Update\x12\x32.metalstack.admin.v2.PartitionServiceUpdateRequest\x1a\x33.metalstack.admin.v2.PartitionServiceUpdateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12|\n\x06\x44\x65lete\x12\x32.metalstack.admin.v2.PartitionServiceDeleteRequest\x1a\x33.metalstack.admin.v2.PartitionServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x83\x01\n\x08\x43\x61pacity\x12\x34.metalstack.admin.v2.PartitionServiceCapacityRequest\x1a\x35.metalstack.admin.v2.PartitionServiceCapacityResponse\"\n\xd2\xf3\x18\x02\x02\x01\xe0\xf3\x18\x02\x42\xd2\x01\n\x17\x63om.metalstack.admin.v2B\x0ePartitionProtoP\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)
|
|
@@ -42,10 +42,10 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
42
42
|
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['update_meta']._serialized_options = b'\272H\003\310\001\001'
|
|
43
43
|
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['description']._loaded_options = None
|
|
44
44
|
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
|
|
45
|
-
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['
|
|
46
|
-
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['
|
|
47
|
-
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['
|
|
48
|
-
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['
|
|
45
|
+
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['dns_servers']._loaded_options = None
|
|
46
|
+
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['dns_servers']._serialized_options = b'\272H\005\222\001\002\020\003'
|
|
47
|
+
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['ntp_servers']._loaded_options = None
|
|
48
|
+
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['ntp_servers']._serialized_options = b'\272H\005\222\001\002\020\n'
|
|
49
49
|
_globals['_PARTITIONSERVICEDELETEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
50
50
|
_globals['_PARTITIONSERVICEDELETEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\010r\006\320\263\256\261\002\001'
|
|
51
51
|
_globals['_PARTITIONSERVICECAPACITYREQUEST'].fields_by_name['id']._loaded_options = None
|
|
@@ -69,23 +69,23 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
69
69
|
_globals['_PARTITIONSERVICECREATEREQUEST']._serialized_start=198
|
|
70
70
|
_globals['_PARTITIONSERVICECREATEREQUEST']._serialized_end=289
|
|
71
71
|
_globals['_PARTITIONSERVICEUPDATEREQUEST']._serialized_start=292
|
|
72
|
-
_globals['_PARTITIONSERVICEUPDATEREQUEST']._serialized_end=
|
|
73
|
-
_globals['_PARTITIONSERVICEDELETEREQUEST']._serialized_start=
|
|
74
|
-
_globals['_PARTITIONSERVICEDELETEREQUEST']._serialized_end=
|
|
75
|
-
_globals['_PARTITIONSERVICECREATERESPONSE']._serialized_start=
|
|
76
|
-
_globals['_PARTITIONSERVICECREATERESPONSE']._serialized_end=
|
|
77
|
-
_globals['_PARTITIONSERVICEUPDATERESPONSE']._serialized_start=
|
|
78
|
-
_globals['_PARTITIONSERVICEUPDATERESPONSE']._serialized_end=
|
|
79
|
-
_globals['_PARTITIONSERVICEDELETERESPONSE']._serialized_start=
|
|
80
|
-
_globals['_PARTITIONSERVICEDELETERESPONSE']._serialized_end=
|
|
81
|
-
_globals['_PARTITIONSERVICECAPACITYREQUEST']._serialized_start=
|
|
82
|
-
_globals['_PARTITIONSERVICECAPACITYREQUEST']._serialized_end=
|
|
83
|
-
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_start=
|
|
84
|
-
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_end=
|
|
85
|
-
_globals['_PARTITIONCAPACITY']._serialized_start=
|
|
86
|
-
_globals['_PARTITIONCAPACITY']._serialized_end=
|
|
87
|
-
_globals['_MACHINESIZECAPACITY']._serialized_start=
|
|
88
|
-
_globals['_MACHINESIZECAPACITY']._serialized_end=
|
|
89
|
-
_globals['_PARTITIONSERVICE']._serialized_start=
|
|
90
|
-
_globals['_PARTITIONSERVICE']._serialized_end=
|
|
72
|
+
_globals['_PARTITIONSERVICEUPDATEREQUEST']._serialized_end=859
|
|
73
|
+
_globals['_PARTITIONSERVICEDELETEREQUEST']._serialized_start=861
|
|
74
|
+
_globals['_PARTITIONSERVICEDELETEREQUEST']._serialized_end=921
|
|
75
|
+
_globals['_PARTITIONSERVICECREATERESPONSE']._serialized_start=923
|
|
76
|
+
_globals['_PARTITIONSERVICECREATERESPONSE']._serialized_end=1015
|
|
77
|
+
_globals['_PARTITIONSERVICEUPDATERESPONSE']._serialized_start=1017
|
|
78
|
+
_globals['_PARTITIONSERVICEUPDATERESPONSE']._serialized_end=1109
|
|
79
|
+
_globals['_PARTITIONSERVICEDELETERESPONSE']._serialized_start=1111
|
|
80
|
+
_globals['_PARTITIONSERVICEDELETERESPONSE']._serialized_end=1203
|
|
81
|
+
_globals['_PARTITIONSERVICECAPACITYREQUEST']._serialized_start=1206
|
|
82
|
+
_globals['_PARTITIONSERVICECAPACITYREQUEST']._serialized_end=1380
|
|
83
|
+
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_start=1382
|
|
84
|
+
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_end=1503
|
|
85
|
+
_globals['_PARTITIONCAPACITY']._serialized_start=1506
|
|
86
|
+
_globals['_PARTITIONCAPACITY']._serialized_end=1666
|
|
87
|
+
_globals['_MACHINESIZECAPACITY']._serialized_start=1669
|
|
88
|
+
_globals['_MACHINESIZECAPACITY']._serialized_end=2184
|
|
89
|
+
_globals['_PARTITIONSERVICE']._serialized_start=2187
|
|
90
|
+
_globals['_PARTITIONSERVICE']._serialized_end=2717
|
|
91
91
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -17,24 +17,24 @@ class PartitionServiceCreateRequest(_message.Message):
|
|
|
17
17
|
def __init__(self, partition: _Optional[_Union[_partition_pb2.Partition, _Mapping]] = ...) -> None: ...
|
|
18
18
|
|
|
19
19
|
class PartitionServiceUpdateRequest(_message.Message):
|
|
20
|
-
__slots__ = ("id", "update_meta", "description", "boot_configuration", "
|
|
20
|
+
__slots__ = ("id", "update_meta", "description", "boot_configuration", "dns_servers", "ntp_servers", "mgmt_service_addresses", "labels")
|
|
21
21
|
ID_FIELD_NUMBER: _ClassVar[int]
|
|
22
22
|
UPDATE_META_FIELD_NUMBER: _ClassVar[int]
|
|
23
23
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
24
24
|
BOOT_CONFIGURATION_FIELD_NUMBER: _ClassVar[int]
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
DNS_SERVERS_FIELD_NUMBER: _ClassVar[int]
|
|
26
|
+
NTP_SERVERS_FIELD_NUMBER: _ClassVar[int]
|
|
27
27
|
MGMT_SERVICE_ADDRESSES_FIELD_NUMBER: _ClassVar[int]
|
|
28
28
|
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
29
29
|
id: str
|
|
30
30
|
update_meta: _common_pb2.UpdateMeta
|
|
31
31
|
description: str
|
|
32
32
|
boot_configuration: _partition_pb2.PartitionBootConfiguration
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
dns_servers: _containers.RepeatedCompositeFieldContainer[_partition_pb2.DNSServer]
|
|
34
|
+
ntp_servers: _containers.RepeatedCompositeFieldContainer[_partition_pb2.NTPServer]
|
|
35
35
|
mgmt_service_addresses: _containers.RepeatedScalarFieldContainer[str]
|
|
36
36
|
labels: _common_pb2.UpdateLabels
|
|
37
|
-
def __init__(self, id: _Optional[str] = ..., update_meta: _Optional[_Union[_common_pb2.UpdateMeta, _Mapping]] = ..., description: _Optional[str] = ..., boot_configuration: _Optional[_Union[_partition_pb2.PartitionBootConfiguration, _Mapping]] = ...,
|
|
37
|
+
def __init__(self, id: _Optional[str] = ..., update_meta: _Optional[_Union[_common_pb2.UpdateMeta, _Mapping]] = ..., description: _Optional[str] = ..., boot_configuration: _Optional[_Union[_partition_pb2.PartitionBootConfiguration, _Mapping]] = ..., dns_servers: _Optional[_Iterable[_Union[_partition_pb2.DNSServer, _Mapping]]] = ..., ntp_servers: _Optional[_Iterable[_Union[_partition_pb2.NTPServer, _Mapping]]] = ..., mgmt_service_addresses: _Optional[_Iterable[str]] = ..., labels: _Optional[_Union[_common_pb2.UpdateLabels, _Mapping]] = ...) -> None: ...
|
|
38
38
|
|
|
39
39
|
class PartitionServiceDeleteRequest(_message.Message):
|
|
40
40
|
__slots__ = ("id",)
|
|
@@ -34,6 +34,9 @@ class SwitchService(Protocol):
|
|
|
34
34
|
async def port(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse:
|
|
35
35
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
36
36
|
|
|
37
|
+
async def connected_machines(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesResponse:
|
|
38
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
39
|
+
|
|
37
40
|
|
|
38
41
|
class SwitchServiceASGIApplication(ConnectASGIApplication[SwitchService]):
|
|
39
42
|
def __init__(self, service: SwitchService | AsyncGenerator[SwitchService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
@@ -100,6 +103,16 @@ class SwitchServiceASGIApplication(ConnectASGIApplication[SwitchService]):
|
|
|
100
103
|
),
|
|
101
104
|
function=svc.port,
|
|
102
105
|
),
|
|
106
|
+
"/metalstack.admin.v2.SwitchService/ConnectedMachines": Endpoint.unary(
|
|
107
|
+
method=MethodInfo(
|
|
108
|
+
name="ConnectedMachines",
|
|
109
|
+
service_name="metalstack.admin.v2.SwitchService",
|
|
110
|
+
input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesRequest,
|
|
111
|
+
output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesResponse,
|
|
112
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
113
|
+
),
|
|
114
|
+
function=svc.connected_machines,
|
|
115
|
+
),
|
|
103
116
|
},
|
|
104
117
|
interceptors=interceptors,
|
|
105
118
|
read_max_bytes=read_max_bytes,
|
|
@@ -232,6 +245,26 @@ class SwitchServiceClient(ConnectClient):
|
|
|
232
245
|
timeout_ms=timeout_ms,
|
|
233
246
|
)
|
|
234
247
|
|
|
248
|
+
async def connected_machines(
|
|
249
|
+
self,
|
|
250
|
+
request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesRequest,
|
|
251
|
+
*,
|
|
252
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
253
|
+
timeout_ms: int | None = None,
|
|
254
|
+
) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesResponse:
|
|
255
|
+
return await self.execute_unary(
|
|
256
|
+
request=request,
|
|
257
|
+
method=MethodInfo(
|
|
258
|
+
name="ConnectedMachines",
|
|
259
|
+
service_name="metalstack.admin.v2.SwitchService",
|
|
260
|
+
input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesRequest,
|
|
261
|
+
output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesResponse,
|
|
262
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
263
|
+
),
|
|
264
|
+
headers=headers,
|
|
265
|
+
timeout_ms=timeout_ms,
|
|
266
|
+
)
|
|
267
|
+
|
|
235
268
|
|
|
236
269
|
class SwitchServiceSync(Protocol):
|
|
237
270
|
def get(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceGetResponse:
|
|
@@ -246,6 +279,8 @@ class SwitchServiceSync(Protocol):
|
|
|
246
279
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
247
280
|
def port(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServicePortResponse:
|
|
248
281
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
282
|
+
def connected_machines(self, request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesResponse:
|
|
283
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
249
284
|
|
|
250
285
|
|
|
251
286
|
class SwitchServiceWSGIApplication(ConnectWSGIApplication):
|
|
@@ -312,6 +347,16 @@ class SwitchServiceWSGIApplication(ConnectWSGIApplication):
|
|
|
312
347
|
),
|
|
313
348
|
function=service.port,
|
|
314
349
|
),
|
|
350
|
+
"/metalstack.admin.v2.SwitchService/ConnectedMachines": EndpointSync.unary(
|
|
351
|
+
method=MethodInfo(
|
|
352
|
+
name="ConnectedMachines",
|
|
353
|
+
service_name="metalstack.admin.v2.SwitchService",
|
|
354
|
+
input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesRequest,
|
|
355
|
+
output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesResponse,
|
|
356
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
357
|
+
),
|
|
358
|
+
function=service.connected_machines,
|
|
359
|
+
),
|
|
315
360
|
},
|
|
316
361
|
interceptors=interceptors,
|
|
317
362
|
read_max_bytes=read_max_bytes,
|
|
@@ -443,3 +488,23 @@ class SwitchServiceClientSync(ConnectClientSync):
|
|
|
443
488
|
headers=headers,
|
|
444
489
|
timeout_ms=timeout_ms,
|
|
445
490
|
)
|
|
491
|
+
|
|
492
|
+
def connected_machines(
|
|
493
|
+
self,
|
|
494
|
+
request: metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesRequest,
|
|
495
|
+
*,
|
|
496
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
497
|
+
timeout_ms: int | None = None,
|
|
498
|
+
) -> metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesResponse:
|
|
499
|
+
return self.execute_unary(
|
|
500
|
+
request=request,
|
|
501
|
+
method=MethodInfo(
|
|
502
|
+
name="ConnectedMachines",
|
|
503
|
+
service_name="metalstack.admin.v2.SwitchService",
|
|
504
|
+
input=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesRequest,
|
|
505
|
+
output=metalstack_dot_admin_dot_v2_dot_switch__pb2.SwitchServiceConnectedMachinesResponse,
|
|
506
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
507
|
+
),
|
|
508
|
+
headers=headers,
|
|
509
|
+
timeout_ms=timeout_ms,
|
|
510
|
+
)
|