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.
Files changed (111) hide show
  1. buf/__init__.py +0 -0
  2. buf/validate/__init__.py +0 -0
  3. buf/validate/validate_pb2.py +450 -0
  4. buf/validate/validate_pb2.pyi +631 -0
  5. buf/validate/validate_pb2_grpc.py +4 -0
  6. metalstack_cloud-0.15.2.dist-info/METADATA +26 -0
  7. metalstack_cloud-0.15.2.dist-info/RECORD +111 -0
  8. metalstack_cloud-0.15.2.dist-info/WHEEL +5 -0
  9. metalstack_cloud-0.15.2.dist-info/top_level.txt +2 -0
  10. metalstackcloud/__init__.py +0 -0
  11. metalstackcloud/admin/__init__.py +0 -0
  12. metalstackcloud/admin/v1/__init__.py +0 -0
  13. metalstackcloud/admin/v1/cluster_connecpy.py +214 -0
  14. metalstackcloud/admin/v1/cluster_pb2.py +70 -0
  15. metalstackcloud/admin/v1/cluster_pb2.pyi +93 -0
  16. metalstackcloud/admin/v1/cluster_pb2_grpc.py +169 -0
  17. metalstackcloud/admin/v1/machine_pb2.py +42 -0
  18. metalstackcloud/admin/v1/machine_pb2.pyi +76 -0
  19. metalstackcloud/admin/v1/machine_pb2_grpc.py +4 -0
  20. metalstackcloud/admin/v1/payment_connecpy.py +158 -0
  21. metalstackcloud/admin/v1/payment_pb2.py +51 -0
  22. metalstackcloud/admin/v1/payment_pb2.pyi +33 -0
  23. metalstackcloud/admin/v1/payment_pb2_grpc.py +125 -0
  24. metalstackcloud/admin/v1/project_connecpy.py +102 -0
  25. metalstackcloud/admin/v1/project_pb2.py +49 -0
  26. metalstackcloud/admin/v1/project_pb2.pyi +34 -0
  27. metalstackcloud/admin/v1/project_pb2_grpc.py +81 -0
  28. metalstackcloud/admin/v1/storage_connecpy.py +214 -0
  29. metalstackcloud/admin/v1/storage_pb2.py +75 -0
  30. metalstackcloud/admin/v1/storage_pb2.pyi +149 -0
  31. metalstackcloud/admin/v1/storage_pb2_grpc.py +169 -0
  32. metalstackcloud/admin/v1/tenant_connecpy.py +270 -0
  33. metalstackcloud/admin/v1/tenant_pb2.py +66 -0
  34. metalstackcloud/admin/v1/tenant_pb2.pyi +72 -0
  35. metalstackcloud/admin/v1/tenant_pb2_grpc.py +213 -0
  36. metalstackcloud/admin/v1/token_connecpy.py +158 -0
  37. metalstackcloud/admin/v1/token_pb2.py +56 -0
  38. metalstackcloud/admin/v1/token_pb2.pyi +34 -0
  39. metalstackcloud/admin/v1/token_pb2_grpc.py +125 -0
  40. metalstackcloud/api/__init__.py +0 -0
  41. metalstackcloud/api/v1/__init__.py +0 -0
  42. metalstackcloud/api/v1/asset_connecpy.py +102 -0
  43. metalstackcloud/api/v1/asset_pb2.py +76 -0
  44. metalstackcloud/api/v1/asset_pb2.pyi +132 -0
  45. metalstackcloud/api/v1/asset_pb2_grpc.py +81 -0
  46. metalstackcloud/api/v1/audit_connecpy.py +158 -0
  47. metalstackcloud/api/v1/audit_pb2.py +84 -0
  48. metalstackcloud/api/v1/audit_pb2.pyi +95 -0
  49. metalstackcloud/api/v1/audit_pb2_grpc.py +125 -0
  50. metalstackcloud/api/v1/cluster_connecpy.py +494 -0
  51. metalstackcloud/api/v1/cluster_pb2.py +183 -0
  52. metalstackcloud/api/v1/cluster_pb2.pyi +311 -0
  53. metalstackcloud/api/v1/cluster_pb2_grpc.py +389 -0
  54. metalstackcloud/api/v1/common_pb2.py +52 -0
  55. metalstackcloud/api/v1/common_pb2.pyi +98 -0
  56. metalstackcloud/api/v1/common_pb2_grpc.py +4 -0
  57. metalstackcloud/api/v1/health_connecpy.py +102 -0
  58. metalstackcloud/api/v1/health_pb2.py +58 -0
  59. metalstackcloud/api/v1/health_pb2.pyi +74 -0
  60. metalstackcloud/api/v1/health_pb2_grpc.py +81 -0
  61. metalstackcloud/api/v1/ip_connecpy.py +326 -0
  62. metalstackcloud/api/v1/ip_pb2.py +110 -0
  63. metalstackcloud/api/v1/ip_pb2.pyi +122 -0
  64. metalstackcloud/api/v1/ip_pb2_grpc.py +257 -0
  65. metalstackcloud/api/v1/method_connecpy.py +158 -0
  66. metalstackcloud/api/v1/method_pb2.py +62 -0
  67. metalstackcloud/api/v1/method_pb2.pyi +50 -0
  68. metalstackcloud/api/v1/method_pb2_grpc.py +128 -0
  69. metalstackcloud/api/v1/payment_connecpy.py +550 -0
  70. metalstackcloud/api/v1/payment_pb2.py +134 -0
  71. metalstackcloud/api/v1/payment_pb2.pyi +291 -0
  72. metalstackcloud/api/v1/payment_pb2_grpc.py +433 -0
  73. metalstackcloud/api/v1/project_connecpy.py +718 -0
  74. metalstackcloud/api/v1/project_pb2.py +156 -0
  75. metalstackcloud/api/v1/project_pb2.pyi +234 -0
  76. metalstackcloud/api/v1/project_pb2_grpc.py +565 -0
  77. metalstackcloud/api/v1/snapshot_connecpy.py +214 -0
  78. metalstackcloud/api/v1/snapshot_pb2.py +75 -0
  79. metalstackcloud/api/v1/snapshot_pb2.pyi +109 -0
  80. metalstackcloud/api/v1/snapshot_pb2_grpc.py +169 -0
  81. metalstackcloud/api/v1/tenant_connecpy.py +774 -0
  82. metalstackcloud/api/v1/tenant_pb2.py +159 -0
  83. metalstackcloud/api/v1/tenant_pb2.pyi +305 -0
  84. metalstackcloud/api/v1/tenant_pb2_grpc.py +609 -0
  85. metalstackcloud/api/v1/token_connecpy.py +326 -0
  86. metalstackcloud/api/v1/token_pb2.py +131 -0
  87. metalstackcloud/api/v1/token_pb2.pyi +175 -0
  88. metalstackcloud/api/v1/token_pb2_grpc.py +257 -0
  89. metalstackcloud/api/v1/user_connecpy.py +102 -0
  90. metalstackcloud/api/v1/user_pb2.py +48 -0
  91. metalstackcloud/api/v1/user_pb2.pyi +42 -0
  92. metalstackcloud/api/v1/user_pb2_grpc.py +81 -0
  93. metalstackcloud/api/v1/version_connecpy.py +102 -0
  94. metalstackcloud/api/v1/version_pb2.py +46 -0
  95. metalstackcloud/api/v1/version_pb2.pyi +29 -0
  96. metalstackcloud/api/v1/version_pb2_grpc.py +81 -0
  97. metalstackcloud/api/v1/volume_connecpy.py +270 -0
  98. metalstackcloud/api/v1/volume_pb2.py +91 -0
  99. metalstackcloud/api/v1/volume_pb2.pyi +165 -0
  100. metalstackcloud/api/v1/volume_pb2_grpc.py +213 -0
  101. metalstackcloud/client.py +139 -0
  102. metalstackcloud/status/__init__.py +0 -0
  103. metalstackcloud/status/v1/__init__.py +0 -0
  104. metalstackcloud/status/v1/message_connecpy.py +102 -0
  105. metalstackcloud/status/v1/message_pb2.py +51 -0
  106. metalstackcloud/status/v1/message_pb2.pyi +65 -0
  107. metalstackcloud/status/v1/message_pb2_grpc.py +84 -0
  108. metalstackcloud/status/v1/status_connecpy.py +102 -0
  109. metalstackcloud/status/v1/status_pb2.py +45 -0
  110. metalstackcloud/status/v1/status_pb2.pyi +24 -0
  111. metalstackcloud/status/v1/status_pb2_grpc.py +84 -0
