metal-stack-api 0.0.48__tar.gz → 0.0.50__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.48 → metal_stack_api-0.0.50}/PKG-INFO +1 -1
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metal_stack_api.egg-info/PKG-INFO +1 -1
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metal_stack_api.egg-info/SOURCES.txt +8 -0
- metal_stack_api-0.0.50/metalstack/admin/v2/component_connect.py +250 -0
- metal_stack_api-0.0.50/metalstack/admin/v2/component_pb2.py +62 -0
- metal_stack_api-0.0.50/metalstack/admin/v2/component_pb2.pyi +46 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/partition_pb2.py +10 -6
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/tenant_pb2.py +10 -10
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/tenant_pb2.pyi +6 -6
- metal_stack_api-0.0.50/metalstack/api/v2/component_pb2.py +74 -0
- metal_stack_api-0.0.50/metalstack/api/v2/component_pb2.pyi +63 -0
- metal_stack_api-0.0.50/metalstack/api/v2/version_pb2.py +56 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/version_pb2.pyi +2 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/client/client.py +8 -0
- metal_stack_api-0.0.50/metalstack/infra/v2/component_connect.py +120 -0
- metal_stack_api-0.0.50/metalstack/infra/v2/component_pb2.py +58 -0
- metal_stack_api-0.0.50/metalstack/infra/v2/component_pb2.pyi +33 -0
- metal_stack_api-0.0.48/metalstack/api/v2/version_pb2.py +0 -46
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/README.md +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metal_stack_api.egg-info/dependency_links.txt +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metal_stack_api.egg-info/requires.txt +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metal_stack_api.egg-info/top_level.txt +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/__init__.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/__init__.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/__init__.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/filesystem_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/filesystem_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/filesystem_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/image_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/image_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/image_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/ip_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/ip_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/ip_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/machine_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/machine_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/machine_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/network_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/network_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/network_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/partition_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/partition_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/project_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/project_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/project_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/size_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/size_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/size_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/size_reservation_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/size_reservation_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/size_reservation_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/switch_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/switch_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/task_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/task_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/task_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/tenant_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/token_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/token_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/token_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/vpn_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/vpn_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/admin/v2/vpn_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/__init__.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/__init__.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/common_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/common_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/filesystem_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/filesystem_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/filesystem_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/health_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/health_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/health_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/image_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/image_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/image_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/ip_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/ip_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/ip_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/machine_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/machine_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/machine_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/method_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/method_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/method_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/network_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/network_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/network_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/partition_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/partition_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/partition_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/predefined_rules_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/predefined_rules_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/project_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/project_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/project_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/size_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/size_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/size_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/size_reservation_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/size_reservation_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/size_reservation_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/switch_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/tenant_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/tenant_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/tenant_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/token_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/token_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/token_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/user_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/user_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/user_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/version_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/vpn_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/api/v2/vpn_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/client/__init__.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/__init__.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/__init__.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/bmc_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/bmc_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/bmc_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/boot_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/boot_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/boot_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/event_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/event_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/event_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/switch_connect.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/switch_pb2.py +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/metalstack/infra/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/setup.cfg +0 -0
- {metal_stack_api-0.0.48 → metal_stack_api-0.0.50}/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/component_connect.py
|
|
12
|
+
metalstack/admin/v2/component_pb2.py
|
|
13
|
+
metalstack/admin/v2/component_pb2.pyi
|
|
11
14
|
metalstack/admin/v2/filesystem_connect.py
|
|
12
15
|
metalstack/admin/v2/filesystem_pb2.py
|
|
13
16
|
metalstack/admin/v2/filesystem_pb2.pyi
|
|
@@ -54,6 +57,8 @@ metalstack/api/__init__.py
|
|
|
54
57
|
metalstack/api/v2/__init__.py
|
|
55
58
|
metalstack/api/v2/common_pb2.py
|
|
56
59
|
metalstack/api/v2/common_pb2.pyi
|
|
60
|
+
metalstack/api/v2/component_pb2.py
|
|
61
|
+
metalstack/api/v2/component_pb2.pyi
|
|
57
62
|
metalstack/api/v2/filesystem_connect.py
|
|
58
63
|
metalstack/api/v2/filesystem_pb2.py
|
|
59
64
|
metalstack/api/v2/filesystem_pb2.pyi
|
|
@@ -115,6 +120,9 @@ metalstack/infra/v2/bmc_pb2.pyi
|
|
|
115
120
|
metalstack/infra/v2/boot_connect.py
|
|
116
121
|
metalstack/infra/v2/boot_pb2.py
|
|
117
122
|
metalstack/infra/v2/boot_pb2.pyi
|
|
123
|
+
metalstack/infra/v2/component_connect.py
|
|
124
|
+
metalstack/infra/v2/component_pb2.py
|
|
125
|
+
metalstack/infra/v2/component_pb2.pyi
|
|
118
126
|
metalstack/infra/v2/event_connect.py
|
|
119
127
|
metalstack/infra/v2/event_pb2.py
|
|
120
128
|
metalstack/infra/v2/event_pb2.pyi
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
|
+
# source: metalstack/admin/v2/component.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.component_pb2 as metalstack_dot_admin_dot_v2_dot_component__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ComponentService(Protocol):
|
|
19
|
+
async def get(self, request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetResponse:
|
|
20
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
|
+
|
|
22
|
+
async def delete(self, request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteResponse:
|
|
23
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
24
|
+
|
|
25
|
+
async def list(self, request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListResponse:
|
|
26
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ComponentServiceASGIApplication(ConnectASGIApplication[ComponentService]):
|
|
30
|
+
def __init__(self, service: ComponentService | AsyncGenerator[ComponentService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
31
|
+
super().__init__(
|
|
32
|
+
service=service,
|
|
33
|
+
endpoints=lambda svc: {
|
|
34
|
+
"/metalstack.admin.v2.ComponentService/Get": Endpoint.unary(
|
|
35
|
+
method=MethodInfo(
|
|
36
|
+
name="Get",
|
|
37
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
38
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetRequest,
|
|
39
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetResponse,
|
|
40
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
41
|
+
),
|
|
42
|
+
function=svc.get,
|
|
43
|
+
),
|
|
44
|
+
"/metalstack.admin.v2.ComponentService/Delete": Endpoint.unary(
|
|
45
|
+
method=MethodInfo(
|
|
46
|
+
name="Delete",
|
|
47
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
48
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteRequest,
|
|
49
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteResponse,
|
|
50
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
51
|
+
),
|
|
52
|
+
function=svc.delete,
|
|
53
|
+
),
|
|
54
|
+
"/metalstack.admin.v2.ComponentService/List": Endpoint.unary(
|
|
55
|
+
method=MethodInfo(
|
|
56
|
+
name="List",
|
|
57
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
58
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListRequest,
|
|
59
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListResponse,
|
|
60
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
61
|
+
),
|
|
62
|
+
function=svc.list,
|
|
63
|
+
),
|
|
64
|
+
},
|
|
65
|
+
interceptors=interceptors,
|
|
66
|
+
read_max_bytes=read_max_bytes,
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def path(self) -> str:
|
|
71
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
72
|
+
return "/metalstack.admin.v2.ComponentService"
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class ComponentServiceClient(ConnectClient):
|
|
76
|
+
async def get(
|
|
77
|
+
self,
|
|
78
|
+
request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetRequest,
|
|
79
|
+
*,
|
|
80
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
81
|
+
timeout_ms: int | None = None,
|
|
82
|
+
) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetResponse:
|
|
83
|
+
return await self.execute_unary(
|
|
84
|
+
request=request,
|
|
85
|
+
method=MethodInfo(
|
|
86
|
+
name="Get",
|
|
87
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
88
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetRequest,
|
|
89
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetResponse,
|
|
90
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
91
|
+
),
|
|
92
|
+
headers=headers,
|
|
93
|
+
timeout_ms=timeout_ms,
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
async def delete(
|
|
97
|
+
self,
|
|
98
|
+
request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteRequest,
|
|
99
|
+
*,
|
|
100
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
101
|
+
timeout_ms: int | None = None,
|
|
102
|
+
) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteResponse:
|
|
103
|
+
return await self.execute_unary(
|
|
104
|
+
request=request,
|
|
105
|
+
method=MethodInfo(
|
|
106
|
+
name="Delete",
|
|
107
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
108
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteRequest,
|
|
109
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteResponse,
|
|
110
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
111
|
+
),
|
|
112
|
+
headers=headers,
|
|
113
|
+
timeout_ms=timeout_ms,
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
async def list(
|
|
117
|
+
self,
|
|
118
|
+
request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListRequest,
|
|
119
|
+
*,
|
|
120
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
121
|
+
timeout_ms: int | None = None,
|
|
122
|
+
) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListResponse:
|
|
123
|
+
return await self.execute_unary(
|
|
124
|
+
request=request,
|
|
125
|
+
method=MethodInfo(
|
|
126
|
+
name="List",
|
|
127
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
128
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListRequest,
|
|
129
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListResponse,
|
|
130
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
131
|
+
),
|
|
132
|
+
headers=headers,
|
|
133
|
+
timeout_ms=timeout_ms,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class ComponentServiceSync(Protocol):
|
|
138
|
+
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
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
140
|
+
def delete(self, request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteResponse:
|
|
141
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
142
|
+
def list(self, request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListResponse:
|
|
143
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
class ComponentServiceWSGIApplication(ConnectWSGIApplication):
|
|
147
|
+
def __init__(self, service: ComponentServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
148
|
+
super().__init__(
|
|
149
|
+
endpoints={
|
|
150
|
+
"/metalstack.admin.v2.ComponentService/Get": EndpointSync.unary(
|
|
151
|
+
method=MethodInfo(
|
|
152
|
+
name="Get",
|
|
153
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
154
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetRequest,
|
|
155
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetResponse,
|
|
156
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
157
|
+
),
|
|
158
|
+
function=service.get,
|
|
159
|
+
),
|
|
160
|
+
"/metalstack.admin.v2.ComponentService/Delete": EndpointSync.unary(
|
|
161
|
+
method=MethodInfo(
|
|
162
|
+
name="Delete",
|
|
163
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
164
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteRequest,
|
|
165
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteResponse,
|
|
166
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
167
|
+
),
|
|
168
|
+
function=service.delete,
|
|
169
|
+
),
|
|
170
|
+
"/metalstack.admin.v2.ComponentService/List": EndpointSync.unary(
|
|
171
|
+
method=MethodInfo(
|
|
172
|
+
name="List",
|
|
173
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
174
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListRequest,
|
|
175
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListResponse,
|
|
176
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
177
|
+
),
|
|
178
|
+
function=service.list,
|
|
179
|
+
),
|
|
180
|
+
},
|
|
181
|
+
interceptors=interceptors,
|
|
182
|
+
read_max_bytes=read_max_bytes,
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def path(self) -> str:
|
|
187
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
188
|
+
return "/metalstack.admin.v2.ComponentService"
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
class ComponentServiceClientSync(ConnectClientSync):
|
|
192
|
+
def get(
|
|
193
|
+
self,
|
|
194
|
+
request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetRequest,
|
|
195
|
+
*,
|
|
196
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
197
|
+
timeout_ms: int | None = None,
|
|
198
|
+
) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetResponse:
|
|
199
|
+
return self.execute_unary(
|
|
200
|
+
request=request,
|
|
201
|
+
method=MethodInfo(
|
|
202
|
+
name="Get",
|
|
203
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
204
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetRequest,
|
|
205
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceGetResponse,
|
|
206
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
207
|
+
),
|
|
208
|
+
headers=headers,
|
|
209
|
+
timeout_ms=timeout_ms,
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
def delete(
|
|
213
|
+
self,
|
|
214
|
+
request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteRequest,
|
|
215
|
+
*,
|
|
216
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
217
|
+
timeout_ms: int | None = None,
|
|
218
|
+
) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteResponse:
|
|
219
|
+
return self.execute_unary(
|
|
220
|
+
request=request,
|
|
221
|
+
method=MethodInfo(
|
|
222
|
+
name="Delete",
|
|
223
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
224
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteRequest,
|
|
225
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceDeleteResponse,
|
|
226
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
227
|
+
),
|
|
228
|
+
headers=headers,
|
|
229
|
+
timeout_ms=timeout_ms,
|
|
230
|
+
)
|
|
231
|
+
|
|
232
|
+
def list(
|
|
233
|
+
self,
|
|
234
|
+
request: metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListRequest,
|
|
235
|
+
*,
|
|
236
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
237
|
+
timeout_ms: int | None = None,
|
|
238
|
+
) -> metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListResponse:
|
|
239
|
+
return self.execute_unary(
|
|
240
|
+
request=request,
|
|
241
|
+
method=MethodInfo(
|
|
242
|
+
name="List",
|
|
243
|
+
service_name="metalstack.admin.v2.ComponentService",
|
|
244
|
+
input=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListRequest,
|
|
245
|
+
output=metalstack_dot_admin_dot_v2_dot_component__pb2.ComponentServiceListResponse,
|
|
246
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
247
|
+
),
|
|
248
|
+
headers=headers,
|
|
249
|
+
timeout_ms=timeout_ms,
|
|
250
|
+
)
|
|
@@ -0,0 +1,62 @@
|
|
|
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/component.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/component.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
27
|
+
from metalstack.api.v2 import component_pb2 as metalstack_dot_api_dot_v2_dot_component__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#metalstack/admin/v2/component.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a!metalstack/api/v2/component.proto\"V\n\x1b\x43omponentServiceListRequest\x12\x37\n\x05query\x18\x01 \x01(\x0b\x32!.metalstack.api.v2.ComponentQueryR\x05query\"\\\n\x1c\x43omponentServiceListResponse\x12<\n\ncomponents\x18\x01 \x03(\x0b\x32\x1c.metalstack.api.v2.ComponentR\ncomponents\":\n\x1a\x43omponentServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"Y\n\x1b\x43omponentServiceGetResponse\x12:\n\tcomponent\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.ComponentR\tcomponent\"=\n\x1d\x43omponentServiceDeleteRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"\\\n\x1e\x43omponentServiceDeleteResponse\x12:\n\tcomponent\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.ComponentR\tcomponent2\xff\x02\n\x10\x43omponentService\x12t\n\x03Get\x12/.metalstack.admin.v2.ComponentServiceGetRequest\x1a\x30.metalstack.admin.v2.ComponentServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12|\n\x06\x44\x65lete\x12\x32.metalstack.admin.v2.ComponentServiceDeleteRequest\x1a\x33.metalstack.admin.v2.ComponentServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12w\n\x04List\x12\x30.metalstack.admin.v2.ComponentServiceListRequest\x1a\x31.metalstack.admin.v2.ComponentServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xd2\x01\n\x17\x63om.metalstack.admin.v2B\x0e\x43omponentProtoP\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.component_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\016ComponentProtoP\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['_COMPONENTSERVICEGETREQUEST'].fields_by_name['uuid']._loaded_options = None
|
|
39
|
+
_globals['_COMPONENTSERVICEGETREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
40
|
+
_globals['_COMPONENTSERVICEDELETEREQUEST'].fields_by_name['uuid']._loaded_options = None
|
|
41
|
+
_globals['_COMPONENTSERVICEDELETEREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
42
|
+
_globals['_COMPONENTSERVICE'].methods_by_name['Get']._loaded_options = None
|
|
43
|
+
_globals['_COMPONENTSERVICE'].methods_by_name['Get']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
|
|
44
|
+
_globals['_COMPONENTSERVICE'].methods_by_name['Delete']._loaded_options = None
|
|
45
|
+
_globals['_COMPONENTSERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
46
|
+
_globals['_COMPONENTSERVICE'].methods_by_name['List']._loaded_options = None
|
|
47
|
+
_globals['_COMPONENTSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
|
|
48
|
+
_globals['_COMPONENTSERVICELISTREQUEST']._serialized_start=156
|
|
49
|
+
_globals['_COMPONENTSERVICELISTREQUEST']._serialized_end=242
|
|
50
|
+
_globals['_COMPONENTSERVICELISTRESPONSE']._serialized_start=244
|
|
51
|
+
_globals['_COMPONENTSERVICELISTRESPONSE']._serialized_end=336
|
|
52
|
+
_globals['_COMPONENTSERVICEGETREQUEST']._serialized_start=338
|
|
53
|
+
_globals['_COMPONENTSERVICEGETREQUEST']._serialized_end=396
|
|
54
|
+
_globals['_COMPONENTSERVICEGETRESPONSE']._serialized_start=398
|
|
55
|
+
_globals['_COMPONENTSERVICEGETRESPONSE']._serialized_end=487
|
|
56
|
+
_globals['_COMPONENTSERVICEDELETEREQUEST']._serialized_start=489
|
|
57
|
+
_globals['_COMPONENTSERVICEDELETEREQUEST']._serialized_end=550
|
|
58
|
+
_globals['_COMPONENTSERVICEDELETERESPONSE']._serialized_start=552
|
|
59
|
+
_globals['_COMPONENTSERVICEDELETERESPONSE']._serialized_end=644
|
|
60
|
+
_globals['_COMPONENTSERVICE']._serialized_start=647
|
|
61
|
+
_globals['_COMPONENTSERVICE']._serialized_end=1030
|
|
62
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from metalstack.api.v2 import common_pb2 as _common_pb2
|
|
3
|
+
from metalstack.api.v2 import component_pb2 as _component_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 ComponentServiceListRequest(_message.Message):
|
|
13
|
+
__slots__ = ("query",)
|
|
14
|
+
QUERY_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
query: _component_pb2.ComponentQuery
|
|
16
|
+
def __init__(self, query: _Optional[_Union[_component_pb2.ComponentQuery, _Mapping]] = ...) -> None: ...
|
|
17
|
+
|
|
18
|
+
class ComponentServiceListResponse(_message.Message):
|
|
19
|
+
__slots__ = ("components",)
|
|
20
|
+
COMPONENTS_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
components: _containers.RepeatedCompositeFieldContainer[_component_pb2.Component]
|
|
22
|
+
def __init__(self, components: _Optional[_Iterable[_Union[_component_pb2.Component, _Mapping]]] = ...) -> None: ...
|
|
23
|
+
|
|
24
|
+
class ComponentServiceGetRequest(_message.Message):
|
|
25
|
+
__slots__ = ("uuid",)
|
|
26
|
+
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
uuid: str
|
|
28
|
+
def __init__(self, uuid: _Optional[str] = ...) -> None: ...
|
|
29
|
+
|
|
30
|
+
class ComponentServiceGetResponse(_message.Message):
|
|
31
|
+
__slots__ = ("component",)
|
|
32
|
+
COMPONENT_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
component: _component_pb2.Component
|
|
34
|
+
def __init__(self, component: _Optional[_Union[_component_pb2.Component, _Mapping]] = ...) -> None: ...
|
|
35
|
+
|
|
36
|
+
class ComponentServiceDeleteRequest(_message.Message):
|
|
37
|
+
__slots__ = ("uuid",)
|
|
38
|
+
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
uuid: str
|
|
40
|
+
def __init__(self, uuid: _Optional[str] = ...) -> None: ...
|
|
41
|
+
|
|
42
|
+
class ComponentServiceDeleteResponse(_message.Message):
|
|
43
|
+
__slots__ = ("component",)
|
|
44
|
+
COMPONENT_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
component: _component_pb2.Component
|
|
46
|
+
def __init__(self, component: _Optional[_Union[_component_pb2.Component, _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\"\xb3\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\x12\x45\n\ndns_server\x18\x05 \x03(\x0b\x32\x1c.metalstack.api.v2.DNSServerB\x08\xbaH\x05\x92\x01\x02\x10\x03R\tdnsServer\x12\x45\n\nntp_server\x18\x06 \x03(\x0b\x32\x1c.metalstack.api.v2.NTPServerB\x08\xbaH\x05\x92\x01\x02\x10\nR\tntpServer\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\"\
|
|
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\"\xb3\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\x12\x45\n\ndns_server\x18\x05 \x03(\x0b\x32\x1c.metalstack.api.v2.DNSServerB\x08\xbaH\x05\x92\x01\x02\x10\x03R\tdnsServer\x12\x45\n\nntp_server\x18\x06 \x03(\x0b\x32\x1c.metalstack.api.v2.NTPServerB\x08\xbaH\x05\x92\x01\x02\x10\nR\tntpServer\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)
|
|
@@ -54,6 +54,10 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
54
54
|
_globals['_PARTITIONSERVICECAPACITYREQUEST'].fields_by_name['size']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
55
55
|
_globals['_PARTITIONSERVICECAPACITYREQUEST'].fields_by_name['project']._loaded_options = None
|
|
56
56
|
_globals['_PARTITIONSERVICECAPACITYREQUEST'].fields_by_name['project']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
57
|
+
_globals['_PARTITIONCAPACITY'].fields_by_name['partition']._loaded_options = None
|
|
58
|
+
_globals['_PARTITIONCAPACITY'].fields_by_name['partition']._serialized_options = b'\272H\010r\006\320\263\256\261\002\001'
|
|
59
|
+
_globals['_MACHINESIZECAPACITY'].fields_by_name['size']._loaded_options = None
|
|
60
|
+
_globals['_MACHINESIZECAPACITY'].fields_by_name['size']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
57
61
|
_globals['_PARTITIONSERVICE'].methods_by_name['Create']._loaded_options = None
|
|
58
62
|
_globals['_PARTITIONSERVICE'].methods_by_name['Create']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
59
63
|
_globals['_PARTITIONSERVICE'].methods_by_name['Update']._loaded_options = None
|
|
@@ -79,9 +83,9 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
79
83
|
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_start=1378
|
|
80
84
|
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_end=1499
|
|
81
85
|
_globals['_PARTITIONCAPACITY']._serialized_start=1502
|
|
82
|
-
_globals['_PARTITIONCAPACITY']._serialized_end=
|
|
83
|
-
_globals['_MACHINESIZECAPACITY']._serialized_start=
|
|
84
|
-
_globals['_MACHINESIZECAPACITY']._serialized_end=
|
|
85
|
-
_globals['_PARTITIONSERVICE']._serialized_start=
|
|
86
|
-
_globals['_PARTITIONSERVICE']._serialized_end=
|
|
86
|
+
_globals['_PARTITIONCAPACITY']._serialized_end=1662
|
|
87
|
+
_globals['_MACHINESIZECAPACITY']._serialized_start=1665
|
|
88
|
+
_globals['_MACHINESIZECAPACITY']._serialized_end=2180
|
|
89
|
+
_globals['_PARTITIONSERVICE']._serialized_start=2183
|
|
90
|
+
_globals['_PARTITIONSERVICE']._serialized_end=2713
|
|
87
91
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -28,7 +28,7 @@ from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_
|
|
|
28
28
|
from metalstack.api.v2 import tenant_pb2 as metalstack_dot_api_dot_v2_dot_tenant__pb2
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n metalstack/admin/v2/tenant.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\x1a\x1emetalstack/api/v2/tenant.proto\"\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n metalstack/admin/v2/tenant.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\x1a\x1emetalstack/api/v2/tenant.proto\"\x95\x02\n\x1aTenantServiceCreateRequest\x12\x1f\n\x04name\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x04name\x12\x32\n\x0b\x64\x65scription\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x00R\x0b\x64\x65scription\x88\x01\x01\x12\"\n\x05\x65mail\x18\x03 \x01(\tB\x07\xbaH\x04r\x02`\x01H\x01R\x05\x65mail\x88\x01\x01\x12\"\n\navatar_url\x18\x04 \x01(\tH\x02R\tavatarUrl\x88\x01\x01\x12\x31\n\x06labels\x18\x05 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsR\x06labelsB\x0e\n\x0c_descriptionB\x08\n\x06_emailB\r\n\x0b_avatar_url\"P\n\x1bTenantServiceCreateResponse\x12\x31\n\x06tenant\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.TenantR\x06tenant\"\xa1\x01\n\x18TenantServiceListRequest\x12\x19\n\x05login\x18\x01 \x01(\tH\x00R\x05login\x88\x01\x01\x12$\n\x04name\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x01R\x04name\x88\x01\x01\x12\x31\n\x06paging\x18\x07 \x01(\x0b\x32\x19.metalstack.api.v2.PagingR\x06pagingB\x08\n\x06_loginB\x07\n\x05_name\"\x80\x01\n\x19TenantServiceListResponse\x12\x33\n\x07tenants\x18\x01 \x03(\x0b\x32\x19.metalstack.api.v2.TenantR\x07tenants\x12 \n\tnext_page\x18\x02 \x01(\x04H\x00R\x08nextPage\x88\x01\x01\x42\x0c\n\n_next_page2\xf2\x01\n\rTenantService\x12r\n\x06\x43reate\x12/.metalstack.admin.v2.TenantServiceCreateRequest\x1a\x30.metalstack.admin.v2.TenantServiceCreateResponse\"\x05\xd2\xf3\x18\x01\x01\x12m\n\x04List\x12-.metalstack.admin.v2.TenantServiceListRequest\x1a..metalstack.admin.v2.TenantServiceListResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x42\xcf\x01\n\x17\x63om.metalstack.admin.v2B\x0bTenantProtoP\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)
|
|
@@ -49,13 +49,13 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
49
49
|
_globals['_TENANTSERVICE'].methods_by_name['List']._loaded_options = None
|
|
50
50
|
_globals['_TENANTSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002'
|
|
51
51
|
_globals['_TENANTSERVICECREATEREQUEST']._serialized_start=193
|
|
52
|
-
_globals['_TENANTSERVICECREATEREQUEST']._serialized_end=
|
|
53
|
-
_globals['_TENANTSERVICECREATERESPONSE']._serialized_start=
|
|
54
|
-
_globals['_TENANTSERVICECREATERESPONSE']._serialized_end=
|
|
55
|
-
_globals['_TENANTSERVICELISTREQUEST']._serialized_start=
|
|
56
|
-
_globals['_TENANTSERVICELISTREQUEST']._serialized_end=
|
|
57
|
-
_globals['_TENANTSERVICELISTRESPONSE']._serialized_start=
|
|
58
|
-
_globals['_TENANTSERVICELISTRESPONSE']._serialized_end=
|
|
59
|
-
_globals['_TENANTSERVICE']._serialized_start=
|
|
60
|
-
_globals['_TENANTSERVICE']._serialized_end=
|
|
52
|
+
_globals['_TENANTSERVICECREATEREQUEST']._serialized_end=470
|
|
53
|
+
_globals['_TENANTSERVICECREATERESPONSE']._serialized_start=472
|
|
54
|
+
_globals['_TENANTSERVICECREATERESPONSE']._serialized_end=552
|
|
55
|
+
_globals['_TENANTSERVICELISTREQUEST']._serialized_start=555
|
|
56
|
+
_globals['_TENANTSERVICELISTREQUEST']._serialized_end=716
|
|
57
|
+
_globals['_TENANTSERVICELISTRESPONSE']._serialized_start=719
|
|
58
|
+
_globals['_TENANTSERVICELISTRESPONSE']._serialized_end=847
|
|
59
|
+
_globals['_TENANTSERVICE']._serialized_start=850
|
|
60
|
+
_globals['_TENANTSERVICE']._serialized_end=1092
|
|
61
61
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -11,16 +11,18 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
|
11
11
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
12
12
|
|
|
13
13
|
class TenantServiceCreateRequest(_message.Message):
|
|
14
|
-
__slots__ = ("name", "description", "email", "avatar_url")
|
|
14
|
+
__slots__ = ("name", "description", "email", "avatar_url", "labels")
|
|
15
15
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
16
16
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
17
17
|
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
18
18
|
AVATAR_URL_FIELD_NUMBER: _ClassVar[int]
|
|
19
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
19
20
|
name: str
|
|
20
21
|
description: str
|
|
21
22
|
email: str
|
|
22
23
|
avatar_url: str
|
|
23
|
-
|
|
24
|
+
labels: _common_pb2.Labels
|
|
25
|
+
def __init__(self, name: _Optional[str] = ..., description: _Optional[str] = ..., email: _Optional[str] = ..., avatar_url: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ...) -> None: ...
|
|
24
26
|
|
|
25
27
|
class TenantServiceCreateResponse(_message.Message):
|
|
26
28
|
__slots__ = ("tenant",)
|
|
@@ -29,16 +31,14 @@ class TenantServiceCreateResponse(_message.Message):
|
|
|
29
31
|
def __init__(self, tenant: _Optional[_Union[_tenant_pb2.Tenant, _Mapping]] = ...) -> None: ...
|
|
30
32
|
|
|
31
33
|
class TenantServiceListRequest(_message.Message):
|
|
32
|
-
__slots__ = ("login", "name", "
|
|
34
|
+
__slots__ = ("login", "name", "paging")
|
|
33
35
|
LOGIN_FIELD_NUMBER: _ClassVar[int]
|
|
34
36
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
-
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
36
37
|
PAGING_FIELD_NUMBER: _ClassVar[int]
|
|
37
38
|
login: str
|
|
38
39
|
name: str
|
|
39
|
-
email: str
|
|
40
40
|
paging: _common_pb2.Paging
|
|
41
|
-
def __init__(self, login: _Optional[str] = ..., name: _Optional[str] = ...,
|
|
41
|
+
def __init__(self, login: _Optional[str] = ..., name: _Optional[str] = ..., paging: _Optional[_Union[_common_pb2.Paging, _Mapping]] = ...) -> None: ...
|
|
42
42
|
|
|
43
43
|
class TenantServiceListResponse(_message.Message):
|
|
44
44
|
__slots__ = ("tenants", "next_page")
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: metalstack/api/v2/component.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/api/v2/component.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 google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
|
27
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
28
|
+
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
29
|
+
from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
|
|
30
|
+
from metalstack.api.v2 import token_pb2 as metalstack_dot_api_dot_v2_dot_token__pb2
|
|
31
|
+
from metalstack.api.v2 import version_pb2 as metalstack_dot_api_dot_v2_dot_version__pb2
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/api/v2/component.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\x1a\x1dmetalstack/api/v2/token.proto\x1a\x1fmetalstack/api/v2/version.proto\"\xab\x03\n\tComponent\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12>\n\x04type\x18\x02 \x01(\x0e\x32 .metalstack.api.v2.ComponentTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04type\x12+\n\nidentifier\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\nidentifier\x12\x39\n\nstarted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12;\n\x0breported_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAt\x12\x35\n\x08interval\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08interval\x12\x34\n\x07version\x18\x07 \x01(\x0b\x32\x1a.metalstack.api.v2.VersionR\x07version\x12.\n\x05token\x18\x08 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\"\xcb\x01\n\x0e\x43omponentQuery\x12!\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x00R\x04uuid\x88\x01\x01\x12\x43\n\x04type\x18\x02 \x01(\x0e\x32 .metalstack.api.v2.ComponentTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x01R\x04type\x88\x01\x01\x12\x30\n\nidentifier\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x02R\nidentifier\x88\x01\x01\x42\x07\n\x05_uuidB\x07\n\x05_typeB\r\n\x0b_identifier*\x8c\x03\n\rComponentType\x12/\n\x1a\x43OMPONENT_TYPE_UNSPECIFIED\x10\x00\x1a\x0f\x82\xb2\x19\x0bunspecified\x12+\n\x18\x43OMPONENT_TYPE_PIXIECORE\x10\x01\x1a\r\x82\xb2\x19\tpixiecore\x12-\n\x19\x43OMPONENT_TYPE_METAL_CORE\x10\x02\x1a\x0e\x82\xb2\x19\nmetal-core\x12+\n\x18\x43OMPONENT_TYPE_METAL_BMC\x10\x03\x1a\r\x82\xb2\x19\tmetal-bmc\x12\x45\n%COMPONENT_TYPE_METAL_IMAGE_CACHE_SYNC\x10\x04\x1a\x1a\x82\xb2\x19\x16metal-image-cache-sync\x12\x33\n\x1c\x43OMPONENT_TYPE_METAL_CONSOLE\x10\x05\x1a\x11\x82\xb2\x19\rmetal-console\x12\x45\n%COMPONENT_TYPE_METAL_METRICS_EXPORTER\x10\x06\x1a\x1a\x82\xb2\x19\x16metal-metrics-exporterB\xc4\x01\n\x15\x63om.metalstack.api.v2B\x0e\x43omponentProtoP\x01Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\xa2\x02\x03MAX\xaa\x02\x11Metalstack.Api.V2\xca\x02\x11Metalstack\\Api\\V2\xe2\x02\x1dMetalstack\\Api\\V2\\GPBMetadata\xea\x02\x13Metalstack::Api::V2b\x06proto3')
|
|
35
|
+
|
|
36
|
+
_globals = globals()
|
|
37
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
38
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.api.v2.component_pb2', _globals)
|
|
39
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
40
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
41
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\025com.metalstack.api.v2B\016ComponentProtoP\001Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\242\002\003MAX\252\002\021Metalstack.Api.V2\312\002\021Metalstack\\Api\\V2\342\002\035Metalstack\\Api\\V2\\GPBMetadata\352\002\023Metalstack::Api::V2'
|
|
42
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_UNSPECIFIED"]._loaded_options = None
|
|
43
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_UNSPECIFIED"]._serialized_options = b'\202\262\031\013unspecified'
|
|
44
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_PIXIECORE"]._loaded_options = None
|
|
45
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_PIXIECORE"]._serialized_options = b'\202\262\031\tpixiecore'
|
|
46
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_CORE"]._loaded_options = None
|
|
47
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_CORE"]._serialized_options = b'\202\262\031\nmetal-core'
|
|
48
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_BMC"]._loaded_options = None
|
|
49
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_BMC"]._serialized_options = b'\202\262\031\tmetal-bmc'
|
|
50
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_IMAGE_CACHE_SYNC"]._loaded_options = None
|
|
51
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_IMAGE_CACHE_SYNC"]._serialized_options = b'\202\262\031\026metal-image-cache-sync'
|
|
52
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_CONSOLE"]._loaded_options = None
|
|
53
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_CONSOLE"]._serialized_options = b'\202\262\031\rmetal-console'
|
|
54
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_METRICS_EXPORTER"]._loaded_options = None
|
|
55
|
+
_globals['_COMPONENTTYPE'].values_by_name["COMPONENT_TYPE_METAL_METRICS_EXPORTER"]._serialized_options = b'\202\262\031\026metal-metrics-exporter'
|
|
56
|
+
_globals['_COMPONENT'].fields_by_name['uuid']._loaded_options = None
|
|
57
|
+
_globals['_COMPONENT'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
58
|
+
_globals['_COMPONENT'].fields_by_name['type']._loaded_options = None
|
|
59
|
+
_globals['_COMPONENT'].fields_by_name['type']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
60
|
+
_globals['_COMPONENT'].fields_by_name['identifier']._loaded_options = None
|
|
61
|
+
_globals['_COMPONENT'].fields_by_name['identifier']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
62
|
+
_globals['_COMPONENTQUERY'].fields_by_name['uuid']._loaded_options = None
|
|
63
|
+
_globals['_COMPONENTQUERY'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
64
|
+
_globals['_COMPONENTQUERY'].fields_by_name['type']._loaded_options = None
|
|
65
|
+
_globals['_COMPONENTQUERY'].fields_by_name['type']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
66
|
+
_globals['_COMPONENTQUERY'].fields_by_name['identifier']._loaded_options = None
|
|
67
|
+
_globals['_COMPONENTQUERY'].fields_by_name['identifier']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
68
|
+
_globals['_COMPONENTTYPE']._serialized_start=925
|
|
69
|
+
_globals['_COMPONENTTYPE']._serialized_end=1321
|
|
70
|
+
_globals['_COMPONENT']._serialized_start=289
|
|
71
|
+
_globals['_COMPONENT']._serialized_end=716
|
|
72
|
+
_globals['_COMPONENTQUERY']._serialized_start=719
|
|
73
|
+
_globals['_COMPONENTQUERY']._serialized_end=922
|
|
74
|
+
# @@protoc_insertion_point(module_scope)
|