metal-stack-api 0.0.29__tar.gz → 0.0.31__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/PKG-INFO +1 -1
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metal_stack_api.egg-info/PKG-INFO +1 -1
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/ip_connect.py +0 -65
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/ip_pb2.py +3 -11
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/ip_pb2.pyi +0 -18
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/switch_pb2.py +16 -16
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/token_pb2.py +44 -44
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/token_pb2.pyi +14 -8
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/README.md +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metal_stack_api.egg-info/SOURCES.txt +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metal_stack_api.egg-info/dependency_links.txt +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metal_stack_api.egg-info/requires.txt +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metal_stack_api.egg-info/top_level.txt +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/__init__.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/__init__.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/__init__.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/filesystem_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/filesystem_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/filesystem_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/image_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/image_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/image_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/machine_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/machine_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/machine_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/network_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/network_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/network_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/partition_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/partition_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/partition_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/size_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/size_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/size_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/switch_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/switch_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/tenant_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/tenant_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/tenant_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/token_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/token_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/admin/v2/token_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/__init__.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/__init__.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/common_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/common_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/filesystem_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/filesystem_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/filesystem_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/health_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/health_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/health_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/image_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/image_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/image_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/ip_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/ip_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/ip_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/machine_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/machine_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/machine_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/method_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/method_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/method_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/network_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/network_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/network_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/partition_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/partition_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/partition_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/predefined_rules_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/predefined_rules_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/project_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/project_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/project_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/size_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/size_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/size_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/tenant_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/tenant_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/tenant_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/token_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/user_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/user_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/user_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/version_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/version_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/version_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/client/__init__.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/client/client.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/infra/__init__.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/infra/v2/__init__.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/infra/v2/bmc_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/infra/v2/bmc_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/infra/v2/bmc_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/infra/v2/switch_connect.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/infra/v2/switch_pb2.py +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/infra/v2/switch_pb2.pyi +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/setup.cfg +0 -0
- {metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/setup.py +0 -0
|
@@ -19,9 +19,6 @@ class IPService(Protocol):
|
|
|
19
19
|
async def list(self, request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse:
|
|
20
20
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
21
|
|
|
22
|
-
async def issues(self, request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse:
|
|
23
|
-
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
24
|
-
|
|
25
22
|
|
|
26
23
|
class IPServiceASGIApplication(ConnectASGIApplication):
|
|
27
24
|
def __init__(self, service: IPService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
@@ -37,16 +34,6 @@ class IPServiceASGIApplication(ConnectASGIApplication):
|
|
|
37
34
|
),
|
|
38
35
|
function=service.list,
|
|
39
36
|
),
|
|
40
|
-
"/metalstack.admin.v2.IPService/Issues": Endpoint.unary(
|
|
41
|
-
method=MethodInfo(
|
|
42
|
-
name="Issues",
|
|
43
|
-
service_name="metalstack.admin.v2.IPService",
|
|
44
|
-
input=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
|
|
45
|
-
output=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse,
|
|
46
|
-
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
47
|
-
),
|
|
48
|
-
function=service.issues,
|
|
49
|
-
),
|
|
50
37
|
},
|
|
51
38
|
interceptors=interceptors,
|
|
52
39
|
read_max_bytes=read_max_bytes,
|
|
@@ -79,32 +66,10 @@ class IPServiceClient(ConnectClient):
|
|
|
79
66
|
timeout_ms=timeout_ms,
|
|
80
67
|
)
|
|
81
68
|
|
|
82
|
-
async def issues(
|
|
83
|
-
self,
|
|
84
|
-
request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
|
|
85
|
-
*,
|
|
86
|
-
headers: Headers | Mapping[str, str] | None = None,
|
|
87
|
-
timeout_ms: int | None = None,
|
|
88
|
-
) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse:
|
|
89
|
-
return await self.execute_unary(
|
|
90
|
-
request=request,
|
|
91
|
-
method=MethodInfo(
|
|
92
|
-
name="Issues",
|
|
93
|
-
service_name="metalstack.admin.v2.IPService",
|
|
94
|
-
input=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
|
|
95
|
-
output=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse,
|
|
96
|
-
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
97
|
-
),
|
|
98
|
-
headers=headers,
|
|
99
|
-
timeout_ms=timeout_ms,
|
|
100
|
-
)
|
|
101
|
-
|
|
102
69
|
|
|
103
70
|
class IPServiceSync(Protocol):
|
|
104
71
|
def list(self, request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceListResponse:
|
|
105
72
|
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
106
|
-
def issues(self, request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse:
|
|
107
|
-
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
108
73
|
|
|
109
74
|
|
|
110
75
|
class IPServiceWSGIApplication(ConnectWSGIApplication):
|
|
@@ -121,16 +86,6 @@ class IPServiceWSGIApplication(ConnectWSGIApplication):
|
|
|
121
86
|
),
|
|
122
87
|
function=service.list,
|
|
123
88
|
),
|
|
124
|
-
"/metalstack.admin.v2.IPService/Issues": EndpointSync.unary(
|
|
125
|
-
method=MethodInfo(
|
|
126
|
-
name="Issues",
|
|
127
|
-
service_name="metalstack.admin.v2.IPService",
|
|
128
|
-
input=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
|
|
129
|
-
output=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse,
|
|
130
|
-
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
131
|
-
),
|
|
132
|
-
function=service.issues,
|
|
133
|
-
),
|
|
134
89
|
},
|
|
135
90
|
interceptors=interceptors,
|
|
136
91
|
read_max_bytes=read_max_bytes,
|
|
@@ -162,23 +117,3 @@ class IPServiceClientSync(ConnectClientSync):
|
|
|
162
117
|
headers=headers,
|
|
163
118
|
timeout_ms=timeout_ms,
|
|
164
119
|
)
|
|
165
|
-
|
|
166
|
-
def issues(
|
|
167
|
-
self,
|
|
168
|
-
request: metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
|
|
169
|
-
*,
|
|
170
|
-
headers: Headers | Mapping[str, str] | None = None,
|
|
171
|
-
timeout_ms: int | None = None,
|
|
172
|
-
) -> metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse:
|
|
173
|
-
return self.execute_unary(
|
|
174
|
-
request=request,
|
|
175
|
-
method=MethodInfo(
|
|
176
|
-
name="Issues",
|
|
177
|
-
service_name="metalstack.admin.v2.IPService",
|
|
178
|
-
input=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesRequest,
|
|
179
|
-
output=metalstack_dot_admin_dot_v2_dot_ip__pb2.IPServiceIssuesResponse,
|
|
180
|
-
idempotency_level=IdempotencyLevel.UNKNOWN,
|
|
181
|
-
),
|
|
182
|
-
headers=headers,
|
|
183
|
-
timeout_ms=timeout_ms,
|
|
184
|
-
)
|
|
@@ -26,7 +26,7 @@ from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common
|
|
|
26
26
|
from metalstack.api.v2 import ip_pb2 as metalstack_dot_api_dot_v2_dot_ip__pb2
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cmetalstack/admin/v2/ip.proto\x12\x13metalstack.admin.v2\x1a\x1emetalstack/api/v2/common.proto\x1a\x1ametalstack/api/v2/ip.proto\"H\n\x14IPServiceListRequest\x12\x30\n\x05query\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.IPQueryR\x05query\"@\n\x15IPServiceListResponse\x12\'\n\x03ips\x18\x01 \x03(\x0b\x32\x15.metalstack.api.v2.IPR\
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cmetalstack/admin/v2/ip.proto\x12\x13metalstack.admin.v2\x1a\x1emetalstack/api/v2/common.proto\x1a\x1ametalstack/api/v2/ip.proto\"H\n\x14IPServiceListRequest\x12\x30\n\x05query\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.IPQueryR\x05query\"@\n\x15IPServiceListResponse\x12\'\n\x03ips\x18\x01 \x03(\x0b\x32\x15.metalstack.api.v2.IPR\x03ips2v\n\tIPService\x12i\n\x04List\x12).metalstack.admin.v2.IPServiceListRequest\x1a*.metalstack.admin.v2.IPServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xcb\x01\n\x17\x63om.metalstack.admin.v2B\x07IpProtoP\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')
|
|
30
30
|
|
|
31
31
|
_globals = globals()
|
|
32
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -36,18 +36,10 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
36
36
|
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\007IpProtoP\001Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\242\002\003MAX\252\002\023Metalstack.Admin.V2\312\002\023Metalstack\\Admin\\V2\342\002\037Metalstack\\Admin\\V2\\GPBMetadata\352\002\025Metalstack::Admin::V2'
|
|
37
37
|
_globals['_IPSERVICE'].methods_by_name['List']._loaded_options = None
|
|
38
38
|
_globals['_IPSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
|
|
39
|
-
_globals['_IPSERVICE'].methods_by_name['Issues']._loaded_options = None
|
|
40
|
-
_globals['_IPSERVICE'].methods_by_name['Issues']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
|
|
41
39
|
_globals['_IPSERVICELISTREQUEST']._serialized_start=113
|
|
42
40
|
_globals['_IPSERVICELISTREQUEST']._serialized_end=185
|
|
43
41
|
_globals['_IPSERVICELISTRESPONSE']._serialized_start=187
|
|
44
42
|
_globals['_IPSERVICELISTRESPONSE']._serialized_end=251
|
|
45
|
-
_globals['
|
|
46
|
-
_globals['
|
|
47
|
-
_globals['_IPSERVICEISSUESRESPONSE']._serialized_start=279
|
|
48
|
-
_globals['_IPSERVICEISSUESRESPONSE']._serialized_end=358
|
|
49
|
-
_globals['_IPISSUE']._serialized_start=360
|
|
50
|
-
_globals['_IPISSUE']._serialized_end=442
|
|
51
|
-
_globals['_IPSERVICE']._serialized_start=445
|
|
52
|
-
_globals['_IPSERVICE']._serialized_end=676
|
|
43
|
+
_globals['_IPSERVICE']._serialized_start=253
|
|
44
|
+
_globals['_IPSERVICE']._serialized_end=371
|
|
53
45
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -19,21 +19,3 @@ class IPServiceListResponse(_message.Message):
|
|
|
19
19
|
IPS_FIELD_NUMBER: _ClassVar[int]
|
|
20
20
|
ips: _containers.RepeatedCompositeFieldContainer[_ip_pb2.IP]
|
|
21
21
|
def __init__(self, ips: _Optional[_Iterable[_Union[_ip_pb2.IP, _Mapping]]] = ...) -> None: ...
|
|
22
|
-
|
|
23
|
-
class IPServiceIssuesRequest(_message.Message):
|
|
24
|
-
__slots__ = ()
|
|
25
|
-
def __init__(self) -> None: ...
|
|
26
|
-
|
|
27
|
-
class IPServiceIssuesResponse(_message.Message):
|
|
28
|
-
__slots__ = ("issues",)
|
|
29
|
-
ISSUES_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
-
issues: _containers.RepeatedCompositeFieldContainer[IPIssue]
|
|
31
|
-
def __init__(self, issues: _Optional[_Iterable[_Union[IPIssue, _Mapping]]] = ...) -> None: ...
|
|
32
|
-
|
|
33
|
-
class IPIssue(_message.Message):
|
|
34
|
-
__slots__ = ("description", "ip")
|
|
35
|
-
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
-
IP_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
-
description: str
|
|
38
|
-
ip: _ip_pb2.IP
|
|
39
|
-
def __init__(self, description: _Optional[str] = ..., ip: _Optional[_Union[_ip_pb2.IP, _Mapping]] = ...) -> None: ...
|
|
@@ -28,7 +28,7 @@ from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common
|
|
|
28
28
|
from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emetalstack/api/v2/switch.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\"\xb0\x05\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\x12machineConnectionsB\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\"\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emetalstack/api/v2/switch.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\"\xb0\x05\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\x12machineConnectionsB\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*\x8b\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\x63onnect\x12 \n\x10\x42GP_STATE_ACTIVE\x10\x03\x1a\n\x82\xb2\x19\x06\x61\x63tive\x12&\n\x13\x42GP_STATE_OPEN_SENT\x10\x04\x1a\r\x82\xb2\x19\topen-sent\x12,\n\x16\x42GP_STATE_OPEN_CONFIRM\x10\x05\x1a\x10\x82\xb2\x19\x0copen-confirm\x12*\n\x15\x42GP_STATE_ESTABLISHED\x10\x06\x1a\x0f\x82\xb2\x19\x0b\x65stablished*\x9c\x01\n\x11SwitchReplaceMode\x12#\n\x1fSWITCH_REPLACE_MODE_UNSPECIFIED\x10\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')
|
|
32
32
|
|
|
33
33
|
_globals = globals()
|
|
34
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -118,14 +118,14 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
118
118
|
_globals['_SWITCHOSQUERY'].fields_by_name['vendor']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
119
119
|
_globals['_SWITCHOSQUERY'].fields_by_name['version']._loaded_options = None
|
|
120
120
|
_globals['_SWITCHOSQUERY'].fields_by_name['version']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
121
|
-
_globals['_BGPSTATE']._serialized_start=
|
|
122
|
-
_globals['_BGPSTATE']._serialized_end=
|
|
123
|
-
_globals['_SWITCHREPLACEMODE']._serialized_start=
|
|
124
|
-
_globals['_SWITCHREPLACEMODE']._serialized_end=
|
|
125
|
-
_globals['_SWITCHOSVENDOR']._serialized_start=
|
|
126
|
-
_globals['_SWITCHOSVENDOR']._serialized_end=
|
|
127
|
-
_globals['_SWITCHPORTSTATUS']._serialized_start=
|
|
128
|
-
_globals['_SWITCHPORTSTATUS']._serialized_end=
|
|
121
|
+
_globals['_BGPSTATE']._serialized_start=2630
|
|
122
|
+
_globals['_BGPSTATE']._serialized_end=2897
|
|
123
|
+
_globals['_SWITCHREPLACEMODE']._serialized_start=2900
|
|
124
|
+
_globals['_SWITCHREPLACEMODE']._serialized_end=3056
|
|
125
|
+
_globals['_SWITCHOSVENDOR']._serialized_start=3059
|
|
126
|
+
_globals['_SWITCHOSVENDOR']._serialized_end=3191
|
|
127
|
+
_globals['_SWITCHPORTSTATUS']._serialized_start=3194
|
|
128
|
+
_globals['_SWITCHPORTSTATUS']._serialized_end=3367
|
|
129
129
|
_globals['_SWITCH']._serialized_start=190
|
|
130
130
|
_globals['_SWITCH']._serialized_end=878
|
|
131
131
|
_globals['_SWITCHOS']._serialized_start=881
|
|
@@ -137,11 +137,11 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
137
137
|
_globals['_SWITCHBGPPORTSTATE']._serialized_start=1562
|
|
138
138
|
_globals['_SWITCHBGPPORTSTATE']._serialized_end=1964
|
|
139
139
|
_globals['_NICSTATE']._serialized_start=1967
|
|
140
|
-
_globals['_NICSTATE']._serialized_end=
|
|
141
|
-
_globals['_MACHINECONNECTION']._serialized_start=
|
|
142
|
-
_globals['_MACHINECONNECTION']._serialized_end=
|
|
143
|
-
_globals['_SWITCHQUERY']._serialized_start=
|
|
144
|
-
_globals['_SWITCHQUERY']._serialized_end=
|
|
145
|
-
_globals['_SWITCHOSQUERY']._serialized_start=
|
|
146
|
-
_globals['_SWITCHOSQUERY']._serialized_end=
|
|
140
|
+
_globals['_NICSTATE']._serialized_end=2138
|
|
141
|
+
_globals['_MACHINECONNECTION']._serialized_start=2140
|
|
142
|
+
_globals['_MACHINECONNECTION']._serialized_end=2238
|
|
143
|
+
_globals['_SWITCHQUERY']._serialized_start=2241
|
|
144
|
+
_globals['_SWITCHQUERY']._serialized_end=2468
|
|
145
|
+
_globals['_SWITCHOSQUERY']._serialized_start=2471
|
|
146
|
+
_globals['_SWITCHOSQUERY']._serialized_end=2627
|
|
147
147
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -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\x1dmetalstack/api/v2/token.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\"\
|
|
32
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dmetalstack/api/v2/token.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\"\xe3\x06\n\x05Token\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1e\n\x04user\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x04R\x04user\x12+\n\x04meta\x18\x03 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12-\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\x12P\n\x0bpermissions\x18\x05 \x03(\x0b\x32#.metalstack.api.v2.MethodPermissionB\t\xbaH\x06\x92\x01\x03\x10\xf4\x03R\x0bpermissions\x12\x34\n\x07\x65xpires\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x07\x65xpires\x12\x37\n\tissued_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x08issuedAt\x12\x45\n\ntoken_type\x18\x08 \x01(\x0e\x32\x1c.metalstack.api.v2.TokenTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\ttokenType\x12O\n\rproject_roles\x18\t \x03(\x0b\x32*.metalstack.api.v2.Token.ProjectRolesEntryR\x0cprojectRoles\x12L\n\x0ctenant_roles\x18\n \x03(\x0b\x32).metalstack.api.v2.Token.TenantRolesEntryR\x0btenantRoles\x12J\n\nadmin_role\x18\x0b \x01(\x0e\x32\x1c.metalstack.api.v2.AdminRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\tadminRole\x88\x01\x01\x1a_\n\x11ProjectRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x34\n\x05value\x18\x02 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleR\x05value:\x02\x38\x01\x1a]\n\x10TenantRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x33\n\x05value\x18\x02 \x01(\x0e\x32\x1d.metalstack.api.v2.TenantRoleR\x05value:\x02\x38\x01\x42\r\n\x0b_admin_role\"\xa7\x06\n\x19TokenServiceCreateRequest\x12-\n\x0b\x64\x65scription\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\x12O\n\x0bpermissions\x18\x02 \x03(\x0b\x32#.metalstack.api.v2.MethodPermissionB\x08\xbaH\x05\x92\x01\x02\x10\x64R\x0bpermissions\x12G\n\x07\x65xpires\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x12\xbaH\x0f\xaa\x01\x0c\x1a\x05\x08\x81\xe7\x84\x0f\x32\x03\x08\xd8\x04R\x07\x65xpires\x12y\n\rproject_roles\x18\x05 \x03(\x0b\x32>.metalstack.api.v2.TokenServiceCreateRequest.ProjectRolesEntryB\x14\xbaH\x11\x9a\x01\x0e\"\x05r\x03\xb0\x01\x01*\x05\x82\x01\x02\x10\x01R\x0cprojectRoles\x12x\n\x0ctenant_roles\x18\x06 \x03(\x0b\x32=.metalstack.api.v2.TokenServiceCreateRequest.TenantRolesEntryB\x16\xbaH\x13\x9a\x01\x10\"\x07r\x05\x10\x03\x18\x80\x01*\x05\x82\x01\x02\x10\x01R\x0btenantRoles\x12J\n\nadmin_role\x18\x07 \x01(\x0e\x32\x1c.metalstack.api.v2.AdminRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\tadminRole\x88\x01\x01\x12\x31\n\x06labels\x18\x08 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsR\x06labels\x1a_\n\x11ProjectRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x34\n\x05value\x18\x02 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleR\x05value:\x02\x38\x01\x1a]\n\x10TenantRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x33\n\x05value\x18\x02 \x01(\x0e\x32\x1d.metalstack.api.v2.TenantRoleR\x05value:\x02\x38\x01\x42\r\n\x0b_admin_role\"]\n\x10MethodPermission\x12$\n\x07subject\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02R\x07subject\x12#\n\x07methods\x18\x02 \x03(\tB\t\xbaH\x06\x92\x01\x03\x10\xf4\x03R\x07methods\"d\n\x1aTokenServiceCreateResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret\"\x19\n\x17TokenServiceListRequest\"L\n\x18TokenServiceListResponse\x12\x30\n\x06tokens\x18\x01 \x03(\x0b\x32\x18.metalstack.api.v2.TokenR\x06tokens\"9\n\x19TokenServiceRevokeRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"\x1c\n\x1aTokenServiceRevokeResponse\"\xd5\x06\n\x19TokenServiceUpdateRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x46\n\x0bupdate_meta\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.UpdateMetaB\x06\xbaH\x03\xc8\x01\x00R\nupdateMeta\x12\x32\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x00R\x0b\x64\x65scription\x88\x01\x01\x12\x45\n\x0bpermissions\x18\x04 \x03(\x0b\x32#.metalstack.api.v2.MethodPermissionR\x0bpermissions\x12y\n\rproject_roles\x18\x05 \x03(\x0b\x32>.metalstack.api.v2.TokenServiceUpdateRequest.ProjectRolesEntryB\x14\xbaH\x11\x9a\x01\x0e\"\x05r\x03\xb0\x01\x01*\x05\x82\x01\x02\x10\x01R\x0cprojectRoles\x12x\n\x0ctenant_roles\x18\x06 \x03(\x0b\x32=.metalstack.api.v2.TokenServiceUpdateRequest.TenantRolesEntryB\x16\xbaH\x13\x9a\x01\x10\"\x07r\x05\x10\x03\x18\x80\x01*\x05\x82\x01\x02\x10\x01R\x0btenantRoles\x12J\n\nadmin_role\x18\x07 \x01(\x0e\x32\x1c.metalstack.api.v2.AdminRoleB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x01R\tadminRole\x88\x01\x01\x12\x37\n\x06labels\x18\x08 \x01(\x0b\x32\x1f.metalstack.api.v2.UpdateLabelsR\x06labels\x1a_\n\x11ProjectRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x34\n\x05value\x18\x02 \x01(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleR\x05value:\x02\x38\x01\x1a]\n\x10TenantRolesEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x33\n\x05value\x18\x02 \x01(\x0e\x32\x1d.metalstack.api.v2.TenantRoleR\x05value:\x02\x38\x01\x42\x0e\n\x0c_descriptionB\r\n\x0b_admin_role\"L\n\x1aTokenServiceUpdateResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\"6\n\x16TokenServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"I\n\x17TokenServiceGetResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\"\x1c\n\x1aTokenServiceRefreshRequest\"e\n\x1bTokenServiceRefreshResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret*P\n\tTokenType\x12\x1a\n\x16TOKEN_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eTOKEN_TYPE_API\x10\x01\x12\x13\n\x0fTOKEN_TYPE_USER\x10\x02\x32\x90\x05\n\x0cTokenService\x12\x62\n\x03Get\x12).metalstack.api.v2.TokenServiceGetRequest\x1a*.metalstack.api.v2.TokenServiceGetResponse\"\x04\xd8\xf3\x18\x03\x12k\n\x06\x43reate\x12,.metalstack.api.v2.TokenServiceCreateRequest\x1a-.metalstack.api.v2.TokenServiceCreateResponse\"\x04\xd8\xf3\x18\x03\x12k\n\x06Update\x12,.metalstack.api.v2.TokenServiceUpdateRequest\x1a-.metalstack.api.v2.TokenServiceUpdateResponse\"\x04\xd8\xf3\x18\x03\x12\x65\n\x04List\x12*.metalstack.api.v2.TokenServiceListRequest\x1a+.metalstack.api.v2.TokenServiceListResponse\"\x04\xd8\xf3\x18\x03\x12k\n\x06Revoke\x12,.metalstack.api.v2.TokenServiceRevokeRequest\x1a-.metalstack.api.v2.TokenServiceRevokeResponse\"\x04\xd8\xf3\x18\x03\x12n\n\x07Refresh\x12-.metalstack.api.v2.TokenServiceRefreshRequest\x1a..metalstack.api.v2.TokenServiceRefreshResponse\"\x04\xd8\xf3\x18\x03\x42\xc0\x01\n\x15\x63om.metalstack.api.v2B\nTokenProtoP\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)
|
|
@@ -105,48 +105,48 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
105
105
|
_globals['_TOKENSERVICE'].methods_by_name['Revoke']._serialized_options = b'\330\363\030\003'
|
|
106
106
|
_globals['_TOKENSERVICE'].methods_by_name['Refresh']._loaded_options = None
|
|
107
107
|
_globals['_TOKENSERVICE'].methods_by_name['Refresh']._serialized_options = b'\330\363\030\003'
|
|
108
|
-
_globals['_TOKENTYPE']._serialized_start=
|
|
109
|
-
_globals['_TOKENTYPE']._serialized_end=
|
|
108
|
+
_globals['_TOKENTYPE']._serialized_start=3489
|
|
109
|
+
_globals['_TOKENTYPE']._serialized_end=3569
|
|
110
110
|
_globals['_TOKEN']._serialized_start=221
|
|
111
|
-
_globals['_TOKEN']._serialized_end=
|
|
112
|
-
_globals['_TOKEN_PROJECTROLESENTRY']._serialized_start=
|
|
113
|
-
_globals['_TOKEN_PROJECTROLESENTRY']._serialized_end=
|
|
114
|
-
_globals['_TOKEN_TENANTROLESENTRY']._serialized_start=
|
|
115
|
-
_globals['_TOKEN_TENANTROLESENTRY']._serialized_end=
|
|
116
|
-
_globals['_TOKENSERVICECREATEREQUEST']._serialized_start=
|
|
117
|
-
_globals['_TOKENSERVICECREATEREQUEST']._serialized_end=
|
|
118
|
-
_globals['_TOKENSERVICECREATEREQUEST_PROJECTROLESENTRY']._serialized_start=
|
|
119
|
-
_globals['_TOKENSERVICECREATEREQUEST_PROJECTROLESENTRY']._serialized_end=
|
|
120
|
-
_globals['_TOKENSERVICECREATEREQUEST_TENANTROLESENTRY']._serialized_start=
|
|
121
|
-
_globals['_TOKENSERVICECREATEREQUEST_TENANTROLESENTRY']._serialized_end=
|
|
122
|
-
_globals['_METHODPERMISSION']._serialized_start=
|
|
123
|
-
_globals['_METHODPERMISSION']._serialized_end=
|
|
124
|
-
_globals['_TOKENSERVICECREATERESPONSE']._serialized_start=
|
|
125
|
-
_globals['_TOKENSERVICECREATERESPONSE']._serialized_end=
|
|
126
|
-
_globals['_TOKENSERVICELISTREQUEST']._serialized_start=
|
|
127
|
-
_globals['_TOKENSERVICELISTREQUEST']._serialized_end=
|
|
128
|
-
_globals['_TOKENSERVICELISTRESPONSE']._serialized_start=
|
|
129
|
-
_globals['_TOKENSERVICELISTRESPONSE']._serialized_end=
|
|
130
|
-
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_start=
|
|
131
|
-
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_end=
|
|
132
|
-
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_start=
|
|
133
|
-
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_end=
|
|
134
|
-
_globals['_TOKENSERVICEUPDATEREQUEST']._serialized_start=
|
|
135
|
-
_globals['_TOKENSERVICEUPDATEREQUEST']._serialized_end=
|
|
136
|
-
_globals['_TOKENSERVICEUPDATEREQUEST_PROJECTROLESENTRY']._serialized_start=
|
|
137
|
-
_globals['_TOKENSERVICEUPDATEREQUEST_PROJECTROLESENTRY']._serialized_end=
|
|
138
|
-
_globals['_TOKENSERVICEUPDATEREQUEST_TENANTROLESENTRY']._serialized_start=
|
|
139
|
-
_globals['_TOKENSERVICEUPDATEREQUEST_TENANTROLESENTRY']._serialized_end=
|
|
140
|
-
_globals['_TOKENSERVICEUPDATERESPONSE']._serialized_start=
|
|
141
|
-
_globals['_TOKENSERVICEUPDATERESPONSE']._serialized_end=
|
|
142
|
-
_globals['_TOKENSERVICEGETREQUEST']._serialized_start=
|
|
143
|
-
_globals['_TOKENSERVICEGETREQUEST']._serialized_end=
|
|
144
|
-
_globals['_TOKENSERVICEGETRESPONSE']._serialized_start=
|
|
145
|
-
_globals['_TOKENSERVICEGETRESPONSE']._serialized_end=
|
|
146
|
-
_globals['_TOKENSERVICEREFRESHREQUEST']._serialized_start=
|
|
147
|
-
_globals['_TOKENSERVICEREFRESHREQUEST']._serialized_end=
|
|
148
|
-
_globals['_TOKENSERVICEREFRESHRESPONSE']._serialized_start=
|
|
149
|
-
_globals['_TOKENSERVICEREFRESHRESPONSE']._serialized_end=
|
|
150
|
-
_globals['_TOKENSERVICE']._serialized_start=
|
|
151
|
-
_globals['_TOKENSERVICE']._serialized_end=
|
|
111
|
+
_globals['_TOKEN']._serialized_end=1088
|
|
112
|
+
_globals['_TOKEN_PROJECTROLESENTRY']._serialized_start=883
|
|
113
|
+
_globals['_TOKEN_PROJECTROLESENTRY']._serialized_end=978
|
|
114
|
+
_globals['_TOKEN_TENANTROLESENTRY']._serialized_start=980
|
|
115
|
+
_globals['_TOKEN_TENANTROLESENTRY']._serialized_end=1073
|
|
116
|
+
_globals['_TOKENSERVICECREATEREQUEST']._serialized_start=1091
|
|
117
|
+
_globals['_TOKENSERVICECREATEREQUEST']._serialized_end=1898
|
|
118
|
+
_globals['_TOKENSERVICECREATEREQUEST_PROJECTROLESENTRY']._serialized_start=883
|
|
119
|
+
_globals['_TOKENSERVICECREATEREQUEST_PROJECTROLESENTRY']._serialized_end=978
|
|
120
|
+
_globals['_TOKENSERVICECREATEREQUEST_TENANTROLESENTRY']._serialized_start=980
|
|
121
|
+
_globals['_TOKENSERVICECREATEREQUEST_TENANTROLESENTRY']._serialized_end=1073
|
|
122
|
+
_globals['_METHODPERMISSION']._serialized_start=1900
|
|
123
|
+
_globals['_METHODPERMISSION']._serialized_end=1993
|
|
124
|
+
_globals['_TOKENSERVICECREATERESPONSE']._serialized_start=1995
|
|
125
|
+
_globals['_TOKENSERVICECREATERESPONSE']._serialized_end=2095
|
|
126
|
+
_globals['_TOKENSERVICELISTREQUEST']._serialized_start=2097
|
|
127
|
+
_globals['_TOKENSERVICELISTREQUEST']._serialized_end=2122
|
|
128
|
+
_globals['_TOKENSERVICELISTRESPONSE']._serialized_start=2124
|
|
129
|
+
_globals['_TOKENSERVICELISTRESPONSE']._serialized_end=2200
|
|
130
|
+
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_start=2202
|
|
131
|
+
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_end=2259
|
|
132
|
+
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_start=2261
|
|
133
|
+
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_end=2289
|
|
134
|
+
_globals['_TOKENSERVICEUPDATEREQUEST']._serialized_start=2292
|
|
135
|
+
_globals['_TOKENSERVICEUPDATEREQUEST']._serialized_end=3145
|
|
136
|
+
_globals['_TOKENSERVICEUPDATEREQUEST_PROJECTROLESENTRY']._serialized_start=883
|
|
137
|
+
_globals['_TOKENSERVICEUPDATEREQUEST_PROJECTROLESENTRY']._serialized_end=978
|
|
138
|
+
_globals['_TOKENSERVICEUPDATEREQUEST_TENANTROLESENTRY']._serialized_start=980
|
|
139
|
+
_globals['_TOKENSERVICEUPDATEREQUEST_TENANTROLESENTRY']._serialized_end=1073
|
|
140
|
+
_globals['_TOKENSERVICEUPDATERESPONSE']._serialized_start=3147
|
|
141
|
+
_globals['_TOKENSERVICEUPDATERESPONSE']._serialized_end=3223
|
|
142
|
+
_globals['_TOKENSERVICEGETREQUEST']._serialized_start=3225
|
|
143
|
+
_globals['_TOKENSERVICEGETREQUEST']._serialized_end=3279
|
|
144
|
+
_globals['_TOKENSERVICEGETRESPONSE']._serialized_start=3281
|
|
145
|
+
_globals['_TOKENSERVICEGETRESPONSE']._serialized_end=3354
|
|
146
|
+
_globals['_TOKENSERVICEREFRESHREQUEST']._serialized_start=3356
|
|
147
|
+
_globals['_TOKENSERVICEREFRESHREQUEST']._serialized_end=3384
|
|
148
|
+
_globals['_TOKENSERVICEREFRESHRESPONSE']._serialized_start=3386
|
|
149
|
+
_globals['_TOKENSERVICEREFRESHRESPONSE']._serialized_end=3487
|
|
150
|
+
_globals['_TOKENSERVICE']._serialized_start=3572
|
|
151
|
+
_globals['_TOKENSERVICE']._serialized_end=4228
|
|
152
152
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -18,13 +18,13 @@ class TokenType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
|
18
18
|
__slots__ = ()
|
|
19
19
|
TOKEN_TYPE_UNSPECIFIED: _ClassVar[TokenType]
|
|
20
20
|
TOKEN_TYPE_API: _ClassVar[TokenType]
|
|
21
|
-
|
|
21
|
+
TOKEN_TYPE_USER: _ClassVar[TokenType]
|
|
22
22
|
TOKEN_TYPE_UNSPECIFIED: TokenType
|
|
23
23
|
TOKEN_TYPE_API: TokenType
|
|
24
|
-
|
|
24
|
+
TOKEN_TYPE_USER: TokenType
|
|
25
25
|
|
|
26
26
|
class Token(_message.Message):
|
|
27
|
-
__slots__ = ("uuid", "user", "description", "permissions", "expires", "issued_at", "token_type", "project_roles", "tenant_roles", "admin_role")
|
|
27
|
+
__slots__ = ("uuid", "user", "meta", "description", "permissions", "expires", "issued_at", "token_type", "project_roles", "tenant_roles", "admin_role")
|
|
28
28
|
class ProjectRolesEntry(_message.Message):
|
|
29
29
|
__slots__ = ("key", "value")
|
|
30
30
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -41,6 +41,7 @@ class Token(_message.Message):
|
|
|
41
41
|
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_common_pb2.TenantRole, str]] = ...) -> None: ...
|
|
42
42
|
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
43
43
|
USER_FIELD_NUMBER: _ClassVar[int]
|
|
44
|
+
META_FIELD_NUMBER: _ClassVar[int]
|
|
44
45
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
45
46
|
PERMISSIONS_FIELD_NUMBER: _ClassVar[int]
|
|
46
47
|
EXPIRES_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -51,6 +52,7 @@ class Token(_message.Message):
|
|
|
51
52
|
ADMIN_ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
52
53
|
uuid: str
|
|
53
54
|
user: str
|
|
55
|
+
meta: _common_pb2.Meta
|
|
54
56
|
description: str
|
|
55
57
|
permissions: _containers.RepeatedCompositeFieldContainer[MethodPermission]
|
|
56
58
|
expires: _timestamp_pb2.Timestamp
|
|
@@ -59,10 +61,10 @@ class Token(_message.Message):
|
|
|
59
61
|
project_roles: _containers.ScalarMap[str, _common_pb2.ProjectRole]
|
|
60
62
|
tenant_roles: _containers.ScalarMap[str, _common_pb2.TenantRole]
|
|
61
63
|
admin_role: _common_pb2.AdminRole
|
|
62
|
-
def __init__(self, uuid: _Optional[str] = ..., user: _Optional[str] = ..., description: _Optional[str] = ..., permissions: _Optional[_Iterable[_Union[MethodPermission, _Mapping]]] = ..., expires: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., issued_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., token_type: _Optional[_Union[TokenType, str]] = ..., project_roles: _Optional[_Mapping[str, _common_pb2.ProjectRole]] = ..., tenant_roles: _Optional[_Mapping[str, _common_pb2.TenantRole]] = ..., admin_role: _Optional[_Union[_common_pb2.AdminRole, str]] = ...) -> None: ...
|
|
64
|
+
def __init__(self, uuid: _Optional[str] = ..., user: _Optional[str] = ..., meta: _Optional[_Union[_common_pb2.Meta, _Mapping]] = ..., description: _Optional[str] = ..., permissions: _Optional[_Iterable[_Union[MethodPermission, _Mapping]]] = ..., expires: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., issued_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., token_type: _Optional[_Union[TokenType, str]] = ..., project_roles: _Optional[_Mapping[str, _common_pb2.ProjectRole]] = ..., tenant_roles: _Optional[_Mapping[str, _common_pb2.TenantRole]] = ..., admin_role: _Optional[_Union[_common_pb2.AdminRole, str]] = ...) -> None: ...
|
|
63
65
|
|
|
64
66
|
class TokenServiceCreateRequest(_message.Message):
|
|
65
|
-
__slots__ = ("description", "permissions", "expires", "project_roles", "tenant_roles", "admin_role")
|
|
67
|
+
__slots__ = ("description", "permissions", "expires", "project_roles", "tenant_roles", "admin_role", "labels")
|
|
66
68
|
class ProjectRolesEntry(_message.Message):
|
|
67
69
|
__slots__ = ("key", "value")
|
|
68
70
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -83,13 +85,15 @@ class TokenServiceCreateRequest(_message.Message):
|
|
|
83
85
|
PROJECT_ROLES_FIELD_NUMBER: _ClassVar[int]
|
|
84
86
|
TENANT_ROLES_FIELD_NUMBER: _ClassVar[int]
|
|
85
87
|
ADMIN_ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
86
89
|
description: str
|
|
87
90
|
permissions: _containers.RepeatedCompositeFieldContainer[MethodPermission]
|
|
88
91
|
expires: _duration_pb2.Duration
|
|
89
92
|
project_roles: _containers.ScalarMap[str, _common_pb2.ProjectRole]
|
|
90
93
|
tenant_roles: _containers.ScalarMap[str, _common_pb2.TenantRole]
|
|
91
94
|
admin_role: _common_pb2.AdminRole
|
|
92
|
-
|
|
95
|
+
labels: _common_pb2.Labels
|
|
96
|
+
def __init__(self, description: _Optional[str] = ..., permissions: _Optional[_Iterable[_Union[MethodPermission, _Mapping]]] = ..., expires: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., project_roles: _Optional[_Mapping[str, _common_pb2.ProjectRole]] = ..., tenant_roles: _Optional[_Mapping[str, _common_pb2.TenantRole]] = ..., admin_role: _Optional[_Union[_common_pb2.AdminRole, str]] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ...) -> None: ...
|
|
93
97
|
|
|
94
98
|
class MethodPermission(_message.Message):
|
|
95
99
|
__slots__ = ("subject", "methods")
|
|
@@ -128,7 +132,7 @@ class TokenServiceRevokeResponse(_message.Message):
|
|
|
128
132
|
def __init__(self) -> None: ...
|
|
129
133
|
|
|
130
134
|
class TokenServiceUpdateRequest(_message.Message):
|
|
131
|
-
__slots__ = ("uuid", "update_meta", "description", "permissions", "project_roles", "tenant_roles", "admin_role")
|
|
135
|
+
__slots__ = ("uuid", "update_meta", "description", "permissions", "project_roles", "tenant_roles", "admin_role", "labels")
|
|
132
136
|
class ProjectRolesEntry(_message.Message):
|
|
133
137
|
__slots__ = ("key", "value")
|
|
134
138
|
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -150,6 +154,7 @@ class TokenServiceUpdateRequest(_message.Message):
|
|
|
150
154
|
PROJECT_ROLES_FIELD_NUMBER: _ClassVar[int]
|
|
151
155
|
TENANT_ROLES_FIELD_NUMBER: _ClassVar[int]
|
|
152
156
|
ADMIN_ROLE_FIELD_NUMBER: _ClassVar[int]
|
|
157
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
153
158
|
uuid: str
|
|
154
159
|
update_meta: _common_pb2.UpdateMeta
|
|
155
160
|
description: str
|
|
@@ -157,7 +162,8 @@ class TokenServiceUpdateRequest(_message.Message):
|
|
|
157
162
|
project_roles: _containers.ScalarMap[str, _common_pb2.ProjectRole]
|
|
158
163
|
tenant_roles: _containers.ScalarMap[str, _common_pb2.TenantRole]
|
|
159
164
|
admin_role: _common_pb2.AdminRole
|
|
160
|
-
|
|
165
|
+
labels: _common_pb2.UpdateLabels
|
|
166
|
+
def __init__(self, uuid: _Optional[str] = ..., update_meta: _Optional[_Union[_common_pb2.UpdateMeta, _Mapping]] = ..., description: _Optional[str] = ..., permissions: _Optional[_Iterable[_Union[MethodPermission, _Mapping]]] = ..., project_roles: _Optional[_Mapping[str, _common_pb2.ProjectRole]] = ..., tenant_roles: _Optional[_Mapping[str, _common_pb2.TenantRole]] = ..., admin_role: _Optional[_Union[_common_pb2.AdminRole, str]] = ..., labels: _Optional[_Union[_common_pb2.UpdateLabels, _Mapping]] = ...) -> None: ...
|
|
161
167
|
|
|
162
168
|
class TokenServiceUpdateResponse(_message.Message):
|
|
163
169
|
__slots__ = ("token",)
|
|
File without changes
|
|
File without changes
|
{metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metal_stack_api.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{metal_stack_api-0.0.29 → metal_stack_api-0.0.31}/metalstack/api/v2/predefined_rules_pb2.pyi
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|