metal-stack-api 0.0.10__py3-none-any.whl → 0.0.12__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 (43) hide show
  1. buf/validate/validate_pb2.py +3 -3
  2. buf/validate/validate_pb2.pyi +13 -13
  3. {metal_stack_api-0.0.10.dist-info → metal_stack_api-0.0.12.dist-info}/METADATA +1 -1
  4. {metal_stack_api-0.0.10.dist-info → metal_stack_api-0.0.12.dist-info}/RECORD +43 -39
  5. metalstack/admin/v2/filesystem_pb2.py +3 -3
  6. metalstack/admin/v2/image_pb2.py +3 -3
  7. metalstack/admin/v2/ip_pb2.py +3 -3
  8. metalstack/admin/v2/machine_connecpy.py +158 -0
  9. metalstack/admin/v2/machine_pb2.py +54 -0
  10. metalstack/admin/v2/machine_pb2.pyi +34 -0
  11. metalstack/admin/v2/machine_pb2_grpc.py +125 -0
  12. metalstack/admin/v2/network_pb2.py +3 -3
  13. metalstack/admin/v2/network_pb2.pyi +1 -1
  14. metalstack/admin/v2/partition_pb2.py +3 -3
  15. metalstack/admin/v2/size_pb2.py +3 -3
  16. metalstack/admin/v2/tenant_pb2.py +3 -3
  17. metalstack/admin/v2/token_pb2.py +3 -3
  18. metalstack/api/v2/common_pb2.py +3 -3
  19. metalstack/api/v2/filesystem_pb2.py +3 -3
  20. metalstack/api/v2/filesystem_pb2.pyi +1 -1
  21. metalstack/api/v2/health_pb2.py +3 -3
  22. metalstack/api/v2/image_pb2.py +3 -3
  23. metalstack/api/v2/ip_pb2.py +3 -3
  24. metalstack/api/v2/machine_pb2.py +84 -60
  25. metalstack/api/v2/machine_pb2.pyi +31 -4
  26. metalstack/api/v2/machine_pb2_grpc.py +1 -1
  27. metalstack/api/v2/method_pb2.py +3 -3
  28. metalstack/api/v2/network_pb2.py +3 -3
  29. metalstack/api/v2/partition_pb2.py +3 -3
  30. metalstack/api/v2/project_pb2.py +3 -3
  31. metalstack/api/v2/project_pb2.pyi +2 -2
  32. metalstack/api/v2/size_pb2.py +3 -3
  33. metalstack/api/v2/switch_pb2.py +3 -3
  34. metalstack/api/v2/tenant_pb2.py +3 -3
  35. metalstack/api/v2/tenant_pb2.pyi +1 -1
  36. metalstack/api/v2/token_pb2.py +3 -3
  37. metalstack/api/v2/user_pb2.py +3 -3
  38. metalstack/api/v2/version_pb2.py +3 -3
  39. metalstack/client/client.py +4 -0
  40. metalstack/infra/v2/bmc_pb2.py +3 -3
  41. metalstack/infra/v2/switch_pb2.py +3 -3
  42. {metal_stack_api-0.0.10.dist-info → metal_stack_api-0.0.12.dist-info}/WHEEL +0 -0
  43. {metal_stack_api-0.0.10.dist-info → metal_stack_api-0.0.12.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,34 @@
1
+ from buf.validate import validate_pb2 as _validate_pb2
2
+ from metalstack.api.v2 import common_pb2 as _common_pb2
3
+ from metalstack.api.v2 import machine_pb2 as _machine_pb2
4
+ from google.protobuf.internal import containers as _containers
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import message as _message
7
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
8
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
9
+
10
+ DESCRIPTOR: _descriptor.FileDescriptor
11
+
12
+ class MachineServiceGetRequest(_message.Message):
13
+ __slots__ = ("uuid",)
14
+ UUID_FIELD_NUMBER: _ClassVar[int]
15
+ uuid: str
16
+ def __init__(self, uuid: _Optional[str] = ...) -> None: ...
17
+
18
+ class MachineServiceGetResponse(_message.Message):
19
+ __slots__ = ("machine",)
20
+ MACHINE_FIELD_NUMBER: _ClassVar[int]
21
+ machine: _machine_pb2.Machine
22
+ def __init__(self, machine: _Optional[_Union[_machine_pb2.Machine, _Mapping]] = ...) -> None: ...
23
+
24
+ class MachineServiceListRequest(_message.Message):
25
+ __slots__ = ("query",)
26
+ QUERY_FIELD_NUMBER: _ClassVar[int]
27
+ query: _machine_pb2.MachineQuery
28
+ def __init__(self, query: _Optional[_Union[_machine_pb2.MachineQuery, _Mapping]] = ...) -> None: ...
29
+
30
+ class MachineServiceListResponse(_message.Message):
31
+ __slots__ = ("machines",)
32
+ MACHINES_FIELD_NUMBER: _ClassVar[int]
33
+ machines: _containers.RepeatedCompositeFieldContainer[_machine_pb2.Machine]
34
+ def __init__(self, machines: _Optional[_Iterable[_Union[_machine_pb2.Machine, _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 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)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/admin/v2/network.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/admin/v2/network.proto'
19
19
  )
@@ -83,7 +83,7 @@ class NetworkServiceUpdateRequest(_message.Message):
83
83
  nat_type: _network_pb2.NATType
84
84
  additional_announcable_cidrs: _containers.RepeatedScalarFieldContainer[str]
85
85
  force: bool
86
- def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.UpdateLabels, _Mapping]] = ..., prefixes: _Optional[_Iterable[str]] = ..., destination_prefixes: _Optional[_Iterable[str]] = ..., default_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., min_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., nat_type: _Optional[_Union[_network_pb2.NATType, str]] = ..., additional_announcable_cidrs: _Optional[_Iterable[str]] = ..., force: bool = ...) -> None: ...
86
+ def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., labels: _Optional[_Union[_common_pb2.UpdateLabels, _Mapping]] = ..., prefixes: _Optional[_Iterable[str]] = ..., destination_prefixes: _Optional[_Iterable[str]] = ..., default_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., min_child_prefix_length: _Optional[_Union[_network_pb2.ChildPrefixLength, _Mapping]] = ..., nat_type: _Optional[_Union[_network_pb2.NATType, str]] = ..., additional_announcable_cidrs: _Optional[_Iterable[str]] = ..., force: _Optional[bool] = ...) -> None: ...
87
87
 
