metal-stack-api 0.0.28__tar.gz → 0.0.29__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.
Files changed (103) hide show
  1. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/PKG-INFO +1 -1
  2. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metal_stack_api.egg-info/PKG-INFO +1 -1
  3. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/infra/v2/switch_connect.py +65 -0
  4. metal_stack_api-0.0.29/metalstack/infra/v2/switch_pb2.py +75 -0
  5. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/infra/v2/switch_pb2.pyi +18 -2
  6. metal_stack_api-0.0.28/metalstack/infra/v2/switch_pb2.py +0 -63
  7. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/README.md +0 -0
  8. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metal_stack_api.egg-info/SOURCES.txt +0 -0
  9. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metal_stack_api.egg-info/dependency_links.txt +0 -0
  10. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metal_stack_api.egg-info/requires.txt +0 -0
  11. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metal_stack_api.egg-info/top_level.txt +0 -0
  12. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/__init__.py +0 -0
  13. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/__init__.py +0 -0
  14. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/__init__.py +0 -0
  15. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/filesystem_connect.py +0 -0
  16. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/filesystem_pb2.py +0 -0
  17. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/filesystem_pb2.pyi +0 -0
  18. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/image_connect.py +0 -0
  19. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/image_pb2.py +0 -0
  20. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/image_pb2.pyi +0 -0
  21. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/ip_connect.py +0 -0
  22. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/ip_pb2.py +0 -0
  23. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/ip_pb2.pyi +0 -0
  24. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/machine_connect.py +0 -0
  25. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/machine_pb2.py +0 -0
  26. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/machine_pb2.pyi +0 -0
  27. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/network_connect.py +0 -0
  28. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/network_pb2.py +0 -0
  29. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/network_pb2.pyi +0 -0
  30. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/partition_connect.py +0 -0
  31. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/partition_pb2.py +0 -0
  32. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/partition_pb2.pyi +0 -0
  33. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/size_connect.py +0 -0
  34. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/size_pb2.py +0 -0
  35. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/size_pb2.pyi +0 -0
  36. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/switch_connect.py +0 -0
  37. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/switch_pb2.py +0 -0
  38. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/switch_pb2.pyi +0 -0
  39. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/tenant_connect.py +0 -0
  40. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/tenant_pb2.py +0 -0
  41. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/tenant_pb2.pyi +0 -0
  42. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/token_connect.py +0 -0
  43. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/token_pb2.py +0 -0
  44. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/admin/v2/token_pb2.pyi +0 -0
  45. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/__init__.py +0 -0
  46. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/__init__.py +0 -0
  47. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/common_pb2.py +0 -0
  48. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/common_pb2.pyi +0 -0
  49. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/filesystem_connect.py +0 -0
  50. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/filesystem_pb2.py +0 -0
  51. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/filesystem_pb2.pyi +0 -0
  52. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/health_connect.py +0 -0
  53. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/health_pb2.py +0 -0
  54. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/health_pb2.pyi +0 -0
  55. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/image_connect.py +0 -0
  56. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/image_pb2.py +0 -0
  57. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/image_pb2.pyi +0 -0
  58. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/ip_connect.py +0 -0
  59. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/ip_pb2.py +0 -0
  60. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/ip_pb2.pyi +0 -0
  61. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/machine_connect.py +0 -0
  62. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/machine_pb2.py +0 -0
  63. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/machine_pb2.pyi +0 -0
  64. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/method_connect.py +0 -0
  65. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/method_pb2.py +0 -0
  66. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/method_pb2.pyi +0 -0
  67. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/network_connect.py +0 -0
  68. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/network_pb2.py +0 -0
  69. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/network_pb2.pyi +0 -0
  70. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/partition_connect.py +0 -0
  71. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/partition_pb2.py +0 -0
  72. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/partition_pb2.pyi +0 -0
  73. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/predefined_rules_pb2.py +0 -0
  74. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/predefined_rules_pb2.pyi +0 -0
  75. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/project_connect.py +0 -0
  76. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/project_pb2.py +0 -0
  77. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/project_pb2.pyi +0 -0
  78. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/size_connect.py +0 -0
  79. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/size_pb2.py +0 -0
  80. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/size_pb2.pyi +0 -0
  81. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/switch_pb2.py +0 -0
  82. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/switch_pb2.pyi +0 -0
  83. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/tenant_connect.py +0 -0
  84. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/tenant_pb2.py +0 -0
  85. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/tenant_pb2.pyi +0 -0
  86. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/token_connect.py +0 -0
  87. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/token_pb2.py +0 -0
  88. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/token_pb2.pyi +0 -0
  89. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/user_connect.py +0 -0
  90. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/user_pb2.py +0 -0
  91. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/user_pb2.pyi +0 -0
  92. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/version_connect.py +0 -0
  93. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/version_pb2.py +0 -0
  94. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/api/v2/version_pb2.pyi +0 -0
  95. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/client/__init__.py +0 -0
  96. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/client/client.py +0 -0
  97. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/infra/__init__.py +0 -0
  98. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/infra/v2/__init__.py +0 -0
  99. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/infra/v2/bmc_connect.py +0 -0
  100. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/infra/v2/bmc_pb2.py +0 -0
  101. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/metalstack/infra/v2/bmc_pb2.pyi +0 -0
  102. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/setup.cfg +0 -0
  103. {metal_stack_api-0.0.28 → metal_stack_api-0.0.29}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metal-stack-api
