metalstack.cloud 0.15.2__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
- metalstack_cloud-0.15.2.dist-info/METADATA +26 -0
- metalstack_cloud-0.15.2.dist-info/RECORD +111 -0
- metalstack_cloud-0.15.2.dist-info/WHEEL +5 -0
- metalstack_cloud-0.15.2.dist-info/top_level.txt +2 -0
- metalstackcloud/__init__.py +0 -0
- metalstackcloud/admin/__init__.py +0 -0
- metalstackcloud/admin/v1/__init__.py +0 -0
- metalstackcloud/admin/v1/cluster_connecpy.py +214 -0
- metalstackcloud/admin/v1/cluster_pb2.py +70 -0
- metalstackcloud/admin/v1/cluster_pb2.pyi +93 -0
- metalstackcloud/admin/v1/cluster_pb2_grpc.py +169 -0
- metalstackcloud/admin/v1/machine_pb2.py +42 -0
- metalstackcloud/admin/v1/machine_pb2.pyi +76 -0
- metalstackcloud/admin/v1/machine_pb2_grpc.py +4 -0
- metalstackcloud/admin/v1/payment_connecpy.py +158 -0
- metalstackcloud/admin/v1/payment_pb2.py +51 -0
- metalstackcloud/admin/v1/payment_pb2.pyi +33 -0
- metalstackcloud/admin/v1/payment_pb2_grpc.py +125 -0
- metalstackcloud/admin/v1/project_connecpy.py +102 -0
- metalstackcloud/admin/v1/project_pb2.py +49 -0
- metalstackcloud/admin/v1/project_pb2.pyi +34 -0
- metalstackcloud/admin/v1/project_pb2_grpc.py +81 -0
- metalstackcloud/admin/v1/storage_connecpy.py +214 -0
- metalstackcloud/admin/v1/storage_pb2.py +75 -0
- metalstackcloud/admin/v1/storage_pb2.pyi +149 -0
- metalstackcloud/admin/v1/storage_pb2_grpc.py +169 -0
- metalstackcloud/admin/v1/tenant_connecpy.py +270 -0
- metalstackcloud/admin/v1/tenant_pb2.py +66 -0
- metalstackcloud/admin/v1/tenant_pb2.pyi +72 -0
- metalstackcloud/admin/v1/tenant_pb2_grpc.py +213 -0
- metalstackcloud/admin/v1/token_connecpy.py +158 -0
- metalstackcloud/admin/v1/token_pb2.py +56 -0
- metalstackcloud/admin/v1/token_pb2.pyi +34 -0
- metalstackcloud/admin/v1/token_pb2_grpc.py +125 -0
- metalstackcloud/api/__init__.py +0 -0
- metalstackcloud/api/v1/__init__.py +0 -0
- metalstackcloud/api/v1/asset_connecpy.py +102 -0
- metalstackcloud/api/v1/asset_pb2.py +76 -0
- metalstackcloud/api/v1/asset_pb2.pyi +132 -0
- metalstackcloud/api/v1/asset_pb2_grpc.py +81 -0
- metalstackcloud/api/v1/audit_connecpy.py +158 -0
- metalstackcloud/api/v1/audit_pb2.py +84 -0
- metalstackcloud/api/v1/audit_pb2.pyi +95 -0
- metalstackcloud/api/v1/audit_pb2_grpc.py +125 -0
- metalstackcloud/api/v1/cluster_connecpy.py +494 -0
- metalstackcloud/api/v1/cluster_pb2.py +183 -0
- metalstackcloud/api/v1/cluster_pb2.pyi +311 -0
- metalstackcloud/api/v1/cluster_pb2_grpc.py +389 -0
- metalstackcloud/api/v1/common_pb2.py +52 -0
- metalstackcloud/api/v1/common_pb2.pyi +98 -0
- metalstackcloud/api/v1/common_pb2_grpc.py +4 -0
- metalstackcloud/api/v1/health_connecpy.py +102 -0
- metalstackcloud/api/v1/health_pb2.py +58 -0
- metalstackcloud/api/v1/health_pb2.pyi +74 -0
- metalstackcloud/api/v1/health_pb2_grpc.py +81 -0
- metalstackcloud/api/v1/ip_connecpy.py +326 -0
- metalstackcloud/api/v1/ip_pb2.py +110 -0
- metalstackcloud/api/v1/ip_pb2.pyi +122 -0
- metalstackcloud/api/v1/ip_pb2_grpc.py +257 -0
- metalstackcloud/api/v1/method_connecpy.py +158 -0
- metalstackcloud/api/v1/method_pb2.py +62 -0
- metalstackcloud/api/v1/method_pb2.pyi +50 -0
- metalstackcloud/api/v1/method_pb2_grpc.py +128 -0
- metalstackcloud/api/v1/payment_connecpy.py +550 -0
- metalstackcloud/api/v1/payment_pb2.py +134 -0
- metalstackcloud/api/v1/payment_pb2.pyi +291 -0
- metalstackcloud/api/v1/payment_pb2_grpc.py +433 -0
- metalstackcloud/api/v1/project_connecpy.py +718 -0
- metalstackcloud/api/v1/project_pb2.py +156 -0
- metalstackcloud/api/v1/project_pb2.pyi +234 -0
- metalstackcloud/api/v1/project_pb2_grpc.py +565 -0
- metalstackcloud/api/v1/snapshot_connecpy.py +214 -0
- metalstackcloud/api/v1/snapshot_pb2.py +75 -0
- metalstackcloud/api/v1/snapshot_pb2.pyi +109 -0
- metalstackcloud/api/v1/snapshot_pb2_grpc.py +169 -0
- metalstackcloud/api/v1/tenant_connecpy.py +774 -0
- metalstackcloud/api/v1/tenant_pb2.py +159 -0
- metalstackcloud/api/v1/tenant_pb2.pyi +305 -0
- metalstackcloud/api/v1/tenant_pb2_grpc.py +609 -0
- metalstackcloud/api/v1/token_connecpy.py +326 -0
- metalstackcloud/api/v1/token_pb2.py +131 -0
- metalstackcloud/api/v1/token_pb2.pyi +175 -0
- metalstackcloud/api/v1/token_pb2_grpc.py +257 -0
- metalstackcloud/api/v1/user_connecpy.py +102 -0
- metalstackcloud/api/v1/user_pb2.py +48 -0
- metalstackcloud/api/v1/user_pb2.pyi +42 -0
- metalstackcloud/api/v1/user_pb2_grpc.py +81 -0
- metalstackcloud/api/v1/version_connecpy.py +102 -0
- metalstackcloud/api/v1/version_pb2.py +46 -0
- metalstackcloud/api/v1/version_pb2.pyi +29 -0
- metalstackcloud/api/v1/version_pb2_grpc.py +81 -0
- metalstackcloud/api/v1/volume_connecpy.py +270 -0
- metalstackcloud/api/v1/volume_pb2.py +91 -0
- metalstackcloud/api/v1/volume_pb2.pyi +165 -0
- metalstackcloud/api/v1/volume_pb2_grpc.py +213 -0
- metalstackcloud/client.py +139 -0
- metalstackcloud/status/__init__.py +0 -0
- metalstackcloud/status/v1/__init__.py +0 -0
- metalstackcloud/status/v1/message_connecpy.py +102 -0
- metalstackcloud/status/v1/message_pb2.py +51 -0
- metalstackcloud/status/v1/message_pb2.pyi +65 -0
- metalstackcloud/status/v1/message_pb2_grpc.py +84 -0
- metalstackcloud/status/v1/status_connecpy.py +102 -0
- metalstackcloud/status/v1/status_pb2.py +45 -0
- metalstackcloud/status/v1/status_pb2.pyi +24 -0
- metalstackcloud/status/v1/status_pb2_grpc.py +84 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
|
|
3
|
+
from api.v1 import common_pb2 as _common_pb2
|
|
4
|
+
from buf.validate import validate_pb2 as _validate_pb2
|
|
5
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
6
|
+
from google.protobuf.internal import containers as _containers
|
|
7
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
8
|
+
from google.protobuf import descriptor as _descriptor
|
|
9
|
+
from google.protobuf import message as _message
|
|
10
|
+
from collections.abc import Iterable as _Iterable, Mapping as _Mapping
|
|
11
|
+
from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
|
|
12
|
+
|
|
13
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
14
|
+
|
|
15
|
+
class AuditPhase(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
16
|
+
__slots__ = ()
|
|
17
|
+
AUDIT_PHASE_UNSPECIFIED: _ClassVar[AuditPhase]
|
|
18
|
+
AUDIT_PHASE_REQUEST: _ClassVar[AuditPhase]
|
|
19
|
+
AUDIT_PHASE_RESPONSE: _ClassVar[AuditPhase]
|
|
20
|
+
AUDIT_PHASE_UNSPECIFIED: AuditPhase
|
|
21
|
+
AUDIT_PHASE_REQUEST: AuditPhase
|
|
22
|
+
AUDIT_PHASE_RESPONSE: AuditPhase
|
|
23
|
+
|
|
24
|
+
class AuditTrace(_message.Message):
|
|
25
|
+
__slots__ = ("uuid", "timestamp", "user", "tenant", "project", "method", "body", "source_ip", "result_code", "phase")
|
|
26
|
+
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
27
|
+
TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
|
28
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
TENANT_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
31
|
+
METHOD_FIELD_NUMBER: _ClassVar[int]
|
|
32
|
+
BODY_FIELD_NUMBER: _ClassVar[int]
|
|
33
|
+
SOURCE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
34
|
+
RESULT_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
35
|
+
PHASE_FIELD_NUMBER: _ClassVar[int]
|
|
36
|
+
uuid: str
|
|
37
|
+
timestamp: _timestamp_pb2.Timestamp
|
|
38
|
+
user: str
|
|
39
|
+
tenant: str
|
|
40
|
+
project: str
|
|
41
|
+
method: str
|
|
42
|
+
body: str
|
|
43
|
+
source_ip: str
|
|
44
|
+
result_code: int
|
|
45
|
+
phase: AuditPhase
|
|
46
|
+
def __init__(self, uuid: _Optional[str] = ..., timestamp: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., user: _Optional[str] = ..., tenant: _Optional[str] = ..., project: _Optional[str] = ..., method: _Optional[str] = ..., body: _Optional[str] = ..., source_ip: _Optional[str] = ..., result_code: _Optional[int] = ..., phase: _Optional[_Union[AuditPhase, str]] = ...) -> None: ...
|
|
47
|
+
|
|
48
|
+
class AuditServiceListRequest(_message.Message):
|
|
49
|
+
__slots__ = ("login", "uuid", "to", "user", "project", "method", "source_ip", "result_code", "body", "limit", "phase")
|
|
50
|
+
LOGIN_FIELD_NUMBER: _ClassVar[int]
|
|
51
|
+
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
52
|
+
FROM_FIELD_NUMBER: _ClassVar[int]
|
|
53
|
+
TO_FIELD_NUMBER: _ClassVar[int]
|
|
54
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
55
|
+
PROJECT_FIELD_NUMBER: _ClassVar[int]
|
|
56
|
+
METHOD_FIELD_NUMBER: _ClassVar[int]
|
|
57
|
+
SOURCE_IP_FIELD_NUMBER: _ClassVar[int]
|
|
58
|
+
RESULT_CODE_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
+
BODY_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
PHASE_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
login: str
|
|
63
|
+
uuid: str
|
|
64
|
+
to: _timestamp_pb2.Timestamp
|
|
65
|
+
user: str
|
|
66
|
+
project: str
|
|
67
|
+
method: str
|
|
68
|
+
source_ip: str
|
|
69
|
+
result_code: int
|
|
70
|
+
body: str
|
|
71
|
+
limit: int
|
|
72
|
+
phase: AuditPhase
|
|
73
|
+
def __init__(self, login: _Optional[str] = ..., uuid: _Optional[str] = ..., to: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., user: _Optional[str] = ..., project: _Optional[str] = ..., method: _Optional[str] = ..., source_ip: _Optional[str] = ..., result_code: _Optional[int] = ..., body: _Optional[str] = ..., limit: _Optional[int] = ..., phase: _Optional[_Union[AuditPhase, str]] = ..., **kwargs) -> None: ...
|
|
74
|
+
|
|
75
|
+
class AuditServiceListResponse(_message.Message):
|
|
76
|
+
__slots__ = ("traces",)
|
|
77
|
+
TRACES_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
traces: _containers.RepeatedCompositeFieldContainer[AuditTrace]
|
|
79
|
+
def __init__(self, traces: _Optional[_Iterable[_Union[AuditTrace, _Mapping]]] = ...) -> None: ...
|
|
80
|
+
|
|
81
|
+
class AuditServiceGetRequest(_message.Message):
|
|
82
|
+
__slots__ = ("login", "uuid", "phase")
|
|
83
|
+
LOGIN_FIELD_NUMBER: _ClassVar[int]
|
|
84
|
+
UUID_FIELD_NUMBER: _ClassVar[int]
|
|
85
|
+
PHASE_FIELD_NUMBER: _ClassVar[int]
|
|
86
|
+
login: str
|
|
87
|
+
uuid: str
|
|
88
|
+
phase: AuditPhase
|
|
89
|
+
def __init__(self, login: _Optional[str] = ..., uuid: _Optional[str] = ..., phase: _Optional[_Union[AuditPhase, str]] = ...) -> None: ...
|
|
90
|
+
|
|
91
|
+
class AuditServiceGetResponse(_message.Message):
|
|
92
|
+
__slots__ = ("trace",)
|
|
93
|
+
TRACE_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
trace: AuditTrace
|
|
95
|
+
def __init__(self, trace: _Optional[_Union[AuditTrace, _Mapping]] = ...) -> None: ...
|
|
@@ -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 metalstackcloud.api.v1 import audit_pb2 as api_dot_v1_dot_audit__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class AuditServiceStub(object):
|
|
9
|
+
"""AuditService serves audit 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
|
+
'/api.v1.AuditService/Get',
|
|
20
|
+
request_serializer=api_dot_v1_dot_audit__pb2.AuditServiceGetRequest.SerializeToString,
|
|
21
|
+
response_deserializer=api_dot_v1_dot_audit__pb2.AuditServiceGetResponse.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
self.List = channel.unary_unary(
|
|
24
|
+
'/api.v1.AuditService/List',
|
|
25
|
+
request_serializer=api_dot_v1_dot_audit__pb2.AuditServiceListRequest.SerializeToString,
|
|
26
|
+
response_deserializer=api_dot_v1_dot_audit__pb2.AuditServiceListResponse.FromString,
|
|
27
|
+
_registered_method=True)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class AuditServiceServicer(object):
|
|
31
|
+
"""AuditService serves audit related functions
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def Get(self, request, context):
|
|
35
|
+
"""Get an audit trace
|
|
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 audit traces
|
|
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_AuditServiceServicer_to_server(servicer, server):
|
|
50
|
+
rpc_method_handlers = {
|
|
51
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
52
|
+
servicer.Get,
|
|
53
|
+
request_deserializer=api_dot_v1_dot_audit__pb2.AuditServiceGetRequest.FromString,
|
|
54
|
+
response_serializer=api_dot_v1_dot_audit__pb2.AuditServiceGetResponse.SerializeToString,
|
|
55
|
+
),
|
|
56
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
57
|
+
servicer.List,
|
|
58
|
+
request_deserializer=api_dot_v1_dot_audit__pb2.AuditServiceListRequest.FromString,
|
|
59
|
+
response_serializer=api_dot_v1_dot_audit__pb2.AuditServiceListResponse.SerializeToString,
|
|
60
|
+
),
|
|
61
|
+
}
|
|
62
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
63
|
+
'api.v1.AuditService', rpc_method_handlers)
|
|
64
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
65
|
+
server.add_registered_method_handlers('api.v1.AuditService', rpc_method_handlers)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
# This class is part of an EXPERIMENTAL API.
|
|
69
|
+
class AuditService(object):
|
|
70
|
+
"""AuditService serves audit 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
|
+
'/api.v1.AuditService/Get',
|
|
88
|
+
api_dot_v1_dot_audit__pb2.AuditServiceGetRequest.SerializeToString,
|
|
89
|
+
api_dot_v1_dot_audit__pb2.AuditServiceGetResponse.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
|
+
'/api.v1.AuditService/List',
|
|
115
|
+
api_dot_v1_dot_audit__pb2.AuditServiceListRequest.SerializeToString,
|
|
116
|
+
api_dot_v1_dot_audit__pb2.AuditServiceListResponse.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)
|