metal-stack-api 0.0.10__tar.gz → 0.0.12__tar.gz

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 (129) hide show
  1. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/PKG-INFO +1 -1
  2. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/buf/validate/validate_pb2.py +3 -3
  3. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/buf/validate/validate_pb2.pyi +13 -13
  4. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metal_stack_api.egg-info/PKG-INFO +1 -1
  5. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metal_stack_api.egg-info/SOURCES.txt +4 -0
  6. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/filesystem_pb2.py +3 -3
  7. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/image_pb2.py +3 -3
  8. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/ip_pb2.py +3 -3
  9. metal_stack_api-0.0.12/metalstack/admin/v2/machine_connecpy.py +158 -0
  10. metal_stack_api-0.0.12/metalstack/admin/v2/machine_pb2.py +54 -0
  11. metal_stack_api-0.0.12/metalstack/admin/v2/machine_pb2.pyi +34 -0
  12. metal_stack_api-0.0.12/metalstack/admin/v2/machine_pb2_grpc.py +125 -0
  13. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/network_pb2.py +3 -3
  14. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/network_pb2.pyi +1 -1
  15. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/partition_pb2.py +3 -3
  16. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/size_pb2.py +3 -3
  17. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/tenant_pb2.py +3 -3
  18. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/token_pb2.py +3 -3
  19. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/common_pb2.py +3 -3
  20. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/filesystem_pb2.py +3 -3
  21. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/filesystem_pb2.pyi +1 -1
  22. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/health_pb2.py +3 -3
  23. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/image_pb2.py +3 -3
  24. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/ip_pb2.py +3 -3
  25. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/machine_pb2.py +84 -60
  26. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/machine_pb2.pyi +31 -4
  27. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/machine_pb2_grpc.py +1 -1
  28. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/method_pb2.py +3 -3
  29. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/network_pb2.py +3 -3
  30. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/partition_pb2.py +3 -3
  31. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/project_pb2.py +3 -3
  32. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/project_pb2.pyi +2 -2
  33. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/size_pb2.py +3 -3
  34. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/switch_pb2.py +3 -3
  35. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/tenant_pb2.py +3 -3
  36. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/tenant_pb2.pyi +1 -1
  37. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/token_pb2.py +3 -3
  38. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/user_pb2.py +3 -3
  39. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/version_pb2.py +3 -3
  40. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/client/client.py +4 -0
  41. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/v2/bmc_pb2.py +3 -3
  42. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/v2/switch_pb2.py +3 -3
  43. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/README.md +0 -0
  44. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/buf/__init__.py +0 -0
  45. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/buf/validate/__init__.py +0 -0
  46. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/buf/validate/validate_pb2_grpc.py +0 -0
  47. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metal_stack_api.egg-info/dependency_links.txt +0 -0
  48. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metal_stack_api.egg-info/requires.txt +0 -0
  49. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metal_stack_api.egg-info/top_level.txt +0 -0
  50. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/__init__.py +0 -0
  51. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/__init__.py +0 -0
  52. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/__init__.py +0 -0
  53. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/filesystem_connecpy.py +0 -0
  54. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/filesystem_pb2.pyi +0 -0
  55. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/filesystem_pb2_grpc.py +0 -0
  56. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/image_connecpy.py +0 -0
  57. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/image_pb2.pyi +0 -0
  58. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/image_pb2_grpc.py +0 -0
  59. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/ip_connecpy.py +0 -0
  60. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/ip_pb2.pyi +0 -0
  61. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/ip_pb2_grpc.py +0 -0
  62. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/network_connecpy.py +0 -0
  63. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/network_pb2_grpc.py +0 -0
  64. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/partition_connecpy.py +0 -0
  65. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/partition_pb2.pyi +0 -0
  66. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/partition_pb2_grpc.py +0 -0
  67. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/size_connecpy.py +0 -0
  68. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/size_pb2.pyi +0 -0
  69. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/size_pb2_grpc.py +0 -0
  70. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/tenant_connecpy.py +0 -0
  71. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/tenant_pb2.pyi +0 -0
  72. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/tenant_pb2_grpc.py +0 -0
  73. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/token_connecpy.py +0 -0
  74. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/token_pb2.pyi +0 -0
  75. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/admin/v2/token_pb2_grpc.py +0 -0
  76. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/__init__.py +0 -0
  77. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/__init__.py +0 -0
  78. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/common_pb2.pyi +0 -0
  79. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/common_pb2_grpc.py +0 -0
  80. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/filesystem_connecpy.py +0 -0
  81. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/filesystem_pb2_grpc.py +0 -0
  82. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/health_connecpy.py +0 -0
  83. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/health_pb2.pyi +0 -0
  84. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/health_pb2_grpc.py +0 -0
  85. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/image_connecpy.py +0 -0
  86. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/image_pb2.pyi +0 -0
  87. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/image_pb2_grpc.py +0 -0
  88. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/ip_connecpy.py +0 -0
  89. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/ip_pb2.pyi +0 -0
  90. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/ip_pb2_grpc.py +0 -0
  91. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/machine_connecpy.py +0 -0
  92. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/method_connecpy.py +0 -0
  93. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/method_pb2.pyi +0 -0
  94. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/method_pb2_grpc.py +0 -0
  95. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/network_connecpy.py +0 -0
  96. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/network_pb2.pyi +0 -0
  97. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/network_pb2_grpc.py +0 -0
  98. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/partition_connecpy.py +0 -0
  99. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/partition_pb2.pyi +0 -0
  100. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/partition_pb2_grpc.py +0 -0
  101. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/project_connecpy.py +0 -0
  102. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/project_pb2_grpc.py +0 -0
  103. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/size_connecpy.py +0 -0
  104. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/size_pb2.pyi +0 -0
  105. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/size_pb2_grpc.py +0 -0
  106. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/switch_pb2.pyi +0 -0
  107. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/switch_pb2_grpc.py +0 -0
  108. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/tenant_connecpy.py +0 -0
  109. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/tenant_pb2_grpc.py +0 -0
  110. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/token_connecpy.py +0 -0
  111. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/token_pb2.pyi +0 -0
  112. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/token_pb2_grpc.py +0 -0
  113. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/user_connecpy.py +0 -0
  114. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/user_pb2.pyi +0 -0
  115. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/user_pb2_grpc.py +0 -0
  116. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/version_connecpy.py +0 -0
  117. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/version_pb2.pyi +0 -0
  118. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/api/v2/version_pb2_grpc.py +0 -0
  119. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/client/__init__.py +0 -0
  120. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/__init__.py +0 -0
  121. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/v2/__init__.py +0 -0
  122. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/v2/bmc_connecpy.py +0 -0
  123. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/v2/bmc_pb2.pyi +0 -0
  124. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/v2/bmc_pb2_grpc.py +0 -0
  125. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/v2/switch_connecpy.py +0 -0
  126. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/v2/switch_pb2.pyi +0 -0
  127. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/metalstack/infra/v2/switch_pb2_grpc.py +0 -0
  128. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/setup.cfg +0 -0
  129. {metal_stack_api-0.0.10 → metal_stack_api-0.0.12}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metal-stack-api