@@ -0,0 +1,102 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
3
+ # source: status/v1/status.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 metalstackcloud.status.v1.status_pb2 as status_dot_v1_dot_status__pb2
15
+
16
+
17
+ class StatusService(Protocol):
18
+ async def Watch(self, req: status_dot_v1_dot_status__pb2.StatusServiceWatchRequest, ctx: ServiceContext) -> status_dot_v1_dot_status__pb2.StatusServiceWatchResponse: ...
19
+
20
+
21
+ class StatusServiceServer(ConnecpyServer):
22
+ def __init__(self, *, service: StatusService, server_path_prefix=""):
23
+ super().__init__()
24
+ self._prefix = f"{server_path_prefix}/status.v1.StatusService"
25
+ self._endpoints = {
26
+ "Watch": Endpoint[status_dot_v1_dot_status__pb2.StatusServiceWatchRequest, status_dot_v1_dot_status__pb2.StatusServiceWatchResponse](
27
+ service_name="StatusService",
28
+ name="Watch",
29
+ function=getattr(service, "Watch"),
30
+ input=status_dot_v1_dot_status__pb2.StatusServiceWatchRequest,
31
+ output=status_dot_v1_dot_status__pb2.StatusServiceWatchResponse,
32
+ allowed_methods=("POST",),
33
+ ),
34
+ }
35
+
36
+ def serviceName(self):
37
+ return "status.v1.StatusService"
38
+
39
+
40
+ class StatusServiceSync(Protocol):
41
+ def Watch(self, req: status_dot_v1_dot_status__pb2.StatusServiceWatchRequest, ctx: ServiceContext) -> status_dot_v1_dot_status__pb2.StatusServiceWatchResponse: ...
42
+
43
+
44
+ class StatusServiceServerSync(ConnecpyServer):
45
+ def __init__(self, *, service: StatusServiceSync, server_path_prefix=""):
46
+ super().__init__()
47
+ self._prefix = f"{server_path_prefix}/status.v1.StatusService"
48
+ self._endpoints = {
49
+ "Watch": Endpoint[status_dot_v1_dot_status__pb2.StatusServiceWatchRequest, status_dot_v1_dot_status__pb2.StatusServiceWatchResponse](
50
+ service_name="StatusService",
51
+ name="Watch",
52
+ function=getattr(service, "Watch"),
53
+ input=status_dot_v1_dot_status__pb2.StatusServiceWatchRequest,
54
+ output=status_dot_v1_dot_status__pb2.StatusServiceWatchResponse,
55
+ allowed_methods=("POST",),
56
+ ),
57
+ }
58
+
59
+ def serviceName(self):
60
+ return "status.v1.StatusService"
61
+
62
+
63
+ class StatusServiceClient(ConnecpyClient):
64
+ def Watch(
65
+ self,
66
+ request: status_dot_v1_dot_status__pb2.StatusServiceWatchRequest,
67
+ *,
68
+ ctx: Optional[ClientContext] = None,
69
+ server_path_prefix: str = "",
70
+ **kwargs,
71
+ ) -> status_dot_v1_dot_status__pb2.StatusServiceWatchResponse:
72
+ method = "POST"
73
+ return self._make_request(
74
+ url=f"{server_path_prefix}/status.v1.StatusService/Watch",
75
+ ctx=ctx,
76
+ request=request,
77
+ response_class=status_dot_v1_dot_status__pb2.StatusServiceWatchResponse,
78
+ method=method,
79
+ **kwargs,
80
+ )
81
+
82
+
83
+ class AsyncStatusServiceClient(AsyncConnecpyClient):
84
+ async def Watch(
85
+ self,
86
+ request: status_dot_v1_dot_status__pb2.StatusServiceWatchRequest,
87
+ *,
88
+ ctx: Optional[ClientContext] = None,
89
+ server_path_prefix: str = "",
90
+ session: Union[httpx.AsyncClient, None] = None,
91
+ **kwargs,
92
+ ) -> status_dot_v1_dot_status__pb2.StatusServiceWatchResponse:
93
+ method = "POST"
94
+ return await self._make_request(
95
+ url=f"{server_path_prefix}/status.v1.StatusService/Watch",
96
+ ctx=ctx,
97
+ request=request,
98
+ response_class=status_dot_v1_dot_status__pb2.StatusServiceWatchResponse,
99
+ method=method,
100
+ session=session,
101
+ **kwargs,
102
+ )
@@ -0,0 +1,45 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: status/v1/status.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
+ 'status/v1/status.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from metalstackcloud.api.v1 import common_pb2 as api_dot_v1_dot_common__pb2
26
+ from metalstackcloud.api.v1 import health_pb2 as api_dot_v1_dot_health__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16status/v1/status.proto\x12\tstatus.v1\x1a\x13\x61pi/v1/common.proto\x1a\x13\x61pi/v1/health.proto\"\x1b\n\x19StatusServiceWatchRequest\"\xd0\x01\n\x1aStatusServiceWatchResponse\x12&\n\x06health\x18\x01 \x01(\x0b\x32\x0e.api.v1.HealthR\x06health\x12<\n\x0eoverall_status\x18\x02 \x01(\x0e\x32\x15.api.v1.ServiceStatusR\roverallStatus\x12+\n\x11\x63onnection_broken\x18\x03 \x01(\x08R\x10\x63onnectionBroken\x12\x1f\n\x0b\x61pi_version\x18\x04 \x01(\tR\napiVersion2m\n\rStatusService\x12\\\n\x05Watch\x12$.status.v1.StatusServiceWatchRequest\x1a%.status.v1.StatusServiceWatchResponse\"\x04\xd8\xf3\x18\x01\x30\x01\x42\x99\x01\n\rcom.status.v1B\x0bStatusProtoP\x01Z6github.com/metal-stack-cloud/api/go/status/v1;statusv1\xa2\x02\x03SXX\xaa\x02\tStatus.V1\xca\x02\tStatus\\V1\xe2\x02\x15Status\\V1\\GPBMetadata\xea\x02\nStatus::V1b\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'status.v1.status_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\rcom.status.v1B\013StatusProtoP\001Z6github.com/metal-stack-cloud/api/go/status/v1;statusv1\242\002\003SXX\252\002\tStatus.V1\312\002\tStatus\\V1\342\002\025Status\\V1\\GPBMetadata\352\002\nStatus::V1'
37
+ _globals['_STATUSSERVICE'].methods_by_name['Watch']._loaded_options = None
38
+ _globals['_STATUSSERVICE'].methods_by_name['Watch']._serialized_options = b'\330\363\030\001'
39
+ _globals['_STATUSSERVICEWATCHREQUEST']._serialized_start=79
40
+ _globals['_STATUSSERVICEWATCHREQUEST']._serialized_end=106
41
+ _globals['_STATUSSERVICEWATCHRESPONSE']._serialized_start=109
42
+ _globals['_STATUSSERVICEWATCHRESPONSE']._serialized_end=317
43
+ _globals['_STATUSSERVICE']._serialized_start=319
44
+ _globals['_STATUSSERVICE']._serialized_end=428
45
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,24 @@
1
+ from api.v1 import common_pb2 as _common_pb2
2
+ from api.v1 import health_pb2 as _health_pb2
3
+ from google.protobuf import descriptor as _descriptor
4
+ from google.protobuf import message as _message
5
+ from collections.abc import Mapping as _Mapping
6
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
7
+
8
+ DESCRIPTOR: _descriptor.FileDescriptor
9
+
10
+ class StatusServiceWatchRequest(_message.Message):
11
+ __slots__ = ()
12
+ def __init__(self) -> None: ...
13
+
14
+ class StatusServiceWatchResponse(_message.Message):
15
+ __slots__ = ("health", "overall_status", "connection_broken", "api_version")
16
+ HEALTH_FIELD_NUMBER: _ClassVar[int]
17
+ OVERALL_STATUS_FIELD_NUMBER: _ClassVar[int]
18
+ CONNECTION_BROKEN_FIELD_NUMBER: _ClassVar[int]
19
+ API_VERSION_FIELD_NUMBER: _ClassVar[int]
20
+ health: _health_pb2.Health
21
+ overall_status: _health_pb2.ServiceStatus
22
+ connection_broken: bool
23
+ api_version: str
24
+ def __init__(self, health: _Optional[_Union[_health_pb2.Health, _Mapping]] = ..., overall_status: _Optional[_Union[_health_pb2.ServiceStatus, str]] = ..., connection_broken: bool = ..., api_version: _Optional[str] = ...) -> None: ...
@@ -0,0 +1,84 @@
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.status.v1 import status_pb2 as status_dot_v1_dot_status__pb2
6
+
7
+
8
+ class StatusServiceStub(object):
9
+ """StatusService serves status related functions
10
+ this service is used as backend for the status dashboard
11
+ """
12
+
13
+ def __init__(self, channel):
14
+ """Constructor.
15
+
16
+ Args:
17
+ channel: A grpc.Channel.
18
+ """
19
+ self.Watch = channel.unary_stream(
20
+ '/status.v1.StatusService/Watch',
21
+ request_serializer=status_dot_v1_dot_status__pb2.StatusServiceWatchRequest.SerializeToString,
22
+ response_deserializer=status_dot_v1_dot_status__pb2.StatusServiceWatchResponse.FromString,
23
+ _registered_method=True)
24
+
25
+
26
+ class StatusServiceServicer(object):
27
+ """StatusService serves status related functions
28
+ this service is used as backend for the status dashboard
29
+ """
30
+
31
+ def Watch(self, request, context):
32
+ """Watch the system status
33
+ """
34
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
35
+ context.set_details('Method not implemented!')
36
+ raise NotImplementedError('Method not implemented!')
37
+
38
+
39
+ def add_StatusServiceServicer_to_server(servicer, server):
40
+ rpc_method_handlers = {
41
+ 'Watch': grpc.unary_stream_rpc_method_handler(
42
+ servicer.Watch,
43
+ request_deserializer=status_dot_v1_dot_status__pb2.StatusServiceWatchRequest.FromString,
44
+ response_serializer=status_dot_v1_dot_status__pb2.StatusServiceWatchResponse.SerializeToString,
45
+ ),
46
+ }
47
+ generic_handler = grpc.method_handlers_generic_handler(
48
+ 'status.v1.StatusService', rpc_method_handlers)
49
+ server.add_generic_rpc_handlers((generic_handler,))
50
+ server.add_registered_method_handlers('status.v1.StatusService', rpc_method_handlers)
51
+
52
+
53
+ # This class is part of an EXPERIMENTAL API.
54
+ class StatusService(object):
55
+ """StatusService serves status related functions
56
+ this service is used as backend for the status dashboard
57
+ """
58
+
59
+ @staticmethod
60
+ def Watch(request,
61
+ target,
62
+ options=(),
63
+ channel_credentials=None,
64
+ call_credentials=None,
65
+ insecure=False,
66
+ compression=None,
67
+ wait_for_ready=None,
68
+ timeout=None,
69
+ metadata=None):
70
+ return grpc.experimental.unary_stream(
71
+ request,
72
+ target,
73
+ '/status.v1.StatusService/Watch',
74
+ status_dot_v1_dot_status__pb2.StatusServiceWatchRequest.SerializeToString,
75
+ status_dot_v1_dot_status__pb2.StatusServiceWatchResponse.FromString,
76
+ options,
77
+ channel_credentials,
78
+ insecure,
79
+ call_credentials,
80
+ compression,
81
+ wait_for_ready,
82
+ timeout,
83
+ metadata,
84
+ _registered_method=True)