88
88
  class NetworkServiceDeleteRequest(_message.Message):
89
89
  __slots__ = ("id",)
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/admin/v2/partition.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/admin/v2/partition.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/admin/v2/size.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/admin/v2/size.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/admin/v2/tenant.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/admin/v2/tenant.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/admin/v2/token.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/admin/v2/token.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/api/v2/common.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/api/v2/common.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/api/v2/filesystem.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/api/v2/filesystem.proto'
19
19
  )
@@ -178,7 +178,7 @@ class Disk(_message.Message):
178
178
  device: str
179
179
  partitions: _containers.RepeatedCompositeFieldContainer[DiskPartition]
180
180
  wipe_on_reinstall: bool
181
- def __init__(self, device: _Optional[str] = ..., partitions: _Optional[_Iterable[_Union[DiskPartition, _Mapping]]] = ..., wipe_on_reinstall: bool = ...) -> None: ...
181
+ def __init__(self, device: _Optional[str] = ..., partitions: _Optional[_Iterable[_Union[DiskPartition, _Mapping]]] = ..., wipe_on_reinstall: _Optional[bool] = ...) -> None: ...
182
182
 
183
183
  class Raid(_message.Message):
184
184
  __slots__ = ("array_name", "devices", "level", "create_options", "spares")
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/api/v2/health.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/api/v2/health.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/api/v2/image.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/api/v2/image.proto'
19
19
  )
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/api/v2/ip.proto
5
- # Protobuf Python Version: 6.31.1
5
+ # Protobuf Python Version: 6.32.0
6
6
  """Generated protocol buffer code."""
7
7
  from google.protobuf import descriptor as _descriptor
8
8
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -12,8 +12,8 @@ from google.protobuf.internal import builder as _builder
12
12
  _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
- 31,
16
- 1,
15
+ 32,
16
+ 0,
17
17
  '',
18
18
  'metalstack/api/v2/ip.proto'
19
19
  )