3
- Version: 0.0.10
3
+ Version: 0.0.12
4
4
  Summary: Python API client for metal-stack api
5
5
  Home-page: https://github.com/metal-stack/api
6
6
  Author: metal-stack authors
@@ -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: buf/validate/validate.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
  'buf/validate/validate.proto'
19
19
  )
@@ -63,13 +63,13 @@ class MessageOneofRule(_message.Message):
63
63
  REQUIRED_FIELD_NUMBER: _ClassVar[int]
64
64
  fields: _containers.RepeatedScalarFieldContainer[str]
65
65
  required: bool
66
- def __init__(self, fields: _Optional[_Iterable[str]] = ..., required: bool = ...) -> None: ...
66
+ def __init__(self, fields: _Optional[_Iterable[str]] = ..., required: _Optional[bool] = ...) -> None: ...
67
67
 
68
68
  class OneofRules(_message.Message):
69
69
  __slots__ = ("required",)
70
70
  REQUIRED_FIELD_NUMBER: _ClassVar[int]
71
71
  required: bool
72
- def __init__(self, required: bool = ...) -> None: ...
72
+ def __init__(self, required: _Optional[bool] = ...) -> None: ...
73
73
 
74
74
  class FieldRules(_message.Message):
75
75
  __slots__ = ("cel", "required", "ignore", "float", "double", "int32", "int64", "uint32", "uint64", "sint32", "sint64", "fixed32", "fixed64", "sfixed32", "sfixed64", "bool", "string", "bytes", "enum", "repeated", "map", "any", "duration", "timestamp")
@@ -121,7 +121,7 @@ class FieldRules(_message.Message):
121
121
  any: AnyRules
