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,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.api.v2 import partition_pb2 as metalstack_dot_api_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.Get = channel.unary_unary(
|
|
19
|
+
'/metalstack.api.v2.PartitionService/Get',
|
|
20
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceGetRequest.SerializeToString,
|
|
21
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceGetResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
self.List = channel.unary_unary(
|
|
24
|
+
'/metalstack.api.v2.PartitionService/List',
|
|
25
|
+
request_serializer=metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceListRequest.SerializeToString,
|
|
26
|
+
response_deserializer=metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceListResponse.FromString,
|
|
27
|
+
_registered_method=True)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class PartitionServiceServicer(object):
|
|
31
|
+
"""PartitionService serves partition address related functions
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def Get(self, request, context):
|
|
35
|
+
"""Get a partition
|
|
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 partitions
|
|
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_PartitionServiceServicer_to_server(servicer, server):
|
|
50
|
+
rpc_method_handlers = {
|
|
51
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
52
|
+
servicer.Get,
|
|
53
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceGetRequest.FromString,
|
|
54
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceGetResponse.SerializeToString,
|
|
55
|
+
),
|
|
56
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
57
|
+
servicer.List,
|
|
58
|
+
request_deserializer=metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceListRequest.FromString,
|
|
59
|
+
response_serializer=metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceListResponse.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'metalstack.api.v2.PartitionService', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('metalstack.api.v2.PartitionService', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class PartitionService(object):
|
|
70
|
+
"""PartitionService serves partition address 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.api.v2.PartitionService/Get',
|
|
88
|
+
metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceGetRequest.SerializeToString,
|
|
89
|
+
metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceGetResponse.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.api.v2.PartitionService/List',
|
|
115
|
+
metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceListRequest.SerializeToString,
|
|
116
|
+
metalstack_dot_api_dot_v2_dot_partition__pb2.PartitionServiceListResponse.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)
|