metal-stack-api 0.0.22__py3-none-any.whl → 0.0.24__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.
- {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.24.dist-info}/METADATA +3 -2
- metal_stack_api-0.0.24.dist-info/RECORD +97 -0
- {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.24.dist-info}/top_level.txt +0 -1
- metalstack/admin/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
- metalstack/admin/v2/filesystem_pb2.py +20 -19
- metalstack/admin/v2/filesystem_pb2.pyi +1 -0
- metalstack/admin/v2/{image_connecpy.py → image_connect.py} +24 -24
- metalstack/admin/v2/image_pb2.py +24 -23
- metalstack/admin/v2/image_pb2.pyi +1 -0
- metalstack/admin/v2/{ip_connecpy.py → ip_connect.py} +20 -20
- metalstack/admin/v2/ip_pb2.py +2 -2
- metalstack/admin/v2/{machine_connecpy.py → machine_connect.py} +20 -20
- metalstack/admin/v2/machine_pb2.py +15 -14
- metalstack/admin/v2/machine_pb2.pyi +1 -0
- metalstack/admin/v2/{network_connecpy.py → network_connect.py} +26 -26
- metalstack/admin/v2/network_pb2.py +45 -36
- metalstack/admin/v2/network_pb2.pyi +1 -0
- metalstack/admin/v2/{partition_connecpy.py → partition_connect.py} +24 -24
- metalstack/admin/v2/partition_pb2.py +23 -22
- metalstack/admin/v2/partition_pb2.pyi +1 -0
- metalstack/admin/v2/{size_connecpy.py → size_connect.py} +22 -22
- metalstack/admin/v2/size_pb2.py +20 -19
- metalstack/admin/v2/size_pb2.pyi +1 -0
- metalstack/admin/v2/switch_connect.py +444 -0
- metalstack/admin/v2/switch_pb2.py +108 -0
- metalstack/admin/v2/switch_pb2.pyi +114 -0
- metalstack/admin/v2/{tenant_connecpy.py → tenant_connect.py} +20 -20
- metalstack/admin/v2/tenant_pb2.py +18 -15
- metalstack/admin/v2/tenant_pb2.pyi +1 -0
- metalstack/admin/v2/{token_connecpy.py → token_connect.py} +20 -20
- metalstack/admin/v2/token_pb2.py +2 -2
- metalstack/api/v2/common_pb2.py +2 -2
- metalstack/api/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
- metalstack/api/v2/filesystem_pb2.py +54 -53
- metalstack/api/v2/filesystem_pb2.pyi +1 -0
- metalstack/api/v2/{health_connecpy.py → health_connect.py} +18 -18
- metalstack/api/v2/health_pb2.py +2 -2
- metalstack/api/v2/{image_connecpy.py → image_connect.py} +22 -22
- metalstack/api/v2/image_pb2.py +32 -31
- metalstack/api/v2/image_pb2.pyi +1 -0
- metalstack/api/v2/{ip_connecpy.py → ip_connect.py} +26 -26
- metalstack/api/v2/ip_pb2.py +41 -40
- metalstack/api/v2/ip_pb2.pyi +1 -0
- metalstack/api/v2/{machine_connecpy.py → machine_connect.py} +26 -26
- metalstack/api/v2/machine_pb2.py +122 -121
- metalstack/api/v2/machine_pb2.pyi +1 -0
- metalstack/api/v2/{method_connecpy.py → method_connect.py} +20 -20
- metalstack/api/v2/method_pb2.py +2 -2
- metalstack/api/v2/{network_connecpy.py → network_connect.py} +28 -28
- metalstack/api/v2/network_pb2.py +73 -66
- metalstack/api/v2/network_pb2.pyi +1 -0
- metalstack/api/v2/{partition_connecpy.py → partition_connect.py} +20 -20
- metalstack/api/v2/partition_pb2.py +25 -24
- metalstack/api/v2/partition_pb2.pyi +1 -0
- metalstack/api/v2/predefined_rules_pb2.py +50 -0
- metalstack/api/v2/predefined_rules_pb2.pyi +19 -0
- metalstack/api/v2/{project_connecpy.py → project_connect.py} +40 -40
- metalstack/api/v2/project_pb2.py +69 -64
- metalstack/api/v2/project_pb2.pyi +1 -0
- metalstack/api/v2/{size_connecpy.py → size_connect.py} +20 -20
- metalstack/api/v2/size_pb2.py +26 -25
- metalstack/api/v2/size_pb2.pyi +1 -0
- metalstack/api/v2/switch_pb2.py +62 -41
- metalstack/api/v2/switch_pb2.pyi +54 -11
- metalstack/api/v2/{tenant_connecpy.py → tenant_connect.py} +40 -40
- metalstack/api/v2/tenant_pb2.py +69 -64
- metalstack/api/v2/tenant_pb2.pyi +1 -0
- metalstack/api/v2/{token_connecpy.py → token_connect.py} +28 -28
- metalstack/api/v2/token_pb2.py +51 -50
- metalstack/api/v2/token_pb2.pyi +1 -0
- metalstack/api/v2/{user_connecpy.py → user_connect.py} +18 -18
- metalstack/api/v2/user_pb2.py +15 -11
- metalstack/api/v2/user_pb2.pyi +2 -0
- metalstack/api/v2/{version_connecpy.py → version_connect.py} +18 -18
- metalstack/api/v2/version_pb2.py +2 -2
- metalstack/client/client.py +56 -52
- metalstack/infra/v2/{bmc_connecpy.py → bmc_connect.py} +18 -18
- metalstack/infra/v2/bmc_pb2.py +2 -2
- metalstack/infra/v2/{switch_connecpy.py → switch_connect.py} +83 -18
- metalstack/infra/v2/switch_pb2.py +28 -10
- metalstack/infra/v2/switch_pb2.pyi +51 -0
- buf/__init__.py +0 -0
- buf/validate/__init__.py +0 -0
- buf/validate/validate_pb2.py +0 -450
- buf/validate/validate_pb2.pyi +0 -627
- buf/validate/validate_pb2_grpc.py +0 -4
- metal_stack_api-0.0.22.dist-info/RECORD +0 -124
- metalstack/admin/v2/filesystem_pb2_grpc.py +0 -169
- metalstack/admin/v2/image_pb2_grpc.py +0 -213
- metalstack/admin/v2/ip_pb2_grpc.py +0 -125
- metalstack/admin/v2/machine_pb2_grpc.py +0 -125
- metalstack/admin/v2/network_pb2_grpc.py +0 -257
- metalstack/admin/v2/partition_pb2_grpc.py +0 -213
- metalstack/admin/v2/size_pb2_grpc.py +0 -169
- metalstack/admin/v2/tenant_pb2_grpc.py +0 -125
- metalstack/admin/v2/token_pb2_grpc.py +0 -125
- metalstack/api/v2/common_pb2_grpc.py +0 -4
- metalstack/api/v2/filesystem_pb2_grpc.py +0 -169
- metalstack/api/v2/health_pb2_grpc.py +0 -81
- metalstack/api/v2/image_pb2_grpc.py +0 -169
- metalstack/api/v2/ip_pb2_grpc.py +0 -257
- metalstack/api/v2/machine_pb2_grpc.py +0 -257
- metalstack/api/v2/method_pb2_grpc.py +0 -128
- metalstack/api/v2/network_pb2_grpc.py +0 -301
- metalstack/api/v2/partition_pb2_grpc.py +0 -125
- metalstack/api/v2/project_pb2_grpc.py +0 -565
- metalstack/api/v2/size_pb2_grpc.py +0 -125
- metalstack/api/v2/switch_pb2_grpc.py +0 -4
- metalstack/api/v2/tenant_pb2_grpc.py +0 -565
- metalstack/api/v2/token_pb2_grpc.py +0 -301
- metalstack/api/v2/user_pb2_grpc.py +0 -81
- metalstack/api/v2/version_pb2_grpc.py +0 -81
- metalstack/infra/v2/bmc_pb2_grpc.py +0 -81
- metalstack/infra/v2/switch_pb2_grpc.py +0 -81
- {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.24.dist-info}/WHEEL +0 -0
|
@@ -1,125 +0,0 @@
|
|
|
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)
|
|
@@ -1,257 +0,0 @@
|
|
|
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 network_pb2 as metalstack_dot_admin_dot_v2_dot_network__pb2
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class NetworkServiceStub(object):
|
|
9
|
-
"""NetworkService serves network 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.admin.v2.NetworkService/Get',
|
|
20
|
-
request_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetRequest.SerializeToString,
|
|
21
|
-
response_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetResponse.FromString,
|
|
22
|
-
_registered_method=True)
|
|
23
|
-
self.Create = channel.unary_unary(
|
|
24
|
-
'/metalstack.admin.v2.NetworkService/Create',
|
|
25
|
-
request_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateRequest.SerializeToString,
|
|
26
|
-
response_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateResponse.FromString,
|
|
27
|
-
_registered_method=True)
|
|
28
|
-
self.Update = channel.unary_unary(
|
|
29
|
-
'/metalstack.admin.v2.NetworkService/Update',
|
|
30
|
-
request_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateRequest.SerializeToString,
|
|
31
|
-
response_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateResponse.FromString,
|
|
32
|
-
_registered_method=True)
|
|
33
|
-
self.Delete = channel.unary_unary(
|
|
34
|
-
'/metalstack.admin.v2.NetworkService/Delete',
|
|
35
|
-
request_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteRequest.SerializeToString,
|
|
36
|
-
response_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteResponse.FromString,
|
|
37
|
-
_registered_method=True)
|
|
38
|
-
self.List = channel.unary_unary(
|
|
39
|
-
'/metalstack.admin.v2.NetworkService/List',
|
|
40
|
-
request_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListRequest.SerializeToString,
|
|
41
|
-
response_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListResponse.FromString,
|
|
42
|
-
_registered_method=True)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
class NetworkServiceServicer(object):
|
|
46
|
-
"""NetworkService serves network address related functions
|
|
47
|
-
"""
|
|
48
|
-
|
|
49
|
-
def Get(self, request, context):
|
|
50
|
-
"""Get a network
|
|
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 network
|
|
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 network
|
|
65
|
-
"""
|
|
66
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
67
|
-
context.set_details('Method not implemented!')
|
|
68
|
-
raise NotImplementedError('Method not implemented!')
|
|
69
|
-
|
|
70
|
-
def Delete(self, request, context):
|
|
71
|
-
"""Delete a network
|
|
72
|
-
"""
|
|
73
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
74
|
-
context.set_details('Method not implemented!')
|
|
75
|
-
raise NotImplementedError('Method not implemented!')
|
|
76
|
-
|
|
77
|
-
def List(self, request, context):
|
|
78
|
-
"""List all networks
|
|
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_NetworkServiceServicer_to_server(servicer, server):
|
|
86
|
-
rpc_method_handlers = {
|
|
87
|
-
'Get': grpc.unary_unary_rpc_method_handler(
|
|
88
|
-
servicer.Get,
|
|
89
|
-
request_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetRequest.FromString,
|
|
90
|
-
response_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetResponse.SerializeToString,
|
|
91
|
-
),
|
|
92
|
-
'Create': grpc.unary_unary_rpc_method_handler(
|
|
93
|
-
servicer.Create,
|
|
94
|
-
request_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateRequest.FromString,
|
|
95
|
-
response_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateResponse.SerializeToString,
|
|
96
|
-
),
|
|
97
|
-
'Update': grpc.unary_unary_rpc_method_handler(
|
|
98
|
-
servicer.Update,
|
|
99
|
-
request_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateRequest.FromString,
|
|
100
|
-
response_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateResponse.SerializeToString,
|
|
101
|
-
),
|
|
102
|
-
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
103
|
-
servicer.Delete,
|
|
104
|
-
request_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteRequest.FromString,
|
|
105
|
-
response_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteResponse.SerializeToString,
|
|
106
|
-
),
|
|
107
|
-
'List': grpc.unary_unary_rpc_method_handler(
|
|
108
|
-
servicer.List,
|
|
109
|
-
request_deserializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListRequest.FromString,
|
|
110
|
-
response_serializer=metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListResponse.SerializeToString,
|
|
111
|
-
),
|
|
112
|
-
}
|
|
113
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
|
114
|
-
'metalstack.admin.v2.NetworkService', rpc_method_handlers)
|
|
115
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
|
116
|
-
server.add_registered_method_handlers('metalstack.admin.v2.NetworkService', rpc_method_handlers)
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
# This class is part of an EXPERIMENTAL API.
|
|
120
|
-
class NetworkService(object):
|
|
121
|
-
"""NetworkService serves network 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.admin.v2.NetworkService/Get',
|
|
139
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetRequest.SerializeToString,
|
|
140
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetResponse.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.admin.v2.NetworkService/Create',
|
|
166
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateRequest.SerializeToString,
|
|
167
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateResponse.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.admin.v2.NetworkService/Update',
|
|
193
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateRequest.SerializeToString,
|
|
194
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateResponse.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 Delete(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.admin.v2.NetworkService/Delete',
|
|
220
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteRequest.SerializeToString,
|
|
221
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteResponse.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 List(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.admin.v2.NetworkService/List',
|
|
247
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListRequest.SerializeToString,
|
|
248
|
-
metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListResponse.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)
|
|
@@ -1,213 +0,0 @@
|
|
|
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)
|