122
122
  duration: DurationRules
123
123
  timestamp: TimestampRules
124
- def __init__(self, cel: _Optional[_Iterable[_Union[Rule, _Mapping]]] = ..., required: bool = ..., ignore: _Optional[_Union[Ignore, str]] = ..., float: _Optional[_Union[FloatRules, _Mapping]] = ..., double: _Optional[_Union[DoubleRules, _Mapping]] = ..., int32: _Optional[_Union[Int32Rules, _Mapping]] = ..., int64: _Optional[_Union[Int64Rules, _Mapping]] = ..., uint32: _Optional[_Union[UInt32Rules, _Mapping]] = ..., uint64: _Optional[_Union[UInt64Rules, _Mapping]] = ..., sint32: _Optional[_Union[SInt32Rules, _Mapping]] = ..., sint64: _Optional[_Union[SInt64Rules, _Mapping]] = ..., fixed32: _Optional[_Union[Fixed32Rules, _Mapping]] = ..., fixed64: _Optional[_Union[Fixed64Rules, _Mapping]] = ..., sfixed32: _Optional[_Union[SFixed32Rules, _Mapping]] = ..., sfixed64: _Optional[_Union[SFixed64Rules, _Mapping]] = ..., bool: _Optional[_Union[BoolRules, _Mapping]] = ..., string: _Optional[_Union[StringRules, _Mapping]] = ..., bytes: _Optional[_Union[BytesRules, _Mapping]] = ..., enum: _Optional[_Union[EnumRules, _Mapping]] = ..., repeated: _Optional[_Union[RepeatedRules, _Mapping]] = ..., map: _Optional[_Union[MapRules, _Mapping]] = ..., any: _Optional[_Union[AnyRules, _Mapping]] = ..., duration: _Optional[_Union[DurationRules, _Mapping]] = ..., timestamp: _Optional[_Union[TimestampRules, _Mapping]] = ...) -> None: ...
124
+ def __init__(self, cel: _Optional[_Iterable[_Union[Rule, _Mapping]]] = ..., required: _Optional[bool] = ..., ignore: _Optional[_Union[Ignore, str]] = ..., float: _Optional[_Union[FloatRules, _Mapping]] = ..., double: _Optional[_Union[DoubleRules, _Mapping]] = ..., int32: _Optional[_Union[Int32Rules, _Mapping]] = ..., int64: _Optional[_Union[Int64Rules, _Mapping]] = ..., uint32: _Optional[_Union[UInt32Rules, _Mapping]] = ..., uint64: _Optional[_Union[UInt64Rules, _Mapping]] = ..., sint32: _Optional[_Union[SInt32Rules, _Mapping]] = ..., sint64: _Optional[_Union[SInt64Rules, _Mapping]] = ..., fixed32: _Optional[_Union[Fixed32Rules, _Mapping]] = ..., fixed64: _Optional[_Union[Fixed64Rules, _Mapping]] = ..., sfixed32: _Optional[_Union[SFixed32Rules, _Mapping]] = ..., sfixed64: _Optional[_Union[SFixed64Rules, _Mapping]] = ..., bool: _Optional[_Union[BoolRules, _Mapping]] = ..., string: _Optional[_Union[StringRules, _Mapping]] = ..., bytes: _Optional[_Union[BytesRules, _Mapping]] = ..., enum: _Optional[_Union[EnumRules, _Mapping]] = ..., repeated: _Optional[_Union[RepeatedRules, _Mapping]] = ..., map: _Optional[_Union[MapRules, _Mapping]] = ..., any: _Optional[_Union[AnyRules, _Mapping]] = ..., duration: _Optional[_Union[DurationRules, _Mapping]] = ..., timestamp: _Optional[_Union[TimestampRules, _Mapping]] = ...) -> None: ...
125
125
 
126
126
  class PredefinedRules(_message.Message):
127
127
  __slots__ = ("cel",)
@@ -149,7 +149,7 @@ class FloatRules(_message.Message):
149
149
  not_in: _containers.RepeatedScalarFieldContainer[float]
150
150
  finite: bool
151
151
  example: _containers.RepeatedScalarFieldContainer[float]