3
- Version: 0.0.28
3
+ Version: 0.0.29
4
4
  Summary: Python API client for metal-stack api
5
5
  Home-page: https://github.com/metal-stack/api
6
6
  Author: metal-stack authors
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metal-stack-api
3
- Version: 0.0.28
3
+ Version: 0.0.29
4
4
  Summary: Python API client for metal-stack api
5
5
  Home-page: https://github.com/metal-stack/api
6
6
  Author: metal-stack authors
@@ -16,6 +16,9 @@ import metalstack.infra.v2.switch_pb2 as metalstack_dot_infra_dot_v2_dot_switch_
16
16
 
17
17
 
18
18
  class SwitchService(Protocol):
19
+ async def get(self, request: metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetRequest, ctx: RequestContext) -> metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetResponse:
20
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
21
+
19
22
  async def register(self, request: metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceRegisterRequest, ctx: RequestContext) -> metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceRegisterResponse:
20
23
  raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
21
24
 
@@ -27,6 +30,16 @@ class SwitchServiceASGIApplication(ConnectASGIApplication):
27
30
  def __init__(self, service: SwitchService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
28
31
  super().__init__(
29
32
  endpoints={
33
+ "/metalstack.infra.v2.SwitchService/Get": Endpoint.unary(
34
+ method=MethodInfo(
35
+ name="Get",
36
+ service_name="metalstack.infra.v2.SwitchService",
37
+ input=metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
38
+ output=metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetResponse,
39
+ idempotency_level=IdempotencyLevel.UNKNOWN,
40
+ ),
41
+ function=service.get,
42
+ ),
30
43
  "/metalstack.infra.v2.SwitchService/Register": Endpoint.unary(
31
44
  method=MethodInfo(
32
45
  name="Register",
@@ -59,6 +72,26 @@ class SwitchServiceASGIApplication(ConnectASGIApplication):
59
72
 
60
73
 
61
74
  class SwitchServiceClient(ConnectClient):
75
+ async def get(
76
+ self,
77
+ request: metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
78
+ *,
79
+ headers: Headers | Mapping[str, str] | None = None,
80
+ timeout_ms: int | None = None,
81
+ ) -> metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetResponse:
82
+ return await self.execute_unary(
83
+ request=request,
84
+ method=MethodInfo(
85
+ name="Get",
86
+ service_name="metalstack.infra.v2.SwitchService",
87
+ input=metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
88
+ output=metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetResponse,
89
+ idempotency_level=IdempotencyLevel.UNKNOWN,
90
+ ),
91
+ headers=headers,
92
+ timeout_ms=timeout_ms,
93
+ )
94
+
62
95
  async def register(
63
96
  self,
64
97
  request: metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceRegisterRequest,
@@ -101,6 +134,8 @@ class SwitchServiceClient(ConnectClient):
101
134
 
102
135
 
103
136
  class SwitchServiceSync(Protocol):
137
+ def get(self, request: metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetRequest, ctx: RequestContext) -> metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetResponse:
138
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
104
139
  def register(self, request: metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceRegisterRequest, ctx: RequestContext) -> metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceRegisterResponse:
105
140
  raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
106
141
  def heartbeat(self, request: metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceHeartbeatRequest, ctx: RequestContext) -> metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceHeartbeatResponse:
@@ -111,6 +146,16 @@ class SwitchServiceWSGIApplication(ConnectWSGIApplication):
111
146
  def __init__(self, service: SwitchServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
112
147
  super().__init__(
113
148
  endpoints={
149
+ "/metalstack.infra.v2.SwitchService/Get": EndpointSync.unary(
150
+ method=MethodInfo(
151
+ name="Get",
152
+ service_name="metalstack.infra.v2.SwitchService",
153
+ input=metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
154
+ output=metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetResponse,
155
+ idempotency_level=IdempotencyLevel.UNKNOWN,
156
+ ),
157
+ function=service.get,
158
+ ),
114
159
  "/metalstack.infra.v2.SwitchService/Register": EndpointSync.unary(
115
160
  method=MethodInfo(
116
161
  name="Register",
@@ -143,6 +188,26 @@ class SwitchServiceWSGIApplication(ConnectWSGIApplication):
143
188
 
144
189
 
145
190
  class SwitchServiceClientSync(ConnectClientSync):
191
+ def get(
192
+ self,
193
+ request: metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
194
+ *,
195
+ headers: Headers | Mapping[str, str] | None = None,
196
+ timeout_ms: int | None = None,
197
+ ) -> metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetResponse:
198
+ return self.execute_unary(
199
+ request=request,
200
+ method=MethodInfo(
201
+ name="Get",
202
+ service_name="metalstack.infra.v2.SwitchService",
203
+ input=metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetRequest,
204
+ output=metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceGetResponse,
205
+ idempotency_level=IdempotencyLevel.UNKNOWN,
206
+ ),
207
+ headers=headers,
208
+ timeout_ms=timeout_ms,
209
+ )
210
+
146
211
  def register(
147
212
  self,
148
213
  request: metalstack_dot_infra_dot_v2_dot_switch__pb2.SwitchServiceRegisterRequest,
@@ -0,0 +1,75 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: metalstack/infra/v2/switch.proto
5
+ # Protobuf Python Version: 6.32.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 32,
16
+ 1,
17
+ '',
18
+ 'metalstack/infra/v2/switch.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 switch_pb2 as metalstack_dot_api_dot_v2_dot_switch__pb2
31
+
32
+
33
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n metalstack/infra/v2/switch.proto\x12\x13metalstack.infra.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\x1emetalstack/api/v2/switch.proto\"8\n\x17SwitchServiceGetRequest\x12\x1d\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\x02id\"M\n\x18SwitchServiceGetResponse\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch\"Q\n\x1cSwitchServiceRegisterRequest\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch\"R\n\x1dSwitchServiceRegisterResponse\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch\"\xbb\x04\n\x1dSwitchServiceHeartbeatRequest\x12\x1d\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\x02id\x12\x35\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x19\n\x05\x65rror\x18\x03 \x01(\tH\x00R\x05\x65rror\x88\x01\x01\x12\x63\n\x0bport_states\x18\x04 \x03(\x0b\x32\x42.metalstack.infra.v2.SwitchServiceHeartbeatRequest.PortStatesEntryR\nportStates\x12m\n\x0f\x62gp_port_states\x18\x05 \x03(\x0b\x32\x45.metalstack.infra.v2.SwitchServiceHeartbeatRequest.BgpPortStatesEntryR\rbgpPortStates\x1a\x62\n\x0fPortStatesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusR\x05value:\x02\x38\x01\x1ag\n\x12\x42gpPortStatesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.metalstack.api.v2.SwitchBGPPortStateR\x05value:\x02\x38\x01\x42\x08\n\x06_error\"\xb7\x01\n\x1eSwitchServiceHeartbeatResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12<\n\tlast_sync\x18\x02 \x01(\x0b\x32\x1f.metalstack.infra.v2.SwitchSyncR\x08lastSync\x12G\n\x0flast_sync_error\x18\x03 \x01(\x0b\x32\x1f.metalstack.infra.v2.SwitchSyncR\rlastSyncError\"\x98\x01\n\nSwitchSync\x12.\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04time\x12\x35\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x19\n\x05\x65rror\x18\x03 \x01(\tH\x00R\x05\x65rror\x88\x01\x01\x42\x08\n\x06_error2\xfd\x02\n\rSwitchService\x12m\n\x03Get\x12,.metalstack.infra.v2.SwitchServiceGetRequest\x1a-.metalstack.infra.v2.SwitchServiceGetResponse\"\t\xe0\xf3\x18\x02\xea\xf3\x18\x01\x01\x12|\n\x08Register\x12\x31.metalstack.infra.v2.SwitchServiceRegisterRequest\x1a\x32.metalstack.infra.v2.SwitchServiceRegisterResponse\"\t\xe0\xf3\x18\x02\xea\xf3\x18\x01\x01\x12\x7f\n\tHeartbeat\x12\x32.metalstack.infra.v2.SwitchServiceHeartbeatRequest\x1a\x33.metalstack.infra.v2.SwitchServiceHeartbeatResponse\"\t\xe0\xf3\x18\x02\xea\xf3\x18\x01\x01\x42\xcf\x01\n\x17\x63om.metalstack.infra.v2B\x0bSwitchProtoP\x01Z9github.com/metal-stack/api/go/metalstack/infra/v2;infrav2\xa2\x02\x03MIX\xaa\x02\x13Metalstack.Infra.V2\xca\x02\x13Metalstack\\Infra\\V2\xe2\x02\x1fMetalstack\\Infra\\V2\\GPBMetadata\xea\x02\x15Metalstack::Infra::V2b\x06proto3')
34
+
35
+ _globals = globals()
36
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
37
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.infra.v2.switch_pb2', _globals)
38
+ if not _descriptor._USE_C_DESCRIPTORS:
39
+ _globals['DESCRIPTOR']._loaded_options = None
40
+ _globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.infra.v2B\013SwitchProtoP\001Z9github.com/metal-stack/api/go/metalstack/infra/v2;infrav2\242\002\003MIX\252\002\023Metalstack.Infra.V2\312\002\023Metalstack\\Infra\\V2\342\002\037Metalstack\\Infra\\V2\\GPBMetadata\352\002\025Metalstack::Infra::V2'
41
+ _globals['_SWITCHSERVICEGETREQUEST'].fields_by_name['id']._loaded_options = None
42
+ _globals['_SWITCHSERVICEGETREQUEST'].fields_by_name['id']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
43
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST_PORTSTATESENTRY']._loaded_options = None
44
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST_PORTSTATESENTRY']._serialized_options = b'8\001'
45
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST_BGPPORTSTATESENTRY']._loaded_options = None
46
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST_BGPPORTSTATESENTRY']._serialized_options = b'8\001'
47
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST'].fields_by_name['id']._loaded_options = None
48
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST'].fields_by_name['id']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
49
+ _globals['_SWITCHSERVICE'].methods_by_name['Get']._loaded_options = None
50
+ _globals['_SWITCHSERVICE'].methods_by_name['Get']._serialized_options = b'\340\363\030\002\352\363\030\001\001'
51
+ _globals['_SWITCHSERVICE'].methods_by_name['Register']._loaded_options = None
52
+ _globals['_SWITCHSERVICE'].methods_by_name['Register']._serialized_options = b'\340\363\030\002\352\363\030\001\001'
53
+ _globals['_SWITCHSERVICE'].methods_by_name['Heartbeat']._loaded_options = None
54
+ _globals['_SWITCHSERVICE'].methods_by_name['Heartbeat']._serialized_options = b'\340\363\030\002\352\363\030\001\001'
55
+ _globals['_SWITCHSERVICEGETREQUEST']._serialized_start=257
56
+ _globals['_SWITCHSERVICEGETREQUEST']._serialized_end=313
57
+ _globals['_SWITCHSERVICEGETRESPONSE']._serialized_start=315
58
+ _globals['_SWITCHSERVICEGETRESPONSE']._serialized_end=392
59
+ _globals['_SWITCHSERVICEREGISTERREQUEST']._serialized_start=394
60
+ _globals['_SWITCHSERVICEREGISTERREQUEST']._serialized_end=475
61
+ _globals['_SWITCHSERVICEREGISTERRESPONSE']._serialized_start=477
62
+ _globals['_SWITCHSERVICEREGISTERRESPONSE']._serialized_end=559
63
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST']._serialized_start=562
64
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST']._serialized_end=1133
65
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST_PORTSTATESENTRY']._serialized_start=920
66
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST_PORTSTATESENTRY']._serialized_end=1018
67
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST_BGPPORTSTATESENTRY']._serialized_start=1020
68
+ _globals['_SWITCHSERVICEHEARTBEATREQUEST_BGPPORTSTATESENTRY']._serialized_end=1123
69
+ _globals['_SWITCHSERVICEHEARTBEATRESPONSE']._serialized_start=1136
70
+ _globals['_SWITCHSERVICEHEARTBEATRESPONSE']._serialized_end=1319
71
+ _globals['_SWITCHSYNC']._serialized_start=1322
72
+ _globals['_SWITCHSYNC']._serialized_end=1474
73
+ _globals['_SWITCHSERVICE']._serialized_start=1477
74
+ _globals['_SWITCHSERVICE']._serialized_end=1858
75
+ # @@protoc_insertion_point(module_scope)
@@ -1,8 +1,10 @@
1
1
  import datetime
2
2
 
3
+ from buf.validate import validate_pb2 as _validate_pb2
3
4
  from google.protobuf import duration_pb2 as _duration_pb2
4
5
  from google.protobuf import timestamp_pb2 as _timestamp_pb2
5
6
  from metalstack.api.v2 import common_pb2 as _common_pb2
7
+ from metalstack.api.v2 import predefined_rules_pb2 as _predefined_rules_pb2
6
8
  from metalstack.api.v2 import switch_pb2 as _switch_pb2
7
9
  from google.protobuf.internal import containers as _containers
8
10
  from google.protobuf import descriptor as _descriptor
@@ -12,6 +14,18 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
12
14
 
13
15
  DESCRIPTOR: _descriptor.FileDescriptor
14
16
 
17
+ class SwitchServiceGetRequest(_message.Message):
18
+ __slots__ = ("id",)
19
+ ID_FIELD_NUMBER: _ClassVar[int]
20
+ id: str
21
+ def __init__(self, id: _Optional[str] = ...) -> None: ...
22
+
23
+ class SwitchServiceGetResponse(_message.Message):
24
+ __slots__ = ("switch",)
25
+ SWITCH_FIELD_NUMBER: _ClassVar[int]
26
+ switch: _switch_pb2.Switch
27
+ def __init__(self, switch: _Optional[_Union[_switch_pb2.Switch, _Mapping]] = ...) -> None: ...
28
+
15
29
  class SwitchServiceRegisterRequest(_message.Message):
16
30
  __slots__ = ("switch",)
17
31
  SWITCH_FIELD_NUMBER: _ClassVar[int]
@@ -25,7 +39,7 @@ class SwitchServiceRegisterResponse(_message.Message):
25
39
  def __init__(self, switch: _Optional[_Union[_switch_pb2.Switch, _Mapping]] = ...) -> None: ...
26
40
 
27
41
  class SwitchServiceHeartbeatRequest(_message.Message):
28
- __slots__ = ("duration", "error", "port_states", "bgp_port_states")
42
+ __slots__ = ("id", "duration", "error", "port_states", "bgp_port_states")
29
43
  class PortStatesEntry(_message.Message):
30
44
  __slots__ = ("key", "value")
31
45
  KEY_FIELD_NUMBER: _ClassVar[int]
@@ -40,15 +54,17 @@ class SwitchServiceHeartbeatRequest(_message.Message):
40
54
  key: str
41
55
  value: _switch_pb2.SwitchBGPPortState
42
56
  def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_switch_pb2.SwitchBGPPortState, _Mapping]] = ...) -> None: ...
57
+ ID_FIELD_NUMBER: _ClassVar[int]
43
58
  DURATION_FIELD_NUMBER: _ClassVar[int]
44
59
  ERROR_FIELD_NUMBER: _ClassVar[int]
45
60
  PORT_STATES_FIELD_NUMBER: _ClassVar[int]
46
61
  BGP_PORT_STATES_FIELD_NUMBER: _ClassVar[int]
62
+ id: str
47
63
  duration: _duration_pb2.Duration
48
64
  error: str
49
65
  port_states: _containers.ScalarMap[str, _switch_pb2.SwitchPortStatus]
50
66
  bgp_port_states: _containers.MessageMap[str, _switch_pb2.SwitchBGPPortState]
51
- def __init__(self, duration: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., error: _Optional[str] = ..., port_states: _Optional[_Mapping[str, _switch_pb2.SwitchPortStatus]] = ..., bgp_port_states: _Optional[_Mapping[str, _switch_pb2.SwitchBGPPortState]] = ...) -> None: ...
67
+ def __init__(self, id: _Optional[str] = ..., duration: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., error: _Optional[str] = ..., port_states: _Optional[_Mapping[str, _switch_pb2.SwitchPortStatus]] = ..., bgp_port_states: _Optional[_Mapping[str, _switch_pb2.SwitchBGPPortState]] = ...) -> None: ...
52
68
 
53
69
  class SwitchServiceHeartbeatResponse(_message.Message):
54
70
  __slots__ = ("id", "last_sync", "last_sync_error")
@@ -1,63 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- # Generated by the protocol buffer compiler. DO NOT EDIT!
3
- # NO CHECKED-IN PROTOBUF GENCODE
4
- # source: metalstack/infra/v2/switch.proto
5
- # Protobuf Python Version: 6.32.1
6
- """Generated protocol buffer code."""
7
- from google.protobuf import descriptor as _descriptor
8
- from google.protobuf import descriptor_pool as _descriptor_pool
9
- from google.protobuf import runtime_version as _runtime_version
10
- from google.protobuf import symbol_database as _symbol_database
11
- from google.protobuf.internal import builder as _builder
12
- _runtime_version.ValidateProtobufRuntimeVersion(
13
- _runtime_version.Domain.PUBLIC,
14
- 6,
15
- 32,
16
- 1,
17
- '',
18
- 'metalstack/infra/v2/switch.proto'
19
- )
20
- # @@protoc_insertion_point(imports)
21
-
22
- _sym_db = _symbol_database.Default()
23
-
24
-
25
- from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
26
- from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
27
- from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
28
- from metalstack.api.v2 import switch_pb2 as metalstack_dot_api_dot_v2_dot_switch__pb2
29
-
30
-
31
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n metalstack/infra/v2/switch.proto\x12\x13metalstack.infra.v2\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1emetalstack/api/v2/switch.proto\"Q\n\x1cSwitchServiceRegisterRequest\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch\"R\n\x1dSwitchServiceRegisterResponse\x12\x31\n\x06switch\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.SwitchR\x06switch\"\x9c\x04\n\x1dSwitchServiceHeartbeatRequest\x12\x35\n\x08\x64uration\x18\x01 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x19\n\x05\x65rror\x18\x02 \x01(\tH\x00R\x05\x65rror\x88\x01\x01\x12\x63\n\x0bport_states\x18\x03 \x03(\x0b\x32\x42.metalstack.infra.v2.SwitchServiceHeartbeatRequest.PortStatesEntryR\nportStates\x12m\n\x0f\x62gp_port_states\x18\x04 \x03(\x0b\x32\x45.metalstack.infra.v2.SwitchServiceHeartbeatRequest.BgpPortStatesEntryR\rbgpPortStates\x1a\x62\n\x0fPortStatesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusR\x05value:\x02\x38\x01\x1ag\n\x12\x42gpPortStatesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12;\n\x05value\x18\x02 \x01(\x0b\x32%.metalstack.api.v2.SwitchBGPPortStateR\x05value:\x02\x38\x01\x42\x08\n\x06_error\"\xb7\x01\n\x1eSwitchServiceHeartbeatResponse\x12\x0e\n\x02id\x18\x01 \x01(\tR\x02id\x12<\n\tlast_sync\x18\x02 \x01(\x0b\x32\x1f.metalstack.infra.v2.SwitchSyncR\x08lastSync\x12G\n\x0flast_sync_error\x18\x03 \x01(\x0b\x32\x1f.metalstack.infra.v2.SwitchSyncR\rlastSyncError\"\x98\x01\n\nSwitchSync\x12.\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x04time\x12\x35\n\x08\x64uration\x18\x02 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08\x64uration\x12\x19\n\x05\x65rror\x18\x03 \x01(\tH\x00R\x05\x65rror\x88\x01\x01\x42\x08\n\x06_error2\x8e\x02\n\rSwitchService\x12|\n\x08Register\x12\x31.metalstack.infra.v2.SwitchServiceRegisterRequest\x1a\x32.metalstack.infra.v2.SwitchServiceRegisterResponse\"\t\xe0\xf3\x18\x02\xea\xf3\x18\x01\x01\x12\x7f\n\tHeartbeat\x12\x32.metalstack.infra.v2.SwitchServiceHeartbeatRequest\x1a\x33.metalstack.infra.v2.SwitchServiceHeartbeatResponse\"\t\xe0\xf3\x18\x02\xea\xf3\x18\x01\x01\x42\xcf\x01\n\x17\x63om.metalstack.infra.v2B\x0bSwitchProtoP\x01Z9github.com/metal-stack/api/go/metalstack/infra/v2;infrav2\xa2\x02\x03MIX\xaa\x02\x13Metalstack.Infra.V2\xca\x02\x13Metalstack\\Infra\\V2\xe2\x02\x1fMetalstack\\Infra\\V2\\GPBMetadata\xea\x02\x15Metalstack::Infra::V2b\x06proto3')
32
-
33
- _globals = globals()
34
- _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
35
- _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.infra.v2.switch_pb2', _globals)
36
- if not _descriptor._USE_C_DESCRIPTORS:
37
- _globals['DESCRIPTOR']._loaded_options = None
38
- _globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.infra.v2B\013SwitchProtoP\001Z9github.com/metal-stack/api/go/metalstack/infra/v2;infrav2\242\002\003MIX\252\002\023Metalstack.Infra.V2\312\002\023Metalstack\\Infra\\V2\342\002\037Metalstack\\Infra\\V2\\GPBMetadata\352\002\025Metalstack::Infra::V2'
39
- _globals['_SWITCHSERVICEHEARTBEATREQUEST_PORTSTATESENTRY']._loaded_options = None
40
- _globals['_SWITCHSERVICEHEARTBEATREQUEST_PORTSTATESENTRY']._serialized_options = b'8\001'
41
- _globals['_SWITCHSERVICEHEARTBEATREQUEST_BGPPORTSTATESENTRY']._loaded_options = None
42
- _globals['_SWITCHSERVICEHEARTBEATREQUEST_BGPPORTSTATESENTRY']._serialized_options = b'8\001'
43
- _globals['_SWITCHSERVICE'].methods_by_name['Register']._loaded_options = None
44
- _globals['_SWITCHSERVICE'].methods_by_name['Register']._serialized_options = b'\340\363\030\002\352\363\030\001\001'
45
- _globals['_SWITCHSERVICE'].methods_by_name['Heartbeat']._loaded_options = None
46
- _globals['_SWITCHSERVICE'].methods_by_name['Heartbeat']._serialized_options = b'\340\363\030\002\352\363\030\001\001'
47
- _globals['_SWITCHSERVICEREGISTERREQUEST']._serialized_start=186
48
- _globals['_SWITCHSERVICEREGISTERREQUEST']._serialized_end=267
49
- _globals['_SWITCHSERVICEREGISTERRESPONSE']._serialized_start=269
50
- _globals['_SWITCHSERVICEREGISTERRESPONSE']._serialized_end=351
51
- _globals['_SWITCHSERVICEHEARTBEATREQUEST']._serialized_start=354
52
- _globals['_SWITCHSERVICEHEARTBEATREQUEST']._serialized_end=894
53
- _globals['_SWITCHSERVICEHEARTBEATREQUEST_PORTSTATESENTRY']._serialized_start=681
54
- _globals['_SWITCHSERVICEHEARTBEATREQUEST_PORTSTATESENTRY']._serialized_end=779
55
- _globals['_SWITCHSERVICEHEARTBEATREQUEST_BGPPORTSTATESENTRY']._serialized_start=781
56
- _globals['_SWITCHSERVICEHEARTBEATREQUEST_BGPPORTSTATESENTRY']._serialized_end=884
57
- _globals['_SWITCHSERVICEHEARTBEATRESPONSE']._serialized_start=897
58
- _globals['_SWITCHSERVICEHEARTBEATRESPONSE']._serialized_end=1080
59
- _globals['_SWITCHSYNC']._serialized_start=1083
60
- _globals['_SWITCHSYNC']._serialized_end=1235
61
- _globals['_SWITCHSERVICE']._serialized_start=1238
62
- _globals['_SWITCHSERVICE']._serialized_end=1508
63
- # @@protoc_insertion_point(module_scope)