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,90 @@
|
|
|
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 partition_pb2 as _partition_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 PartitionServiceCreateRequest(_message.Message):
|
|
13
|
+
__slots__ = ("partition",)
|
|
14
|
+
PARTITION_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
partition: _partition_pb2.Partition
|
|
16
|
+
def __init__(self, partition: _Optional[_Union[_partition_pb2.Partition, _Mapping]] = ...) -> None: ...
|
|
17
|
+
|
|
18
|
+
class PartitionServiceUpdateRequest(_message.Message):
|
|
19
|
+
__slots__ = ("partition",)
|
|
20
|
+
PARTITION_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
partition: _partition_pb2.Partition
|
|
22
|
+
def __init__(self, partition: _Optional[_Union[_partition_pb2.Partition, _Mapping]] = ...) -> None: ...
|
|
23
|
+
|
|
24
|
+
class PartitionServiceDeleteRequest(_message.Message):
|
|
25
|
+
__slots__ = ("id",)
|
|
26
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
id: str
|
|
28
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
29
|
+
|
|
30
|
+
class PartitionServiceCreateResponse(_message.Message):
|
|
31
|
+
__slots__ = ("partition",)
|
|
32
|
+
PARTITION_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
partition: _partition_pb2.Partition
|
|
34
|
+
def __init__(self, partition: _Optional[_Union[_partition_pb2.Partition, _Mapping]] = ...) -> None: ...
|
|
35
|
+
|
|
36
|
+
class PartitionServiceUpdateResponse(_message.Message):
|
|
37
|
+
__slots__ = ("partition",)
|
|
38
|
+
PARTITION_FIELD_NUMBER: _ClassVar[int]
|
|
39
|
+
partition: _partition_pb2.Partition
|
|
40
|
+
def __init__(self, partition: _Optional[_Union[_partition_pb2.Partition, _Mapping]] = ...) -> None: ...
|
|
41
|
+
|
|
42
|
+
class PartitionServiceDeleteResponse(_message.Message):
|
|
43
|
+
__slots__ = ("partition",)
|
|
44
|
+
PARTITION_FIELD_NUMBER: _ClassVar[int]
|
|
45
|
+
partition: _partition_pb2.Partition
|
|
46
|
+
def __init__(self, partition: _Optional[_Union[_partition_pb2.Partition, _Mapping]] = ...) -> None: ...
|
|
47
|
+
|
|
48
|
+
class PartitionServiceCapacityRequest(_message.Message):
|
|
49
|
+
__slots__ = ("id", "size", "project")
|
|
50
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
id: str
|
|
54
|
+
size: str
|
|
55
|
+
project: str
|
|
56
|
+
def __init__(self, id: _Optional[str] = ..., size: _Optional[str] = ..., project: _Optional[str] = ...) -> None: ...
|
|
57
|
+
|
|
58
|
+
class PartitionServiceCapacityResponse(_message.Message):
|
|
59
|
+
__slots__ = ("size", "total", "phoned_home", "waiting", "other", "other_machines", "allocated", "allocatable", "free", "unavailable", "faulty", "faulty_machines", "reservations", "used_reservations", "remaining_reservations")
|
|
60
|
+
SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
TOTAL_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
PHONED_HOME_FIELD_NUMBER: _ClassVar[int]
|
|
63
|
+
WAITING_FIELD_NUMBER: _ClassVar[int]
|
|
64
|
+
OTHER_FIELD_NUMBER: _ClassVar[int]
|
|
65
|
+
OTHER_MACHINES_FIELD_NUMBER: _ClassVar[int]
|
|
66
|
+
ALLOCATED_FIELD_NUMBER: _ClassVar[int]
|
|
67
|
+
ALLOCATABLE_FIELD_NUMBER: _ClassVar[int]
|
|
68
|
+
FREE_FIELD_NUMBER: _ClassVar[int]
|
|
69
|
+
UNAVAILABLE_FIELD_NUMBER: _ClassVar[int]
|
|
70
|
+
FAULTY_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
FAULTY_MACHINES_FIELD_NUMBER: _ClassVar[int]
|
|
72
|
+
RESERVATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
73
|
+
USED_RESERVATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
74
|
+
REMAINING_RESERVATIONS_FIELD_NUMBER: _ClassVar[int]
|
|
75
|
+
size: str
|
|
76
|
+
total: int
|
|
77
|
+
phoned_home: int
|
|
78
|
+
waiting: int
|
|
79
|
+
other: int
|
|
80
|
+
other_machines: _containers.RepeatedScalarFieldContainer[str]
|
|
81
|
+
allocated: int
|
|
82
|
+
allocatable: int
|
|
83
|
+
free: int
|
|
84
|
+
unavailable: int
|
|
85
|
+
faulty: int
|
|
86
|
+
faulty_machines: _containers.RepeatedScalarFieldContainer[str]
|
|
87
|
+
reservations: int
|
|
88
|
+
used_reservations: int
|
|
89
|
+
remaining_reservations: int
|
|
90
|
+
def __init__(self, size: _Optional[str] = ..., total: _Optional[int] = ..., phoned_home: _Optional[int] = ..., waiting: _Optional[int] = ..., other: _Optional[int] = ..., other_machines: _Optional[_Iterable[str]] = ..., allocated: _Optional[int] = ..., allocatable: _Optional[int] = ..., free: _Optional[int] = ..., unavailable: _Optional[int] = ..., faulty: _Optional[int] = ..., faulty_machines: _Optional[_Iterable[str]] = ..., reservations: _Optional[int] = ..., used_reservations: _Optional[int] = ..., remaining_reservations: _Optional[int] = ...) -> None: ...
|
|
@@ -0,0 +1,213 @@
|
|
|
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 partition_pb2 as metalstack_dot_admin_dot_v2_dot_partition__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class PartitionServiceStub(object):
|
|
9
|
+
"""PartitionService serves partition address related functions
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Create = channel.unary_unary(
|
|
19
|
+
'/metalstack.admin.v2.PartitionService/Create',
|
|
20
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateRequest.SerializeToString,
|
|
21
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
self.Update = channel.unary_unary(
|
|
24
|
+
'/metalstack.admin.v2.PartitionService/Update',
|
|
25
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateRequest.SerializeToString,
|
|
26
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateResponse.FromString,
|
|
27
|
+
_registered_method=True)
|
|
28
|
+
self.Delete = channel.unary_unary(
|
|
29
|
+
'/metalstack.admin.v2.PartitionService/Delete',
|
|
30
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteRequest.SerializeToString,
|
|
31
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteResponse.FromString,
|
|
32
|
+
_registered_method=True)
|
|
33
|
+
self.Capacity = channel.unary_unary(
|
|
34
|
+
'/metalstack.admin.v2.PartitionService/Capacity',
|
|
35
|
+
request_serializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityRequest.SerializeToString,
|
|
36
|
+
response_deserializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityResponse.FromString,
|
|
37
|
+
_registered_method=True)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class PartitionServiceServicer(object):
|
|
41
|
+
"""PartitionService serves partition address related functions
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
def Create(self, request, context):
|
|
45
|
+
"""Create a partition
|
|
46
|
+
"""
|
|
47
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
48
|
+
context.set_details('Method not implemented!')
|
|
49
|
+
raise NotImplementedError('Method not implemented!')
|
|
50
|
+
|
|
51
|
+
def Update(self, request, context):
|
|
52
|
+
"""Update a partition
|
|
53
|
+
"""
|
|
54
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
55
|
+
context.set_details('Method not implemented!')
|
|
56
|
+
raise NotImplementedError('Method not implemented!')
|
|
57
|
+
|
|
58
|
+
def Delete(self, request, context):
|
|
59
|
+
"""Delete a partition
|
|
60
|
+
"""
|
|
61
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
62
|
+
context.set_details('Method not implemented!')
|
|
63
|
+
raise NotImplementedError('Method not implemented!')
|
|
64
|
+
|
|
65
|
+
def Capacity(self, request, context):
|
|
66
|
+
"""Capacity of a partitions
|
|
67
|
+
"""
|
|
68
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
69
|
+
context.set_details('Method not implemented!')
|
|
70
|
+
raise NotImplementedError('Method not implemented!')
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def add_PartitionServiceServicer_to_server(servicer, server):
|
|
74
|
+
rpc_method_handlers = {
|
|
75
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
76
|
+
servicer.Create,
|
|
77
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateRequest.FromString,
|
|
78
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateResponse.SerializeToString,
|
|
79
|
+
),
|
|
80
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
81
|
+
servicer.Update,
|
|
82
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateRequest.FromString,
|
|
83
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateResponse.SerializeToString,
|
|
84
|
+
),
|
|
85
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
86
|
+
servicer.Delete,
|
|
87
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteRequest.FromString,
|
|
88
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteResponse.SerializeToString,
|
|
89
|
+
),
|
|
90
|
+
'Capacity': grpc.unary_unary_rpc_method_handler(
|
|
91
|
+
servicer.Capacity,
|
|
92
|
+
request_deserializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityRequest.FromString,
|
|
93
|
+
response_serializer=metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityResponse.SerializeToString,
|
|
94
|
+
),
|
|
95
|
+
}
|
|
96
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
97
|
+
'metalstack.admin.v2.PartitionService', rpc_method_handlers)
|
|
98
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
99
|
+
server.add_registered_method_handlers('metalstack.admin.v2.PartitionService', rpc_method_handlers)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# This class is part of an EXPERIMENTAL API.
|
|
103
|
+
class PartitionService(object):
|
|
104
|
+
"""PartitionService serves partition address related functions
|
|
105
|
+
"""
|
|
106
|
+
|
|
107
|
+
@staticmethod
|
|
108
|
+
def Create(request,
|
|
109
|
+
target,
|
|
110
|
+
options=(),
|
|
111
|
+
channel_credentials=None,
|
|
112
|
+
call_credentials=None,
|
|
113
|
+
insecure=False,
|
|
114
|
+
compression=None,
|
|
115
|
+
wait_for_ready=None,
|
|
116
|
+
timeout=None,
|
|
117
|
+
metadata=None):
|
|
118
|
+
return grpc.experimental.unary_unary(
|
|
119
|
+
request,
|
|
120
|
+
target,
|
|
121
|
+
'/metalstack.admin.v2.PartitionService/Create',
|
|
122
|
+
metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateRequest.SerializeToString,
|
|
123
|
+
metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateResponse.FromString,
|
|
124
|
+
options,
|
|
125
|
+
channel_credentials,
|
|
126
|
+
insecure,
|
|
127
|
+
call_credentials,
|
|
128
|
+
compression,
|
|
129
|
+
wait_for_ready,
|
|
130
|
+
timeout,
|
|
131
|
+
metadata,
|
|
132
|
+
_registered_method=True)
|
|
133
|
+
|
|
134
|
+
@staticmethod
|
|
135
|
+
def Update(request,
|
|
136
|
+
target,
|
|
137
|
+
options=(),
|
|
138
|
+
channel_credentials=None,
|
|
139
|
+
call_credentials=None,
|
|
140
|
+
insecure=False,
|
|
141
|
+
compression=None,
|
|
142
|
+
wait_for_ready=None,
|
|
143
|
+
timeout=None,
|
|
144
|
+
metadata=None):
|
|
145
|
+
return grpc.experimental.unary_unary(
|
|
146
|
+
request,
|
|
147
|
+
target,
|
|
148
|
+
'/metalstack.admin.v2.PartitionService/Update',
|
|
149
|
+
metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateRequest.SerializeToString,
|
|
150
|
+
metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateResponse.FromString,
|
|
151
|
+
options,
|
|
152
|
+
channel_credentials,
|
|
153
|
+
insecure,
|
|
154
|
+
call_credentials,
|
|
155
|
+
compression,
|
|
156
|
+
wait_for_ready,
|
|
157
|
+
timeout,
|
|
158
|
+
metadata,
|
|
159
|
+
_registered_method=True)
|
|
160
|
+
|
|
161
|
+
@staticmethod
|
|
162
|
+
def Delete(request,
|
|
163
|
+
target,
|
|
164
|
+
options=(),
|
|
165
|
+
channel_credentials=None,
|
|
166
|
+
call_credentials=None,
|
|
167
|
+
insecure=False,
|
|
168
|
+
compression=None,
|
|
169
|
+
wait_for_ready=None,
|
|
170
|
+
timeout=None,
|
|
171
|
+
metadata=None):
|
|
172
|
+
return grpc.experimental.unary_unary(
|
|
173
|
+
request,
|
|
174
|
+
target,
|
|
175
|
+
'/metalstack.admin.v2.PartitionService/Delete',
|
|
176
|
+
metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteRequest.SerializeToString,
|
|
177
|
+
metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteResponse.FromString,
|
|
178
|
+
options,
|
|
179
|
+
channel_credentials,
|
|
180
|
+
insecure,
|
|
181
|
+
call_credentials,
|
|
182
|
+
compression,
|
|
183
|
+
wait_for_ready,
|
|
184
|
+
timeout,
|
|
185
|
+
metadata,
|
|
186
|
+
_registered_method=True)
|
|
187
|
+
|
|
188
|
+
@staticmethod
|
|
189
|
+
def Capacity(request,
|
|
190
|
+
target,
|
|
191
|
+
options=(),
|
|
192
|
+
channel_credentials=None,
|
|
193
|
+
call_credentials=None,
|
|
194
|
+
insecure=False,
|
|
195
|
+
compression=None,
|
|
196
|
+
wait_for_ready=None,
|
|
197
|
+
timeout=None,
|
|
198
|
+
metadata=None):
|
|
199
|
+
return grpc.experimental.unary_unary(
|
|
200
|
+
request,
|
|
201
|
+
target,
|
|
202
|
+
'/metalstack.admin.v2.PartitionService/Capacity',
|
|
203
|
+
metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityRequest.SerializeToString,
|
|
204
|
+
metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityResponse.FromString,
|
|
205
|
+
options,
|
|
206
|
+
channel_credentials,
|
|
207
|
+
insecure,
|
|
208
|
+
call_credentials,
|
|
209
|
+
compression,
|
|
210
|
+
wait_for_ready,
|
|
211
|
+
timeout,
|
|
212
|
+
metadata,
|
|
213
|
+
_registered_method=True)
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
|
|
3
|
+
# source: metalstack/admin/v2/size.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.admin.v2.size_pb2 as metalstack_dot_admin_dot_v2_dot_size__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class SizeService(Protocol):
|
|
18
|
+
async def Create(self, req: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse: ...
|
|
19
|
+
async def Update(self, req: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse: ...
|
|
20
|
+
async def Delete(self, req: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse: ...
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class SizeServiceServer(ConnecpyServer):
|
|
24
|
+
def __init__(self, *, service: SizeService, server_path_prefix=""):
|
|
25
|
+
super().__init__()
|
|
26
|
+
self._prefix = f"{server_path_prefix}/metalstack.admin.v2.SizeService"
|
|
27
|
+
self._endpoints = {
|
|
28
|
+
"Create": Endpoint[metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest, metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse](
|
|
29
|
+
service_name="SizeService",
|
|
30
|
+
name="Create",
|
|
31
|
+
function=getattr(service, "Create"),
|
|
32
|
+
input=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest,
|
|
33
|
+
output=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse,
|
|
34
|
+
allowed_methods=("POST",),
|
|
35
|
+
),
|
|
36
|
+
"Update": Endpoint[metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest, metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse](
|
|
37
|
+
service_name="SizeService",
|
|
38
|
+
name="Update",
|
|
39
|
+
function=getattr(service, "Update"),
|
|
40
|
+
input=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest,
|
|
41
|
+
output=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse,
|
|
42
|
+
allowed_methods=("POST",),
|
|
43
|
+
),
|
|
44
|
+
"Delete": Endpoint[metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest, metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse](
|
|
45
|
+
service_name="SizeService",
|
|
46
|
+
name="Delete",
|
|
47
|
+
function=getattr(service, "Delete"),
|
|
48
|
+
input=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest,
|
|
49
|
+
output=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse,
|
|
50
|
+
allowed_methods=("POST",),
|
|
51
|
+
),
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
def serviceName(self):
|
|
55
|
+
return "metalstack.admin.v2.SizeService"
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
class SizeServiceSync(Protocol):
|
|
59
|
+
def Create(self, req: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse: ...
|
|
60
|
+
def Update(self, req: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse: ...
|
|
61
|
+
def Delete(self, req: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse: ...
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class SizeServiceServerSync(ConnecpyServer):
|
|
65
|
+
def __init__(self, *, service: SizeServiceSync, server_path_prefix=""):
|
|
66
|
+
super().__init__()
|
|
67
|
+
self._prefix = f"{server_path_prefix}/metalstack.admin.v2.SizeService"
|
|
68
|
+
self._endpoints = {
|
|
69
|
+
"Create": Endpoint[metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest, metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse](
|
|
70
|
+
service_name="SizeService",
|
|
71
|
+
name="Create",
|
|
72
|
+
function=getattr(service, "Create"),
|
|
73
|
+
input=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest,
|
|
74
|
+
output=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse,
|
|
75
|
+
allowed_methods=("POST",),
|
|
76
|
+
),
|
|
77
|
+
"Update": Endpoint[metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest, metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse](
|
|
78
|
+
service_name="SizeService",
|
|
79
|
+
name="Update",
|
|
80
|
+
function=getattr(service, "Update"),
|
|
81
|
+
input=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest,
|
|
82
|
+
output=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse,
|
|
83
|
+
allowed_methods=("POST",),
|
|
84
|
+
),
|
|
85
|
+
"Delete": Endpoint[metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest, metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse](
|
|
86
|
+
service_name="SizeService",
|
|
87
|
+
name="Delete",
|
|
88
|
+
function=getattr(service, "Delete"),
|
|
89
|
+
input=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest,
|
|
90
|
+
output=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse,
|
|
91
|
+
allowed_methods=("POST",),
|
|
92
|
+
),
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
def serviceName(self):
|
|
96
|
+
return "metalstack.admin.v2.SizeService"
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
class SizeServiceClient(ConnecpyClient):
|
|
100
|
+
def Create(
|
|
101
|
+
self,
|
|
102
|
+
request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest,
|
|
103
|
+
*,
|
|
104
|
+
ctx: Optional[ClientContext] = None,
|
|
105
|
+
server_path_prefix: str = "",
|
|
106
|
+
**kwargs,
|
|
107
|
+
) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse:
|
|
108
|
+
method = "POST"
|
|
109
|
+
return self._make_request(
|
|
110
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.SizeService/Create",
|
|
111
|
+
ctx=ctx,
|
|
112
|
+
request=request,
|
|
113
|
+
response_class=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse,
|
|
114
|
+
method=method,
|
|
115
|
+
**kwargs,
|
|
116
|
+
)
|
|
117
|
+
|
|
118
|
+
def Update(
|
|
119
|
+
self,
|
|
120
|
+
request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest,
|
|
121
|
+
*,
|
|
122
|
+
ctx: Optional[ClientContext] = None,
|
|
123
|
+
server_path_prefix: str = "",
|
|
124
|
+
**kwargs,
|
|
125
|
+
) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse:
|
|
126
|
+
method = "POST"
|
|
127
|
+
return self._make_request(
|
|
128
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.SizeService/Update",
|
|
129
|
+
ctx=ctx,
|
|
130
|
+
request=request,
|
|
131
|
+
response_class=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse,
|
|
132
|
+
method=method,
|
|
133
|
+
**kwargs,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
def Delete(
|
|
137
|
+
self,
|
|
138
|
+
request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest,
|
|
139
|
+
*,
|
|
140
|
+
ctx: Optional[ClientContext] = None,
|
|
141
|
+
server_path_prefix: str = "",
|
|
142
|
+
**kwargs,
|
|
143
|
+
) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse:
|
|
144
|
+
method = "POST"
|
|
145
|
+
return self._make_request(
|
|
146
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.SizeService/Delete",
|
|
147
|
+
ctx=ctx,
|
|
148
|
+
request=request,
|
|
149
|
+
response_class=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse,
|
|
150
|
+
method=method,
|
|
151
|
+
**kwargs,
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
class AsyncSizeServiceClient(AsyncConnecpyClient):
|
|
156
|
+
async def Create(
|
|
157
|
+
self,
|
|
158
|
+
request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest,
|
|
159
|
+
*,
|
|
160
|
+
ctx: Optional[ClientContext] = None,
|
|
161
|
+
server_path_prefix: str = "",
|
|
162
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
163
|
+
**kwargs,
|
|
164
|
+
) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse:
|
|
165
|
+
method = "POST"
|
|
166
|
+
return await self._make_request(
|
|
167
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.SizeService/Create",
|
|
168
|
+
ctx=ctx,
|
|
169
|
+
request=request,
|
|
170
|
+
response_class=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse,
|
|
171
|
+
method=method,
|
|
172
|
+
session=session,
|
|
173
|
+
**kwargs,
|
|
174
|
+
)
|
|
175
|
+
|
|
176
|
+
async def Update(
|
|
177
|
+
self,
|
|
178
|
+
request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest,
|
|
179
|
+
*,
|
|
180
|
+
ctx: Optional[ClientContext] = None,
|
|
181
|
+
server_path_prefix: str = "",
|
|
182
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
183
|
+
**kwargs,
|
|
184
|
+
) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse:
|
|
185
|
+
method = "POST"
|
|
186
|
+
return await self._make_request(
|
|
187
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.SizeService/Update",
|
|
188
|
+
ctx=ctx,
|
|
189
|
+
request=request,
|
|
190
|
+
response_class=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse,
|
|
191
|
+
method=method,
|
|
192
|
+
session=session,
|
|
193
|
+
**kwargs,
|
|
194
|
+
)
|
|
195
|
+
|
|
196
|
+
async def Delete(
|
|
197
|
+
self,
|
|
198
|
+
request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest,
|
|
199
|
+
*,
|
|
200
|
+
ctx: Optional[ClientContext] = None,
|
|
201
|
+
server_path_prefix: str = "",
|
|
202
|
+
session: Union[httpx.AsyncClient, None] = None,
|
|
203
|
+
**kwargs,
|
|
204
|
+
) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse:
|
|
205
|
+
method = "POST"
|
|
206
|
+
return await self._make_request(
|
|
207
|
+
url=f"{server_path_prefix}/metalstack.admin.v2.SizeService/Delete",
|
|
208
|
+
ctx=ctx,
|
|
209
|
+
request=request,
|
|
210
|
+
response_class=metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse,
|
|
211
|
+
method=method,
|
|
212
|
+
session=session,
|
|
213
|
+
**kwargs,
|
|
214
|
+
)
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: metalstack/admin/v2/size.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/admin/v2/size.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 size_pb2 as metalstack_dot_api_dot_v2_dot_size__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emetalstack/admin/v2/size.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1cmetalstack/api/v2/size.proto\"G\n\x18SizeServiceCreateRequest\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"H\n\x19SizeServiceCreateResponse\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"\xb5\x02\n\x18SizeServiceUpdateRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\x12#\n\x04name\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x05 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12\x43\n\x0b\x63onstraints\x18\x06 \x03(\x0b\x32!.metalstack.api.v2.SizeConstraintR\x0b\x63onstraints\x12<\n\x06labels\x18\x07 \x01(\x0b\x32\x1f.metalstack.api.v2.UpdateLabelsH\x02R\x06labels\x88\x01\x01\x42\x07\n\x05_nameB\x0e\n\x0c_descriptionB\t\n\x07_labels\"H\n\x19SizeServiceUpdateResponse\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"6\n\x18SizeServiceDeleteRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"H\n\x19SizeServiceDeleteResponse\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size2\xe0\x02\n\x0bSizeService\x12o\n\x06\x43reate\x12-.metalstack.admin.v2.SizeServiceCreateRequest\x1a..metalstack.admin.v2.SizeServiceCreateResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x12o\n\x06Update\x12-.metalstack.admin.v2.SizeServiceUpdateRequest\x1a..metalstack.admin.v2.SizeServiceUpdateResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x12o\n\x06\x44\x65lete\x12-.metalstack.admin.v2.SizeServiceDeleteRequest\x1a..metalstack.admin.v2.SizeServiceDeleteResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x42\xcd\x01\n\x17\x63om.metalstack.admin.v2B\tSizeProtoP\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
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.admin.v2.size_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\tSizeProtoP\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
|
+
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
39
|
+
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
|
|
40
|
+
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['name']._loaded_options = None
|
|
41
|
+
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
|
|
42
|
+
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['description']._loaded_options = None
|
|
43
|
+
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
|
|
44
|
+
_globals['_SIZESERVICEDELETEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
45
|
+
_globals['_SIZESERVICEDELETEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
|
|
46
|
+
_globals['_SIZESERVICE'].methods_by_name['Create']._loaded_options = None
|
|
47
|
+
_globals['_SIZESERVICE'].methods_by_name['Create']._serialized_options = b'\322\363\030\002\001\002'
|
|
48
|
+
_globals['_SIZESERVICE'].methods_by_name['Update']._loaded_options = None
|
|
49
|
+
_globals['_SIZESERVICE'].methods_by_name['Update']._serialized_options = b'\322\363\030\002\001\002'
|
|
50
|
+
_globals['_SIZESERVICE'].methods_by_name['Delete']._loaded_options = None
|
|
51
|
+
_globals['_SIZESERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\002\001\002'
|
|
52
|
+
_globals['_SIZESERVICECREATEREQUEST']._serialized_start=146
|
|
53
|
+
_globals['_SIZESERVICECREATEREQUEST']._serialized_end=217
|
|
54
|
+
_globals['_SIZESERVICECREATERESPONSE']._serialized_start=219
|
|
55
|
+
_globals['_SIZESERVICECREATERESPONSE']._serialized_end=291
|
|
56
|
+
_globals['_SIZESERVICEUPDATEREQUEST']._serialized_start=294
|
|
57
|
+
_globals['_SIZESERVICEUPDATEREQUEST']._serialized_end=603
|
|
58
|
+
_globals['_SIZESERVICEUPDATERESPONSE']._serialized_start=605
|
|
59
|
+
_globals['_SIZESERVICEUPDATERESPONSE']._serialized_end=677
|
|
60
|
+
_globals['_SIZESERVICEDELETEREQUEST']._serialized_start=679
|
|
61
|
+
_globals['_SIZESERVICEDELETEREQUEST']._serialized_end=733
|
|
62
|
+
_globals['_SIZESERVICEDELETERESPONSE']._serialized_start=735
|
|
63
|
+
_globals['_SIZESERVICEDELETERESPONSE']._serialized_end=807
|
|
64
|
+
_globals['_SIZESERVICE']._serialized_start=810
|
|
65
|
+
_globals['_SIZESERVICE']._serialized_end=1162
|
|
66
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,54 @@
|
|
|
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 size_pb2 as _size_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 SizeServiceCreateRequest(_message.Message):
|
|
13
|
+
__slots__ = ("size",)
|
|
14
|
+
SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
size: _size_pb2.Size
|
|
16
|
+
def __init__(self, size: _Optional[_Union[_size_pb2.Size, _Mapping]] = ...) -> None: ...
|
|
17
|
+
|
|
18
|
+
class SizeServiceCreateResponse(_message.Message):
|
|
19
|
+
__slots__ = ("size",)
|
|
20
|
+
SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
21
|
+
size: _size_pb2.Size
|
|
22
|
+
def __init__(self, size: _Optional[_Union[_size_pb2.Size, _Mapping]] = ...) -> None: ...
|
|
23
|
+
|
|
24
|
+
class SizeServiceUpdateRequest(_message.Message):
|
|
25
|
+
__slots__ = ("id", "name", "description", "constraints", "labels")
|
|
26
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
CONSTRAINTS_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
LABELS_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
id: str
|
|
32
|
+
name: str
|
|
33
|
+
description: str
|
|
34
|
+
constraints: _containers.RepeatedCompositeFieldContainer[_size_pb2.SizeConstraint]
|
|
35
|
+
labels: _common_pb2.UpdateLabels
|
|
36
|
+
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., constraints: _Optional[_Iterable[_Union[_size_pb2.SizeConstraint, _Mapping]]] = ..., labels: _Optional[_Union[_common_pb2.UpdateLabels, _Mapping]] = ...) -> None: ...
|
|
37
|
+
|
|
38
|
+
class SizeServiceUpdateResponse(_message.Message):
|
|
39
|
+
__slots__ = ("size",)
|
|
40
|
+
SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
41
|
+
size: _size_pb2.Size
|
|
42
|
+
def __init__(self, size: _Optional[_Union[_size_pb2.Size, _Mapping]] = ...) -> None: ...
|
|
43
|
+
|
|
44
|
+
class SizeServiceDeleteRequest(_message.Message):
|
|
45
|
+
__slots__ = ("id",)
|
|
46
|
+
ID_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
id: str
|
|
48
|
+
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
|
49
|
+
|
|
50
|
+
class SizeServiceDeleteResponse(_message.Message):
|
|
51
|
+
__slots__ = ("size",)
|
|
52
|
+
SIZE_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
size: _size_pb2.Size
|
|
54
|
+
def __init__(self, size: _Optional[_Union[_size_pb2.Size, _Mapping]] = ...) -> None: ...
|