152
- def __init__(self, const: _Optional[float] = ..., lt: _Optional[float] = ..., lte: _Optional[float] = ..., gt: _Optional[float] = ..., gte: _Optional[float] = ..., not_in: _Optional[_Iterable[float]] = ..., finite: bool = ..., example: _Optional[_Iterable[float]] = ..., **kwargs) -> None: ...
152
+ def __init__(self, const: _Optional[float] = ..., lt: _Optional[float] = ..., lte: _Optional[float] = ..., gt: _Optional[float] = ..., gte: _Optional[float] = ..., not_in: _Optional[_Iterable[float]] = ..., finite: _Optional[bool] = ..., example: _Optional[_Iterable[float]] = ..., **kwargs) -> None: ...
153
153
 
154
154
  class DoubleRules(_message.Message):
155
155
  __slots__ = ("const", "lt", "lte", "gt", "gte", "not_in", "finite", "example")
@@ -171,7 +171,7 @@ class DoubleRules(_message.Message):
171
171
  not_in: _containers.RepeatedScalarFieldContainer[float]
172
172
  finite: bool
173
173
  example: _containers.RepeatedScalarFieldContainer[float]
174
- def __init__(self, const: _Optional[float] = ..., lt: _Optional[float] = ..., lte: _Optional[float] = ..., gt: _Optional[float] = ..., gte: _Optional[float] = ..., not_in: _Optional[_Iterable[float]] = ..., finite: bool = ..., example: _Optional[_Iterable[float]] = ..., **kwargs) -> None: ...
174
+ def __init__(self, const: _Optional[float] = ..., lt: _Optional[float] = ..., lte: _Optional[float] = ..., gt: _Optional[float] = ..., gte: _Optional[float] = ..., not_in: _Optional[_Iterable[float]] = ..., finite: _Optional[bool] = ..., example: _Optional[_Iterable[float]] = ..., **kwargs) -> None: ...
175
175
 
176
176
  class Int32Rules(_message.Message):
177
177
  __slots__ = ("const", "lt", "lte", "gt", "gte", "not_in", "example")
@@ -380,7 +380,7 @@ class BoolRules(_message.Message):
380
380
  EXAMPLE_FIELD_NUMBER: _ClassVar[int]
381
381
  const: bool
382
382
  example: _containers.RepeatedScalarFieldContainer[bool]
383
- def __init__(self, const: bool = ..., example: _Optional[_Iterable[bool]] = ...) -> None: ...
383
+ def __init__(self, const: _Optional[bool] = ..., example: _Optional[_Iterable[bool]] = ...) -> None: ...
384
384
 
385
385
  class StringRules(_message.Message):
386
386
  __slots__ = ("const", "len", "min_len", "max_len", "len_bytes", "min_bytes", "max_bytes", "pattern", "prefix", "suffix", "contains", "not_contains", "not_in", "email", "hostname", "ip", "ipv4", "ipv6", "uri", "uri_ref", "address", "uuid", "tuuid", "ip_with_prefixlen", "ipv4_with_prefixlen", "ipv6_with_prefixlen", "ip_prefix", "ipv4_prefix", "ipv6_prefix", "host_and_port", "well_known_regex", "strict", "example")
@@ -452,7 +452,7 @@ class StringRules(_message.Message):
452
452
  well_known_regex: KnownRegex
453
453
  strict: bool
454
454
  example: _containers.RepeatedScalarFieldContainer[str]
