metal-stack-api 0.0.38__py3-none-any.whl → 0.0.40__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {metal_stack_api-0.0.38.dist-info → metal_stack_api-0.0.40.dist-info}/METADATA +3 -3
- metal_stack_api-0.0.40.dist-info/RECORD +108 -0
- {metal_stack_api-0.0.38.dist-info → metal_stack_api-0.0.40.dist-info}/WHEEL +1 -1
- metalstack/admin/v2/filesystem_connect.py +8 -7
- metalstack/admin/v2/filesystem_pb2.py +3 -3
- metalstack/admin/v2/image_connect.py +9 -8
- metalstack/admin/v2/image_pb2.py +3 -3
- metalstack/admin/v2/ip_connect.py +6 -5
- metalstack/admin/v2/ip_pb2.py +3 -3
- metalstack/admin/v2/machine_connect.py +7 -6
- metalstack/admin/v2/machine_pb2.py +3 -3
- metalstack/admin/v2/network_connect.py +10 -9
- metalstack/admin/v2/network_pb2.py +3 -3
- metalstack/admin/v2/partition_connect.py +9 -8
- metalstack/admin/v2/partition_pb2.py +3 -3
- metalstack/admin/v2/project_connect.py +6 -5
- metalstack/admin/v2/project_pb2.py +3 -3
- metalstack/admin/v2/size_connect.py +8 -7
- metalstack/admin/v2/size_pb2.py +3 -3
- metalstack/admin/v2/switch_connect.py +11 -10
- metalstack/admin/v2/switch_pb2.py +21 -21
- metalstack/admin/v2/switch_pb2.pyi +2 -4
- metalstack/admin/v2/tenant_connect.py +7 -6
- metalstack/admin/v2/tenant_pb2.py +3 -3
- metalstack/admin/v2/token_connect.py +8 -7
- metalstack/admin/v2/token_pb2.py +3 -3
- metalstack/admin/v2/vpn_connect.py +7 -6
- metalstack/admin/v2/vpn_pb2.py +17 -14
- metalstack/admin/v2/vpn_pb2.pyi +13 -4
- metalstack/api/v2/common_pb2.py +3 -3
- metalstack/api/v2/filesystem_connect.py +8 -7
- metalstack/api/v2/filesystem_pb2.py +3 -3
- metalstack/api/v2/health_connect.py +6 -5
- metalstack/api/v2/health_pb2.py +3 -3
- metalstack/api/v2/image_connect.py +8 -7
- metalstack/api/v2/image_pb2.py +3 -3
- metalstack/api/v2/ip_connect.py +10 -9
- metalstack/api/v2/ip_pb2.py +3 -3
- metalstack/api/v2/machine_connect.py +10 -9
- metalstack/api/v2/machine_pb2.py +3 -3
- metalstack/api/v2/method_connect.py +7 -6
- metalstack/api/v2/method_pb2.py +3 -3
- metalstack/api/v2/network_connect.py +11 -10
- metalstack/api/v2/network_pb2.py +3 -3
- metalstack/api/v2/partition_connect.py +7 -6
- metalstack/api/v2/partition_pb2.py +3 -3
- metalstack/api/v2/predefined_rules_pb2.py +3 -3
- metalstack/api/v2/project_connect.py +18 -17
- metalstack/api/v2/project_pb2.py +3 -3
- metalstack/api/v2/size_connect.py +7 -6
- metalstack/api/v2/size_pb2.py +3 -3
- metalstack/api/v2/switch_pb2.py +19 -17
- metalstack/api/v2/tenant_connect.py +18 -17
- metalstack/api/v2/tenant_pb2.py +3 -3
- metalstack/api/v2/token_connect.py +11 -10
- metalstack/api/v2/token_pb2.py +3 -3
- metalstack/api/v2/user_connect.py +6 -5
- metalstack/api/v2/user_pb2.py +3 -3
- metalstack/api/v2/version_connect.py +6 -5
- metalstack/api/v2/version_pb2.py +3 -3
- metalstack/api/v2/vpn_pb2.py +3 -3
- metalstack/infra/v2/bmc_connect.py +71 -5
- metalstack/infra/v2/bmc_pb2.py +12 -6
- metalstack/infra/v2/bmc_pb2.pyi +8 -0
- metalstack/infra/v2/event_connect.py +6 -5
- metalstack/infra/v2/event_pb2.py +3 -3
- metalstack/infra/v2/switch_connect.py +8 -7
- metalstack/infra/v2/switch_pb2.py +3 -3
- metal_stack_api-0.0.38.dist-info/RECORD +0 -108
- {metal_stack_api-0.0.38.dist-info → metal_stack_api-0.0.40.dist-info}/top_level.txt +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
3
|
# source: metalstack/api/v2/project.proto
|
|
4
4
|
|
|
5
|
-
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
5
|
+
from collections.abc import AsyncGenerator, AsyncIterator, Iterable, Iterator, Mapping
|
|
6
6
|
from typing import Protocol
|
|
7
7
|
|
|
8
8
|
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
@@ -56,10 +56,11 @@ class ProjectService(Protocol):
|
|
|
56
56
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
60
|
-
def __init__(self, service: ProjectService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
59
|
+
class ProjectServiceASGIApplication(ConnectASGIApplication[ProjectService]):
|
|
60
|
+
def __init__(self, service: ProjectService | AsyncGenerator[ProjectService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
61
61
|
super().__init__(
|
|
62
|
-
|
|
62
|
+
service=service,
|
|
63
|
+
endpoints=lambda svc: {
|
|
63
64
|
"/metalstack.api.v2.ProjectService/List": Endpoint.unary(
|
|
64
65
|
method=MethodInfo(
|
|
65
66
|
name="List",
|
|
@@ -68,7 +69,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
68
69
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceListResponse,
|
|
69
70
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
70
71
|
),
|
|
71
|
-
function=
|
|
72
|
+
function=svc.list,
|
|
72
73
|
),
|
|
73
74
|
"/metalstack.api.v2.ProjectService/Get": Endpoint.unary(
|
|
74
75
|
method=MethodInfo(
|
|
@@ -78,7 +79,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
78
79
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceGetResponse,
|
|
79
80
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
80
81
|
),
|
|
81
|
-
function=
|
|
82
|
+
function=svc.get,
|
|
82
83
|
),
|
|
83
84
|
"/metalstack.api.v2.ProjectService/Create": Endpoint.unary(
|
|
84
85
|
method=MethodInfo(
|
|
@@ -88,7 +89,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
88
89
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceCreateResponse,
|
|
89
90
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
90
91
|
),
|
|
91
|
-
function=
|
|
92
|
+
function=svc.create,
|
|
92
93
|
),
|
|
93
94
|
"/metalstack.api.v2.ProjectService/Delete": Endpoint.unary(
|
|
94
95
|
method=MethodInfo(
|
|
@@ -98,7 +99,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
98
99
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceDeleteResponse,
|
|
99
100
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
100
101
|
),
|
|
101
|
-
function=
|
|
102
|
+
function=svc.delete,
|
|
102
103
|
),
|
|
103
104
|
"/metalstack.api.v2.ProjectService/Update": Endpoint.unary(
|
|
104
105
|
method=MethodInfo(
|
|
@@ -108,7 +109,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
108
109
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceUpdateResponse,
|
|
109
110
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
110
111
|
),
|
|
111
|
-
function=
|
|
112
|
+
function=svc.update,
|
|
112
113
|
),
|
|
113
114
|
"/metalstack.api.v2.ProjectService/Leave": Endpoint.unary(
|
|
114
115
|
method=MethodInfo(
|
|
@@ -118,7 +119,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
118
119
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceLeaveResponse,
|
|
119
120
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
120
121
|
),
|
|
121
|
-
function=
|
|
122
|
+
function=svc.leave,
|
|
122
123
|
),
|
|
123
124
|
"/metalstack.api.v2.ProjectService/RemoveMember": Endpoint.unary(
|
|
124
125
|
method=MethodInfo(
|
|
@@ -128,7 +129,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
128
129
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceRemoveMemberResponse,
|
|
129
130
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
130
131
|
),
|
|
131
|
-
function=
|
|
132
|
+
function=svc.remove_member,
|
|
132
133
|
),
|
|
133
134
|
"/metalstack.api.v2.ProjectService/UpdateMember": Endpoint.unary(
|
|
134
135
|
method=MethodInfo(
|
|
@@ -138,7 +139,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
138
139
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceUpdateMemberResponse,
|
|
139
140
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
140
141
|
),
|
|
141
|
-
function=
|
|
142
|
+
function=svc.update_member,
|
|
142
143
|
),
|
|
143
144
|
"/metalstack.api.v2.ProjectService/Invite": Endpoint.unary(
|
|
144
145
|
method=MethodInfo(
|
|
@@ -148,7 +149,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
148
149
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceInviteResponse,
|
|
149
150
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
150
151
|
),
|
|
151
|
-
function=
|
|
152
|
+
function=svc.invite,
|
|
152
153
|
),
|
|
153
154
|
"/metalstack.api.v2.ProjectService/InviteAccept": Endpoint.unary(
|
|
154
155
|
method=MethodInfo(
|
|
@@ -158,7 +159,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
158
159
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceInviteAcceptResponse,
|
|
159
160
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
160
161
|
),
|
|
161
|
-
function=
|
|
162
|
+
function=svc.invite_accept,
|
|
162
163
|
),
|
|
163
164
|
"/metalstack.api.v2.ProjectService/InviteDelete": Endpoint.unary(
|
|
164
165
|
method=MethodInfo(
|
|
@@ -168,7 +169,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
168
169
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceInviteDeleteResponse,
|
|
169
170
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
170
171
|
),
|
|
171
|
-
function=
|
|
172
|
+
function=svc.invite_delete,
|
|
172
173
|
),
|
|
173
174
|
"/metalstack.api.v2.ProjectService/InvitesList": Endpoint.unary(
|
|
174
175
|
method=MethodInfo(
|
|
@@ -178,7 +179,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
178
179
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceInvitesListResponse,
|
|
179
180
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
180
181
|
),
|
|
181
|
-
function=
|
|
182
|
+
function=svc.invites_list,
|
|
182
183
|
),
|
|
183
184
|
"/metalstack.api.v2.ProjectService/InviteGet": Endpoint.unary(
|
|
184
185
|
method=MethodInfo(
|
|
@@ -188,7 +189,7 @@ class ProjectServiceASGIApplication(ConnectASGIApplication):
|
|
|
188
189
|
output=metalstack_dot_api_dot_v2_dot_project__pb2.ProjectServiceInviteGetResponse,
|
|
189
190
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
190
191
|
),
|
|
191
|
-
function=
|
|
192
|
+
function=svc.invite_get,
|
|
192
193
|
),
|
|
193
194
|
},
|
|
194
195
|
interceptors=interceptors,
|
metalstack/api/v2/project_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/project.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.33.4
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
33,
|
|
16
|
+
4,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/project.proto'
|
|
19
19
|
)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
3
|
# source: metalstack/api/v2/size.proto
|
|
4
4
|
|
|
5
|
-
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
5
|
+
from collections.abc import AsyncGenerator, AsyncIterator, Iterable, Iterator, Mapping
|
|
6
6
|
from typing import Protocol
|
|
7
7
|
|
|
8
8
|
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
@@ -23,10 +23,11 @@ class SizeService(Protocol):
|
|
|
23
23
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
class SizeServiceASGIApplication(ConnectASGIApplication):
|
|
27
|
-
def __init__(self, service: SizeService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
26
|
+
class SizeServiceASGIApplication(ConnectASGIApplication[SizeService]):
|
|
27
|
+
def __init__(self, service: SizeService | AsyncGenerator[SizeService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
28
28
|
super().__init__(
|
|
29
|
-
|
|
29
|
+
service=service,
|
|
30
|
+
endpoints=lambda svc: {
|
|
30
31
|
"/metalstack.api.v2.SizeService/Get": Endpoint.unary(
|
|
31
32
|
method=MethodInfo(
|
|
32
33
|
name="Get",
|
|
@@ -35,7 +36,7 @@ class SizeServiceASGIApplication(ConnectASGIApplication):
|
|
|
35
36
|
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceGetResponse,
|
|
36
37
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
37
38
|
),
|
|
38
|
-
function=
|
|
39
|
+
function=svc.get,
|
|
39
40
|
),
|
|
40
41
|
"/metalstack.api.v2.SizeService/List": Endpoint.unary(
|
|
41
42
|
method=MethodInfo(
|
|
@@ -45,7 +46,7 @@ class SizeServiceASGIApplication(ConnectASGIApplication):
|
|
|
45
46
|
output=metalstack_dot_api_dot_v2_dot_size__pb2.SizeServiceListResponse,
|
|
46
47
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
47
48
|
),
|
|
48
|
-
function=
|
|
49
|
+
function=svc.list,
|
|
49
50
|
),
|
|
50
51
|
},
|
|
51
52
|
interceptors=interceptors,
|
metalstack/api/v2/size_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/size.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.33.4
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
33,
|
|
16
|
+
4,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/size.proto'
|
|
19
19
|
)
|
metalstack/api/v2/switch_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/switch.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.33.4
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
33,
|
|
16
|
+
4,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/switch.proto'
|
|
19
19
|
)
|
|
@@ -29,7 +29,7 @@ from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common
|
|
|
29
29
|
from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emetalstack/api/v2/switch.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\"\xb3\x06\n\x06Switch\x12\x1d\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\x02id\x12+\n\x04meta\x18\x02 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12-\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\x12$\n\x04rack\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x04rack\x88\x01\x01\x12)\n\tpartition\x18\x05 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01R\tpartition\x12Q\n\x0creplace_mode\x18\x06 \x01(\x0e\x32$.metalstack.api.v2.SwitchReplaceModeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x0breplaceMode\x12,\n\rmanagement_ip\x18\x07 \x01(\tB\x07\xbaH\x04r\x02p\x01R\x0cmanagementIp\x12\x38\n\x0fmanagement_user\x18\x08 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0emanagementUser\x88\x01\x01\x12\x38\n\x0f\x63onsole_command\x18\t \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x02R\x0e\x63onsoleCommand\x88\x01\x01\x12\x30\n\x04nics\x18\n \x03(\x0b\x32\x1c.metalstack.api.v2.SwitchNicR\x04nics\x12+\n\x02os\x18\x0b \x01(\x0b\x32\x1b.metalstack.api.v2.SwitchOSR\x02os\x12U\n\x13machine_connections\x18\x0c \x03(\x0b\x32$.metalstack.api.v2.MachineConnectionR\x12machineConnections\x12:\n\tlast_sync\x18\r \x01(\x0b\x32\x1d.metalstack.api.v2.SwitchSyncR\x08lastSync\x12\x45\n\x0flast_sync_error\x18\x0e \x01(\x0b\x32\x1d.metalstack.api.v2.SwitchSyncR\rlastSyncErrorB\x07\n\x05_rackB\x12\n\x10_management_userB\x12\n\x10_console_command\"\xb1\x01\n\x08SwitchOS\x12\x43\n\x06vendor\x18\x01 \x01(\x0e\x32!.metalstack.api.v2.SwitchOSVendorB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06vendor\x12%\n\x07version\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x07version\x12\x39\n\x12metal_core_version\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x10metalCoreVersion\"\x9c\x03\n\tSwitchNic\x12\x1f\n\x04name\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x04name\x12+\n\nidentifier\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\nidentifier\x12\x1d\n\x03mac\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xb8\xb3\xae\xb1\x02\x01R\x03mac\x12\"\n\x03vrf\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x03vrf\x88\x01\x01\x12\x36\n\x05state\x18\x05 \x01(\x0b\x32\x1b.metalstack.api.v2.NicStateH\x01R\x05state\x88\x01\x01\x12@\n\nbgp_filter\x18\x06 \x01(\x0b\x32\x1c.metalstack.api.v2.BGPFilterH\x02R\tbgpFilter\x88\x01\x01\x12P\n\x0e\x62gp_port_state\x18\x07 \x01(\x0b\x32%.metalstack.api.v2.SwitchBGPPortStateH\x03R\x0c\x62gpPortState\x88\x01\x01\x42\x06\n\x04_vrfB\x08\n\x06_stateB\r\n\x0b_bgp_filterB\x11\n\x0f_bgp_port_state\"T\n\tBGPFilter\x12\"\n\x05\x63idrs\x18\x01 \x03(\tB\x0c\xbaH\t\x92\x01\x06\xe0\xb3\xae\xb1\x02\x01R\x05\x63idrs\x12#\n\x04vnis\x18\x02 \x03(\tB\x0f\xbaH\x0c\x92\x01\t\"\x07r\x05\x10\x02\x18\x80\x01R\x04vnis\"\x92\x03\n\x12SwitchBGPPortState\x12\'\n\x08neighbor\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x08neighbor\x12*\n\npeer_group\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\tpeerGroup\x12&\n\x08vrf_name\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x07vrfName\x12\x42\n\tbgp_state\x18\x04 \x01(\x0e\x32\x1b.metalstack.api.v2.BGPStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x08\x62gpState\x12S\n\x18\x62gp_timer_up_established\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x15\x62gpTimerUpEstablished\x12.\n\x13sent_prefix_counter\x18\x06 \x01(\x04R\x11sentPrefixCounter\x12\x36\n\x17\x61\x63\x63\x65pted_prefix_counter\x18\x07 \x01(\x04R\x15\x61\x63\x63\x65ptedPrefixCounter\"\xab\x01\n\x08NicState\x12L\n\x07\x64\x65sired\x18\x01 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x07\x64\x65sired\x88\x01\x01\x12\x45\n\x06\x61\x63tual\x18\x02 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06\x61\x63tualB\n\n\x08_desired\"b\n\x11MachineConnection\x12\x1d\n\nmachine_id\x18\x01 \x01(\tR\tmachineId\x12.\n\x03nic\x18\x02 \x01(\x0b\x32\x1c.metalstack.api.v2.SwitchNicR\x03nic\"\xe3\x01\n\x0bSwitchQuery\x12\"\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01H\x00R\x02id\x88\x01\x01\x12.\n\tpartition\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01H\x01R\tpartition\x88\x01\x01\x12$\n\x04rack\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x02R\x04rack\x88\x01\x01\x12\x35\n\x02os\x18\x04 \x01(\x0b\x32 .metalstack.api.v2.SwitchOSQueryH\x03R\x02os\x88\x01\x01\x42\x05\n\x03_idB\x0c\n\n_partitionB\x07\n\x05_rackB\x05\n\x03_os\"\x9c\x01\n\rSwitchOSQuery\x12H\n\x06vendor\x18\x01 \x01(\x0e\x32!.metalstack.api.v2.SwitchOSVendorB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x06vendor\x88\x01\x01\x12*\n\x07version\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x01R\x07version\x88\x01\x01\x42\t\n\x07_vendorB\n\n\x08_version\"\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_error*\
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emetalstack/api/v2/switch.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\"\xb3\x06\n\x06Switch\x12\x1d\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\x02id\x12+\n\x04meta\x18\x02 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12-\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\x12$\n\x04rack\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x04rack\x88\x01\x01\x12)\n\tpartition\x18\x05 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01R\tpartition\x12Q\n\x0creplace_mode\x18\x06 \x01(\x0e\x32$.metalstack.api.v2.SwitchReplaceModeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x0breplaceMode\x12,\n\rmanagement_ip\x18\x07 \x01(\tB\x07\xbaH\x04r\x02p\x01R\x0cmanagementIp\x12\x38\n\x0fmanagement_user\x18\x08 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0emanagementUser\x88\x01\x01\x12\x38\n\x0f\x63onsole_command\x18\t \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x02R\x0e\x63onsoleCommand\x88\x01\x01\x12\x30\n\x04nics\x18\n \x03(\x0b\x32\x1c.metalstack.api.v2.SwitchNicR\x04nics\x12+\n\x02os\x18\x0b \x01(\x0b\x32\x1b.metalstack.api.v2.SwitchOSR\x02os\x12U\n\x13machine_connections\x18\x0c \x03(\x0b\x32$.metalstack.api.v2.MachineConnectionR\x12machineConnections\x12:\n\tlast_sync\x18\r \x01(\x0b\x32\x1d.metalstack.api.v2.SwitchSyncR\x08lastSync\x12\x45\n\x0flast_sync_error\x18\x0e \x01(\x0b\x32\x1d.metalstack.api.v2.SwitchSyncR\rlastSyncErrorB\x07\n\x05_rackB\x12\n\x10_management_userB\x12\n\x10_console_command\"\xb1\x01\n\x08SwitchOS\x12\x43\n\x06vendor\x18\x01 \x01(\x0e\x32!.metalstack.api.v2.SwitchOSVendorB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06vendor\x12%\n\x07version\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x07version\x12\x39\n\x12metal_core_version\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x10metalCoreVersion\"\x9c\x03\n\tSwitchNic\x12\x1f\n\x04name\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x04name\x12+\n\nidentifier\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\nidentifier\x12\x1d\n\x03mac\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xb8\xb3\xae\xb1\x02\x01R\x03mac\x12\"\n\x03vrf\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x03vrf\x88\x01\x01\x12\x36\n\x05state\x18\x05 \x01(\x0b\x32\x1b.metalstack.api.v2.NicStateH\x01R\x05state\x88\x01\x01\x12@\n\nbgp_filter\x18\x06 \x01(\x0b\x32\x1c.metalstack.api.v2.BGPFilterH\x02R\tbgpFilter\x88\x01\x01\x12P\n\x0e\x62gp_port_state\x18\x07 \x01(\x0b\x32%.metalstack.api.v2.SwitchBGPPortStateH\x03R\x0c\x62gpPortState\x88\x01\x01\x42\x06\n\x04_vrfB\x08\n\x06_stateB\r\n\x0b_bgp_filterB\x11\n\x0f_bgp_port_state\"T\n\tBGPFilter\x12\"\n\x05\x63idrs\x18\x01 \x03(\tB\x0c\xbaH\t\x92\x01\x06\xe0\xb3\xae\xb1\x02\x01R\x05\x63idrs\x12#\n\x04vnis\x18\x02 \x03(\tB\x0f\xbaH\x0c\x92\x01\t\"\x07r\x05\x10\x02\x18\x80\x01R\x04vnis\"\x92\x03\n\x12SwitchBGPPortState\x12\'\n\x08neighbor\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x08neighbor\x12*\n\npeer_group\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\tpeerGroup\x12&\n\x08vrf_name\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x07vrfName\x12\x42\n\tbgp_state\x18\x04 \x01(\x0e\x32\x1b.metalstack.api.v2.BGPStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x08\x62gpState\x12S\n\x18\x62gp_timer_up_established\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x15\x62gpTimerUpEstablished\x12.\n\x13sent_prefix_counter\x18\x06 \x01(\x04R\x11sentPrefixCounter\x12\x36\n\x17\x61\x63\x63\x65pted_prefix_counter\x18\x07 \x01(\x04R\x15\x61\x63\x63\x65ptedPrefixCounter\"\xab\x01\n\x08NicState\x12L\n\x07\x64\x65sired\x18\x01 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x07\x64\x65sired\x88\x01\x01\x12\x45\n\x06\x61\x63tual\x18\x02 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06\x61\x63tualB\n\n\x08_desired\"b\n\x11MachineConnection\x12\x1d\n\nmachine_id\x18\x01 \x01(\tR\tmachineId\x12.\n\x03nic\x18\x02 \x01(\x0b\x32\x1c.metalstack.api.v2.SwitchNicR\x03nic\"\xe3\x01\n\x0bSwitchQuery\x12\"\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01H\x00R\x02id\x88\x01\x01\x12.\n\tpartition\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01H\x01R\tpartition\x88\x01\x01\x12$\n\x04rack\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x02R\x04rack\x88\x01\x01\x12\x35\n\x02os\x18\x04 \x01(\x0b\x32 .metalstack.api.v2.SwitchOSQueryH\x03R\x02os\x88\x01\x01\x42\x05\n\x03_idB\x0c\n\n_partitionB\x07\n\x05_rackB\x05\n\x03_os\"\x9c\x01\n\rSwitchOSQuery\x12H\n\x06vendor\x18\x01 \x01(\x0e\x32!.metalstack.api.v2.SwitchOSVendorB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x06vendor\x88\x01\x01\x12*\n\x07version\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x01R\x07version\x88\x01\x01\x42\t\n\x07_vendorB\n\n\x08_version\"\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_error*\x89\x02\n\x08\x42GPState\x12\x19\n\x15\x42GP_STATE_UNSPECIFIED\x10\x00\x12\x1c\n\x0e\x42GP_STATE_IDLE\x10\x01\x1a\x08\x82\xb2\x19\x04Idle\x12\"\n\x11\x42GP_STATE_CONNECT\x10\x02\x1a\x0b\x82\xb2\x19\x07\x43onnect\x12 \n\x10\x42GP_STATE_ACTIVE\x10\x03\x1a\n\x82\xb2\x19\x06\x41\x63tive\x12%\n\x13\x42GP_STATE_OPEN_SENT\x10\x04\x1a\x0c\x82\xb2\x19\x08OpenSent\x12+\n\x16\x42GP_STATE_OPEN_CONFIRM\x10\x05\x1a\x0f\x82\xb2\x19\x0bOpenConfirm\x12*\n\x15\x42GP_STATE_ESTABLISHED\x10\x06\x1a\x0f\x82\xb2\x19\x0b\x45stablished*\xa2\x01\n\x11SwitchReplaceMode\x12)\n\x1fSWITCH_REPLACE_MODE_UNSPECIFIED\x10\x00\x1a\x04\x82\xb2\x19\x00\x12,\n\x1bSWITCH_REPLACE_MODE_REPLACE\x10\x01\x1a\x0b\x82\xb2\x19\x07replace\x12\x34\n\x1fSWITCH_REPLACE_MODE_OPERATIONAL\x10\x02\x1a\x0f\x82\xb2\x19\x0boperational*\x84\x01\n\x0eSwitchOSVendor\x12 \n\x1cSWITCH_OS_VENDOR_UNSPECIFIED\x10\x00\x12)\n\x18SWITCH_OS_VENDOR_CUMULUS\x10\x01\x1a\x0b\x82\xb2\x19\x07\x43umulus\x12%\n\x16SWITCH_OS_VENDOR_SONIC\x10\x02\x1a\t\x82\xb2\x19\x05SONiC*\xad\x01\n\x10SwitchPortStatus\x12\"\n\x1eSWITCH_PORT_STATUS_UNSPECIFIED\x10\x00\x12!\n\x15SWITCH_PORT_STATUS_UP\x10\x01\x1a\x06\x82\xb2\x19\x02up\x12%\n\x17SWITCH_PORT_STATUS_DOWN\x10\x02\x1a\x08\x82\xb2\x19\x04\x64own\x12+\n\x1aSWITCH_PORT_STATUS_UNKNOWN\x10\x03\x1a\x0b\x82\xb2\x19\x07unknownB\xc1\x01\n\x15\x63om.metalstack.api.v2B\x0bSwitchProtoP\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')
|
|
33
33
|
|
|
34
34
|
_globals = globals()
|
|
35
35
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -38,17 +38,19 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
38
38
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
39
39
|
_globals['DESCRIPTOR']._serialized_options = b'\n\025com.metalstack.api.v2B\013SwitchProtoP\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'
|
|
40
40
|
_globals['_BGPSTATE'].values_by_name["BGP_STATE_IDLE"]._loaded_options = None
|
|
41
|
-
_globals['_BGPSTATE'].values_by_name["BGP_STATE_IDLE"]._serialized_options = b'\202\262\031\
|
|
41
|
+
_globals['_BGPSTATE'].values_by_name["BGP_STATE_IDLE"]._serialized_options = b'\202\262\031\004Idle'
|
|
42
42
|
_globals['_BGPSTATE'].values_by_name["BGP_STATE_CONNECT"]._loaded_options = None
|
|
43
|
-
_globals['_BGPSTATE'].values_by_name["BGP_STATE_CONNECT"]._serialized_options = b'\202\262\031\
|
|
43
|
+
_globals['_BGPSTATE'].values_by_name["BGP_STATE_CONNECT"]._serialized_options = b'\202\262\031\007Connect'
|
|
44
44
|
_globals['_BGPSTATE'].values_by_name["BGP_STATE_ACTIVE"]._loaded_options = None
|
|
45
|
-
_globals['_BGPSTATE'].values_by_name["BGP_STATE_ACTIVE"]._serialized_options = b'\202\262\031\
|
|
45
|
+
_globals['_BGPSTATE'].values_by_name["BGP_STATE_ACTIVE"]._serialized_options = b'\202\262\031\006Active'
|
|
46
46
|
_globals['_BGPSTATE'].values_by_name["BGP_STATE_OPEN_SENT"]._loaded_options = None
|
|
47
|
-
_globals['_BGPSTATE'].values_by_name["BGP_STATE_OPEN_SENT"]._serialized_options = b'\202\262\031\
|
|
47
|
+
_globals['_BGPSTATE'].values_by_name["BGP_STATE_OPEN_SENT"]._serialized_options = b'\202\262\031\010OpenSent'
|
|
48
48
|
_globals['_BGPSTATE'].values_by_name["BGP_STATE_OPEN_CONFIRM"]._loaded_options = None
|
|
49
|
-
_globals['_BGPSTATE'].values_by_name["BGP_STATE_OPEN_CONFIRM"]._serialized_options = b'\202\262\031\
|
|
49
|
+
_globals['_BGPSTATE'].values_by_name["BGP_STATE_OPEN_CONFIRM"]._serialized_options = b'\202\262\031\013OpenConfirm'
|
|
50
50
|
_globals['_BGPSTATE'].values_by_name["BGP_STATE_ESTABLISHED"]._loaded_options = None
|
|
51
|
-
_globals['_BGPSTATE'].values_by_name["BGP_STATE_ESTABLISHED"]._serialized_options = b'\202\262\031\
|
|
51
|
+
_globals['_BGPSTATE'].values_by_name["BGP_STATE_ESTABLISHED"]._serialized_options = b'\202\262\031\013Established'
|
|
52
|
+
_globals['_SWITCHREPLACEMODE'].values_by_name["SWITCH_REPLACE_MODE_UNSPECIFIED"]._loaded_options = None
|
|
53
|
+
_globals['_SWITCHREPLACEMODE'].values_by_name["SWITCH_REPLACE_MODE_UNSPECIFIED"]._serialized_options = b'\202\262\031\000'
|
|
52
54
|
_globals['_SWITCHREPLACEMODE'].values_by_name["SWITCH_REPLACE_MODE_REPLACE"]._loaded_options = None
|
|
53
55
|
_globals['_SWITCHREPLACEMODE'].values_by_name["SWITCH_REPLACE_MODE_REPLACE"]._serialized_options = b'\202\262\031\007replace'
|
|
54
56
|
_globals['_SWITCHREPLACEMODE'].values_by_name["SWITCH_REPLACE_MODE_OPERATIONAL"]._loaded_options = None
|
|
@@ -120,13 +122,13 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
120
122
|
_globals['_SWITCHOSQUERY'].fields_by_name['version']._loaded_options = None
|
|
121
123
|
_globals['_SWITCHOSQUERY'].fields_by_name['version']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
122
124
|
_globals['_BGPSTATE']._serialized_start=2948
|
|
123
|
-
_globals['_BGPSTATE']._serialized_end=
|
|
124
|
-
_globals['_SWITCHREPLACEMODE']._serialized_start=
|
|
125
|
-
_globals['_SWITCHREPLACEMODE']._serialized_end=
|
|
126
|
-
_globals['_SWITCHOSVENDOR']._serialized_start=
|
|
127
|
-
_globals['_SWITCHOSVENDOR']._serialized_end=
|
|
128
|
-
_globals['_SWITCHPORTSTATUS']._serialized_start=
|
|
129
|
-
_globals['_SWITCHPORTSTATUS']._serialized_end=
|
|
125
|
+
_globals['_BGPSTATE']._serialized_end=3213
|
|
126
|
+
_globals['_SWITCHREPLACEMODE']._serialized_start=3216
|
|
127
|
+
_globals['_SWITCHREPLACEMODE']._serialized_end=3378
|
|
128
|
+
_globals['_SWITCHOSVENDOR']._serialized_start=3381
|
|
129
|
+
_globals['_SWITCHOSVENDOR']._serialized_end=3513
|
|
130
|
+
_globals['_SWITCHPORTSTATUS']._serialized_start=3516
|
|
131
|
+
_globals['_SWITCHPORTSTATUS']._serialized_end=3689
|
|
130
132
|
_globals['_SWITCH']._serialized_start=222
|
|
131
133
|
_globals['_SWITCH']._serialized_end=1041
|
|
132
134
|
_globals['_SWITCHOS']._serialized_start=1044
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
3
|
# source: metalstack/api/v2/tenant.proto
|
|
4
4
|
|
|
5
|
-
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
5
|
+
from collections.abc import AsyncGenerator, AsyncIterator, Iterable, Iterator, Mapping
|
|
6
6
|
from typing import Protocol
|
|
7
7
|
|
|
8
8
|
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
@@ -56,10 +56,11 @@ class TenantService(Protocol):
|
|
|
56
56
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
57
57
|
|
|
58
58
|
|
|
59
|
-
class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
60
|
-
def __init__(self, service: TenantService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
59
|
+
class TenantServiceASGIApplication(ConnectASGIApplication[TenantService]):
|
|
60
|
+
def __init__(self, service: TenantService | AsyncGenerator[TenantService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
61
61
|
super().__init__(
|
|
62
|
-
|
|
62
|
+
service=service,
|
|
63
|
+
endpoints=lambda svc: {
|
|
63
64
|
"/metalstack.api.v2.TenantService/Create": Endpoint.unary(
|
|
64
65
|
method=MethodInfo(
|
|
65
66
|
name="Create",
|
|
@@ -68,7 +69,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
68
69
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
69
70
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
70
71
|
),
|
|
71
|
-
function=
|
|
72
|
+
function=svc.create,
|
|
72
73
|
),
|
|
73
74
|
"/metalstack.api.v2.TenantService/List": Endpoint.unary(
|
|
74
75
|
method=MethodInfo(
|
|
@@ -78,7 +79,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
78
79
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
79
80
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
80
81
|
),
|
|
81
|
-
function=
|
|
82
|
+
function=svc.list,
|
|
82
83
|
),
|
|
83
84
|
"/metalstack.api.v2.TenantService/Get": Endpoint.unary(
|
|
84
85
|
method=MethodInfo(
|
|
@@ -88,7 +89,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
88
89
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse,
|
|
89
90
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
90
91
|
),
|
|
91
|
-
function=
|
|
92
|
+
function=svc.get,
|
|
92
93
|
),
|
|
93
94
|
"/metalstack.api.v2.TenantService/Update": Endpoint.unary(
|
|
94
95
|
method=MethodInfo(
|
|
@@ -98,7 +99,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
98
99
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse,
|
|
99
100
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
100
101
|
),
|
|
101
|
-
function=
|
|
102
|
+
function=svc.update,
|
|
102
103
|
),
|
|
103
104
|
"/metalstack.api.v2.TenantService/Delete": Endpoint.unary(
|
|
104
105
|
method=MethodInfo(
|
|
@@ -108,7 +109,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
108
109
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse,
|
|
109
110
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
110
111
|
),
|
|
111
|
-
function=
|
|
112
|
+
function=svc.delete,
|
|
112
113
|
),
|
|
113
114
|
"/metalstack.api.v2.TenantService/Leave": Endpoint.unary(
|
|
114
115
|
method=MethodInfo(
|
|
@@ -118,7 +119,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
118
119
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceLeaveResponse,
|
|
119
120
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
120
121
|
),
|
|
121
|
-
function=
|
|
122
|
+
function=svc.leave,
|
|
122
123
|
),
|
|
123
124
|
"/metalstack.api.v2.TenantService/RemoveMember": Endpoint.unary(
|
|
124
125
|
method=MethodInfo(
|
|
@@ -128,7 +129,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
128
129
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse,
|
|
129
130
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
130
131
|
),
|
|
131
|
-
function=
|
|
132
|
+
function=svc.remove_member,
|
|
132
133
|
),
|
|
133
134
|
"/metalstack.api.v2.TenantService/UpdateMember": Endpoint.unary(
|
|
134
135
|
method=MethodInfo(
|
|
@@ -138,7 +139,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
138
139
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse,
|
|
139
140
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
140
141
|
),
|
|
141
|
-
function=
|
|
142
|
+
function=svc.update_member,
|
|
142
143
|
),
|
|
143
144
|
"/metalstack.api.v2.TenantService/Invite": Endpoint.unary(
|
|
144
145
|
method=MethodInfo(
|
|
@@ -148,7 +149,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
148
149
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse,
|
|
149
150
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
150
151
|
),
|
|
151
|
-
function=
|
|
152
|
+
function=svc.invite,
|
|
152
153
|
),
|
|
153
154
|
"/metalstack.api.v2.TenantService/InviteAccept": Endpoint.unary(
|
|
154
155
|
method=MethodInfo(
|
|
@@ -158,7 +159,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
158
159
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse,
|
|
159
160
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
160
161
|
),
|
|
161
|
-
function=
|
|
162
|
+
function=svc.invite_accept,
|
|
162
163
|
),
|
|
163
164
|
"/metalstack.api.v2.TenantService/InviteDelete": Endpoint.unary(
|
|
164
165
|
method=MethodInfo(
|
|
@@ -168,7 +169,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
168
169
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse,
|
|
169
170
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
170
171
|
),
|
|
171
|
-
function=
|
|
172
|
+
function=svc.invite_delete,
|
|
172
173
|
),
|
|
173
174
|
"/metalstack.api.v2.TenantService/InvitesList": Endpoint.unary(
|
|
174
175
|
method=MethodInfo(
|
|
@@ -178,7 +179,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
178
179
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse,
|
|
179
180
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
180
181
|
),
|
|
181
|
-
function=
|
|
182
|
+
function=svc.invites_list,
|
|
182
183
|
),
|
|
183
184
|
"/metalstack.api.v2.TenantService/InviteGet": Endpoint.unary(
|
|
184
185
|
method=MethodInfo(
|
|
@@ -188,7 +189,7 @@ class TenantServiceASGIApplication(ConnectASGIApplication):
|
|
|
188
189
|
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse,
|
|
189
190
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
190
191
|
),
|
|
191
|
-
function=
|
|
192
|
+
function=svc.invite_get,
|
|
192
193
|
),
|
|
193
194
|
},
|
|
194
195
|
interceptors=interceptors,
|
metalstack/api/v2/tenant_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/tenant.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.33.4
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
33,
|
|
16
|
+
4,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/tenant.proto'
|
|
19
19
|
)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
3
|
# source: metalstack/api/v2/token.proto
|
|
4
4
|
|
|
5
|
-
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
5
|
+
from collections.abc import AsyncGenerator, AsyncIterator, Iterable, Iterator, Mapping
|
|
6
6
|
from typing import Protocol
|
|
7
7
|
|
|
8
8
|
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
@@ -35,10 +35,11 @@ class TokenService(Protocol):
|
|
|
35
35
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
class TokenServiceASGIApplication(ConnectASGIApplication):
|
|
39
|
-
def __init__(self, service: TokenService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
38
|
+
class TokenServiceASGIApplication(ConnectASGIApplication[TokenService]):
|
|
39
|
+
def __init__(self, service: TokenService | AsyncGenerator[TokenService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
40
40
|
super().__init__(
|
|
41
|
-
|
|
41
|
+
service=service,
|
|
42
|
+
endpoints=lambda svc: {
|
|
42
43
|
"/metalstack.api.v2.TokenService/Get": Endpoint.unary(
|
|
43
44
|
method=MethodInfo(
|
|
44
45
|
name="Get",
|
|
@@ -47,7 +48,7 @@ class TokenServiceASGIApplication(ConnectASGIApplication):
|
|
|
47
48
|
output=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceGetResponse,
|
|
48
49
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
49
50
|
),
|
|
50
|
-
function=
|
|
51
|
+
function=svc.get,
|
|
51
52
|
),
|
|
52
53
|
"/metalstack.api.v2.TokenService/Create": Endpoint.unary(
|
|
53
54
|
method=MethodInfo(
|
|
@@ -57,7 +58,7 @@ class TokenServiceASGIApplication(ConnectASGIApplication):
|
|
|
57
58
|
output=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceCreateResponse,
|
|
58
59
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
59
60
|
),
|
|
60
|
-
function=
|
|
61
|
+
function=svc.create,
|
|
61
62
|
),
|
|
62
63
|
"/metalstack.api.v2.TokenService/Update": Endpoint.unary(
|
|
63
64
|
method=MethodInfo(
|
|
@@ -67,7 +68,7 @@ class TokenServiceASGIApplication(ConnectASGIApplication):
|
|
|
67
68
|
output=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceUpdateResponse,
|
|
68
69
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
69
70
|
),
|
|
70
|
-
function=
|
|
71
|
+
function=svc.update,
|
|
71
72
|
),
|
|
72
73
|
"/metalstack.api.v2.TokenService/List": Endpoint.unary(
|
|
73
74
|
method=MethodInfo(
|
|
@@ -77,7 +78,7 @@ class TokenServiceASGIApplication(ConnectASGIApplication):
|
|
|
77
78
|
output=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceListResponse,
|
|
78
79
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
79
80
|
),
|
|
80
|
-
function=
|
|
81
|
+
function=svc.list,
|
|
81
82
|
),
|
|
82
83
|
"/metalstack.api.v2.TokenService/Revoke": Endpoint.unary(
|
|
83
84
|
method=MethodInfo(
|
|
@@ -87,7 +88,7 @@ class TokenServiceASGIApplication(ConnectASGIApplication):
|
|
|
87
88
|
output=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceRevokeResponse,
|
|
88
89
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
89
90
|
),
|
|
90
|
-
function=
|
|
91
|
+
function=svc.revoke,
|
|
91
92
|
),
|
|
92
93
|
"/metalstack.api.v2.TokenService/Refresh": Endpoint.unary(
|
|
93
94
|
method=MethodInfo(
|
|
@@ -97,7 +98,7 @@ class TokenServiceASGIApplication(ConnectASGIApplication):
|
|
|
97
98
|
output=metalstack_dot_api_dot_v2_dot_token__pb2.TokenServiceRefreshResponse,
|
|
98
99
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
99
100
|
),
|
|
100
|
-
function=
|
|
101
|
+
function=svc.refresh,
|
|
101
102
|
),
|
|
102
103
|
},
|
|
103
104
|
interceptors=interceptors,
|
metalstack/api/v2/token_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/token.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.33.4
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
33,
|
|
16
|
+
4,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/token.proto'
|
|
19
19
|
)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
3
|
# source: metalstack/api/v2/user.proto
|
|
4
4
|
|
|
5
|
-
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
5
|
+
from collections.abc import AsyncGenerator, AsyncIterator, Iterable, Iterator, Mapping
|
|
6
6
|
from typing import Protocol
|
|
7
7
|
|
|
8
8
|
from connectrpc.client import ConnectClient, ConnectClientSync
|
|
@@ -20,10 +20,11 @@ class UserService(Protocol):
|
|
|
20
20
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
class UserServiceASGIApplication(ConnectASGIApplication):
|
|
24
|
-
def __init__(self, service: UserService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
23
|
+
class UserServiceASGIApplication(ConnectASGIApplication[UserService]):
|
|
24
|
+
def __init__(self, service: UserService | AsyncGenerator[UserService], *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
25
25
|
super().__init__(
|
|
26
|
-
|
|
26
|
+
service=service,
|
|
27
|
+
endpoints=lambda svc: {
|
|
27
28
|
"/metalstack.api.v2.UserService/Get": Endpoint.unary(
|
|
28
29
|
method=MethodInfo(
|
|
29
30
|
name="Get",
|
|
@@ -32,7 +33,7 @@ class UserServiceASGIApplication(ConnectASGIApplication):
|
|
|
32
33
|
output=metalstack_dot_api_dot_v2_dot_user__pb2.UserServiceGetResponse,
|
|
33
34
|
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
34
35
|
),
|
|
35
|
-
function=
|
|
36
|
+
function=svc.get,
|
|
36
37
|
),
|
|
37
38
|
},
|
|
38
39
|
interceptors=interceptors,
|
metalstack/api/v2/user_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/user.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.33.4
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
33,
|
|
16
|
+
4,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/user.proto'
|
|
19
19
|
)
|