metal-stack-api 0.0.14__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.14.dist-info → metal_stack_api-0.0.16.dist-info}/METADATA +1 -1
- {metal_stack_api-0.0.14.dist-info → metal_stack_api-0.0.16.dist-info}/RECORD +35 -35
- 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/tenant_pb2.py +10 -10
- metalstack/admin/v2/tenant_pb2.pyi +2 -4
- 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/project_pb2.py +51 -51
- metalstack/api/v2/project_pb2.pyi +12 -6
- metalstack/api/v2/size_connecpy.py +144 -118
- metalstack/api/v2/tenant_connecpy.py +654 -538
- metalstack/api/v2/tenant_pb2.py +46 -46
- metalstack/api/v2/tenant_pb2.pyi +8 -6
- 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.14.dist-info → metal_stack_api-0.0.16.dist-info}/WHEEL +0 -0
- {metal_stack_api-0.0.14.dist-info → metal_stack_api-0.0.16.dist-info}/top_level.txt +0 -0
|
@@ -1,158 +1,184 @@
|
|
|
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/admin/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.admin.v2.tenant_pb2 as metalstack_dot_admin_dot_v2_dot_tenant__pb2
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
class TenantService(Protocol):
|
|
18
|
-
async def
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class TenantServiceServerSync(ConnecpyServer):
|
|
55
|
-
def __init__(self, *, service: TenantServiceSync, server_path_prefix=""):
|
|
56
|
-
super().__init__()
|
|
57
|
-
self._prefix = f"{server_path_prefix}/metalstack.admin.v2.TenantService"
|
|
58
|
-
self._endpoints = {
|
|
59
|
-
"Create": Endpoint[metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest, metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse](
|
|
60
|
-
service_name="TenantService",
|
|
61
|
-
name="Create",
|
|
62
|
-
function=getattr(service, "Create"),
|
|
63
|
-
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
64
|
-
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
65
|
-
allowed_methods=("POST",),
|
|
66
|
-
),
|
|
67
|
-
"List": Endpoint[metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest, metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse](
|
|
68
|
-
service_name="TenantService",
|
|
69
|
-
name="List",
|
|
70
|
-
function=getattr(service, "List"),
|
|
71
|
-
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
72
|
-
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
73
|
-
allowed_methods=("POST",),
|
|
74
|
-
),
|
|
75
|
-
}
|
|
19
|
+
async def create(self, request: metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
|
|
20
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
|
+
|
|
22
|
+
async def list(self, request: metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
|
|
23
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class TenantServiceASGIApplication(ConnecpyASGIApplication):
|
|
27
|
+
def __init__(self, service: TenantService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None):
|
|
28
|
+
super().__init__(
|
|
29
|
+
endpoints={
|
|
30
|
+
"/metalstack.admin.v2.TenantService/Create": Endpoint.unary(
|
|
31
|
+
method=MethodInfo(
|
|
32
|
+
name="Create",
|
|
33
|
+
service_name="metalstack.admin.v2.TenantService",
|
|
34
|
+
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
35
|
+
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
36
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
37
|
+
),
|
|
38
|
+
function=service.create,
|
|
39
|
+
),
|
|
40
|
+
"/metalstack.admin.v2.TenantService/List": Endpoint.unary(
|
|
41
|
+
method=MethodInfo(
|
|
42
|
+
name="List",
|
|
43
|
+
service_name="metalstack.admin.v2.TenantService",
|
|
44
|
+
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
45
|
+
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
46
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
47
|
+
),
|
|
48
|
+
function=service.list,
|
|
49
|
+
),
|
|
50
|
+
},
|
|
51
|
+
interceptors=interceptors,
|
|
52
|
+
read_max_bytes=read_max_bytes,
|
|
53
|
+
)
|
|
76
54
|
|
|
77
|
-
|
|
78
|
-
|
|
55
|
+
@property
|
|
56
|
+
def path(self):
|
|
57
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
58
|
+
return "/metalstack.admin.v2.TenantService"
|
|
79
59
|
|
|
80
60
|
|
|
81
61
|
class TenantServiceClient(ConnecpyClient):
|
|
82
|
-
def
|
|
62
|
+
async def create(
|
|
83
63
|
self,
|
|
84
64
|
request: metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
85
65
|
*,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
**kwargs,
|
|
66
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
67
|
+
timeout_ms: int | None = None,
|
|
89
68
|
) -> metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
|
|
90
|
-
|
|
91
|
-
return self._make_request(
|
|
92
|
-
url=f"{server_path_prefix}/metalstack.admin.v2.TenantService/Create",
|
|
93
|
-
ctx=ctx,
|
|
69
|
+
return await self.execute_unary(
|
|
94
70
|
request=request,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
71
|
+
method=MethodInfo(
|
|
72
|
+
name="Create",
|
|
73
|
+
service_name="metalstack.admin.v2.TenantService",
|
|
74
|
+
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
75
|
+
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
76
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
77
|
+
),
|
|
78
|
+
headers=headers,
|
|
79
|
+
timeout_ms=timeout_ms,
|
|
98
80
|
)
|
|
99
81
|
|
|
100
|
-
def
|
|
82
|
+
async def list(
|
|
101
83
|
self,
|
|
102
84
|
request: metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
103
85
|
*,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
**kwargs,
|
|
86
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
87
|
+
timeout_ms: int | None = None,
|
|
107
88
|
) -> metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
|
|
108
|
-
|
|
109
|
-
return self._make_request(
|
|
110
|
-
url=f"{server_path_prefix}/metalstack.admin.v2.TenantService/List",
|
|
111
|
-
ctx=ctx,
|
|
89
|
+
return await self.execute_unary(
|
|
112
90
|
request=request,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
91
|
+
method=MethodInfo(
|
|
92
|
+
name="List",
|
|
93
|
+
service_name="metalstack.admin.v2.TenantService",
|
|
94
|
+
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
95
|
+
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
96
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
97
|
+
),
|
|
98
|
+
headers=headers,
|
|
99
|
+
timeout_ms=timeout_ms,
|
|
116
100
|
)
|
|
117
101
|
|
|
118
102
|
|
|
119
|
-
class
|
|
120
|
-
|
|
103
|
+
class TenantServiceSync(Protocol):
|
|
104
|
+
def create(self, request: metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
|
|
105
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
106
|
+
def list(self, request: metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
|
|
107
|
+
raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class TenantServiceWSGIApplication(ConnecpyWSGIApplication):
|
|
111
|
+
def __init__(self, service: TenantServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None):
|
|
112
|
+
super().__init__(
|
|
113
|
+
endpoints={
|
|
114
|
+
"/metalstack.admin.v2.TenantService/Create": EndpointSync.unary(
|
|
115
|
+
method=MethodInfo(
|
|
116
|
+
name="Create",
|
|
117
|
+
service_name="metalstack.admin.v2.TenantService",
|
|
118
|
+
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
119
|
+
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
120
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
121
|
+
),
|
|
122
|
+
function=service.create,
|
|
123
|
+
),
|
|
124
|
+
"/metalstack.admin.v2.TenantService/List": EndpointSync.unary(
|
|
125
|
+
method=MethodInfo(
|
|
126
|
+
name="List",
|
|
127
|
+
service_name="metalstack.admin.v2.TenantService",
|
|
128
|
+
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
129
|
+
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
130
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
131
|
+
),
|
|
132
|
+
function=service.list,
|
|
133
|
+
),
|
|
134
|
+
},
|
|
135
|
+
interceptors=interceptors,
|
|
136
|
+
read_max_bytes=read_max_bytes,
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def path(self):
|
|
141
|
+
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
142
|
+
return "/metalstack.admin.v2.TenantService"
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class TenantServiceClientSync(ConnecpyClientSync):
|
|
146
|
+
def create(
|
|
121
147
|
self,
|
|
122
148
|
request: metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
123
149
|
*,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
127
|
-
**kwargs,
|
|
150
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
151
|
+
timeout_ms: int | None = None,
|
|
128
152
|
) -> metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
|
|
129
|
-
|
|
130
|
-
return await self._make_request(
|
|
131
|
-
url=f"{server_path_prefix}/metalstack.admin.v2.TenantService/Create",
|
|
132
|
-
ctx=ctx,
|
|
153
|
+
return self.execute_unary(
|
|
133
154
|
request=request,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
155
|
+
method=MethodInfo(
|
|
156
|
+
name="Create",
|
|
157
|
+
service_name="metalstack.admin.v2.TenantService",
|
|
158
|
+
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
|
|
159
|
+
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse,
|
|
160
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
161
|
+
),
|
|
162
|
+
headers=headers,
|
|
163
|
+
timeout_ms=timeout_ms,
|
|
138
164
|
)
|
|
139
165
|
|
|
140
|
-
|
|
166
|
+
def list(
|
|
141
167
|
self,
|
|
142
168
|
request: metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
143
169
|
*,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
session: Union[httpx.AsyncClient, None] = None,
|
|
147
|
-
**kwargs,
|
|
170
|
+
headers: Headers | Mapping[str, str] | None = None,
|
|
171
|
+
timeout_ms: int | None = None,
|
|
148
172
|
) -> metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
|
|
149
|
-
|
|
150
|
-
return await self._make_request(
|
|
151
|
-
url=f"{server_path_prefix}/metalstack.admin.v2.TenantService/List",
|
|
152
|
-
ctx=ctx,
|
|
173
|
+
return self.execute_unary(
|
|
153
174
|
request=request,
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
175
|
+
method=MethodInfo(
|
|
176
|
+
name="List",
|
|
177
|
+
service_name="metalstack.admin.v2.TenantService",
|
|
178
|
+
input=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListRequest,
|
|
179
|
+
output=metalstack_dot_admin_dot_v2_dot_tenant__pb2.TenantServiceListResponse,
|
|
180
|
+
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
181
|
+
),
|
|
182
|
+
headers=headers,
|
|
183
|
+
timeout_ms=timeout_ms,
|
|
158
184
|
)
|
|
@@ -27,7 +27,7 @@ from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common
|
|
|
27
27
|
from metalstack.api.v2 import tenant_pb2 as metalstack_dot_api_dot_v2_dot_tenant__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n metalstack/admin/v2/tenant.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1emetalstack/api/v2/tenant.proto\"\
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n metalstack/admin/v2/tenant.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1emetalstack/api/v2/tenant.proto\"\xdf\x01\n\x1aTenantServiceCreateRequest\x12\x1d\n\x04name\x18\x01 \x01(\tB\t\xbaH\x06r\x04\x10\x02\x18@R\x04name\x12\x31\n\x0b\x64\x65scription\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x04H\x00R\x0b\x64\x65scription\x88\x01\x01\x12\"\n\x05\x65mail\x18\x03 \x01(\tB\x07\xbaH\x04r\x02`\x01H\x01R\x05\x65mail\x88\x01\x01\x12\"\n\navatar_url\x18\x04 \x01(\tH\x02R\tavatarUrl\x88\x01\x01\x42\x0e\n\x0c_descriptionB\x08\n\x06_emailB\r\n\x0b_avatar_url\"P\n\x1bTenantServiceCreateResponse\x12\x31\n\x06tenant\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.TenantR\x06tenant\"\xb9\x01\n\x18TenantServiceListRequest\x12\x19\n\x05login\x18\x01 \x01(\tH\x00R\x05login\x88\x01\x01\x12\x17\n\x04name\x18\x02 \x01(\tH\x01R\x04name\x88\x01\x01\x12\x19\n\x05\x65mail\x18\x03 \x01(\tH\x02R\x05\x65mail\x88\x01\x01\x12\x31\n\x06paging\x18\x07 \x01(\x0b\x32\x19.metalstack.api.v2.PagingR\x06pagingB\x08\n\x06_loginB\x07\n\x05_nameB\x08\n\x06_email\"\x80\x01\n\x19TenantServiceListResponse\x12\x33\n\x07tenants\x18\x01 \x03(\x0b\x32\x19.metalstack.api.v2.TenantR\x07tenants\x12 \n\tnext_page\x18\x02 \x01(\x04H\x00R\x08nextPage\x88\x01\x01\x42\x0c\n\n_next_page2\xf2\x01\n\rTenantService\x12r\n\x06\x43reate\x12/.metalstack.admin.v2.TenantServiceCreateRequest\x1a\x30.metalstack.admin.v2.TenantServiceCreateResponse\"\x05\xd2\xf3\x18\x01\x01\x12m\n\x04List\x12-.metalstack.admin.v2.TenantServiceListRequest\x1a..metalstack.admin.v2.TenantServiceListResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x42\xcf\x01\n\x17\x63om.metalstack.admin.v2B\x0bTenantProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3')
|
|
31
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -46,13 +46,13 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
46
46
|
_globals['_TENANTSERVICE'].methods_by_name['List']._loaded_options = None
|
|
47
47
|
_globals['_TENANTSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002'
|
|
48
48
|
_globals['_TENANTSERVICECREATEREQUEST']._serialized_start=151
|
|
49
|
-
_globals['_TENANTSERVICECREATEREQUEST']._serialized_end=
|
|
50
|
-
_globals['_TENANTSERVICECREATERESPONSE']._serialized_start=
|
|
51
|
-
_globals['_TENANTSERVICECREATERESPONSE']._serialized_end=
|
|
52
|
-
_globals['_TENANTSERVICELISTREQUEST']._serialized_start=
|
|
53
|
-
_globals['_TENANTSERVICELISTREQUEST']._serialized_end=
|
|
54
|
-
_globals['_TENANTSERVICELISTRESPONSE']._serialized_start=
|
|
55
|
-
_globals['_TENANTSERVICELISTRESPONSE']._serialized_end=
|
|
56
|
-
_globals['_TENANTSERVICE']._serialized_start=
|
|
57
|
-
_globals['_TENANTSERVICE']._serialized_end=
|
|
49
|
+
_globals['_TENANTSERVICECREATEREQUEST']._serialized_end=374
|
|
50
|
+
_globals['_TENANTSERVICECREATERESPONSE']._serialized_start=376
|
|
51
|
+
_globals['_TENANTSERVICECREATERESPONSE']._serialized_end=456
|
|
52
|
+
_globals['_TENANTSERVICELISTREQUEST']._serialized_start=459
|
|
53
|
+
_globals['_TENANTSERVICELISTREQUEST']._serialized_end=644
|
|
54
|
+
_globals['_TENANTSERVICELISTRESPONSE']._serialized_start=647
|
|
55
|
+
_globals['_TENANTSERVICELISTRESPONSE']._serialized_end=775
|
|
56
|
+
_globals['_TENANTSERVICE']._serialized_start=778
|
|
57
|
+
_globals['_TENANTSERVICE']._serialized_end=1020
|
|
58
58
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -10,18 +10,16 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
|
10
10
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
11
|
|
|
12
12
|
class TenantServiceCreateRequest(_message.Message):
|
|
13
|
-
__slots__ = ("name", "description", "email", "avatar_url"
|
|
13
|
+
__slots__ = ("name", "description", "email", "avatar_url")
|
|
14
14
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
15
15
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
16
16
|
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
|
17
17
|
AVATAR_URL_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
-
PHONE_NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
19
18
|
name: str
|
|
20
19
|
description: str
|
|
21
20
|
email: str
|
|
22
21
|
avatar_url: str
|
|
23
|
-
|
|
24
|
-
def __init__(self, name: _Optional[str] = ..., description: _Optional[str] = ..., email: _Optional[str] = ..., avatar_url: _Optional[str] = ..., phone_number: _Optional[str] = ...) -> None: ...
|
|
22
|
+
def __init__(self, name: _Optional[str] = ..., description: _Optional[str] = ..., email: _Optional[str] = ..., avatar_url: _Optional[str] = ...) -> None: ...
|
|
25
23
|
|
|
26
24
|
class TenantServiceCreateResponse(_message.Message):
|
|
27
25
|
__slots__ = ("tenant",)
|