455
- def __init__(self, const: _Optional[str] = ..., len: _Optional[int] = ..., min_len: _Optional[int] = ..., max_len: _Optional[int] = ..., len_bytes: _Optional[int] = ..., min_bytes: _Optional[int] = ..., max_bytes: _Optional[int] = ..., pattern: _Optional[str] = ..., prefix: _Optional[str] = ..., suffix: _Optional[str] = ..., contains: _Optional[str] = ..., not_contains: _Optional[str] = ..., not_in: _Optional[_Iterable[str]] = ..., email: bool = ..., hostname: bool = ..., ip: bool = ..., ipv4: bool = ..., ipv6: bool = ..., uri: bool = ..., uri_ref: bool = ..., address: bool = ..., uuid: bool = ..., tuuid: bool = ..., ip_with_prefixlen: bool = ..., ipv4_with_prefixlen: bool = ..., ipv6_with_prefixlen: bool = ..., ip_prefix: bool = ..., ipv4_prefix: bool = ..., ipv6_prefix: bool = ..., host_and_port: bool = ..., well_known_regex: _Optional[_Union[KnownRegex, str]] = ..., strict: bool = ..., example: _Optional[_Iterable[str]] = ..., **kwargs) -> None: ...
455
+ def __init__(self, const: _Optional[str] = ..., len: _Optional[int] = ..., min_len: _Optional[int] = ..., max_len: _Optional[int] = ..., len_bytes: _Optional[int] = ..., min_bytes: _Optional[int] = ..., max_bytes: _Optional[int] = ..., pattern: _Optional[str] = ..., prefix: _Optional[str] = ..., suffix: _Optional[str] = ..., contains: _Optional[str] = ..., not_contains: _Optional[str] = ..., not_in: _Optional[_Iterable[str]] = ..., email: _Optional[bool] = ..., hostname: _Optional[bool] = ..., ip: _Optional[bool] = ..., ipv4: _Optional[bool] = ..., ipv6: _Optional[bool] = ..., uri: _Optional[bool] = ..., uri_ref: _Optional[bool] = ..., address: _Optional[bool] = ..., uuid: _Optional[bool] = ..., tuuid: _Optional[bool] = ..., ip_with_prefixlen: _Optional[bool] = ..., ipv4_with_prefixlen: _Optional[bool] = ..., ipv6_with_prefixlen: _Optional[bool] = ..., ip_prefix: _Optional[bool] = ..., ipv4_prefix: _Optional[bool] = ..., ipv6_prefix: _Optional[bool] = ..., host_and_port: _Optional[bool] = ..., well_known_regex: _Optional[_Union[KnownRegex, str]] = ..., strict: _Optional[bool] = ..., example: _Optional[_Iterable[str]] = ..., **kwargs) -> None: ...
456
456
 
457
457
  class BytesRules(_message.Message):
458
458
  __slots__ = ("const", "len", "min_len", "max_len", "pattern", "prefix", "suffix", "contains", "not_in", "ip", "ipv4", "ipv6", "example")
@@ -484,7 +484,7 @@ class BytesRules(_message.Message):
484
484
  ipv4: bool
485
485
  ipv6: bool
486
486
  example: _containers.RepeatedScalarFieldContainer[bytes]
487
- def __init__(self, const: _Optional[bytes] = ..., len: _Optional[int] = ..., min_len: _Optional[int] = ..., max_len: _Optional[int] = ..., pattern: _Optional[str] = ..., prefix: _Optional[bytes] = ..., suffix: _Optional[bytes] = ..., contains: _Optional[bytes] = ..., not_in: _Optional[_Iterable[bytes]] = ..., ip: bool = ..., ipv4: bool = ..., ipv6: bool = ..., example: _Optional[_Iterable[bytes]] = ..., **kwargs) -> None: ...
487
+ def __init__(self, const: _Optional[bytes] = ..., len: _Optional[int] = ..., min_len: _Optional[int] = ..., max_len: _Optional[int] = ..., pattern: _Optional[str] = ..., prefix: _Optional[bytes] = ..., suffix: _Optional[bytes] = ..., contains: _Optional[bytes] = ..., not_in: _Optional[_Iterable[bytes]] = ..., ip: _Optional[bool] = ..., ipv4: _Optional[bool] = ..., ipv6: _Optional[bool] = ..., example: _Optional[_Iterable[bytes]] = ..., **kwargs) -> None: ...
488
488
 
489
489
  class EnumRules(_message.Message):
490
490
  __slots__ = ("const", "defined_only", "not_in", "example")
@@ -498,7 +498,7 @@ class EnumRules(_message.Message):
498
498
  defined_only: bool
499
499
  not_in: _containers.RepeatedScalarFieldContainer[int]
500
500
  example: _containers.RepeatedScalarFieldContainer[int]
501
- def __init__(self, const: _Optional[int] = ..., defined_only: bool = ..., not_in: _Optional[_Iterable[int]] = ..., example: _Optional[_Iterable[int]] = ..., **kwargs) -> None: ...
501
+ def __init__(self, const: _Optional[int] = ..., defined_only: _Optional[bool] = ..., not_in: _Optional[_Iterable[int]] = ..., example: _Optional[_Iterable[int]] = ..., **kwargs) -> None: ...
502
502
 
503
503
  class RepeatedRules(_message.Message):
504
504
  __slots__ = ("min_items", "max_items", "unique", "items")
@@ -511,7 +511,7 @@ class RepeatedRules(_message.Message):
511
511
  max_items: int
512
512
  unique: bool
513
513
  items: FieldRules
