metal-stack-api 0.0.15__py3-none-any.whl → 0.0.16__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.15.dist-info → metal_stack_api-0.0.16.dist-info}/METADATA +1 -1
- {metal_stack_api-0.0.15.dist-info → metal_stack_api-0.0.16.dist-info}/RECORD +29 -29
- metalstack/admin/v2/filesystem_connecpy.py +195 -160
- metalstack/admin/v2/image_connecpy.py +241 -197
- metalstack/admin/v2/ip_connecpy.py +144 -118
- metalstack/admin/v2/machine_connecpy.py +144 -118
- metalstack/admin/v2/network_connecpy.py +291 -238
- metalstack/admin/v2/partition_connecpy.py +241 -197
- metalstack/admin/v2/size_connecpy.py +195 -160
- metalstack/admin/v2/tenant_connecpy.py +144 -118
- metalstack/admin/v2/token_connecpy.py +144 -118
- metalstack/api/v2/filesystem_connecpy.py +241 -197
- metalstack/api/v2/health_connecpy.py +93 -76
- metalstack/api/v2/image_connecpy.py +195 -160
- metalstack/api/v2/ip_connecpy.py +291 -238
- metalstack/api/v2/machine_connecpy.py +291 -238
- metalstack/api/v2/method_connecpy.py +144 -118
- metalstack/api/v2/network_connecpy.py +341 -279
- metalstack/api/v2/partition_connecpy.py +144 -118
- metalstack/api/v2/project_connecpy.py +654 -538
- metalstack/api/v2/size_connecpy.py +144 -118
- metalstack/api/v2/tenant_connecpy.py +654 -538
- metalstack/api/v2/token_connecpy.py +341 -279
- metalstack/api/v2/user_connecpy.py +93 -76
- metalstack/api/v2/version_connecpy.py +93 -76
- metalstack/infra/v2/bmc_connecpy.py +93 -76
- metalstack/infra/v2/switch_connecpy.py +93 -76
- {metal_stack_api-0.0.15.dist-info → metal_stack_api-0.0.16.dist-info}/WHEEL +0 -0
- {metal_stack_api-0.0.15.dist-info → metal_stack_api-0.0.16.dist-info}/top_level.txt +0 -0
|
@@ -1,718 +1,834 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
|
|
2
|
+
# Generated by https://github.com/i2y/connecpy/v2/protoc-gen-connecpy. DO NOT EDIT!
|
|
3
3
|
# source: metalstack/api/v2/tenant.proto
|
|
4
4
|
|
|
5
|
-
from
|
|
5
|
+
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
6
|
+
from typing import Protocol
|
|
6
7
|
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
from connecpy.
|
|
10
|
-
from connecpy.
|
|
11
|
-
from connecpy.
|
|
12
|
-
from connecpy.
|
|
13
|
-
from connecpy.
|
|
8
|
+
from connecpy.client import ConnecpyClient, ConnecpyClientSync
|
|
9
|
+
from connecpy.code import Code
|
|
10
|
+
from connecpy.exceptions import ConnecpyException
|
|
11
|
+
from connecpy.interceptor import Interceptor, InterceptorSync
|
|
12
|
+
from connecpy.method import IdempotencyLevel, MethodInfo
|
|
13
|
+
from connecpy.request import Headers, RequestContext
|
|
14
|
+
from connecpy.server import ConnecpyASGIApplication, ConnecpyWSGIApplication, Endpoint, EndpointSync
|
|
14
15
|
import metalstack.api.v2.tenant_pb2 as metalstack_dot_api_dot_v2_dot_tenant__pb2
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
class TenantService(Protocol):
|
|
18
|
-
async def
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
async def
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
async def
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
async def
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
"Update": Endpoint[metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest, metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse](
|
|
184
|
-
service_name="TenantService",
|
|
185
|
-
name="Update",
|
|
186
|
-
function=getattr(service, "Update"),
|
|
187
|
-
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest,
|
|
188
|
-
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse,
|
|
189
|
-
allowed_methods=("POST",),
|
|
190
|
-
),
|
|
191
|
-
"Delete": Endpoint[metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest, metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse](
|
|
192
|
-
service_name="TenantService",
|
|
193
|
-
name="Delete",
|
|
194
|
-
function=getattr(service, "Delete"),
|
|
195
|
-
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest,
|
|
196
|
-
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse,
|
|
197
|
-
allowed_methods=("POST",),
|
|
198
|
-
),
|
|
199
|
-
"RemoveMember": Endpoint[metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest, metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse](
|
|
200
|
-
service_name="TenantService",
|
|
201
|
-
name="RemoveMember",
|
|
202
|
-
function=getattr(service, "RemoveMember"),
|
|
203
|
-
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest,
|
|
204
|
-
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse,
|
|
205
|
-
allowed_methods=("POST",),
|
|
206
|
-
),
|
|
207
|
-
"UpdateMember": Endpoint[metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest, metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse](
|
|
208
|
-
service_name="TenantService",
|
|
209
|
-
name="UpdateMember",
|
|
210
|
-
function=getattr(service, "UpdateMember"),
|
|
211
|
-
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest,
|
|
212
|
-
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse,
|
|
213
|
-
allowed_methods=("POST",),
|
|
214
|
-
),
|
|
215
|
-
"Invite": Endpoint[metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest, metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse](
|
|
216
|
-
service_name="TenantService",
|
|
217
|
-
name="Invite",
|
|
218
|
-
function=getattr(service, "Invite"),
|
|
219
|
-
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest,
|
|
220
|
-
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse,
|
|
221
|
-
allowed_methods=("POST",),
|
|
222
|
-
),
|
|
223
|
-
"InviteAccept": Endpoint[metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest, metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse](
|
|
224
|
-
service_name="TenantService",
|
|
225
|
-
name="InviteAccept",
|
|
226
|
-
function=getattr(service, "InviteAccept"),
|
|
227
|
-
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest,
|
|
228
|
-
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse,
|
|
229
|
-
allowed_methods=("POST",),
|
|
230
|
-
),
|
|
231
|
-
"InviteDelete": Endpoint[metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest, metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse](
|
|
232
|
-
service_name="TenantService",
|
|
233
|
-
name="InviteDelete",
|
|
234
|
-
function=getattr(service, "InviteDelete"),
|
|
235
|
-
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest,
|
|
236
|
-
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse,
|
|
237
|
-
allowed_methods=("POST",),
|
|
238
|
-
),
|
|
239
|
-
"InvitesList": Endpoint[metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest, metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse](
|
|
240
|
-
service_name="TenantService",
|
|
241
|
-
name="InvitesList",
|
|
242
|
-
function=getattr(service, "InvitesList"),
|
|
243
|
-
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest,
|
|
244
|
-
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse,
|
|
245
|
-
allowed_methods=("POST",),
|
|
246
|
-
),
|
|
247
|
-
"InviteGet": Endpoint[metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest, metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse](
|
|
248
|
-
service_name="TenantService",
|
|
249
|
-
name="InviteGet",
|
|
250
|
-
function=getattr(service, "InviteGet"),
|
|
251
|
-
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest,
|
|
252
|
-
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse,
|
|
253
|
-
allowed_methods=("POST",),
|
|
254
|
-
),
|
|
255
|
-
}
|
|
19
|
+
async def create(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
|
|
20
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
|
+
|
|
22
|
+
async def list(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
|
|
23
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
24
|
+
|
|
25
|
+
async def get(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse:
|
|
26
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
27
|
+
|
|
28
|
+
async def update(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse:
|
|
29
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
30
|
+
|
|
31
|
+
async def delete(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse:
|
|
32
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
33
|
+
|
|
34
|
+
async def remove_member(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse:
|
|
35
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
36
|
+
|
|
37
|
+
async def update_member(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse:
|
|
38
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
39
|
+
|
|
40
|
+
async def invite(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse:
|
|
41
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
42
|
+
|
|
43
|
+
async def invite_accept(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse:
|
|
44
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
45
|
+
|
|
46
|
+
async def invite_delete(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse:
|
|
47
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
48
|
+
|
|
49
|
+
async def invites_list(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse:
|
|
50
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
51
|
+
|
|
52
|
+
async def invite_get(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse:
|
|
53
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
class TenantServiceASGIApplication(ConnecpyASGIApplication):
|
|
57
|
+
def __init__(self, service: TenantService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None):
|
|
58
|
+
super().__init__(
|
|
59
|
+
endpoints={
|
|
60
|
+
"/metalstack.api.v2.TenantService/Create": Endpoint.unary(
|
|
61
|
+
method=MethodInfo(
|
|
62
|
+
name="Create",
|
|
63
|
+
service_name="metalstack.api.v2.TenantService",
|
|
64
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
65
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
66
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
67
|
+
),
|
|
68
|
+
function=service.create,
|
|
69
|
+
),
|
|
70
|
+
"/metalstack.api.v2.TenantService/List": Endpoint.unary(
|
|
71
|
+
method=MethodInfo(
|
|
72
|
+
name="List",
|
|
73
|
+
service_name="metalstack.api.v2.TenantService",
|
|
74
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
75
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
76
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
77
|
+
),
|
|
78
|
+
function=service.list,
|
|
79
|
+
),
|
|
80
|
+
"/metalstack.api.v2.TenantService/Get": Endpoint.unary(
|
|
81
|
+
method=MethodInfo(
|
|
82
|
+
name="Get",
|
|
83
|
+
service_name="metalstack.api.v2.TenantService",
|
|
84
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest,
|
|
85
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse,
|
|
86
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
87
|
+
),
|
|
88
|
+
function=service.get,
|
|
89
|
+
),
|
|
90
|
+
"/metalstack.api.v2.TenantService/Update": Endpoint.unary(
|
|
91
|
+
method=MethodInfo(
|
|
92
|
+
name="Update",
|
|
93
|
+
service_name="metalstack.api.v2.TenantService",
|
|
94
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest,
|
|
95
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse,
|
|
96
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
97
|
+
),
|
|
98
|
+
function=service.update,
|
|
99
|
+
),
|
|
100
|
+
"/metalstack.api.v2.TenantService/Delete": Endpoint.unary(
|
|
101
|
+
method=MethodInfo(
|
|
102
|
+
name="Delete",
|
|
103
|
+
service_name="metalstack.api.v2.TenantService",
|
|
104
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest,
|
|
105
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse,
|
|
106
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
107
|
+
),
|
|
108
|
+
function=service.delete,
|
|
109
|
+
),
|
|
110
|
+
"/metalstack.api.v2.TenantService/RemoveMember": Endpoint.unary(
|
|
111
|
+
method=MethodInfo(
|
|
112
|
+
name="RemoveMember",
|
|
113
|
+
service_name="metalstack.api.v2.TenantService",
|
|
114
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest,
|
|
115
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse,
|
|
116
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
117
|
+
),
|
|
118
|
+
function=service.remove_member,
|
|
119
|
+
),
|
|
120
|
+
"/metalstack.api.v2.TenantService/UpdateMember": Endpoint.unary(
|
|
121
|
+
method=MethodInfo(
|
|
122
|
+
name="UpdateMember",
|
|
123
|
+
service_name="metalstack.api.v2.TenantService",
|
|
124
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest,
|
|
125
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse,
|
|
126
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
127
|
+
),
|
|
128
|
+
function=service.update_member,
|
|
129
|
+
),
|
|
130
|
+
"/metalstack.api.v2.TenantService/Invite": Endpoint.unary(
|
|
131
|
+
method=MethodInfo(
|
|
132
|
+
name="Invite",
|
|
133
|
+
service_name="metalstack.api.v2.TenantService",
|
|
134
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest,
|
|
135
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse,
|
|
136
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
137
|
+
),
|
|
138
|
+
function=service.invite,
|
|
139
|
+
),
|
|
140
|
+
"/metalstack.api.v2.TenantService/InviteAccept": Endpoint.unary(
|
|
141
|
+
method=MethodInfo(
|
|
142
|
+
name="InviteAccept",
|
|
143
|
+
service_name="metalstack.api.v2.TenantService",
|
|
144
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest,
|
|
145
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse,
|
|
146
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
147
|
+
),
|
|
148
|
+
function=service.invite_accept,
|
|
149
|
+
),
|
|
150
|
+
"/metalstack.api.v2.TenantService/InviteDelete": Endpoint.unary(
|
|
151
|
+
method=MethodInfo(
|
|
152
|
+
name="InviteDelete",
|
|
153
|
+
service_name="metalstack.api.v2.TenantService",
|
|
154
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest,
|
|
155
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse,
|
|
156
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
157
|
+
),
|
|
158
|
+
function=service.invite_delete,
|
|
159
|
+
),
|
|
160
|
+
"/metalstack.api.v2.TenantService/InvitesList": Endpoint.unary(
|
|
161
|
+
method=MethodInfo(
|
|
162
|
+
name="InvitesList",
|
|
163
|
+
service_name="metalstack.api.v2.TenantService",
|
|
164
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest,
|
|
165
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse,
|
|
166
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
167
|
+
),
|
|
168
|
+
function=service.invites_list,
|
|
169
|
+
),
|
|
170
|
+
"/metalstack.api.v2.TenantService/InviteGet": Endpoint.unary(
|
|
171
|
+
method=MethodInfo(
|
|
172
|
+
name="InviteGet",
|
|
173
|
+
service_name="metalstack.api.v2.TenantService",
|
|
174
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest,
|
|
175
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse,
|
|
176
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
177
|
+
),
|
|
178
|
+
function=service.invite_get,
|
|
179
|
+
),
|
|
180
|
+
},
|
|
181
|
+
interceptors=interceptors,
|
|
182
|
+
read_max_bytes=read_max_bytes,
|
|
183
|
+
)
|
|
256
184
|
|
|
257
|
-
|
|
258
|
-
|
|
185
|
+
@property
|
|
186
|
+
def path(self):
|
|
187
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
188
|
+
return "/metalstack.api.v2.TenantService"
|
|
259
189
|
|
|
260
190
|
|
|
261
191
|
class TenantServiceClient(ConnecpyClient):
|
|
262
|
-
def
|
|
192
|
+
async def create(
|
|
263
193
|
self,
|
|
264
194
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
265
195
|
*,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
**kwargs,
|
|
196
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
197
|
+
timeout_ms: int | None = None,
|
|
269
198
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
|
|
270
|
-
|
|
271
|
-
return self._make_request(
|
|
272
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Create",
|
|
273
|
-
ctx=ctx,
|
|
199
|
+
return await self.execute_unary(
|
|
274
200
|
request=request,
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
201
|
+
method=MethodInfo(
|
|
202
|
+
name="Create",
|
|
203
|
+
service_name="metalstack.api.v2.TenantService",
|
|
204
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
205
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
206
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
207
|
+
),
|
|
208
|
+
headers=headers,
|
|
209
|
+
timeout_ms=timeout_ms,
|
|
278
210
|
)
|
|
279
211
|
|
|
280
|
-
def
|
|
212
|
+
async def list(
|
|
281
213
|
self,
|
|
282
214
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
283
215
|
*,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
**kwargs,
|
|
216
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
217
|
+
timeout_ms: int | None = None,
|
|
287
218
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
|
|
288
|
-
|
|
289
|
-
return self._make_request(
|
|
290
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/List",
|
|
291
|
-
ctx=ctx,
|
|
219
|
+
return await self.execute_unary(
|
|
292
220
|
request=request,
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
221
|
+
method=MethodInfo(
|
|
222
|
+
name="List",
|
|
223
|
+
service_name="metalstack.api.v2.TenantService",
|
|
224
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
225
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
226
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
227
|
+
),
|
|
228
|
+
headers=headers,
|
|
229
|
+
timeout_ms=timeout_ms,
|
|
296
230
|
)
|
|
297
231
|
|
|
298
|
-
def
|
|
232
|
+
async def get(
|
|
299
233
|
self,
|
|
300
234
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest,
|
|
301
235
|
*,
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
**kwargs,
|
|
236
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
237
|
+
timeout_ms: int | None = None,
|
|
305
238
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse:
|
|
306
|
-
|
|
307
|
-
return self._make_request(
|
|
308
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Get",
|
|
309
|
-
ctx=ctx,
|
|
239
|
+
return await self.execute_unary(
|
|
310
240
|
request=request,
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
241
|
+
method=MethodInfo(
|
|
242
|
+
name="Get",
|
|
243
|
+
service_name="metalstack.api.v2.TenantService",
|
|
244
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest,
|
|
245
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse,
|
|
246
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
247
|
+
),
|
|
248
|
+
headers=headers,
|
|
249
|
+
timeout_ms=timeout_ms,
|
|
314
250
|
)
|
|
315
251
|
|
|
316
|
-
def
|
|
252
|
+
async def update(
|
|
317
253
|
self,
|
|
318
254
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest,
|
|
319
255
|
*,
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
**kwargs,
|
|
256
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
257
|
+
timeout_ms: int | None = None,
|
|
323
258
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse:
|
|
324
|
-
|
|
325
|
-
return self._make_request(
|
|
326
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Update",
|
|
327
|
-
ctx=ctx,
|
|
259
|
+
return await self.execute_unary(
|
|
328
260
|
request=request,
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
261
|
+
method=MethodInfo(
|
|
262
|
+
name="Update",
|
|
263
|
+
service_name="metalstack.api.v2.TenantService",
|
|
264
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest,
|
|
265
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse,
|
|
266
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
267
|
+
),
|
|
268
|
+
headers=headers,
|
|
269
|
+
timeout_ms=timeout_ms,
|
|
332
270
|
)
|
|
333
271
|
|
|
334
|
-
def
|
|
272
|
+
async def delete(
|
|
335
273
|
self,
|
|
336
274
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest,
|
|
337
275
|
*,
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
**kwargs,
|
|
276
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
277
|
+
timeout_ms: int | None = None,
|
|
341
278
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse:
|
|
342
|
-
|
|
343
|
-
return self._make_request(
|
|
344
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Delete",
|
|
345
|
-
ctx=ctx,
|
|
279
|
+
return await self.execute_unary(
|
|
346
280
|
request=request,
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
281
|
+
method=MethodInfo(
|
|
282
|
+
name="Delete",
|
|
283
|
+
service_name="metalstack.api.v2.TenantService",
|
|
284
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest,
|
|
285
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse,
|
|
286
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
287
|
+
),
|
|
288
|
+
headers=headers,
|
|
289
|
+
timeout_ms=timeout_ms,
|
|
350
290
|
)
|
|
351
291
|
|
|
352
|
-
def
|
|
292
|
+
async def remove_member(
|
|
353
293
|
self,
|
|
354
294
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest,
|
|
355
295
|
*,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
**kwargs,
|
|
296
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
297
|
+
timeout_ms: int | None = None,
|
|
359
298
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse:
|
|
360
|
-
|
|
361
|
-
return self._make_request(
|
|
362
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/RemoveMember",
|
|
363
|
-
ctx=ctx,
|
|
299
|
+
return await self.execute_unary(
|
|
364
300
|
request=request,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
301
|
+
method=MethodInfo(
|
|
302
|
+
name="RemoveMember",
|
|
303
|
+
service_name="metalstack.api.v2.TenantService",
|
|
304
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest,
|
|
305
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse,
|
|
306
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
307
|
+
),
|
|
308
|
+
headers=headers,
|
|
309
|
+
timeout_ms=timeout_ms,
|
|
368
310
|
)
|
|
369
311
|
|
|
370
|
-
def
|
|
312
|
+
async def update_member(
|
|
371
313
|
self,
|
|
372
314
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest,
|
|
373
315
|
*,
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
**kwargs,
|
|
316
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
317
|
+
timeout_ms: int | None = None,
|
|
377
318
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse:
|
|
378
|
-
|
|
379
|
-
return self._make_request(
|
|
380
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/UpdateMember",
|
|
381
|
-
ctx=ctx,
|
|
319
|
+
return await self.execute_unary(
|
|
382
320
|
request=request,
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
321
|
+
method=MethodInfo(
|
|
322
|
+
name="UpdateMember",
|
|
323
|
+
service_name="metalstack.api.v2.TenantService",
|
|
324
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest,
|
|
325
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse,
|
|
326
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
327
|
+
),
|
|
328
|
+
headers=headers,
|
|
329
|
+
timeout_ms=timeout_ms,
|
|
386
330
|
)
|
|
387
331
|
|
|
388
|
-
def
|
|
332
|
+
async def invite(
|
|
389
333
|
self,
|
|
390
334
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest,
|
|
391
335
|
*,
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
**kwargs,
|
|
336
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
337
|
+
timeout_ms: int | None = None,
|
|
395
338
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse:
|
|
396
|
-
|
|
397
|
-
return self._make_request(
|
|
398
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Invite",
|
|
399
|
-
ctx=ctx,
|
|
339
|
+
return await self.execute_unary(
|
|
400
340
|
request=request,
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
341
|
+
method=MethodInfo(
|
|
342
|
+
name="Invite",
|
|
343
|
+
service_name="metalstack.api.v2.TenantService",
|
|
344
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest,
|
|
345
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse,
|
|
346
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
347
|
+
),
|
|
348
|
+
headers=headers,
|
|
349
|
+
timeout_ms=timeout_ms,
|
|
404
350
|
)
|
|
405
351
|
|
|
406
|
-
def
|
|
352
|
+
async def invite_accept(
|
|
407
353
|
self,
|
|
408
354
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest,
|
|
409
355
|
*,
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
**kwargs,
|
|
356
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
357
|
+
timeout_ms: int | None = None,
|
|
413
358
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse:
|
|
414
|
-
|
|
415
|
-
return self._make_request(
|
|
416
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/InviteAccept",
|
|
417
|
-
ctx=ctx,
|
|
359
|
+
return await self.execute_unary(
|
|
418
360
|
request=request,
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
361
|
+
method=MethodInfo(
|
|
362
|
+
name="InviteAccept",
|
|
363
|
+
service_name="metalstack.api.v2.TenantService",
|
|
364
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest,
|
|
365
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse,
|
|
366
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
367
|
+
),
|
|
368
|
+
headers=headers,
|
|
369
|
+
timeout_ms=timeout_ms,
|
|
422
370
|
)
|
|
423
371
|
|
|
424
|
-
def
|
|
372
|
+
async def invite_delete(
|
|
425
373
|
self,
|
|
426
374
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest,
|
|
427
375
|
*,
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
**kwargs,
|
|
376
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
377
|
+
timeout_ms: int | None = None,
|
|
431
378
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse:
|
|
432
|
-
|
|
433
|
-
return self._make_request(
|
|
434
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/InviteDelete",
|
|
435
|
-
ctx=ctx,
|
|
379
|
+
return await self.execute_unary(
|
|
436
380
|
request=request,
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
381
|
+
method=MethodInfo(
|
|
382
|
+
name="InviteDelete",
|
|
383
|
+
service_name="metalstack.api.v2.TenantService",
|
|
384
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest,
|
|
385
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse,
|
|
386
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
387
|
+
),
|
|
388
|
+
headers=headers,
|
|
389
|
+
timeout_ms=timeout_ms,
|
|
440
390
|
)
|
|
441
391
|
|
|
442
|
-
def
|
|
392
|
+
async def invites_list(
|
|
443
393
|
self,
|
|
444
394
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest,
|
|
445
395
|
*,
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
**kwargs,
|
|
396
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
397
|
+
timeout_ms: int | None = None,
|
|
449
398
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse:
|
|
450
|
-
|
|
451
|
-
return self._make_request(
|
|
452
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/InvitesList",
|
|
453
|
-
ctx=ctx,
|
|
399
|
+
return await self.execute_unary(
|
|
454
400
|
request=request,
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
401
|
+
method=MethodInfo(
|
|
402
|
+
name="InvitesList",
|
|
403
|
+
service_name="metalstack.api.v2.TenantService",
|
|
404
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest,
|
|
405
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse,
|
|
406
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
407
|
+
),
|
|
408
|
+
headers=headers,
|
|
409
|
+
timeout_ms=timeout_ms,
|
|
458
410
|
)
|
|
459
411
|
|
|
460
|
-
def
|
|
412
|
+
async def invite_get(
|
|
461
413
|
self,
|
|
462
414
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest,
|
|
463
415
|
*,
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
**kwargs,
|
|
416
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
417
|
+
timeout_ms: int | None = None,
|
|
467
418
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse:
|
|
468
|
-
|
|
469
|
-
return self._make_request(
|
|
470
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/InviteGet",
|
|
471
|
-
ctx=ctx,
|
|
419
|
+
return await self.execute_unary(
|
|
472
420
|
request=request,
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
421
|
+
method=MethodInfo(
|
|
422
|
+
name="InviteGet",
|
|
423
|
+
service_name="metalstack.api.v2.TenantService",
|
|
424
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest,
|
|
425
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse,
|
|
426
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
427
|
+
),
|
|
428
|
+
headers=headers,
|
|
429
|
+
timeout_ms=timeout_ms,
|
|
476
430
|
)
|
|
477
431
|
|
|
478
432
|
|
|
479
|
-
class
|
|
480
|
-
|
|
433
|
+
class TenantServiceSync(Protocol):
|
|
434
|
+
def create(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
|
|
435
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
436
|
+
def list(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
|
|
437
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
438
|
+
def get(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse:
|
|
439
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
440
|
+
def update(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse:
|
|
441
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
442
|
+
def delete(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse:
|
|
443
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
444
|
+
def remove_member(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse:
|
|
445
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
446
|
+
def update_member(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse:
|
|
447
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
448
|
+
def invite(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse:
|
|
449
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
450
|
+
def invite_accept(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse:
|
|
451
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
452
|
+
def invite_delete(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse:
|
|
453
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
454
|
+
def invites_list(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse:
|
|
455
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
456
|
+
def invite_get(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse:
|
|
457
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
class TenantServiceWSGIApplication(ConnecpyWSGIApplication):
|
|
461
|
+
def __init__(self, service: TenantServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None):
|
|
462
|
+
super().__init__(
|
|
463
|
+
endpoints={
|
|
464
|
+
"/metalstack.api.v2.TenantService/Create": EndpointSync.unary(
|
|
465
|
+
method=MethodInfo(
|
|
466
|
+
name="Create",
|
|
467
|
+
service_name="metalstack.api.v2.TenantService",
|
|
468
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
469
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
470
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
471
|
+
),
|
|
472
|
+
function=service.create,
|
|
473
|
+
),
|
|
474
|
+
"/metalstack.api.v2.TenantService/List": EndpointSync.unary(
|
|
475
|
+
method=MethodInfo(
|
|
476
|
+
name="List",
|
|
477
|
+
service_name="metalstack.api.v2.TenantService",
|
|
478
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
479
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
480
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
481
|
+
),
|
|
482
|
+
function=service.list,
|
|
483
|
+
),
|
|
484
|
+
"/metalstack.api.v2.TenantService/Get": EndpointSync.unary(
|
|
485
|
+
method=MethodInfo(
|
|
486
|
+
name="Get",
|
|
487
|
+
service_name="metalstack.api.v2.TenantService",
|
|
488
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest,
|
|
489
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse,
|
|
490
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
491
|
+
),
|
|
492
|
+
function=service.get,
|
|
493
|
+
),
|
|
494
|
+
"/metalstack.api.v2.TenantService/Update": EndpointSync.unary(
|
|
495
|
+
method=MethodInfo(
|
|
496
|
+
name="Update",
|
|
497
|
+
service_name="metalstack.api.v2.TenantService",
|
|
498
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest,
|
|
499
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse,
|
|
500
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
501
|
+
),
|
|
502
|
+
function=service.update,
|
|
503
|
+
),
|
|
504
|
+
"/metalstack.api.v2.TenantService/Delete": EndpointSync.unary(
|
|
505
|
+
method=MethodInfo(
|
|
506
|
+
name="Delete",
|
|
507
|
+
service_name="metalstack.api.v2.TenantService",
|
|
508
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest,
|
|
509
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse,
|
|
510
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
511
|
+
),
|
|
512
|
+
function=service.delete,
|
|
513
|
+
),
|
|
514
|
+
"/metalstack.api.v2.TenantService/RemoveMember": EndpointSync.unary(
|
|
515
|
+
method=MethodInfo(
|
|
516
|
+
name="RemoveMember",
|
|
517
|
+
service_name="metalstack.api.v2.TenantService",
|
|
518
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest,
|
|
519
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse,
|
|
520
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
521
|
+
),
|
|
522
|
+
function=service.remove_member,
|
|
523
|
+
),
|
|
524
|
+
"/metalstack.api.v2.TenantService/UpdateMember": EndpointSync.unary(
|
|
525
|
+
method=MethodInfo(
|
|
526
|
+
name="UpdateMember",
|
|
527
|
+
service_name="metalstack.api.v2.TenantService",
|
|
528
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest,
|
|
529
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse,
|
|
530
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
531
|
+
),
|
|
532
|
+
function=service.update_member,
|
|
533
|
+
),
|
|
534
|
+
"/metalstack.api.v2.TenantService/Invite": EndpointSync.unary(
|
|
535
|
+
method=MethodInfo(
|
|
536
|
+
name="Invite",
|
|
537
|
+
service_name="metalstack.api.v2.TenantService",
|
|
538
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest,
|
|
539
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse,
|
|
540
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
541
|
+
),
|
|
542
|
+
function=service.invite,
|
|
543
|
+
),
|
|
544
|
+
"/metalstack.api.v2.TenantService/InviteAccept": EndpointSync.unary(
|
|
545
|
+
method=MethodInfo(
|
|
546
|
+
name="InviteAccept",
|
|
547
|
+
service_name="metalstack.api.v2.TenantService",
|
|
548
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest,
|
|
549
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse,
|
|
550
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
551
|
+
),
|
|
552
|
+
function=service.invite_accept,
|
|
553
|
+
),
|
|
554
|
+
"/metalstack.api.v2.TenantService/InviteDelete": EndpointSync.unary(
|
|
555
|
+
method=MethodInfo(
|
|
556
|
+
name="InviteDelete",
|
|
557
|
+
service_name="metalstack.api.v2.TenantService",
|
|
558
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest,
|
|
559
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse,
|
|
560
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
561
|
+
),
|
|
562
|
+
function=service.invite_delete,
|
|
563
|
+
),
|
|
564
|
+
"/metalstack.api.v2.TenantService/InvitesList": EndpointSync.unary(
|
|
565
|
+
method=MethodInfo(
|
|
566
|
+
name="InvitesList",
|
|
567
|
+
service_name="metalstack.api.v2.TenantService",
|
|
568
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest,
|
|
569
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse,
|
|
570
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
571
|
+
),
|
|
572
|
+
function=service.invites_list,
|
|
573
|
+
),
|
|
574
|
+
"/metalstack.api.v2.TenantService/InviteGet": EndpointSync.unary(
|
|
575
|
+
method=MethodInfo(
|
|
576
|
+
name="InviteGet",
|
|
577
|
+
service_name="metalstack.api.v2.TenantService",
|
|
578
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest,
|
|
579
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse,
|
|
580
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
581
|
+
),
|
|
582
|
+
function=service.invite_get,
|
|
583
|
+
),
|
|
584
|
+
},
|
|
585
|
+
interceptors=interceptors,
|
|
586
|
+
read_max_bytes=read_max_bytes,
|
|
587
|
+
)
|
|
588
|
+
|
|
589
|
+
@property
|
|
590
|
+
def path(self):
|
|
591
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
592
|
+
return "/metalstack.api.v2.TenantService"
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
class TenantServiceClientSync(ConnecpyClientSync):
|
|
596
|
+
def create(
|
|
481
597
|
self,
|
|
482
598
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
483
599
|
*,
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
487
|
-
**kwargs,
|
|
600
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
601
|
+
timeout_ms: int | None = None,
|
|
488
602
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
|
|
489
|
-
|
|
490
|
-
return await self._make_request(
|
|
491
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Create",
|
|
492
|
-
ctx=ctx,
|
|
603
|
+
return self.execute_unary(
|
|
493
604
|
request=request,
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
605
|
+
method=MethodInfo(
|
|
606
|
+
name="Create",
|
|
607
|
+
service_name="metalstack.api.v2.TenantService",
|
|
608
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
609
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
610
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
611
|
+
),
|
|
612
|
+
headers=headers,
|
|
613
|
+
timeout_ms=timeout_ms,
|
|
498
614
|
)
|
|
499
615
|
|
|
500
|
-
|
|
616
|
+
def list(
|
|
501
617
|
self,
|
|
502
618
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
503
619
|
*,
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
507
|
-
**kwargs,
|
|
620
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
621
|
+
timeout_ms: int | None = None,
|
|
508
622
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
|
|
509
|
-
|
|
510
|
-
return await self._make_request(
|
|
511
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/List",
|
|
512
|
-
ctx=ctx,
|
|
623
|
+
return self.execute_unary(
|
|
513
624
|
request=request,
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
625
|
+
method=MethodInfo(
|
|
626
|
+
name="List",
|
|
627
|
+
service_name="metalstack.api.v2.TenantService",
|
|
628
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
629
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
630
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
631
|
+
),
|
|
632
|
+
headers=headers,
|
|
633
|
+
timeout_ms=timeout_ms,
|
|
518
634
|
)
|
|
519
635
|
|
|
520
|
-
|
|
636
|
+
def get(
|
|
521
637
|
self,
|
|
522
638
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest,
|
|
523
639
|
*,
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
527
|
-
**kwargs,
|
|
640
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
641
|
+
timeout_ms: int | None = None,
|
|
528
642
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse:
|
|
529
|
-
|
|
530
|
-
return await self._make_request(
|
|
531
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Get",
|
|
532
|
-
ctx=ctx,
|
|
643
|
+
return self.execute_unary(
|
|
533
644
|
request=request,
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
645
|
+
method=MethodInfo(
|
|
646
|
+
name="Get",
|
|
647
|
+
service_name="metalstack.api.v2.TenantService",
|
|
648
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest,
|
|
649
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse,
|
|
650
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
651
|
+
),
|
|
652
|
+
headers=headers,
|
|
653
|
+
timeout_ms=timeout_ms,
|
|
538
654
|
)
|
|
539
655
|
|
|
540
|
-
|
|
656
|
+
def update(
|
|
541
657
|
self,
|
|
542
658
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest,
|
|
543
659
|
*,
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
547
|
-
**kwargs,
|
|
660
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
661
|
+
timeout_ms: int | None = None,
|
|
548
662
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse:
|
|
549
|
-
|
|
550
|
-
return await self._make_request(
|
|
551
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Update",
|
|
552
|
-
ctx=ctx,
|
|
663
|
+
return self.execute_unary(
|
|
553
664
|
request=request,
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
665
|
+
method=MethodInfo(
|
|
666
|
+
name="Update",
|
|
667
|
+
service_name="metalstack.api.v2.TenantService",
|
|
668
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest,
|
|
669
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse,
|
|
670
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
671
|
+
),
|
|
672
|
+
headers=headers,
|
|
673
|
+
timeout_ms=timeout_ms,
|
|
558
674
|
)
|
|
559
675
|
|
|
560
|
-
|
|
676
|
+
def delete(
|
|
561
677
|
self,
|
|
562
678
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest,
|
|
563
679
|
*,
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
567
|
-
**kwargs,
|
|
680
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
681
|
+
timeout_ms: int | None = None,
|
|
568
682
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse:
|
|
569
|
-
|
|
570
|
-
return await self._make_request(
|
|
571
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Delete",
|
|
572
|
-
ctx=ctx,
|
|
683
|
+
return self.execute_unary(
|
|
573
684
|
request=request,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
685
|
+
method=MethodInfo(
|
|
686
|
+
name="Delete",
|
|
687
|
+
service_name="metalstack.api.v2.TenantService",
|
|
688
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest,
|
|
689
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse,
|
|
690
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
691
|
+
),
|
|
692
|
+
headers=headers,
|
|
693
|
+
timeout_ms=timeout_ms,
|
|
578
694
|
)
|
|
579
695
|
|
|
580
|
-
|
|
696
|
+
def remove_member(
|
|
581
697
|
self,
|
|
582
698
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest,
|
|
583
699
|
*,
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
587
|
-
**kwargs,
|
|
700
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
701
|
+
timeout_ms: int | None = None,
|
|
588
702
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse:
|
|
589
|
-
|
|
590
|
-
return await self._make_request(
|
|
591
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/RemoveMember",
|
|
592
|
-
ctx=ctx,
|
|
703
|
+
return self.execute_unary(
|
|
593
704
|
request=request,
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
705
|
+
method=MethodInfo(
|
|
706
|
+
name="RemoveMember",
|
|
707
|
+
service_name="metalstack.api.v2.TenantService",
|
|
708
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest,
|
|
709
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse,
|
|
710
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
711
|
+
),
|
|
712
|
+
headers=headers,
|
|
713
|
+
timeout_ms=timeout_ms,
|
|
598
714
|
)
|
|
599
715
|
|
|
600
|
-
|
|
716
|
+
def update_member(
|
|
601
717
|
self,
|
|
602
718
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest,
|
|
603
719
|
*,
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
607
|
-
**kwargs,
|
|
720
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
721
|
+
timeout_ms: int | None = None,
|
|
608
722
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse:
|
|
609
|
-
|
|
610
|
-
return await self._make_request(
|
|
611
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/UpdateMember",
|
|
612
|
-
ctx=ctx,
|
|
723
|
+
return self.execute_unary(
|
|
613
724
|
request=request,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
725
|
+
method=MethodInfo(
|
|
726
|
+
name="UpdateMember",
|
|
727
|
+
service_name="metalstack.api.v2.TenantService",
|
|
728
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest,
|
|
729
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse,
|
|
730
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
731
|
+
),
|
|
732
|
+
headers=headers,
|
|
733
|
+
timeout_ms=timeout_ms,
|
|
618
734
|
)
|
|
619
735
|
|
|
620
|
-
|
|
736
|
+
def invite(
|
|
621
737
|
self,
|
|
622
738
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest,
|
|
623
739
|
*,
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
627
|
-
**kwargs,
|
|
740
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
741
|
+
timeout_ms: int | None = None,
|
|
628
742
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse:
|
|
629
|
-
|
|
630
|
-
return await self._make_request(
|
|
631
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/Invite",
|
|
632
|
-
ctx=ctx,
|
|
743
|
+
return self.execute_unary(
|
|
633
744
|
request=request,
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
745
|
+
method=MethodInfo(
|
|
746
|
+
name="Invite",
|
|
747
|
+
service_name="metalstack.api.v2.TenantService",
|
|
748
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest,
|
|
749
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse,
|
|
750
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
751
|
+
),
|
|
752
|
+
headers=headers,
|
|
753
|
+
timeout_ms=timeout_ms,
|
|
638
754
|
)
|
|
639
755
|
|
|
640
|
-
|
|
756
|
+
def invite_accept(
|
|
641
757
|
self,
|
|
642
758
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest,
|
|
643
759
|
*,
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
647
|
-
**kwargs,
|
|
760
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
761
|
+
timeout_ms: int | None = None,
|
|
648
762
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse:
|
|
649
|
-
|
|
650
|
-
return await self._make_request(
|
|
651
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/InviteAccept",
|
|
652
|
-
ctx=ctx,
|
|
763
|
+
return self.execute_unary(
|
|
653
764
|
request=request,
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
765
|
+
method=MethodInfo(
|
|
766
|
+
name="InviteAccept",
|
|
767
|
+
service_name="metalstack.api.v2.TenantService",
|
|
768
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest,
|
|
769
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse,
|
|
770
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
771
|
+
),
|
|
772
|
+
headers=headers,
|
|
773
|
+
timeout_ms=timeout_ms,
|
|
658
774
|
)
|
|
659
775
|
|
|
660
|
-
|
|
776
|
+
def invite_delete(
|
|
661
777
|
self,
|
|
662
778
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest,
|
|
663
779
|
*,
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
667
|
-
**kwargs,
|
|
780
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
781
|
+
timeout_ms: int | None = None,
|
|
668
782
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse:
|
|
669
|
-
|
|
670
|
-
return await self._make_request(
|
|
671
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/InviteDelete",
|
|
672
|
-
ctx=ctx,
|
|
783
|
+
return self.execute_unary(
|
|
673
784
|
request=request,
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
785
|
+
method=MethodInfo(
|
|
786
|
+
name="InviteDelete",
|
|
787
|
+
service_name="metalstack.api.v2.TenantService",
|
|
788
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest,
|
|
789
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse,
|
|
790
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
791
|
+
),
|
|
792
|
+
headers=headers,
|
|
793
|
+
timeout_ms=timeout_ms,
|
|
678
794
|
)
|
|
679
795
|
|
|
680
|
-
|
|
796
|
+
def invites_list(
|
|
681
797
|
self,
|
|
682
798
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest,
|
|
683
799
|
*,
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
687
|
-
**kwargs,
|
|
800
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
801
|
+
timeout_ms: int | None = None,
|
|
688
802
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse:
|
|
689
|
-
|
|
690
|
-
return await self._make_request(
|
|
691
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/InvitesList",
|
|
692
|
-
ctx=ctx,
|
|
803
|
+
return self.execute_unary(
|
|
693
804
|
request=request,
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
805
|
+
method=MethodInfo(
|
|
806
|
+
name="InvitesList",
|
|
807
|
+
service_name="metalstack.api.v2.TenantService",
|
|
808
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest,
|
|
809
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse,
|
|
810
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
811
|
+
),
|
|
812
|
+
headers=headers,
|
|
813
|
+
timeout_ms=timeout_ms,
|
|
698
814
|
)
|
|
699
815
|
|
|
700
|
-
|
|
816
|
+
def invite_get(
|
|
701
817
|
self,
|
|
702
818
|
request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest,
|
|
703
819
|
*,
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
707
|
-
**kwargs,
|
|
820
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
821
|
+
timeout_ms: int | None = None,
|
|
708
822
|
) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse:
|
|
709
|
-
|
|
710
|
-
return await self._make_request(
|
|
711
|
-
url=f"{server_path_prefix}/metalstack.api.v2.TenantService/InviteGet",
|
|
712
|
-
ctx=ctx,
|
|
823
|
+
return self.execute_unary(
|
|
713
824
|
request=request,
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
825
|
+
method=MethodInfo(
|
|
826
|
+
name="InviteGet",
|
|
827
|
+
service_name="metalstack.api.v2.TenantService",
|
|
828
|
+
input=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest,
|
|
829
|
+
output=metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse,
|
|
830
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
831
|
+
),
|
|
832
|
+
headers=headers,
|
|
833
|
+
timeout_ms=timeout_ms,
|
|
718
834
|
)
|