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,128 +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.api.v2 import method_pb2 as metalstack_dot_api_dot_v2_dot_method__pb2
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class MethodServiceStub(object):
|
|
9
|
-
"""MethodService serves method related functions
|
|
10
|
-
methods are functions in services
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
def __init__(self, channel):
|
|
14
|
-
"""Constructor.
|
|
15
|
-
|
|
16
|
-
Args:
|
|
17
|
-
channel: A grpc.Channel.
|
|
18
|
-
"""
|
|
19
|
-
self.List = channel.unary_unary(
|
|
20
|
-
'/metalstack.api.v2.MethodService/List',
|
|
21
|
-
request_serializer=metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceListRequest.SerializeToString,
|
|
22
|
-
response_deserializer=metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceListResponse.FromString,
|
|
23
|
-
_registered_method=True)
|
|
24
|
-
self.TokenScopedList = channel.unary_unary(
|
|
25
|
-
'/metalstack.api.v2.MethodService/TokenScopedList',
|
|
26
|
-
request_serializer=metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceTokenScopedListRequest.SerializeToString,
|
|
27
|
-
response_deserializer=metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceTokenScopedListResponse.FromString,
|
|
28
|
-
_registered_method=True)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
class MethodServiceServicer(object):
|
|
32
|
-
"""MethodService serves method related functions
|
|
33
|
-
methods are functions in services
|
|
34
|
-
"""
|
|
35
|
-
|
|
36
|
-
def List(self, request, context):
|
|
37
|
-
"""List all public visible methods
|
|
38
|
-
"""
|
|
39
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
40
|
-
context.set_details('Method not implemented!')
|
|
41
|
-
raise NotImplementedError('Method not implemented!')
|
|
42
|
-
|
|
43
|
-
def TokenScopedList(self, request, context):
|
|
44
|
-
"""TokenScopedList all methods callable with the token present in the request
|
|
45
|
-
"""
|
|
46
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
47
|
-
context.set_details('Method not implemented!')
|
|
48
|
-
raise NotImplementedError('Method not implemented!')
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
def add_MethodServiceServicer_to_server(servicer, server):
|
|
52
|
-
rpc_method_handlers = {
|
|
53
|
-
'List': grpc.unary_unary_rpc_method_handler(
|
|
54
|
-
servicer.List,
|
|
55
|
-
request_deserializer=metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceListRequest.FromString,
|
|
56
|
-
response_serializer=metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceListResponse.SerializeToString,
|
|
57
|
-
),
|
|
58
|
-
'TokenScopedList': grpc.unary_unary_rpc_method_handler(
|
|
59
|
-
servicer.TokenScopedList,
|
|
60
|
-
request_deserializer=metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceTokenScopedListRequest.FromString,
|
|
61
|
-
response_serializer=metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceTokenScopedListResponse.SerializeToString,
|
|
62
|
-
),
|
|
63
|
-
}
|
|
64
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
|
65
|
-
'metalstack.api.v2.MethodService', rpc_method_handlers)
|
|
66
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
|
67
|
-
server.add_registered_method_handlers('metalstack.api.v2.MethodService', rpc_method_handlers)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
# This class is part of an EXPERIMENTAL API.
|
|
71
|
-
class MethodService(object):
|
|
72
|
-
"""MethodService serves method related functions
|
|
73
|
-
methods are functions in services
|
|
74
|
-
"""
|
|
75
|
-
|
|
76
|
-
@staticmethod
|
|
77
|
-
def List(request,
|
|
78
|
-
target,
|
|
79
|
-
options=(),
|
|
80
|
-
channel_credentials=None,
|
|
81
|
-
call_credentials=None,
|
|
82
|
-
insecure=False,
|
|
83
|
-
compression=None,
|
|
84
|
-
wait_for_ready=None,
|
|
85
|
-
timeout=None,
|
|
86
|
-
metadata=None):
|
|
87
|
-
return grpc.experimental.unary_unary(
|
|
88
|
-
request,
|
|
89
|
-
target,
|
|
90
|
-
'/metalstack.api.v2.MethodService/List',
|
|
91
|
-
metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceListRequest.SerializeToString,
|
|
92
|
-
metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceListResponse.FromString,
|
|
93
|
-
options,
|
|
94
|
-
channel_credentials,
|
|
95
|
-
insecure,
|
|
96
|
-
call_credentials,
|
|
97
|
-
compression,
|
|
98
|
-
wait_for_ready,
|
|
99
|
-
timeout,
|
|
100
|
-
metadata,
|
|
101
|
-
_registered_method=True)
|
|
102
|
-
|
|
103
|
-
@staticmethod
|
|
104
|
-
def TokenScopedList(request,
|
|
105
|
-
target,
|
|
106
|
-
options=(),
|
|
107
|
-
channel_credentials=None,
|
|
108
|
-
call_credentials=None,
|
|
109
|
-
insecure=False,
|
|
110
|
-
compression=None,
|
|
111
|
-
wait_for_ready=None,
|
|
112
|
-
timeout=None,
|
|
113
|
-
metadata=None):
|
|
114
|
-
return grpc.experimental.unary_unary(
|
|
115
|
-
request,
|
|
116
|
-
target,
|
|
117
|
-
'/metalstack.api.v2.MethodService/TokenScopedList',
|
|
118
|
-
metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceTokenScopedListRequest.SerializeToString,
|
|
119
|
-
metalstack_dot_api_dot_v2_dot_method__pb2.MethodServiceTokenScopedListResponse.FromString,
|
|
120
|
-
options,
|
|
121
|
-
channel_credentials,
|
|
122
|
-
insecure,
|
|
123
|
-
call_credentials,
|
|
124
|
-
compression,
|
|
125
|
-
wait_for_ready,
|
|
126
|
-
timeout,
|
|
127
|
-
metadata,
|
|
128
|
-
_registered_method=True)
|
|
@@ -1,301 +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.api.v2 import network_pb2 as metalstack_dot_api_dot_v2_dot_network__pb2
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class NetworkServiceStub(object):
|
|
9
|
-
"""NetworkService serves network address related functions for end users, e.g. with project scope
|
|
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.NetworkService/Get',
|
|
20
|
-
request_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceGetRequest.SerializeToString,
|
|
21
|
-
response_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceGetResponse.FromString,
|
|
22
|
-
_registered_method=True)
|
|
23
|
-
self.Create = channel.unary_unary(
|
|
24
|
-
'/metalstack.api.v2.NetworkService/Create',
|
|
25
|
-
request_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceCreateRequest.SerializeToString,
|
|
26
|
-
response_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceCreateResponse.FromString,
|
|
27
|
-
_registered_method=True)
|
|
28
|
-
self.Update = channel.unary_unary(
|
|
29
|
-
'/metalstack.api.v2.NetworkService/Update',
|
|
30
|
-
request_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceUpdateRequest.SerializeToString,
|
|
31
|
-
response_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceUpdateResponse.FromString,
|
|
32
|
-
_registered_method=True)
|
|
33
|
-
self.List = channel.unary_unary(
|
|
34
|
-
'/metalstack.api.v2.NetworkService/List',
|
|
35
|
-
request_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListRequest.SerializeToString,
|
|
36
|
-
response_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListResponse.FromString,
|
|
37
|
-
_registered_method=True)
|
|
38
|
-
self.ListBaseNetworks = channel.unary_unary(
|
|
39
|
-
'/metalstack.api.v2.NetworkService/ListBaseNetworks',
|
|
40
|
-
request_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListBaseNetworksRequest.SerializeToString,
|
|
41
|
-
response_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListBaseNetworksResponse.FromString,
|
|
42
|
-
_registered_method=True)
|
|
43
|
-
self.Delete = channel.unary_unary(
|
|
44
|
-
'/metalstack.api.v2.NetworkService/Delete',
|
|
45
|
-
request_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceDeleteRequest.SerializeToString,
|
|
46
|
-
response_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceDeleteResponse.FromString,
|
|
47
|
-
_registered_method=True)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
class NetworkServiceServicer(object):
|
|
51
|
-
"""NetworkService serves network address related functions for end users, e.g. with project scope
|
|
52
|
-
"""
|
|
53
|
-
|
|
54
|
-
def Get(self, request, context):
|
|
55
|
-
"""Get a network
|
|
56
|
-
"""
|
|
57
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
58
|
-
context.set_details('Method not implemented!')
|
|
59
|
-
raise NotImplementedError('Method not implemented!')
|
|
60
|
-
|
|
61
|
-
def Create(self, request, context):
|
|
62
|
-
"""Create a child network from a super network.
|
|
63
|
-
"""
|
|
64
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
65
|
-
context.set_details('Method not implemented!')
|
|
66
|
-
raise NotImplementedError('Method not implemented!')
|
|
67
|
-
|
|
68
|
-
def Update(self, request, context):
|
|
69
|
-
"""Update a network
|
|
70
|
-
"""
|
|
71
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
72
|
-
context.set_details('Method not implemented!')
|
|
73
|
-
raise NotImplementedError('Method not implemented!')
|
|
74
|
-
|
|
75
|
-
def List(self, request, context):
|
|
76
|
-
"""List all project networks
|
|
77
|
-
"""
|
|
78
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
79
|
-
context.set_details('Method not implemented!')
|
|
80
|
-
raise NotImplementedError('Method not implemented!')
|
|
81
|
-
|
|
82
|
-
def ListBaseNetworks(self, request, context):
|
|
83
|
-
"""ListBaseNetworks all base networks that can be used for either child network or ip allocation
|
|
84
|
-
"""
|
|
85
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
86
|
-
context.set_details('Method not implemented!')
|
|
87
|
-
raise NotImplementedError('Method not implemented!')
|
|
88
|
-
|
|
89
|
-
def Delete(self, request, context):
|
|
90
|
-
"""Delete a network
|
|
91
|
-
"""
|
|
92
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
93
|
-
context.set_details('Method not implemented!')
|
|
94
|
-
raise NotImplementedError('Method not implemented!')
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
def add_NetworkServiceServicer_to_server(servicer, server):
|
|
98
|
-
rpc_method_handlers = {
|
|
99
|
-
'Get': grpc.unary_unary_rpc_method_handler(
|
|
100
|
-
servicer.Get,
|
|
101
|
-
request_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceGetRequest.FromString,
|
|
102
|
-
response_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceGetResponse.SerializeToString,
|
|
103
|
-
),
|
|
104
|
-
'Create': grpc.unary_unary_rpc_method_handler(
|
|
105
|
-
servicer.Create,
|
|
106
|
-
request_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceCreateRequest.FromString,
|
|
107
|
-
response_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceCreateResponse.SerializeToString,
|
|
108
|
-
),
|
|
109
|
-
'Update': grpc.unary_unary_rpc_method_handler(
|
|
110
|
-
servicer.Update,
|
|
111
|
-
request_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceUpdateRequest.FromString,
|
|
112
|
-
response_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceUpdateResponse.SerializeToString,
|
|
113
|
-
),
|
|
114
|
-
'List': grpc.unary_unary_rpc_method_handler(
|
|
115
|
-
servicer.List,
|
|
116
|
-
request_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListRequest.FromString,
|
|
117
|
-
response_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListResponse.SerializeToString,
|
|
118
|
-
),
|
|
119
|
-
'ListBaseNetworks': grpc.unary_unary_rpc_method_handler(
|
|
120
|
-
servicer.ListBaseNetworks,
|
|
121
|
-
request_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListBaseNetworksRequest.FromString,
|
|
122
|
-
response_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListBaseNetworksResponse.SerializeToString,
|
|
123
|
-
),
|
|
124
|
-
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
125
|
-
servicer.Delete,
|
|
126
|
-
request_deserializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceDeleteRequest.FromString,
|
|
127
|
-
response_serializer=metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceDeleteResponse.SerializeToString,
|
|
128
|
-
),
|
|
129
|
-
}
|
|
130
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
|
131
|
-
'metalstack.api.v2.NetworkService', rpc_method_handlers)
|
|
132
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
|
133
|
-
server.add_registered_method_handlers('metalstack.api.v2.NetworkService', rpc_method_handlers)
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
# This class is part of an EXPERIMENTAL API.
|
|
137
|
-
class NetworkService(object):
|
|
138
|
-
"""NetworkService serves network address related functions for end users, e.g. with project scope
|
|
139
|
-
"""
|
|
140
|
-
|
|
141
|
-
@staticmethod
|
|
142
|
-
def Get(request,
|
|
143
|
-
target,
|
|
144
|
-
options=(),
|
|
145
|
-
channel_credentials=None,
|
|
146
|
-
call_credentials=None,
|
|
147
|
-
insecure=False,
|
|
148
|
-
compression=None,
|
|
149
|
-
wait_for_ready=None,
|
|
150
|
-
timeout=None,
|
|
151
|
-
metadata=None):
|
|
152
|
-
return grpc.experimental.unary_unary(
|
|
153
|
-
request,
|
|
154
|
-
target,
|
|
155
|
-
'/metalstack.api.v2.NetworkService/Get',
|
|
156
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceGetRequest.SerializeToString,
|
|
157
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceGetResponse.FromString,
|
|
158
|
-
options,
|
|
159
|
-
channel_credentials,
|
|
160
|
-
insecure,
|
|
161
|
-
call_credentials,
|
|
162
|
-
compression,
|
|
163
|
-
wait_for_ready,
|
|
164
|
-
timeout,
|
|
165
|
-
metadata,
|
|
166
|
-
_registered_method=True)
|
|
167
|
-
|
|
168
|
-
@staticmethod
|
|
169
|
-
def Create(request,
|
|
170
|
-
target,
|
|
171
|
-
options=(),
|
|
172
|
-
channel_credentials=None,
|
|
173
|
-
call_credentials=None,
|
|
174
|
-
insecure=False,
|
|
175
|
-
compression=None,
|
|
176
|
-
wait_for_ready=None,
|
|
177
|
-
timeout=None,
|
|
178
|
-
metadata=None):
|
|
179
|
-
return grpc.experimental.unary_unary(
|
|
180
|
-
request,
|
|
181
|
-
target,
|
|
182
|
-
'/metalstack.api.v2.NetworkService/Create',
|
|
183
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceCreateRequest.SerializeToString,
|
|
184
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceCreateResponse.FromString,
|
|
185
|
-
options,
|
|
186
|
-
channel_credentials,
|
|
187
|
-
insecure,
|
|
188
|
-
call_credentials,
|
|
189
|
-
compression,
|
|
190
|
-
wait_for_ready,
|
|
191
|
-
timeout,
|
|
192
|
-
metadata,
|
|
193
|
-
_registered_method=True)
|
|
194
|
-
|
|
195
|
-
@staticmethod
|
|
196
|
-
def Update(request,
|
|
197
|
-
target,
|
|
198
|
-
options=(),
|
|
199
|
-
channel_credentials=None,
|
|
200
|
-
call_credentials=None,
|
|
201
|
-
insecure=False,
|
|
202
|
-
compression=None,
|
|
203
|
-
wait_for_ready=None,
|
|
204
|
-
timeout=None,
|
|
205
|
-
metadata=None):
|
|
206
|
-
return grpc.experimental.unary_unary(
|
|
207
|
-
request,
|
|
208
|
-
target,
|
|
209
|
-
'/metalstack.api.v2.NetworkService/Update',
|
|
210
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceUpdateRequest.SerializeToString,
|
|
211
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceUpdateResponse.FromString,
|
|
212
|
-
options,
|
|
213
|
-
channel_credentials,
|
|
214
|
-
insecure,
|
|
215
|
-
call_credentials,
|
|
216
|
-
compression,
|
|
217
|
-
wait_for_ready,
|
|
218
|
-
timeout,
|
|
219
|
-
metadata,
|
|
220
|
-
_registered_method=True)
|
|
221
|
-
|
|
222
|
-
@staticmethod
|
|
223
|
-
def List(request,
|
|
224
|
-
target,
|
|
225
|
-
options=(),
|
|
226
|
-
channel_credentials=None,
|
|
227
|
-
call_credentials=None,
|
|
228
|
-
insecure=False,
|
|
229
|
-
compression=None,
|
|
230
|
-
wait_for_ready=None,
|
|
231
|
-
timeout=None,
|
|
232
|
-
metadata=None):
|
|
233
|
-
return grpc.experimental.unary_unary(
|
|
234
|
-
request,
|
|
235
|
-
target,
|
|
236
|
-
'/metalstack.api.v2.NetworkService/List',
|
|
237
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListRequest.SerializeToString,
|
|
238
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListResponse.FromString,
|
|
239
|
-
options,
|
|
240
|
-
channel_credentials,
|
|
241
|
-
insecure,
|
|
242
|
-
call_credentials,
|
|
243
|
-
compression,
|
|
244
|
-
wait_for_ready,
|
|
245
|
-
timeout,
|
|
246
|
-
metadata,
|
|
247
|
-
_registered_method=True)
|
|
248
|
-
|
|
249
|
-
@staticmethod
|
|
250
|
-
def ListBaseNetworks(request,
|
|
251
|
-
target,
|
|
252
|
-
options=(),
|
|
253
|
-
channel_credentials=None,
|
|
254
|
-
call_credentials=None,
|
|
255
|
-
insecure=False,
|
|
256
|
-
compression=None,
|
|
257
|
-
wait_for_ready=None,
|
|
258
|
-
timeout=None,
|
|
259
|
-
metadata=None):
|
|
260
|
-
return grpc.experimental.unary_unary(
|
|
261
|
-
request,
|
|
262
|
-
target,
|
|
263
|
-
'/metalstack.api.v2.NetworkService/ListBaseNetworks',
|
|
264
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListBaseNetworksRequest.SerializeToString,
|
|
265
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceListBaseNetworksResponse.FromString,
|
|
266
|
-
options,
|
|
267
|
-
channel_credentials,
|
|
268
|
-
insecure,
|
|
269
|
-
call_credentials,
|
|
270
|
-
compression,
|
|
271
|
-
wait_for_ready,
|
|
272
|
-
timeout,
|
|
273
|
-
metadata,
|
|
274
|
-
_registered_method=True)
|
|
275
|
-
|
|
276
|
-
@staticmethod
|
|
277
|
-
def Delete(request,
|
|
278
|
-
target,
|
|
279
|
-
options=(),
|
|
280
|
-
channel_credentials=None,
|
|
281
|
-
call_credentials=None,
|
|
282
|
-
insecure=False,
|
|
283
|
-
compression=None,
|
|
284
|
-
wait_for_ready=None,
|
|
285
|
-
timeout=None,
|
|
286
|
-
metadata=None):
|
|
287
|
-
return grpc.experimental.unary_unary(
|
|
288
|
-
request,
|
|
289
|
-
target,
|
|
290
|
-
'/metalstack.api.v2.NetworkService/Delete',
|
|
291
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceDeleteRequest.SerializeToString,
|
|
292
|
-
metalstack_dot_api_dot_v2_dot_network__pb2.NetworkServiceDeleteResponse.FromString,
|
|
293
|
-
options,
|
|
294
|
-
channel_credentials,
|
|
295
|
-
insecure,
|
|
296
|
-
call_credentials,
|
|
297
|
-
compression,
|
|
298
|
-
wait_for_ready,
|
|
299
|
-
timeout,
|
|
300
|
-
metadata,
|
|
301
|
-
_registered_method=True)
|
|
@@ -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.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)
|