514
- def __init__(self, min_items: _Optional[int] = ..., max_items: _Optional[int] = ..., unique: bool = ..., items: _Optional[_Union[FieldRules, _Mapping]] = ...) -> None: ...
514
+ def __init__(self, min_items: _Optional[int] = ..., max_items: _Optional[int] = ..., unique: _Optional[bool] = ..., items: _Optional[_Union[FieldRules, _Mapping]] = ...) -> None: ...
515
515
 
516
516
  class MapRules(_message.Message):
517
517
  __slots__ = ("min_pairs", "max_pairs", "keys", "values")
@@ -574,7 +574,7 @@ class TimestampRules(_message.Message):
574
574
  gt_now: bool
575
575
  within: _duration_pb2.Duration
576
576
  example: _containers.RepeatedCompositeFieldContainer[_timestamp_pb2.Timestamp]
577
- def __init__(self, const: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., lt: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., lte: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., lt_now: bool = ..., gt: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., gte: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., gt_now: bool = ..., within: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., example: _Optional[_Iterable[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]]] = ...) -> None: ...
577
+ def __init__(self, const: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., lt: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., lte: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., lt_now: _Optional[bool] = ..., gt: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., gte: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., gt_now: _Optional[bool] = ..., within: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., example: _Optional[_Iterable[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]]] = ...) -> None: ...
578
578
 
579
579
  class Violations(_message.Message):
580
580
  __slots__ = ("violations",)
@@ -594,7 +594,7 @@ class Violation(_message.Message):
594
594
  rule_id: str
595
595
  message: str
596
596
  for_key: bool
597
- def __init__(self, field: _Optional[_Union[FieldPath, _Mapping]] = ..., rule: _Optional[_Union[FieldPath, _Mapping]] = ..., rule_id: _Optional[str] = ..., message: _Optional[str] = ..., for_key: bool = ...) -> None: ...
597
+ def __init__(self, field: _Optional[_Union[FieldPath, _Mapping]] = ..., rule: _Optional[_Union[FieldPath, _Mapping]] = ..., rule_id: _Optional[str] = ..., message: _Optional[str] = ..., for_key: _Optional[bool] = ...) -> None: ...
598
598
 
599
599
  class FieldPath(_message.Message):
600
600
  __slots__ = ("elements",)
@@ -624,4 +624,4 @@ class FieldPathElement(_message.Message):
624
624
  int_key: int
625
625
  uint_key: int
626
626
  string_key: str
627
- def __init__(self, field_number: _Optional[int] = ..., field_name: _Optional[str] = ..., field_type: _Optional[_Union[_descriptor_pb2.FieldDescriptorProto.Type, str]] = ..., key_type: _Optional[_Union[_descriptor_pb2.FieldDescriptorProto.Type, str]] = ..., value_type: _Optional[_Union[_descriptor_pb2.FieldDescriptorProto.Type, str]] = ..., index: _Optional[int] = ..., bool_key: bool = ..., int_key: _Optional[int] = ..., uint_key: _Optional[int] = ..., string_key: _Optional[str] = ...) -> None: ...
627
+ def __init__(self, field_number: _Optional[int] = ..., field_name: _Optional[str] = ..., field_type: _Optional[_Union[_descriptor_pb2.FieldDescriptorProto.Type, str]] = ..., key_type: _Optional[_Union[_descriptor_pb2.FieldDescriptorProto.Type, str]] = ..., value_type: _Optional[_Union[_descriptor_pb2.FieldDescriptorProto.Type, str]] = ..., index: _Optional[int] = ..., bool_key: _Optional[bool] = ..., int_key: _Optional[int] = ..., uint_key: _Optional[int] = ..., string_key: _Optional[str] = ...) -> None: ...
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metal-stack-api
3
- Version: 0.0.10
3
+ Version: 0.0.12
4
4
  Summary: Python API client for metal-stack api
5
5
  Home-page: https://github.com/metal-stack/api
6
6
  Author: metal-stack authors
@@ -25,6 +25,10 @@ metalstack/admin/v2/ip_connecpy.py
25
25
  metalstack/admin/v2/ip_pb2.py
26
26
  metalstack/admin/v2/ip_pb2.pyi
27
27
  metalstack/admin/v2/ip_pb2_grpc.py
28
+ metalstack/admin/v2/machine_connecpy.py
29
+ metalstack/admin/v2/machine_pb2.py
30
+ metalstack/admin/v2/machine_pb2.pyi
31
+ metalstack/admin/v2/machine_pb2_grpc.py
28
32
  metalstack/admin/v2/network_connecpy.py
