metal-stack-api 0.0.3__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/__init__.py +0 -0
- buf/validate/__init__.py +0 -0
- buf/validate/validate_pb2.py +450 -0
- buf/validate/validate_pb2.pyi +631 -0
- buf/validate/validate_pb2_grpc.py +4 -0
- metal_stack_api-0.0.3.dist-info/METADATA +26 -0
- metal_stack_api-0.0.3.dist-info/RECORD +107 -0
- metal_stack_api-0.0.3.dist-info/WHEEL +5 -0
- metal_stack_api-0.0.3.dist-info/top_level.txt +2 -0
- metalstack/__init__.py +0 -0
- metalstack/admin/__init__.py +0 -0
- metalstack/admin/v2/__init__.py +0 -0
- metalstack/admin/v2/filesystem_connecpy.py +214 -0
- metalstack/admin/v2/filesystem_pb2.py +60 -0
- metalstack/admin/v2/filesystem_pb2.pyi +45 -0
- metalstack/admin/v2/filesystem_pb2_grpc.py +169 -0
- metalstack/admin/v2/image_connecpy.py +270 -0
- metalstack/admin/v2/image_pb2.py +66 -0
- metalstack/admin/v2/image_pb2.pyi +58 -0
- metalstack/admin/v2/image_pb2_grpc.py +213 -0
- metalstack/admin/v2/ip_connecpy.py +158 -0
- metalstack/admin/v2/ip_pb2.py +53 -0
- metalstack/admin/v2/ip_pb2.pyi +39 -0
- metalstack/admin/v2/ip_pb2_grpc.py +125 -0
- metalstack/admin/v2/network_connecpy.py +326 -0
- metalstack/admin/v2/network_pb2.py +104 -0
- metalstack/admin/v2/network_pb2.pyi +122 -0
- metalstack/admin/v2/network_pb2_grpc.py +257 -0
- metalstack/admin/v2/partition_connecpy.py +270 -0
- metalstack/admin/v2/partition_pb2.py +72 -0
- metalstack/admin/v2/partition_pb2.pyi +90 -0
- metalstack/admin/v2/partition_pb2_grpc.py +213 -0
- metalstack/admin/v2/size_connecpy.py +214 -0
- metalstack/admin/v2/size_pb2.py +66 -0
- metalstack/admin/v2/size_pb2.pyi +54 -0
- metalstack/admin/v2/size_pb2_grpc.py +169 -0
- metalstack/admin/v2/tenant_connecpy.py +158 -0
- metalstack/admin/v2/tenant_pb2.py +58 -0
- metalstack/admin/v2/tenant_pb2.pyi +50 -0
- metalstack/admin/v2/tenant_pb2_grpc.py +125 -0
- metalstack/admin/v2/token_connecpy.py +158 -0
- metalstack/admin/v2/token_pb2.py +56 -0
- metalstack/admin/v2/token_pb2.pyi +34 -0
- metalstack/admin/v2/token_pb2_grpc.py +125 -0
- metalstack/api/__init__.py +0 -0
- metalstack/api/v2/__init__.py +0 -0
- metalstack/api/v2/common_pb2.py +66 -0
- metalstack/api/v2/common_pb2.pyi +128 -0
- metalstack/api/v2/common_pb2_grpc.py +4 -0
- metalstack/api/v2/filesystem_connecpy.py +270 -0
- metalstack/api/v2/filesystem_pb2.py +167 -0
- metalstack/api/v2/filesystem_pb2.pyi +229 -0
- metalstack/api/v2/filesystem_pb2_grpc.py +213 -0
- metalstack/api/v2/health_connecpy.py +102 -0
- metalstack/api/v2/health_pb2.py +70 -0
- metalstack/api/v2/health_pb2.pyi +80 -0
- metalstack/api/v2/health_pb2_grpc.py +81 -0
- metalstack/api/v2/image_connecpy.py +214 -0
- metalstack/api/v2/image_pb2.py +106 -0
- metalstack/api/v2/image_pb2.pyi +115 -0
- metalstack/api/v2/image_pb2_grpc.py +169 -0
- metalstack/api/v2/ip_connecpy.py +326 -0
- metalstack/api/v2/ip_pb2.py +159 -0
- metalstack/api/v2/ip_pb2.pyi +170 -0
- metalstack/api/v2/ip_pb2_grpc.py +257 -0
- metalstack/api/v2/methods_connecpy.py +158 -0
- metalstack/api/v2/methods_pb2.py +62 -0
- metalstack/api/v2/methods_pb2.pyi +50 -0
- metalstack/api/v2/methods_pb2_grpc.py +128 -0
- metalstack/api/v2/network_connecpy.py +382 -0
- metalstack/api/v2/network_pb2.py +191 -0
- metalstack/api/v2/network_pb2.pyi +247 -0
- metalstack/api/v2/network_pb2_grpc.py +301 -0
- metalstack/api/v2/partition_connecpy.py +158 -0
- metalstack/api/v2/partition_pb2.py +81 -0
- metalstack/api/v2/partition_pb2.pyi +79 -0
- metalstack/api/v2/partition_pb2_grpc.py +125 -0
- metalstack/api/v2/project_connecpy.py +718 -0
- metalstack/api/v2/project_pb2.py +156 -0
- metalstack/api/v2/project_pb2.pyi +230 -0
- metalstack/api/v2/project_pb2_grpc.py +565 -0
- metalstack/api/v2/size_connecpy.py +158 -0
- metalstack/api/v2/size_pb2.py +85 -0
- metalstack/api/v2/size_pb2.pyi +85 -0
- metalstack/api/v2/size_pb2_grpc.py +125 -0
- metalstack/api/v2/tenant_connecpy.py +718 -0
- metalstack/api/v2/tenant_pb2.py +140 -0
- metalstack/api/v2/tenant_pb2.pyi +236 -0
- metalstack/api/v2/tenant_pb2_grpc.py +565 -0
- metalstack/api/v2/token_connecpy.py +326 -0
- metalstack/api/v2/token_pb2.py +143 -0
- metalstack/api/v2/token_pb2.pyi +175 -0
- metalstack/api/v2/token_pb2_grpc.py +257 -0
- metalstack/api/v2/user_connecpy.py +102 -0
- metalstack/api/v2/user_pb2.py +48 -0
- metalstack/api/v2/user_pb2.pyi +38 -0
- metalstack/api/v2/user_pb2_grpc.py +81 -0
- metalstack/api/v2/version_connecpy.py +102 -0
- metalstack/api/v2/version_pb2.py +46 -0
- metalstack/api/v2/version_pb2.pyi +29 -0
- metalstack/api/v2/version_pb2_grpc.py +81 -0
- metalstack/infra/__init__.py +0 -0
- metalstack/infra/v2/__init__.py +0 -0
- metalstack/infra/v2/bmc_connecpy.py +102 -0
- metalstack/infra/v2/bmc_pb2.py +44 -0
- metalstack/infra/v2/bmc_pb2.pyi +14 -0
- metalstack/infra/v2/bmc_pb2_grpc.py +81 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
|
+
from metalstack.api.v2 import common_pb2 as _common_pb2
|
|
3
|
+
from google.protobuf.internal import containers as _containers
|
|
4
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
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 IPType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
13
|
+
__slots__ = ()
|
|
14
|
+
IP_TYPE_UNSPECIFIED: _ClassVar[IPType]
|
|
15
|
+
IP_TYPE_EPHEMERAL: _ClassVar[IPType]
|
|
16
|
+
IP_TYPE_STATIC: _ClassVar[IPType]
|
|
17
|
+
|
|
18
|
+
class IPAddressFamily(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
19
|
+
__slots__ = ()
|
|
20
|
+
IP_ADDRESS_FAMILY_UNSPECIFIED: _ClassVar[IPAddressFamily]
|
|
21
|
+
IP_ADDRESS_FAMILY_V4: _ClassVar[IPAddressFamily]
|
|
22
|
+
IP_ADDRESS_FAMILY_V6: _ClassVar[IPAddressFamily]
|
|
23
|
+
IP_TYPE_UNSPECIFIED: IPType
|
|
24
|
+
IP_TYPE_EPHEMERAL: IPType
|
|
25
|
+
IP_TYPE_STATIC: IPType
|
|
26
|
+
IP_ADDRESS_FAMILY_UNSPECIFIED: IPAddressFamily
|
|
27
|
+
IP_ADDRESS_FAMILY_V4: IPAddressFamily
|
|
28
|
+
IP_ADDRESS_FAMILY_V6: IPAddressFamily
|
|
29
|
+
|
|
30
|
+
class IP(_message.Message):
|
|
31
|
+
__slots__ = ("uuid", "meta", "ip", "name", "description", "network", "project", "type", "namespace")
|
|
32
|
+
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
META_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
NETWORK_FIELD_NUMBER: _ClassVar[int]
|
|
38
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
40
|
+
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
uuid: str
|
|
42
|
+
meta: _common_pb2.Meta
|
|
43
|
+
ip: str
|
|
44
|
+
name: str
|
|
45
|
+
description: str
|
|
46
|
+
network: str
|
|
47
|
+
project: str
|
|
48
|
+
type: IPType
|
|
49
|
+
namespace: str
|
|
50
|
+
def __init__(self, uuid: _Optional[str] = ..., meta: _Optional[_Union[_common_pb2.Meta, _Mapping]] = ..., ip: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., network: _Optional[str] = ..., project: _Optional[str] = ..., type: _Optional[_Union[IPType, str]] = ..., namespace: _Optional[str] = ...) -> None: ...
|
|
51
|
+
|
|
52
|
+
class IPServiceGetRequest(_message.Message):
|
|
53
|
+
__slots__ = ("ip", "project", "namespace")
|
|
54
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
ip: str
|
|
58
|
+
project: str
|
|
59
|
+
namespace: str
|
|
60
|
+
def __init__(self, ip: _Optional[str] = ..., project: _Optional[str] = ..., namespace: _Optional[str] = ...) -> None: ...
|
|
61
|
+
|
|
62
|
+
class IPServiceCreateRequest(_message.Message):
|
|
63
|
+
__slots__ = ("network", "project", "name", "description", "ip", "machine_id", "labels", "type", "address_family")
|
|
64
|
+
NETWORK_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
MACHINE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
ADDRESS_FAMILY_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
network: str
|
|
74
|
+
project: str
|
|
75
|
+
name: str
|
|
76
|
+
description: str
|
|
77
|
+
ip: str
|
|
78
|
+
machine_id: str
|
|
79
|
+
labels: _common_pb2.Labels
|
|
80
|
+
type: IPType
|
|
81
|
+
address_family: IPAddressFamily
|
|
82
|
+
def __init__(self, network: _Optional[str] = ..., project: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., ip: _Optional[str] = ..., machine_id: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., type: _Optional[_Union[IPType, str]] = ..., address_family: _Optional[_Union[IPAddressFamily, str]] = ...) -> None: ...
|
|
83
|
+
|
|
84
|
+
class IPServiceUpdateRequest(_message.Message):
|
|
85
|
+
__slots__ = ("ip", "project", "name", "description", "type", "labels")
|
|
86
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
87
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
88
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
89
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
90
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
ip: str
|
|
93
|
+
project: str
|
|
94
|
+
name: str
|
|
95
|
+
description: str
|
|
96
|
+
type: IPType
|
|
97
|
+
labels: _common_pb2.UpdateLabels
|
|
98
|
+
def __init__(self, ip: _Optional[str] = ..., project: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., type: _Optional[_Union[IPType, str]] = ..., labels: _Optional[_Union[_common_pb2.UpdateLabels, _Mapping]] = ...) -> None: ...
|
|
99
|
+
|
|
100
|
+
class IPServiceListRequest(_message.Message):
|
|
101
|
+
__slots__ = ("project", "query")
|
|
102
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
103
|
+
QUERY_FIELD_NUMBER: _ClassVar[int]
|
|
104
|
+
project: str
|
|
105
|
+
query: IPQuery
|
|
106
|
+
def __init__(self, project: _Optional[str] = ..., query: _Optional[_Union[IPQuery, _Mapping]] = ...) -> None: ...
|
|
107
|
+
|
|
108
|
+
class IPQuery(_message.Message):
|
|
109
|
+
__slots__ = ("ip", "network", "project", "name", "uuid", "machine_id", "parent_prefix_cidr", "labels", "type", "address_family", "namespace")
|
|
110
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
111
|
+
NETWORK_FIELD_NUMBER: _ClassVar[int]
|
|
112
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
113
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
114
|
+
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
115
|
+
MACHINE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
116
|
+
PARENT_PREFIX_CIDR_FIELD_NUMBER: _ClassVar[int]
|
|
117
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
118
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
+
ADDRESS_FAMILY_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
NAMESPACE_FIELD_NUMBER: _ClassVar[int]
|
|
121
|
+
ip: str
|
|
122
|
+
network: str
|
|
123
|
+
project: str
|
|
124
|
+
name: str
|
|
125
|
+
uuid: str
|
|
126
|
+
machine_id: str
|
|
127
|
+
parent_prefix_cidr: str
|
|
128
|
+
labels: _common_pb2.Labels
|
|
129
|
+
type: IPType
|
|
130
|
+
address_family: IPAddressFamily
|
|
131
|
+
namespace: str
|
|
132
|
+
def __init__(self, ip: _Optional[str] = ..., network: _Optional[str] = ..., project: _Optional[str] = ..., name: _Optional[str] = ..., uuid: _Optional[str] = ..., machine_id: _Optional[str] = ..., parent_prefix_cidr: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.Labels, _Mapping]] = ..., type: _Optional[_Union[IPType, str]] = ..., address_family: _Optional[_Union[IPAddressFamily, str]] = ..., namespace: _Optional[str] = ...) -> None: ...
|
|
133
|
+
|
|
134
|
+
class IPServiceDeleteRequest(_message.Message):
|
|
135
|
+
__slots__ = ("ip", "project")
|
|
136
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
137
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
138
|
+
ip: str
|
|
139
|
+
project: str
|
|
140
|
+
def __init__(self, ip: _Optional[str] = ..., project: _Optional[str] = ...) -> None: ...
|
|
141
|
+
|
|
142
|
+
class IPServiceGetResponse(_message.Message):
|
|
143
|
+
__slots__ = ("ip",)
|
|
144
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
145
|
+
ip: IP
|
|
146
|
+
def __init__(self, ip: _Optional[_Union[IP, _Mapping]] = ...) -> None: ...
|
|
147
|
+
|
|
148
|
+
class IPServiceUpdateResponse(_message.Message):
|
|
149
|
+
__slots__ = ("ip",)
|
|
150
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
151
|
+
ip: IP
|
|
152
|
+
def __init__(self, ip: _Optional[_Union[IP, _Mapping]] = ...) -> None: ...
|
|
153
|
+
|
|
154
|
+
class IPServiceCreateResponse(_message.Message):
|
|
155
|
+
__slots__ = ("ip",)
|
|
156
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
157
|
+
ip: IP
|
|
158
|
+
def __init__(self, ip: _Optional[_Union[IP, _Mapping]] = ...) -> None: ...
|
|
159
|
+
|
|
160
|
+
class IPServiceListResponse(_message.Message):
|
|
161
|
+
__slots__ = ("ips",)
|
|
162
|
+
IPS_FIELD_NUMBER: _ClassVar[int]
|
|
163
|
+
ips: _containers.RepeatedCompositeFieldContainer[IP]
|
|
164
|
+
def __init__(self, ips: _Optional[_Iterable[_Union[IP, _Mapping]]] = ...) -> None: ...
|
|
165
|
+
|
|
166
|
+
class IPServiceDeleteResponse(_message.Message):
|
|
167
|
+
__slots__ = ("ip",)
|
|
168
|
+
IP_FIELD_NUMBER: _ClassVar[int]
|
|
169
|
+
ip: IP
|
|
170
|
+
def __init__(self, ip: _Optional[_Union[IP, _Mapping]] = ...) -> None: ...
|
|
@@ -0,0 +1,257 @@
|
|
|
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.api.v2 import ip_pb2 as metalstack_dot_api_dot_v2_dot_ip__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class IPServiceStub(object):
|
|
9
|
+
"""IPService serves ip address 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.api.v2.IPService/Get',
|
|
20
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceGetRequest.SerializeToString,
|
|
21
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceGetResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
self.Create = channel.unary_unary(
|
|
24
|
+
'/metalstack.api.v2.IPService/Create',
|
|
25
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceCreateRequest.SerializeToString,
|
|
26
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceCreateResponse.FromString,
|
|
27
|
+
_registered_method=True)
|
|
28
|
+
self.Update = channel.unary_unary(
|
|
29
|
+
'/metalstack.api.v2.IPService/Update',
|
|
30
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceUpdateRequest.SerializeToString,
|
|
31
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceUpdateResponse.FromString,
|
|
32
|
+
_registered_method=True)
|
|
33
|
+
self.List = channel.unary_unary(
|
|
34
|
+
'/metalstack.api.v2.IPService/List',
|
|
35
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceListRequest.SerializeToString,
|
|
36
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceListResponse.FromString,
|
|
37
|
+
_registered_method=True)
|
|
38
|
+
self.Delete = channel.unary_unary(
|
|
39
|
+
'/metalstack.api.v2.IPService/Delete',
|
|
40
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceDeleteRequest.SerializeToString,
|
|
41
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceDeleteResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class IPServiceServicer(object):
|
|
46
|
+
"""IPService serves ip address related functions
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def Get(self, request, context):
|
|
50
|
+
"""Get a ip
|
|
51
|
+
"""
|
|
52
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
53
|
+
context.set_details('Method not implemented!')
|
|
54
|
+
raise NotImplementedError('Method not implemented!')
|
|
55
|
+
|
|
56
|
+
def Create(self, request, context):
|
|
57
|
+
"""Create a ip
|
|
58
|
+
"""
|
|
59
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
60
|
+
context.set_details('Method not implemented!')
|
|
61
|
+
raise NotImplementedError('Method not implemented!')
|
|
62
|
+
|
|
63
|
+
def Update(self, request, context):
|
|
64
|
+
"""Update a ip
|
|
65
|
+
"""
|
|
66
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
+
context.set_details('Method not implemented!')
|
|
68
|
+
raise NotImplementedError('Method not implemented!')
|
|
69
|
+
|
|
70
|
+
def List(self, request, context):
|
|
71
|
+
"""List all ips
|
|
72
|
+
"""
|
|
73
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
+
context.set_details('Method not implemented!')
|
|
75
|
+
raise NotImplementedError('Method not implemented!')
|
|
76
|
+
|
|
77
|
+
def Delete(self, request, context):
|
|
78
|
+
"""Delete a ip
|
|
79
|
+
"""
|
|
80
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
81
|
+
context.set_details('Method not implemented!')
|
|
82
|
+
raise NotImplementedError('Method not implemented!')
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def add_IPServiceServicer_to_server(servicer, server):
|
|
86
|
+
rpc_method_handlers = {
|
|
87
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
88
|
+
servicer.Get,
|
|
89
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceGetRequest.FromString,
|
|
90
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceGetResponse.SerializeToString,
|
|
91
|
+
),
|
|
92
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
93
|
+
servicer.Create,
|
|
94
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceCreateRequest.FromString,
|
|
95
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceCreateResponse.SerializeToString,
|
|
96
|
+
),
|
|
97
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
98
|
+
servicer.Update,
|
|
99
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceUpdateRequest.FromString,
|
|
100
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceUpdateResponse.SerializeToString,
|
|
101
|
+
),
|
|
102
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
103
|
+
servicer.List,
|
|
104
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceListRequest.FromString,
|
|
105
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceListResponse.SerializeToString,
|
|
106
|
+
),
|
|
107
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
108
|
+
servicer.Delete,
|
|
109
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceDeleteRequest.FromString,
|
|
110
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceDeleteResponse.SerializeToString,
|
|
111
|
+
),
|
|
112
|
+
}
|
|
113
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
114
|
+
'metalstack.api.v2.IPService', rpc_method_handlers)
|
|
115
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
116
|
+
server.add_registered_method_handlers('metalstack.api.v2.IPService', rpc_method_handlers)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
# This class is part of an EXPERIMENTAL API.
|
|
120
|
+
class IPService(object):
|
|
121
|
+
"""IPService serves ip address related functions
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
@staticmethod
|
|
125
|
+
def Get(request,
|
|
126
|
+
target,
|
|
127
|
+
options=(),
|
|
128
|
+
channel_credentials=None,
|
|
129
|
+
call_credentials=None,
|
|
130
|
+
insecure=False,
|
|
131
|
+
compression=None,
|
|
132
|
+
wait_for_ready=None,
|
|
133
|
+
timeout=None,
|
|
134
|
+
metadata=None):
|
|
135
|
+
return grpc.experimental.unary_unary(
|
|
136
|
+
request,
|
|
137
|
+
target,
|
|
138
|
+
'/metalstack.api.v2.IPService/Get',
|
|
139
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceGetRequest.SerializeToString,
|
|
140
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceGetResponse.FromString,
|
|
141
|
+
options,
|
|
142
|
+
channel_credentials,
|
|
143
|
+
insecure,
|
|
144
|
+
call_credentials,
|
|
145
|
+
compression,
|
|
146
|
+
wait_for_ready,
|
|
147
|
+
timeout,
|
|
148
|
+
metadata,
|
|
149
|
+
_registered_method=True)
|
|
150
|
+
|
|
151
|
+
@staticmethod
|
|
152
|
+
def Create(request,
|
|
153
|
+
target,
|
|
154
|
+
options=(),
|
|
155
|
+
channel_credentials=None,
|
|
156
|
+
call_credentials=None,
|
|
157
|
+
insecure=False,
|
|
158
|
+
compression=None,
|
|
159
|
+
wait_for_ready=None,
|
|
160
|
+
timeout=None,
|
|
161
|
+
metadata=None):
|
|
162
|
+
return grpc.experimental.unary_unary(
|
|
163
|
+
request,
|
|
164
|
+
target,
|
|
165
|
+
'/metalstack.api.v2.IPService/Create',
|
|
166
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceCreateRequest.SerializeToString,
|
|
167
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceCreateResponse.FromString,
|
|
168
|
+
options,
|
|
169
|
+
channel_credentials,
|
|
170
|
+
insecure,
|
|
171
|
+
call_credentials,
|
|
172
|
+
compression,
|
|
173
|
+
wait_for_ready,
|
|
174
|
+
timeout,
|
|
175
|
+
metadata,
|
|
176
|
+
_registered_method=True)
|
|
177
|
+
|
|
178
|
+
@staticmethod
|
|
179
|
+
def Update(request,
|
|
180
|
+
target,
|
|
181
|
+
options=(),
|
|
182
|
+
channel_credentials=None,
|
|
183
|
+
call_credentials=None,
|
|
184
|
+
insecure=False,
|
|
185
|
+
compression=None,
|
|
186
|
+
wait_for_ready=None,
|
|
187
|
+
timeout=None,
|
|
188
|
+
metadata=None):
|
|
189
|
+
return grpc.experimental.unary_unary(
|
|
190
|
+
request,
|
|
191
|
+
target,
|
|
192
|
+
'/metalstack.api.v2.IPService/Update',
|
|
193
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceUpdateRequest.SerializeToString,
|
|
194
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceUpdateResponse.FromString,
|
|
195
|
+
options,
|
|
196
|
+
channel_credentials,
|
|
197
|
+
insecure,
|
|
198
|
+
call_credentials,
|
|
199
|
+
compression,
|
|
200
|
+
wait_for_ready,
|
|
201
|
+
timeout,
|
|
202
|
+
metadata,
|
|
203
|
+
_registered_method=True)
|
|
204
|
+
|
|
205
|
+
@staticmethod
|
|
206
|
+
def List(request,
|
|
207
|
+
target,
|
|
208
|
+
options=(),
|
|
209
|
+
channel_credentials=None,
|
|
210
|
+
call_credentials=None,
|
|
211
|
+
insecure=False,
|
|
212
|
+
compression=None,
|
|
213
|
+
wait_for_ready=None,
|
|
214
|
+
timeout=None,
|
|
215
|
+
metadata=None):
|
|
216
|
+
return grpc.experimental.unary_unary(
|
|
217
|
+
request,
|
|
218
|
+
target,
|
|
219
|
+
'/metalstack.api.v2.IPService/List',
|
|
220
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceListRequest.SerializeToString,
|
|
221
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceListResponse.FromString,
|
|
222
|
+
options,
|
|
223
|
+
channel_credentials,
|
|
224
|
+
insecure,
|
|
225
|
+
call_credentials,
|
|
226
|
+
compression,
|
|
227
|
+
wait_for_ready,
|
|
228
|
+
timeout,
|
|
229
|
+
metadata,
|
|
230
|
+
_registered_method=True)
|
|
231
|
+
|
|
232
|
+
@staticmethod
|
|
233
|
+
def Delete(request,
|
|
234
|
+
target,
|
|
235
|
+
options=(),
|
|
236
|
+
channel_credentials=None,
|
|
237
|
+
call_credentials=None,
|
|
238
|
+
insecure=False,
|
|
239
|
+
compression=None,
|
|
240
|
+
wait_for_ready=None,
|
|
241
|
+
timeout=None,
|
|
242
|
+
metadata=None):
|
|
243
|
+
return grpc.experimental.unary_unary(
|
|
244
|
+
request,
|
|
245
|
+
target,
|
|
246
|
+
'/metalstack.api.v2.IPService/Delete',
|
|
247
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceDeleteRequest.SerializeToString,
|
|
248
|
+
metalstack_dot_api_dot_v2_dot_ip__pb2.IPServiceDeleteResponse.FromString,
|
|
249
|
+
options,
|
|
250
|
+
channel_credentials,
|
|
251
|
+
insecure,
|
|
252
|
+
call_credentials,
|
|
253
|
+
compression,
|
|
254
|
+
wait_for_ready,
|
|
255
|
+
timeout,
|
|
256
|
+
metadata,
|
|
257
|
+
_registered_method=True)
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
|
|
3
|
+
# source: metalstack/api/v2/methods.proto
|
|
4
|
+
|
|
5
|
+
from typing import Optional, Protocol, Union
|
|
6
|
+
|
|
7
|
+
import httpx
|
|
8
|
+
|
|
9
|
+
from connecpy.async_client import AsyncConnecpyClient
|
|
10
|
+
from connecpy.base import Endpoint
|
|
11
|
+
from connecpy.server import ConnecpyServer
|
|
12
|
+
from connecpy.client import ConnecpyClient
|
|
13
|
+
from connecpy.context import ClientContext, ServiceContext
|
|
14
|
+
import metalstack.api.v2.methods_pb2 as metalstack_dot_api_dot_v2_dot_methods__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class MethodService(Protocol):
|
|
18
|
+
async def List(self, req: metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse: ...
|
|
19
|
+
async def TokenScopedList(self, req: metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse: ...
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class MethodServiceServer(ConnecpyServer):
|
|
23
|
+
def __init__(self, *, service: MethodService, server_path_prefix=""):
|
|
24
|
+
super().__init__()
|
|
25
|
+
self._prefix = f"{server_path_prefix}/metalstack.api.v2.MethodService"
|
|
26
|
+
self._endpoints = {
|
|
27
|
+
"List": Endpoint[metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListRequest, metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse](
|
|
28
|
+
service_name="MethodService",
|
|
29
|
+
name="List",
|
|
30
|
+
function=getattr(service, "List"),
|
|
31
|
+
input=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListRequest,
|
|
32
|
+
output=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse,
|
|
33
|
+
allowed_methods=("POST",),
|
|
34
|
+
),
|
|
35
|
+
"TokenScopedList": Endpoint[metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListRequest, metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse](
|
|
36
|
+
service_name="MethodService",
|
|
37
|
+
name="TokenScopedList",
|
|
38
|
+
function=getattr(service, "TokenScopedList"),
|
|
39
|
+
input=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListRequest,
|
|
40
|
+
output=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse,
|
|
41
|
+
allowed_methods=("POST",),
|
|
42
|
+
),
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def serviceName(self):
|
|
46
|
+
return "metalstack.api.v2.MethodService"
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class MethodServiceSync(Protocol):
|
|
50
|
+
def List(self, req: metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse: ...
|
|
51
|
+
def TokenScopedList(self, req: metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListRequest, ctx: ServiceContext) -> metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse: ...
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class MethodServiceServerSync(ConnecpyServer):
|
|
55
|
+
def __init__(self, *, service: MethodServiceSync, server_path_prefix=""):
|
|
56
|
+
super().__init__()
|
|
57
|
+
self._prefix = f"{server_path_prefix}/metalstack.api.v2.MethodService"
|
|
58
|
+
self._endpoints = {
|
|
59
|
+
"List": Endpoint[metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListRequest, metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse](
|
|
60
|
+
service_name="MethodService",
|
|
61
|
+
name="List",
|
|
62
|
+
function=getattr(service, "List"),
|
|
63
|
+
input=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListRequest,
|
|
64
|
+
output=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse,
|
|
65
|
+
allowed_methods=("POST",),
|
|
66
|
+
),
|
|
67
|
+
"TokenScopedList": Endpoint[metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListRequest, metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse](
|
|
68
|
+
service_name="MethodService",
|
|
69
|
+
name="TokenScopedList",
|
|
70
|
+
function=getattr(service, "TokenScopedList"),
|
|
71
|
+
input=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListRequest,
|
|
72
|
+
output=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse,
|
|
73
|
+
allowed_methods=("POST",),
|
|
74
|
+
),
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
def serviceName(self):
|
|
78
|
+
return "metalstack.api.v2.MethodService"
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class MethodServiceClient(ConnecpyClient):
|
|
82
|
+
def List(
|
|
83
|
+
self,
|
|
84
|
+
request: metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListRequest,
|
|
85
|
+
*,
|
|
86
|
+
ctx: Optional[ClientContext] = None,
|
|
87
|
+
server_path_prefix: str = "",
|
|
88
|
+
**kwargs,
|
|
89
|
+
) -> metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse:
|
|
90
|
+
method = "POST"
|
|
91
|
+
return self._make_request(
|
|
92
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MethodService/List",
|
|
93
|
+
ctx=ctx,
|
|
94
|
+
request=request,
|
|
95
|
+
response_class=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse,
|
|
96
|
+
method=method,
|
|
97
|
+
**kwargs,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
def TokenScopedList(
|
|
101
|
+
self,
|
|
102
|
+
request: metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListRequest,
|
|
103
|
+
*,
|
|
104
|
+
ctx: Optional[ClientContext] = None,
|
|
105
|
+
server_path_prefix: str = "",
|
|
106
|
+
**kwargs,
|
|
107
|
+
) -> metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse:
|
|
108
|
+
method = "POST"
|
|
109
|
+
return self._make_request(
|
|
110
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MethodService/TokenScopedList",
|
|
111
|
+
ctx=ctx,
|
|
112
|
+
request=request,
|
|
113
|
+
response_class=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse,
|
|
114
|
+
method=method,
|
|
115
|
+
**kwargs,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
class AsyncMethodServiceClient(AsyncConnecpyClient):
|
|
120
|
+
async def List(
|
|
121
|
+
self,
|
|
122
|
+
request: metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListRequest,
|
|
123
|
+
*,
|
|
124
|
+
ctx: Optional[ClientContext] = None,
|
|
125
|
+
server_path_prefix: str = "",
|
|
126
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
127
|
+
**kwargs,
|
|
128
|
+
) -> metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse:
|
|
129
|
+
method = "POST"
|
|
130
|
+
return await self._make_request(
|
|
131
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MethodService/List",
|
|
132
|
+
ctx=ctx,
|
|
133
|
+
request=request,
|
|
134
|
+
response_class=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceListResponse,
|
|
135
|
+
method=method,
|
|
136
|
+
session=session,
|
|
137
|
+
**kwargs,
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
async def TokenScopedList(
|
|
141
|
+
self,
|
|
142
|
+
request: metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListRequest,
|
|
143
|
+
*,
|
|
144
|
+
ctx: Optional[ClientContext] = None,
|
|
145
|
+
server_path_prefix: str = "",
|
|
146
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
147
|
+
**kwargs,
|
|
148
|
+
) -> metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse:
|
|
149
|
+
method = "POST"
|
|
150
|
+
return await self._make_request(
|
|
151
|
+
url=f"{server_path_prefix}/metalstack.api.v2.MethodService/TokenScopedList",
|
|
152
|
+
ctx=ctx,
|
|
153
|
+
request=request,
|
|
154
|
+
response_class=metalstack_dot_api_dot_v2_dot_methods__pb2.MethodServiceTokenScopedListResponse,
|
|
155
|
+
method=method,
|
|
156
|
+
session=session,
|
|
157
|
+
**kwargs,
|
|
158
|
+
)
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: metalstack/api/v2/methods.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'metalstack/api/v2/methods.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
|
+
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
27
|
+
from metalstack.api.v2 import token_pb2 as metalstack_dot_api_dot_v2_dot_token__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/api/v2/methods.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1dmetalstack/api/v2/token.proto\"\x1a\n\x18MethodServiceListRequest\"5\n\x19MethodServiceListResponse\x12\x18\n\x07methods\x18\x01 \x03(\tR\x07methods\"%\n#MethodServiceTokenScopedListRequest\"\xe5\x04\n$MethodServiceTokenScopedListResponse\x12\x45\n\x0bpermissions\x18\x01 \x03(\x0b\x32#.metalstack.api.v2.MethodPermissionR\x0bpermissions\x12n\n\rproject_roles\x18\x03 \x03(\x0b\x32I.metalstack.api.v2.MethodServiceTokenScopedListResponse.ProjectRolesEntryR\x0cprojectRoles\x12k\n\x0ctenant_roles\x18\x04 \x03(\x0b\x32H.metalstack.api.v2.MethodServiceTokenScopedListResponse.TenantRolesEntryR\x0btenantRoles\x12J\n\nadmin_role\x18\x05 \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_role2\x83\x02\n\rMethodService\x12g\n\x04List\x12+.metalstack.api.v2.MethodServiceListRequest\x1a,.metalstack.api.v2.MethodServiceListResponse\"\x04\xd8\xf3\x18\x01\x12\x88\x01\n\x0fTokenScopedList\x12\x36.metalstack.api.v2.MethodServiceTokenScopedListRequest\x1a\x37.metalstack.api.v2.MethodServiceTokenScopedListResponse\"\x04\xd8\xf3\x18\x03\x42\xc2\x01\n\x15\x63om.metalstack.api.v2B\x0cMethodsProtoP\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')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.api.v2.methods_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\025com.metalstack.api.v2B\014MethodsProtoP\001Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\242\002\003MAX\252\002\021Metalstack.Api.V2\312\002\021Metalstack\\Api\\V2\342\002\035Metalstack\\Api\\V2\\GPBMetadata\352\002\023Metalstack::Api::V2'
|
|
38
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE_PROJECTROLESENTRY']._loaded_options = None
|
|
39
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE_PROJECTROLESENTRY']._serialized_options = b'8\001'
|
|
40
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE_TENANTROLESENTRY']._loaded_options = None
|
|
41
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE_TENANTROLESENTRY']._serialized_options = b'8\001'
|
|
42
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE'].fields_by_name['admin_role']._loaded_options = None
|
|
43
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE'].fields_by_name['admin_role']._serialized_options = b'\272H\005\202\001\002\020\001'
|
|
44
|
+
_globals['_METHODSERVICE'].methods_by_name['List']._loaded_options = None
|
|
45
|
+
_globals['_METHODSERVICE'].methods_by_name['List']._serialized_options = b'\330\363\030\001'
|
|
46
|
+
_globals['_METHODSERVICE'].methods_by_name['TokenScopedList']._loaded_options = None
|
|
47
|
+
_globals['_METHODSERVICE'].methods_by_name['TokenScopedList']._serialized_options = b'\330\363\030\003'
|
|
48
|
+
_globals['_METHODSERVICELISTREQUEST']._serialized_start=146
|
|
49
|
+
_globals['_METHODSERVICELISTREQUEST']._serialized_end=172
|
|
50
|
+
_globals['_METHODSERVICELISTRESPONSE']._serialized_start=174
|
|
51
|
+
_globals['_METHODSERVICELISTRESPONSE']._serialized_end=227
|
|
52
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTREQUEST']._serialized_start=229
|
|
53
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTREQUEST']._serialized_end=266
|
|
54
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE']._serialized_start=269
|
|
55
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE']._serialized_end=882
|
|
56
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE_PROJECTROLESENTRY']._serialized_start=677
|
|
57
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE_PROJECTROLESENTRY']._serialized_end=772
|
|
58
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE_TENANTROLESENTRY']._serialized_start=774
|
|
59
|
+
_globals['_METHODSERVICETOKENSCOPEDLISTRESPONSE_TENANTROLESENTRY']._serialized_end=867
|
|
60
|
+
_globals['_METHODSERVICE']._serialized_start=885
|
|
61
|
+
_globals['_METHODSERVICE']._serialized_end=1144
|
|
62
|
+
# @@protoc_insertion_point(module_scope)
|