metal-stack-api 0.0.11__py3-none-any.whl → 0.0.13__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.
- buf/validate/validate_pb2.py +3 -3
- buf/validate/validate_pb2.pyi +13 -13
- {metal_stack_api-0.0.11.dist-info → metal_stack_api-0.0.13.dist-info}/METADATA +1 -1
- {metal_stack_api-0.0.11.dist-info → metal_stack_api-0.0.13.dist-info}/RECORD +48 -44
- metalstack/admin/v2/filesystem_pb2.py +3 -3
- metalstack/admin/v2/image_pb2.py +3 -3
- metalstack/admin/v2/ip_pb2.py +3 -3
- metalstack/admin/v2/machine_connecpy.py +158 -0
- metalstack/admin/v2/machine_pb2.py +54 -0
- metalstack/admin/v2/machine_pb2.pyi +34 -0
- metalstack/admin/v2/machine_pb2_grpc.py +125 -0
- metalstack/admin/v2/network_pb2.py +23 -23
- metalstack/admin/v2/network_pb2.pyi +5 -5
- metalstack/admin/v2/partition_pb2.py +3 -3
- metalstack/admin/v2/size_pb2.py +3 -3
- metalstack/admin/v2/tenant_pb2.py +3 -3
- metalstack/admin/v2/token_pb2.py +15 -15
- metalstack/admin/v2/token_pb2.pyi +8 -8
- metalstack/api/v2/common_pb2.py +3 -3
- metalstack/api/v2/filesystem_pb2.py +40 -40
- metalstack/api/v2/filesystem_pb2.pyi +5 -5
- metalstack/api/v2/health_pb2.py +3 -3
- metalstack/api/v2/image_pb2.py +3 -3
- metalstack/api/v2/ip_pb2.py +33 -33
- metalstack/api/v2/ip_pb2.pyi +8 -8
- metalstack/api/v2/machine_pb2.py +60 -36
- metalstack/api/v2/machine_pb2.pyi +31 -4
- metalstack/api/v2/machine_pb2_grpc.py +1 -1
- metalstack/api/v2/method_pb2.py +3 -3
- metalstack/api/v2/network_pb2.py +47 -47
- metalstack/api/v2/network_pb2.pyi +12 -12
- metalstack/api/v2/partition_pb2.py +3 -3
- metalstack/api/v2/project_pb2.py +21 -21
- metalstack/api/v2/project_pb2.pyi +10 -10
- metalstack/api/v2/size_pb2.py +3 -3
- metalstack/api/v2/switch_pb2.py +23 -23
- metalstack/api/v2/switch_pb2.pyi +4 -4
- metalstack/api/v2/tenant_pb2.py +57 -57
- metalstack/api/v2/tenant_pb2.pyi +13 -13
- metalstack/api/v2/token_pb2.py +49 -49
- metalstack/api/v2/token_pb2.pyi +4 -4
- metalstack/api/v2/user_pb2.py +3 -3
- metalstack/api/v2/version_pb2.py +3 -3
- metalstack/client/client.py +4 -0
- metalstack/infra/v2/bmc_pb2.py +3 -3
- metalstack/infra/v2/switch_pb2.py +3 -3
- {metal_stack_api-0.0.11.dist-info → metal_stack_api-0.0.13.dist-info}/WHEEL +0 -0
- {metal_stack_api-0.0.11.dist-info → metal_stack_api-0.0.13.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from metalstack.api.v2 import common_pb2 as _common_pb2
|
|
3
|
+
from metalstack.api.v2 import machine_pb2 as _machine_pb2
|
|
4
|
+
from google.protobuf.internal import containers as _containers
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import message as _message
|
|
7
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
8
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
9
|
+
|
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
|
+
|
|
12
|
+
class MachineServiceGetRequest(_message.Message):
|
|
13
|
+
__slots__ = ("uuid",)
|
|
14
|
+
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
uuid: str
|
|
16
|
+
def __init__(self, uuid: _Optional[str] = ...) -> None: ...
|
|
17
|
+
|
|
18
|
+
class MachineServiceGetResponse(_message.Message):
|
|
19
|
+
__slots__ = ("machine",)
|
|
20
|
+
MACHINE_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
machine: _machine_pb2.Machine
|
|
22
|
+
def __init__(self, machine: _Optional[_Union[_machine_pb2.Machine, _Mapping]] = ...) -> None: ...
|
|
23
|
+
|
|
24
|
+
class MachineServiceListRequest(_message.Message):
|
|
25
|
+
__slots__ = ("query",)
|
|
26
|
+
QUERY_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
query: _machine_pb2.MachineQuery
|
|
28
|
+
def __init__(self, query: _Optional[_Union[_machine_pb2.MachineQuery, _Mapping]] = ...) -> None: ...
|
|
29
|
+
|
|
30
|
+
class MachineServiceListResponse(_message.Message):
|
|
31
|
+
__slots__ = ("machines",)
|
|
32
|
+
MACHINES_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
machines: _containers.RepeatedCompositeFieldContainer[_machine_pb2.Machine]
|
|
34
|
+
def __init__(self, machines: _Optional[_Iterable[_Union[_machine_pb2.Machine, _Mapping]]] = ...) -> None: ...
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from metalstack.admin.v2 import machine_pb2 as metalstack_dot_admin_dot_v2_dot_machine__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MachineServiceStub(object):
|
|
9
|
+
"""MachineService serves machine related functions
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Get = channel.unary_unary(
|
|
19
|
+
'/metalstack.admin.v2.MachineService/Get',
|
|
20
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest.SerializeToString,
|
|
21
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
self.List = channel.unary_unary(
|
|
24
|
+
'/metalstack.admin.v2.MachineService/List',
|
|
25
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest.SerializeToString,
|
|
26
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse.FromString,
|
|
27
|
+
_registered_method=True)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class MachineServiceServicer(object):
|
|
31
|
+
"""MachineService serves machine related functions
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def Get(self, request, context):
|
|
35
|
+
"""Get a machine
|
|
36
|
+
"""
|
|
37
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
38
|
+
context.set_details('Method not implemented!')
|
|
39
|
+
raise NotImplementedError('Method not implemented!')
|
|
40
|
+
|
|
41
|
+
def List(self, request, context):
|
|
42
|
+
"""List all machines
|
|
43
|
+
"""
|
|
44
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
45
|
+
context.set_details('Method not implemented!')
|
|
46
|
+
raise NotImplementedError('Method not implemented!')
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def add_MachineServiceServicer_to_server(servicer, server):
|
|
50
|
+
rpc_method_handlers = {
|
|
51
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
52
|
+
servicer.Get,
|
|
53
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest.FromString,
|
|
54
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse.SerializeToString,
|
|
55
|
+
),
|
|
56
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
57
|
+
servicer.List,
|
|
58
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest.FromString,
|
|
59
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'metalstack.admin.v2.MachineService', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('metalstack.admin.v2.MachineService', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class MachineService(object):
|
|
70
|
+
"""MachineService serves machine related functions
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
@staticmethod
|
|
74
|
+
def Get(request,
|
|
75
|
+
target,
|
|
76
|
+
options=(),
|
|
77
|
+
channel_credentials=None,
|
|
78
|
+
call_credentials=None,
|
|
79
|
+
insecure=False,
|
|
80
|
+
compression=None,
|
|
81
|
+
wait_for_ready=None,
|
|
82
|
+
timeout=None,
|
|
83
|
+
metadata=None):
|
|
84
|
+
return grpc.experimental.unary_unary(
|
|
85
|
+
request,
|
|
86
|
+
target,
|
|
87
|
+
'/metalstack.admin.v2.MachineService/Get',
|
|
88
|
+
metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest.SerializeToString,
|
|
89
|
+
metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse.FromString,
|
|
90
|
+
options,
|
|
91
|
+
channel_credentials,
|
|
92
|
+
insecure,
|
|
93
|
+
call_credentials,
|
|
94
|
+
compression,
|
|
95
|
+
wait_for_ready,
|
|
96
|
+
timeout,
|
|
97
|
+
metadata,
|
|
98
|
+
_registered_method=True)
|
|
99
|
+
|
|
100
|
+
@staticmethod
|
|
101
|
+
def List(request,
|
|
102
|
+
target,
|
|
103
|
+
options=(),
|
|
104
|
+
channel_credentials=None,
|
|
105
|
+
call_credentials=None,
|
|
106
|
+
insecure=False,
|
|
107
|
+
compression=None,
|
|
108
|
+
wait_for_ready=None,
|
|
109
|
+
timeout=None,
|
|
110
|
+
metadata=None):
|
|
111
|
+
return grpc.experimental.unary_unary(
|
|
112
|
+
request,
|
|
113
|
+
target,
|
|
114
|
+
'/metalstack.admin.v2.MachineService/List',
|
|
115
|
+
metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest.SerializeToString,
|
|
116
|
+
metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse.FromString,
|
|
117
|
+
options,
|
|
118
|
+
channel_credentials,
|
|
119
|
+
insecure,
|
|
120
|
+
call_credentials,
|
|
121
|
+
compression,
|
|
122
|
+
wait_for_ready,
|
|
123
|
+
timeout,
|
|
124
|
+
metadata,
|
|
125
|
+
_registered_method=True)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/network.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/network.proto'
|
|
19
19
|
)
|
|
@@ -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 network_pb2 as metalstack_dot_api_dot_v2_dot_network__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/admin/v2/network.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/network.proto\"6\n\x18NetworkServiceGetRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"Q\n\x19NetworkServiceGetResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"\
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/admin/v2/network.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/network.proto\"6\n\x18NetworkServiceGetRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"Q\n\x19NetworkServiceGetResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"\xd1\x0b\n\x1bNetworkServiceCreateRequest\x12\x1f\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x02id\x88\x01\x01\x12#\n\x04name\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x02R\x0b\x64\x65scription\x88\x01\x01\x12-\n\tpartition\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x03R\tpartition\x88\x01\x01\x12\'\n\x07project\x18\x05 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x04R\x07project\x88\x01\x01\x12<\n\x04type\x18\x06 \x01(\x0e\x32\x1e.metalstack.api.v2.NetworkTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04type\x12\x36\n\x06labels\x18\x07 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsH\x05R\x06labels\x88\x01\x01\x12\x1a\n\x08prefixes\x18\x08 \x03(\tR\x08prefixes\x12\x31\n\x14\x64\x65stination_prefixes\x18\t \x03(\tR\x13\x64\x65stinationPrefixes\x12\x63\n\x1b\x64\x65\x66\x61ult_child_prefix_length\x18\n \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthR\x18\x64\x65\x66\x61ultChildPrefixLength\x12[\n\x17min_child_prefix_length\x18\x0b \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthR\x14minChildPrefixLength\x12\x44\n\x08nat_type\x18\x0c \x01(\x0e\x32\x1a.metalstack.api.v2.NATTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x06R\x07natType\x88\x01\x01\x12\x15\n\x03vrf\x18\r \x01(\rH\x07R\x03vrf\x88\x01\x01\x12\x36\n\x0eparent_network\x18\x0e \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x08R\rparentNetwork\x88\x01\x01\x12@\n\x1c\x61\x64\x64itional_announcable_cidrs\x18\x0f \x03(\tR\x1a\x61\x64\x64itionalAnnouncableCidrs\x12\x41\n\x06length\x18\x10 \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthH\tR\x06length\x88\x01\x01\x12]\n\x0e\x61\x64\x64ress_family\x18\x11 \x01(\x0e\x32\'.metalstack.api.v2.NetworkAddressFamilyB\x08\xbaH\x05\x82\x01\x02\x10\x01H\nR\raddressFamily\x88\x01\x01:\xd5\x02\xbaH\xd1\x02\x1aN\n\x08prefixes\x12\x1cgiven prefixes must be valid\x1a$this.prefixes.all(m, m.isIpPrefix())\x1ar\n\x14\x64\x65stination_prefixes\x12(given destination_prefixes must be valid\x1a\x30this.destination_prefixes.all(m, m.isIpPrefix())\x1a\x8a\x01\n\x1c\x61\x64\x64itional_announcable_cidrs\x12\x30given additional_announcable_cidrs must be valid\x1a\x38this.additional_announcable_cidrs.all(m, m.isIpPrefix())B\x05\n\x03_idB\x07\n\x05_nameB\x0e\n\x0c_descriptionB\x0c\n\n_partitionB\n\n\x08_projectB\t\n\x07_labelsB\x0b\n\t_nat_typeB\x06\n\x04_vrfB\x11\n\x0f_parent_networkB\t\n\x07_lengthB\x11\n\x0f_address_family\"\xcd\x08\n\x1bNetworkServiceUpdateRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\x12#\n\x04name\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12<\n\x06labels\x18\x07 \x01(\x0b\x32\x1f.metalstack.api.v2.UpdateLabelsH\x02R\x06labels\x88\x01\x01\x12\x1a\n\x08prefixes\x18\x08 \x03(\tR\x08prefixes\x12\x31\n\x14\x64\x65stination_prefixes\x18\t \x03(\tR\x13\x64\x65stinationPrefixes\x12h\n\x1b\x64\x65\x66\x61ult_child_prefix_length\x18\n \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthH\x03R\x18\x64\x65\x66\x61ultChildPrefixLength\x88\x01\x01\x12`\n\x17min_child_prefix_length\x18\x0b \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthH\x04R\x14minChildPrefixLength\x88\x01\x01\x12\x44\n\x08nat_type\x18\r \x01(\x0e\x32\x1a.metalstack.api.v2.NATTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x05R\x07natType\x88\x01\x01\x12@\n\x1c\x61\x64\x64itional_announcable_cidrs\x18\x10 \x03(\tR\x1a\x61\x64\x64itionalAnnouncableCidrs\x12\x14\n\x05\x66orce\x18\x02 \x01(\x08R\x05\x66orce:\xd5\x02\xbaH\xd1\x02\x1aN\n\x08prefixes\x12\x1cgiven prefixes must be valid\x1a$this.prefixes.all(m, m.isIpPrefix())\x1ar\n\x14\x64\x65stination_prefixes\x12(given destination_prefixes must be valid\x1a\x30this.destination_prefixes.all(m, m.isIpPrefix())\x1a\x8a\x01\n\x1c\x61\x64\x64itional_announcable_cidrs\x12\x30given additional_announcable_cidrs must be valid\x1a\x38this.additional_announcable_cidrs.all(m, m.isIpPrefix())B\x07\n\x05_nameB\x0e\n\x0c_descriptionB\t\n\x07_labelsB\x1e\n\x1c_default_child_prefix_lengthB\x1a\n\x18_min_child_prefix_lengthB\x0b\n\t_nat_type\"9\n\x1bNetworkServiceDeleteRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"R\n\x19NetworkServiceListRequest\x12\x35\n\x05query\x18\x02 \x01(\x0b\x32\x1f.metalstack.api.v2.NetworkQueryR\x05query\"T\n\x1cNetworkServiceCreateResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"T\n\x1cNetworkServiceUpdateResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"T\n\x1cNetworkServiceDeleteResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"T\n\x1aNetworkServiceListResponse\x12\x36\n\x08networks\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x08networks2\xe5\x04\n\x0eNetworkService\x12p\n\x03Get\x12-.metalstack.admin.v2.NetworkServiceGetRequest\x1a..metalstack.admin.v2.NetworkServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12x\n\x06\x43reate\x12\x30.metalstack.admin.v2.NetworkServiceCreateRequest\x1a\x31.metalstack.admin.v2.NetworkServiceCreateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12x\n\x06Update\x12\x30.metalstack.admin.v2.NetworkServiceUpdateRequest\x1a\x31.metalstack.admin.v2.NetworkServiceUpdateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12x\n\x06\x44\x65lete\x12\x30.metalstack.admin.v2.NetworkServiceDeleteRequest\x1a\x31.metalstack.admin.v2.NetworkServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12s\n\x04List\x12..metalstack.admin.v2.NetworkServiceListRequest\x1a/.metalstack.admin.v2.NetworkServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xd0\x01\n\x17\x63om.metalstack.admin.v2B\x0cNetworkProtoP\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)
|
|
@@ -51,8 +51,8 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
51
51
|
_globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['type']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
52
52
|
_globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['nat_type']._loaded_options = None
|
|
53
53
|
_globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['nat_type']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
54
|
-
_globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['
|
|
55
|
-
_globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['
|
|
54
|
+
_globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['parent_network']._loaded_options = None
|
|
55
|
+
_globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['parent_network']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
|
|
56
56
|
_globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['address_family']._loaded_options = None
|
|
57
57
|
_globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['address_family']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
58
58
|
_globals['_NETWORKSERVICECREATEREQUEST']._loaded_options = None
|
|
@@ -84,21 +84,21 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
84
84
|
_globals['_NETWORKSERVICEGETRESPONSE']._serialized_start=208
|
|
85
85
|
_globals['_NETWORKSERVICEGETRESPONSE']._serialized_end=289
|
|
86
86
|
_globals['_NETWORKSERVICECREATEREQUEST']._serialized_start=292
|
|
87
|
-
_globals['_NETWORKSERVICECREATEREQUEST']._serialized_end=
|
|
88
|
-
_globals['_NETWORKSERVICEUPDATEREQUEST']._serialized_start=
|
|
89
|
-
_globals['_NETWORKSERVICEUPDATEREQUEST']._serialized_end=
|
|
90
|
-
_globals['_NETWORKSERVICEDELETEREQUEST']._serialized_start=
|
|
91
|
-
_globals['_NETWORKSERVICEDELETEREQUEST']._serialized_end=
|
|
92
|
-
_globals['_NETWORKSERVICELISTREQUEST']._serialized_start=
|
|
93
|
-
_globals['_NETWORKSERVICELISTREQUEST']._serialized_end=
|
|
94
|
-
_globals['_NETWORKSERVICECREATERESPONSE']._serialized_start=
|
|
95
|
-
_globals['_NETWORKSERVICECREATERESPONSE']._serialized_end=
|
|
96
|
-
_globals['_NETWORKSERVICEUPDATERESPONSE']._serialized_start=
|
|
97
|
-
_globals['_NETWORKSERVICEUPDATERESPONSE']._serialized_end=
|
|
98
|
-
_globals['_NETWORKSERVICEDELETERESPONSE']._serialized_start=
|
|
99
|
-
_globals['_NETWORKSERVICEDELETERESPONSE']._serialized_end=
|
|
100
|
-
_globals['_NETWORKSERVICELISTRESPONSE']._serialized_start=
|
|
101
|
-
_globals['_NETWORKSERVICELISTRESPONSE']._serialized_end=
|
|
102
|
-
_globals['_NETWORKSERVICE']._serialized_start=
|
|
103
|
-
_globals['_NETWORKSERVICE']._serialized_end=
|
|
87
|
+
_globals['_NETWORKSERVICECREATEREQUEST']._serialized_end=1781
|
|
88
|
+
_globals['_NETWORKSERVICEUPDATEREQUEST']._serialized_start=1784
|
|
89
|
+
_globals['_NETWORKSERVICEUPDATEREQUEST']._serialized_end=2885
|
|
90
|
+
_globals['_NETWORKSERVICEDELETEREQUEST']._serialized_start=2887
|
|
91
|
+
_globals['_NETWORKSERVICEDELETEREQUEST']._serialized_end=2944
|
|
92
|
+
_globals['_NETWORKSERVICELISTREQUEST']._serialized_start=2946
|
|
93
|
+
_globals['_NETWORKSERVICELISTREQUEST']._serialized_end=3028
|
|
94
|
+
_globals['_NETWORKSERVICECREATERESPONSE']._serialized_start=3030
|
|
95
|
+
_globals['_NETWORKSERVICECREATERESPONSE']._serialized_end=3114
|
|
96
|
+
_globals['_NETWORKSERVICEUPDATERESPONSE']._serialized_start=3116
|
|
97
|
+
_globals['_NETWORKSERVICEUPDATERESPONSE']._serialized_end=3200
|
|
98
|
+
_globals['_NETWORKSERVICEDELETERESPONSE']._serialized_start=3202
|
|
99
|
+
_globals['_NETWORKSERVICEDELETERESPONSE']._serialized_end=3286
|
|
100
|
+
_globals['_NETWORKSERVICELISTRESPONSE']._serialized_start=3288
|
|
101
|
+
_globals['_NETWORKSERVICELISTRESPONSE']._serialized_end=3372
|
|
102
|
+
_globals['_NETWORKSERVICE']._serialized_start=3375
|
|
103
|
+
_globals['_NETWORKSERVICE']._serialized_end=3988
|
|
104
104
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -22,7 +22,7 @@ class NetworkServiceGetResponse(_message.Message):
|
|
|
22
22
|
def __init__(self, network: _Optional[_Union[_network_pb2.Network, _Mapping]] = ...) -> None: ...
|
|
23
23
|
|
|
24
24
|
class NetworkServiceCreateRequest(_message.Message):
|
|
25
|
-
__slots__ = ("id", "name", "description", "partition", "project", "type", "labels", "prefixes", "destination_prefixes", "default_child_prefix_length", "min_child_prefix_length", "nat_type", "vrf", "
|
|
25
|
+
__slots__ = ("id", "name", "description", "partition", "project", "type", "labels", "prefixes", "destination_prefixes", "default_child_prefix_length", "min_child_prefix_length", "nat_type", "vrf", "parent_network", "additional_announcable_cidrs", "length", "address_family")
|
|
26
26
|
ID_FIELD_NUMBER: _ClassVar[int]
|
|
27
27
|
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
28
28
|
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -36,7 +36,7 @@ class NetworkServiceCreateRequest(_message.Message):
|
|
|
36
36
|
MIN_CHILD_PREFIX_LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
37
37
|
NAT_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
38
38
|
VRF_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
-
|
|
39
|
+
PARENT_NETWORK_FIELD_NUMBER: _ClassVar[int]
|
|
40
40
|
ADDITIONAL_ANNOUNCABLE_CIDRS_FIELD_NUMBER: _ClassVar[int]
|
|
41
41
|
LENGTH_FIELD_NUMBER: _ClassVar[int]
|
|
42
42
|
ADDRESS_FAMILY_FIELD_NUMBER: _ClassVar[int]
|
|
@@ -53,11 +53,11 @@ class NetworkServiceCreateRequest(_message.Message):
|
|
|
53
53
|
min_child_prefix_length: _network_pb2.ChildPrefixLength
|
|
54
54
|
nat_type: _network_pb2.NATType
|
|
55
55
|
vrf: int
|
|
56
|
-
|
|
56
|
+
parent_network: str
|
|
57
57
|
additional_announcable_cidrs: _containers.RepeatedScalarFieldContainer[str]
|
|
58
58
|
length: _network_pb2.ChildPrefixLength
|
|
59
59
|
address_family: _network_pb2.NetworkAddressFamily
|
|
60
|
-
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., partition: _Optional[str] = ..., project: _Optional[str] = ..., type: _Optional[_Union[_network_pb2.NetworkType, str]] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., prefixes: _Optional[_Iterable[str]] = ..., destination_prefixes: _Optional[_Iterable[str]] = ..., default_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., min_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., nat_type: _Optional[_Union[_network_pb2.NATType, str]] = ..., vrf: _Optional[int] = ...,
|
|
60
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., partition: _Optional[str] = ..., project: _Optional[str] = ..., type: _Optional[_Union[_network_pb2.NetworkType, str]] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., prefixes: _Optional[_Iterable[str]] = ..., destination_prefixes: _Optional[_Iterable[str]] = ..., default_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., min_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., nat_type: _Optional[_Union[_network_pb2.NATType, str]] = ..., vrf: _Optional[int] = ..., parent_network: _Optional[str] = ..., additional_announcable_cidrs: _Optional[_Iterable[str]] = ..., length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., address_family: _Optional[_Union[_network_pb2.NetworkAddressFamily, str]] = ...) -> None: ...
|
|
61
61
|
|
|
62
62
|
class NetworkServiceUpdateRequest(_message.Message):
|
|
63
63
|
__slots__ = ("id", "name", "description", "labels", "prefixes", "destination_prefixes", "default_child_prefix_length", "min_child_prefix_length", "nat_type", "additional_announcable_cidrs", "force")
|
|
@@ -83,7 +83,7 @@ class NetworkServiceUpdateRequest(_message.Message):
|
|
|
83
83
|
nat_type: _network_pb2.NATType
|
|
84
84
|
additional_announcable_cidrs: _containers.RepeatedScalarFieldContainer[str]
|
|
85
85
|
force: bool
|
|
86
|
-
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.UpdateLabels, _Mapping]] = ..., prefixes: _Optional[_Iterable[str]] = ..., destination_prefixes: _Optional[_Iterable[str]] = ..., default_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., min_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., nat_type: _Optional[_Union[_network_pb2.NATType, str]] = ..., additional_announcable_cidrs: _Optional[_Iterable[str]] = ..., force: bool = ...) -> None: ...
|
|
86
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.UpdateLabels, _Mapping]] = ..., prefixes: _Optional[_Iterable[str]] = ..., destination_prefixes: _Optional[_Iterable[str]] = ..., default_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., min_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., nat_type: _Optional[_Union[_network_pb2.NATType, str]] = ..., additional_announcable_cidrs: _Optional[_Iterable[str]] = ..., force: _Optional[bool] = ...) -> None: ...
|
|
87
87
|
|
|
88
88
|
class NetworkServiceDeleteRequest(_message.Message):
|
|
89
89
|
__slots__ = ("id",)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/partition.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/partition.proto'
|
|
19
19
|
)
|
metalstack/admin/v2/size_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/size.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/size.proto'
|
|
19
19
|
)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/tenant.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/tenant.proto'
|
|
19
19
|
)
|
metalstack/admin/v2/token_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/token.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/token.proto'
|
|
19
19
|
)
|
|
@@ -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 token_pb2 as metalstack_dot_api_dot_v2_dot_token__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/admin/v2/token.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1dmetalstack/api/v2/token.proto\"
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/admin/v2/token.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1dmetalstack/api/v2/token.proto\";\n\x17TokenServiceListRequest\x12\x17\n\x04user\x18\x01 \x01(\tH\x00R\x04user\x88\x01\x01\x42\x07\n\x05_user\"L\n\x18TokenServiceListResponse\x12\x30\n\x06tokens\x18\x01 \x03(\x0b\x32\x18.metalstack.api.v2.TokenR\x06tokens\"Y\n\x19TokenServiceRevokeRequest\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\"\x1c\n\x1aTokenServiceRevokeResponse2\xed\x01\n\x0cTokenService\x12k\n\x04List\x12,.metalstack.admin.v2.TokenServiceListRequest\x1a-.metalstack.admin.v2.TokenServiceListResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x12p\n\x06Revoke\x12..metalstack.admin.v2.TokenServiceRevokeRequest\x1a/.metalstack.admin.v2.TokenServiceRevokeResponse\"\x05\xd2\xf3\x18\x01\x01\x42\xce\x01\n\x17\x63om.metalstack.admin.v2B\nTokenProtoP\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)
|
|
@@ -37,20 +37,20 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
37
37
|
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\nTokenProtoP\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'
|
|
38
38
|
_globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['uuid']._loaded_options = None
|
|
39
39
|
_globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
|
|
40
|
-
_globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['
|
|
41
|
-
_globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['
|
|
40
|
+
_globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['user']._loaded_options = None
|
|
41
|
+
_globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['user']._serialized_options = b'\272H\007r\005\020\002\030\200\004'
|
|
42
42
|
_globals['_TOKENSERVICE'].methods_by_name['List']._loaded_options = None
|
|
43
43
|
_globals['_TOKENSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002'
|
|
44
44
|
_globals['_TOKENSERVICE'].methods_by_name['Revoke']._loaded_options = None
|
|
45
45
|
_globals['_TOKENSERVICE'].methods_by_name['Revoke']._serialized_options = b'\322\363\030\001\001'
|
|
46
46
|
_globals['_TOKENSERVICELISTREQUEST']._serialized_start=148
|
|
47
|
-
_globals['_TOKENSERVICELISTREQUEST']._serialized_end=
|
|
48
|
-
_globals['_TOKENSERVICELISTRESPONSE']._serialized_start=
|
|
49
|
-
_globals['_TOKENSERVICELISTRESPONSE']._serialized_end=
|
|
50
|
-
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_start=
|
|
51
|
-
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_end=
|
|
52
|
-
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_start=
|
|
53
|
-
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_end=
|
|
54
|
-
_globals['_TOKENSERVICE']._serialized_start=
|
|
55
|
-
_globals['_TOKENSERVICE']._serialized_end=
|
|
47
|
+
_globals['_TOKENSERVICELISTREQUEST']._serialized_end=207
|
|
48
|
+
_globals['_TOKENSERVICELISTRESPONSE']._serialized_start=209
|
|
49
|
+
_globals['_TOKENSERVICELISTRESPONSE']._serialized_end=285
|
|
50
|
+
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_start=287
|
|
51
|
+
_globals['_TOKENSERVICEREVOKEREQUEST']._serialized_end=376
|
|
52
|
+
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_start=378
|
|
53
|
+
_globals['_TOKENSERVICEREVOKERESPONSE']._serialized_end=406
|
|
54
|
+
_globals['_TOKENSERVICE']._serialized_start=409
|
|
55
|
+
_globals['_TOKENSERVICE']._serialized_end=646
|
|
56
56
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -10,10 +10,10 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
|
10
10
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
11
11
|
|
|
12
12
|
class TokenServiceListRequest(_message.Message):
|
|
13
|
-
__slots__ = ("
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
def __init__(self,
|
|
13
|
+
__slots__ = ("user",)
|
|
14
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
user: str
|
|
16
|
+
def __init__(self, user: _Optional[str] = ...) -> None: ...
|
|
17
17
|
|
|
18
18
|
class TokenServiceListResponse(_message.Message):
|
|
19
19
|
__slots__ = ("tokens",)
|
|
@@ -22,12 +22,12 @@ class TokenServiceListResponse(_message.Message):
|
|
|
22
22
|
def __init__(self, tokens: _Optional[_Iterable[_Union[_token_pb2.Token, _Mapping]]] = ...) -> None: ...
|
|
23
23
|
|
|
24
24
|
class TokenServiceRevokeRequest(_message.Message):
|
|
25
|
-
__slots__ = ("uuid", "
|
|
25
|
+
__slots__ = ("uuid", "user")
|
|
26
26
|
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
-
|
|
27
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
28
28
|
uuid: str
|
|
29
|
-
|
|
30
|
-
def __init__(self, uuid: _Optional[str] = ...,
|
|
29
|
+
user: str
|
|
30
|
+
def __init__(self, uuid: _Optional[str] = ..., user: _Optional[str] = ...) -> None: ...
|
|
31
31
|
|
|
32
32
|
class TokenServiceRevokeResponse(_message.Message):
|
|
33
33
|
__slots__ = ()
|
metalstack/api/v2/common_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/api/v2/common.proto
|
|
5
|
-
# Protobuf Python Version: 6.
|
|
5
|
+
# Protobuf Python Version: 6.32.0
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
|
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
14
|
6,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
32,
|
|
16
|
+
0,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/api/v2/common.proto'
|
|
19
19
|
)
|