29
33
  metalstack/admin/v2/network_pb2.py
30
34
  metalstack/admin/v2/network_pb2.pyi
@@ -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/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/admin/v2/filesystem.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/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/admin/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/admin/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/admin/v2/ip.proto'
19
19
  )
@@ -0,0 +1,158 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by https://github.com/i2y/connecpy/protoc-gen-connecpy. DO NOT EDIT!
3
+ # source: metalstack/admin/v2/machine.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 metalstack.admin.v2.machine_pb2 as metalstack_dot_admin_dot_v2_dot_machine__pb2
15
+
16
+
17
+ class MachineService(Protocol):
18
+ async def Get(self, req: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse: ...
19
+ async def List(self, req: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse: ...
20
+
21
+
22
+ class MachineServiceServer(ConnecpyServer):
23
+ def __init__(self, *, service: MachineService, server_path_prefix=""):
24
+ super().__init__()
25
+ self._prefix = f"{server_path_prefix}/metalstack.admin.v2.MachineService"
26
+ self._endpoints = {
27
+ "Get": Endpoint[metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest, metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse](
28
+ service_name="MachineService",
29
+ name="Get",
30
+ function=getattr(service, "Get"),
31
+ input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
32
+ output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse,
33
+ allowed_methods=("POST",),
34
+ ),
35
+ "List": Endpoint[metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest, metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse](
36
+ service_name="MachineService",
37
+ name="List",
38
+ function=getattr(service, "List"),
39
+ input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest,
40
+ output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse,
41
+ allowed_methods=("POST",),
42
+ ),
43
+ }
44
+
45
+ def serviceName(self):
46
+ return "metalstack.admin.v2.MachineService"
47
+
48
+
49
+ class MachineServiceSync(Protocol):
50
+ def Get(self, req: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse: ...
51
+ def List(self, req: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest, ctx: ServiceContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse: ...
52
+
53
+
54
+ class MachineServiceServerSync(ConnecpyServer):
55
+ def __init__(self, *, service: MachineServiceSync, server_path_prefix=""):
56
+ super().__init__()
57
+ self._prefix = f"{server_path_prefix}/metalstack.admin.v2.MachineService"
58
+ self._endpoints = {
59
+ "Get": Endpoint[metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest, metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse](
60
+ service_name="MachineService",
61
+ name="Get",
62
+ function=getattr(service, "Get"),
63
+ input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
64
+ output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse,
65
+ allowed_methods=("POST",),
66
+ ),
67
+ "List": Endpoint[metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest, metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse](
68
+ service_name="MachineService",
69
+ name="List",
70
+ function=getattr(service, "List"),
71
+ input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest,
72
+ output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse,
73
+ allowed_methods=("POST",),
74
+ ),
75
+ }
76
+
77
+ def serviceName(self):
78
+ return "metalstack.admin.v2.MachineService"
79
+
80
+
81
+ class MachineServiceClient(ConnecpyClient):
82
+ def Get(
83
+ self,
84
+ request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
85
+ *,
86
+ ctx: Optional[ClientContext] = None,
87
+ server_path_prefix: str = "",
88
+ **kwargs,
89
+ ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse:
90
+ method = "POST"
91
+ return self._make_request(
92
+ url=f"{server_path_prefix}/metalstack.admin.v2.MachineService/Get",
93
+ ctx=ctx,
94
+ request=request,
95
+ response_class=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse,
96
+ method=method,
97
+ **kwargs,
98
+ )
99
+
100
+ def List(
101
+ self,
102
+ request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest,
103
+ *,
104
+ ctx: Optional[ClientContext] = None,
105
+ server_path_prefix: str = "",
106
+ **kwargs,
107
+ ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse:
108
+ method = "POST"
109
+ return self._make_request(
110
+ url=f"{server_path_prefix}/metalstack.admin.v2.MachineService/List",
111
+ ctx=ctx,
112
+ request=request,
113
+ response_class=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse,
114
+ method=method,
115
+ **kwargs,
116
+ )
117
+
118
+
119
+ class AsyncMachineServiceClient(AsyncConnecpyClient):
120
+ async def Get(
121
+ self,
122
+ request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
123
+ *,
124
+ ctx: Optional[ClientContext] = None,
125
+ server_path_prefix: str = "",
126
+ session: Union[httpx.AsyncClient, None] = None,
127
+ **kwargs,
128
+ ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse:
129
+ method = "POST"
130
+ return await self._make_request(
131
+ url=f"{server_path_prefix}/metalstack.admin.v2.MachineService/Get",
132
+ ctx=ctx,
133
+ request=request,
134
+ response_class=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse,
135
+ method=method,
136
+ session=session,
137
+ **kwargs,
138
+ )
139
+
140
+ async def List(
141
+ self,
142
+ request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest,
143
+ *,
144
+ ctx: Optional[ClientContext] = None,
145
+ server_path_prefix: str = "",
146
+ session: Union[httpx.AsyncClient, None] = None,
147
+ **kwargs,
148
+ ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse:
149
+ method = "POST"
150
+ return await self._make_request(
151
+ url=f"{server_path_prefix}/metalstack.admin.v2.MachineService/List",
152
+ ctx=ctx,
153
+ request=request,
154
+ response_class=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse,
155
+ method=method,
156
+ session=session,
157
+ **kwargs,
158
+ )
@@ -0,0 +1,54 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: metalstack/admin/v2/machine.proto
5
+ # Protobuf Python Version: 6.32.0
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
+ 32,
16
+ 0,
17
+ '',
18
+ 'metalstack/admin/v2/machine.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
+ from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
27
+ from metalstack.api.v2 import machine_pb2 as metalstack_dot_api_dot_v2_dot_machine__pb2
28
+
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/admin/v2/machine.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/machine.proto\"8\n\x18MachineServiceGetRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"Q\n\x19MachineServiceGetResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"R\n\x19MachineServiceListRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\"T\n\x1aMachineServiceListResponse\x12\x36\n\x08machines\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.MachineR\x08machines2\xf7\x01\n\x0eMachineService\x12p\n\x03Get\x12-.metalstack.admin.v2.MachineServiceGetRequest\x1a..metalstack.admin.v2.MachineServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12s\n\x04List\x12..metalstack.admin.v2.MachineServiceListRequest\x1a/.metalstack.admin.v2.MachineServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xd0\x01\n\x17\x63om.metalstack.admin.v2B\x0cMachineProtoP\x01Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\xa2\x02\x03MAX\xaa\x02\x13Metalstack.Admin.V2\xca\x02\x13Metalstack\\Admin\\V2\xe2\x02\x1fMetalstack\\Admin\\V2\\GPBMetadata\xea\x02\x15Metalstack::Admin::V2b\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.admin.v2.machine_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ _globals['DESCRIPTOR']._loaded_options = None
37
+ _globals['DESCRIPTOR']._serialized_options = b'\n\027com.metalstack.admin.v2B\014MachineProtoP\001Z9github.com/metal-stack/api/go/metalstack/admin/v2;adminv2\242\002\003MAX\252\002\023Metalstack.Admin.V2\312\002\023Metalstack\\Admin\\V2\342\002\037Metalstack\\Admin\\V2\\GPBMetadata\352\002\025Metalstack::Admin::V2'
38
+ _globals['_MACHINESERVICEGETREQUEST'].fields_by_name['uuid']._loaded_options = None
39
+ _globals['_MACHINESERVICEGETREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
40
+ _globals['_MACHINESERVICE'].methods_by_name['Get']._loaded_options = None
41
+ _globals['_MACHINESERVICE'].methods_by_name['Get']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
42
+ _globals['_MACHINESERVICE'].methods_by_name['List']._loaded_options = None
43
+ _globals['_MACHINESERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
44
+ _globals['_MACHINESERVICEGETREQUEST']._serialized_start=152
45
+ _globals['_MACHINESERVICEGETREQUEST']._serialized_end=208
46
+ _globals['_MACHINESERVICEGETRESPONSE']._serialized_start=210
47
+ _globals['_MACHINESERVICEGETRESPONSE']._serialized_end=291
48
+ _globals['_MACHINESERVICELISTREQUEST']._serialized_start=293
49
+ _globals['_MACHINESERVICELISTREQUEST']._serialized_end=375
50
+ _globals['_MACHINESERVICELISTRESPONSE']._serialized_start=377
51
+ _globals['_MACHINESERVICELISTRESPONSE']._serialized_end=461
52
+ _globals['_MACHINESERVICE']._serialized_start=464
53
+ _globals['_MACHINESERVICE']._serialized_end=711
54
+ # @@protoc_insertion_point(module_scope)
@@ -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",)