metal-stack-api 0.1.1__tar.gz → 0.1.3__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 (148) hide show
  1. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/PKG-INFO +1 -1
  2. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metal_stack_api.egg-info/PKG-INFO +1 -1
  3. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/machine_connect.py +65 -0
  4. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/machine_pb2.py +33 -25
  5. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/machine_pb2.pyi +12 -0
  6. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/token_pb2.py +18 -17
  7. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/token_pb2.pyi +5 -4
  8. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/audit_pb2.py +16 -16
  9. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/audit_pb2.pyi +4 -2
  10. metal_stack_api-0.1.3/metalstack/api/v2/common_pb2.py +73 -0
  11. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/common_pb2.pyi +4 -2
  12. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/component_pb2.py +6 -6
  13. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/component_pb2.pyi +4 -2
  14. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/filesystem_pb2.py +42 -28
  15. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/machine_pb2.py +109 -109
  16. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/predefined_rules_pb2.py +7 -1
  17. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/predefined_rules_pb2.pyi +6 -0
  18. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/project_pb2.py +58 -58
  19. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/project_pb2.pyi +4 -2
  20. metal_stack_api-0.1.3/metalstack/api/v2/tenant_pb2.py +153 -0
  21. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/tenant_pb2.pyi +4 -2
  22. metal_stack_api-0.1.3/metalstack/api/v2/token_pb2.py +186 -0
  23. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/token_pb2.pyi +18 -2
  24. metal_stack_api-0.1.1/metalstack/api/v2/common_pb2.py +0 -73
  25. metal_stack_api-0.1.1/metalstack/api/v2/tenant_pb2.py +0 -153
  26. metal_stack_api-0.1.1/metalstack/api/v2/token_pb2.py +0 -176
  27. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/README.md +0 -0
  28. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metal_stack_api.egg-info/SOURCES.txt +0 -0
  29. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metal_stack_api.egg-info/dependency_links.txt +0 -0
  30. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metal_stack_api.egg-info/requires.txt +0 -0
  31. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metal_stack_api.egg-info/top_level.txt +0 -0
  32. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/__init__.py +0 -0
  33. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/__init__.py +0 -0
  34. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/__init__.py +0 -0
  35. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/audit_connect.py +0 -0
  36. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/audit_pb2.py +0 -0
  37. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/audit_pb2.pyi +0 -0
  38. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/component_connect.py +0 -0
  39. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/component_pb2.py +0 -0
  40. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/component_pb2.pyi +0 -0
  41. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/filesystem_connect.py +0 -0
  42. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/filesystem_pb2.py +0 -0
  43. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/filesystem_pb2.pyi +0 -0
  44. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/image_connect.py +0 -0
  45. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/image_pb2.py +0 -0
  46. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/image_pb2.pyi +0 -0
  47. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/ip_connect.py +0 -0
  48. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/ip_pb2.py +0 -0
  49. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/ip_pb2.pyi +0 -0
  50. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/network_connect.py +0 -0
  51. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/network_pb2.py +0 -0
  52. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/network_pb2.pyi +0 -0
  53. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/partition_connect.py +0 -0
  54. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/partition_pb2.py +0 -0
  55. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/partition_pb2.pyi +0 -0
  56. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/project_connect.py +0 -0
  57. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/project_pb2.py +0 -0
  58. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/project_pb2.pyi +0 -0
  59. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/size_connect.py +0 -0
  60. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/size_imageconstraint_connect.py +0 -0
  61. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/size_imageconstraint_pb2.py +0 -0
  62. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/size_imageconstraint_pb2.pyi +0 -0
  63. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/size_pb2.py +0 -0
  64. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/size_pb2.pyi +0 -0
  65. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/size_reservation_connect.py +0 -0
  66. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/size_reservation_pb2.py +0 -0
  67. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/size_reservation_pb2.pyi +0 -0
  68. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/switch_connect.py +0 -0
  69. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/switch_pb2.py +0 -0
  70. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/switch_pb2.pyi +0 -0
  71. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/task_connect.py +0 -0
  72. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/task_pb2.py +0 -0
  73. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/task_pb2.pyi +0 -0
  74. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/tenant_connect.py +0 -0
  75. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/tenant_pb2.py +0 -0
  76. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/tenant_pb2.pyi +0 -0
  77. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/token_connect.py +0 -0
  78. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/vpn_connect.py +0 -0
  79. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/vpn_pb2.py +0 -0
  80. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/admin/v2/vpn_pb2.pyi +0 -0
  81. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/__init__.py +0 -0
  82. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/__init__.py +0 -0
  83. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/audit_connect.py +0 -0
  84. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/filesystem_connect.py +0 -0
  85. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/filesystem_pb2.pyi +0 -0
  86. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/health_connect.py +0 -0
  87. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/health_pb2.py +0 -0
  88. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/health_pb2.pyi +0 -0
  89. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/image_connect.py +0 -0
  90. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/image_pb2.py +0 -0
  91. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/image_pb2.pyi +0 -0
  92. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/ip_connect.py +0 -0
  93. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/ip_pb2.py +0 -0
  94. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/ip_pb2.pyi +0 -0
  95. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/machine_connect.py +0 -0
  96. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/machine_pb2.pyi +0 -0
  97. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/method_connect.py +0 -0
  98. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/method_pb2.py +0 -0
  99. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/method_pb2.pyi +0 -0
  100. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/network_connect.py +0 -0
  101. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/network_pb2.py +0 -0
  102. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/network_pb2.pyi +0 -0
  103. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/partition_connect.py +0 -0
  104. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/partition_pb2.py +0 -0
  105. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/partition_pb2.pyi +0 -0
  106. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/project_connect.py +0 -0
  107. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/size_connect.py +0 -0
  108. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/size_imageconstraint_connect.py +0 -0
  109. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/size_imageconstraint_pb2.py +0 -0
  110. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/size_imageconstraint_pb2.pyi +0 -0
  111. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/size_pb2.py +0 -0
  112. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/size_pb2.pyi +0 -0
  113. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/size_reservation_connect.py +0 -0
  114. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/size_reservation_pb2.py +0 -0
  115. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/size_reservation_pb2.pyi +0 -0
  116. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/switch_pb2.py +0 -0
  117. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/switch_pb2.pyi +0 -0
  118. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/tenant_connect.py +0 -0
  119. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/token_connect.py +0 -0
  120. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/user_connect.py +0 -0
  121. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/user_pb2.py +0 -0
  122. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/user_pb2.pyi +0 -0
  123. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/version_connect.py +0 -0
  124. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/version_pb2.py +0 -0
  125. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/version_pb2.pyi +0 -0
  126. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/vpn_pb2.py +0 -0
  127. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/api/v2/vpn_pb2.pyi +0 -0
  128. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/client/__init__.py +0 -0
  129. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/client/client.py +0 -0
  130. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/__init__.py +0 -0
  131. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/__init__.py +0 -0
  132. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/bmc_connect.py +0 -0
  133. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/bmc_pb2.py +0 -0
  134. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/bmc_pb2.pyi +0 -0
  135. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/boot_connect.py +0 -0
  136. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/boot_pb2.py +0 -0
  137. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/boot_pb2.pyi +0 -0
  138. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/component_connect.py +0 -0
  139. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/component_pb2.py +0 -0
  140. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/component_pb2.pyi +0 -0
  141. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/event_connect.py +0 -0
  142. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/event_pb2.py +0 -0
  143. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/event_pb2.pyi +0 -0
  144. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/switch_connect.py +0 -0
  145. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/switch_pb2.py +0 -0
  146. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/metalstack/infra/v2/switch_pb2.pyi +0 -0
  147. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/setup.cfg +0 -0
  148. {metal_stack_api-0.1.1 → metal_stack_api-0.1.3}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metal-stack-api
3
- Version: 0.1.1
3
+ Version: 0.1.3
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: metal-stack-api
3
- Version: 0.1.1
3
+ Version: 0.1.3
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
@@ -24,6 +24,9 @@ class MachineService(Protocol):
24
24
  async def list(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse:
25
25
  raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
26
26
 
27
+ async def delete(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse:
28
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
29
+
27
30
  async def b_m_c_command(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceBMCCommandRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceBMCCommandResponse:
28
31
  raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
29
32
 
@@ -65,6 +68,16 @@ class MachineServiceASGIApplication(ConnectASGIApplication[MachineService]):
65
68
  ),
66
69
  function=svc.list,
67
70
  ),
71
+ "/metalstack.admin.v2.MachineService/Delete": Endpoint.unary(
72
+ method=MethodInfo(
73
+ name="Delete",
74
+ service_name="metalstack.admin.v2.MachineService",
75
+ input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
76
+ output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse,
77
+ idempotency_level=IdempotencyLevel.UNKNOWN,
78
+ ),
79
+ function=svc.delete,
80
+ ),
68
81
  "/metalstack.admin.v2.MachineService/BMCCommand": Endpoint.unary(
69
82
  method=MethodInfo(
70
83
  name="BMCCommand",
@@ -169,6 +182,26 @@ class MachineServiceClient(ConnectClient):
169
182
  timeout_ms=timeout_ms,
170
183
  )
171
184
 
185
+ async def delete(
186
+ self,
187
+ request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
188
+ *,
189
+ headers: Headers | Mapping[str, str] | None = None,
190
+ timeout_ms: int | None = None,
191
+ ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse:
192
+ return await self.execute_unary(
193
+ request=request,
194
+ method=MethodInfo(
195
+ name="Delete",
196
+ service_name="metalstack.admin.v2.MachineService",
197
+ input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
198
+ output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse,
199
+ idempotency_level=IdempotencyLevel.UNKNOWN,
200
+ ),
201
+ headers=headers,
202
+ timeout_ms=timeout_ms,
203
+ )
204
+
172
205
  async def b_m_c_command(
173
206
  self,
174
207
  request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceBMCCommandRequest,
@@ -278,6 +311,8 @@ class MachineServiceSync(Protocol):
278
311
  raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
279
312
  def list(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse:
280
313
  raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
314
+ def delete(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse:
315
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
281
316
  def b_m_c_command(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceBMCCommandRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceBMCCommandResponse:
282
317
  raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
283
318
  def get_b_m_c(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetBMCRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetBMCResponse:
@@ -314,6 +349,16 @@ class MachineServiceWSGIApplication(ConnectWSGIApplication):
314
349
  ),
315
350
  function=service.list,
316
351
  ),
352
+ "/metalstack.admin.v2.MachineService/Delete": EndpointSync.unary(
353
+ method=MethodInfo(
354
+ name="Delete",
355
+ service_name="metalstack.admin.v2.MachineService",
356
+ input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
357
+ output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse,
358
+ idempotency_level=IdempotencyLevel.UNKNOWN,
359
+ ),
360
+ function=service.delete,
361
+ ),
317
362
  "/metalstack.admin.v2.MachineService/BMCCommand": EndpointSync.unary(
318
363
  method=MethodInfo(
319
364
  name="BMCCommand",
@@ -418,6 +463,26 @@ class MachineServiceClientSync(ConnectClientSync):
418
463
  timeout_ms=timeout_ms,
419
464
  )
420
465
 
466
+ def delete(
467
+ self,
468
+ request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
469
+ *,
470
+ headers: Headers | Mapping[str, str] | None = None,
471
+ timeout_ms: int | None = None,
472
+ ) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse:
473
+ return self.execute_unary(
474
+ request=request,
475
+ method=MethodInfo(
476
+ name="Delete",
477
+ service_name="metalstack.admin.v2.MachineService",
478
+ input=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteRequest,
479
+ output=metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceDeleteResponse,
480
+ idempotency_level=IdempotencyLevel.UNKNOWN,
481
+ ),
482
+ headers=headers,
483
+ timeout_ms=timeout_ms,
484
+ )
485
+
421
486
  def b_m_c_command(
422
487
  self,
423
488
  request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceBMCCommandRequest,
@@ -28,7 +28,7 @@ from metalstack.api.v2 import machine_pb2 as metalstack_dot_api_dot_v2_dot_machi
28
28
  from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
29
29
 
30
30
 
31
- 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\x1a(metalstack/api/v2/predefined_rules.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\"\x90\x01\n\x19MachineServiceListRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\x12.\n\tpartition\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01H\x00R\tpartition\x88\x01\x01\x42\x0c\n\n_partition\"T\n\x1aMachineServiceListResponse\x12\x36\n\x08machines\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.MachineR\x08machines\"\x89\x01\n\x1fMachineServiceBMCCommandRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12H\n\x07\x63ommand\x18\x02 \x01(\x0e\x32$.metalstack.api.v2.MachineBMCCommandB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07\x63ommand\"\"\n MachineServiceBMCCommandResponse\";\n\x1bMachineServiceGetBMCRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"s\n\x1cMachineServiceGetBMCResponse\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x35\n\x03\x62mc\x18\x02 \x01(\x0b\x32#.metalstack.api.v2.MachineBMCReportR\x03\x62mc\"X\n\x1cMachineServiceListBMCRequest\x12\x38\n\x05query\x18\x01 \x01(\x0b\x32\".metalstack.api.v2.MachineBMCQueryR\x05query\"\xf7\x01\n\x1dMachineServiceListBMCResponse\x12r\n\x0b\x62mc_reports\x18\x01 \x03(\x0b\x32\x42.metalstack.admin.v2.MachineServiceListBMCResponse.BmcReportsEntryB\r\xbaH\n\x9a\x01\x07\"\x05r\x03\xb0\x01\x01R\nbmcReports\x1a\x62\n\x0f\x42mcReportsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.metalstack.api.v2.MachineBMCReportR\x05value:\x02\x38\x01\"h\n$MachineServiceConsolePasswordRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\"\n\x06reason\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\n\x18\x80\x04R\x06reason\"a\n%MachineServiceConsolePasswordResponse\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1a\n\x08password\x18\x02 \x01(\tR\x08password\"\xad\x01\n\x1dMachineServiceSetStateRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12?\n\x05state\x18\x02 \x01(\x0e\x32\x1f.metalstack.api.v2.MachineStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x05state\x12-\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\"V\n\x1eMachineServiceSetStateResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine2\x8e\x07\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\x12\x84\x01\n\nBMCCommand\x12\x34.metalstack.admin.v2.MachineServiceBMCCommandRequest\x1a\x35.metalstack.admin.v2.MachineServiceBMCCommandResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06GetBMC\x12\x30.metalstack.admin.v2.MachineServiceGetBMCRequest\x1a\x31.metalstack.admin.v2.MachineServiceGetBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12|\n\x07ListBMC\x12\x31.metalstack.admin.v2.MachineServiceListBMCRequest\x1a\x32.metalstack.admin.v2.MachineServiceListBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12\x94\x01\n\x0f\x43onsolePassword\x12\x39.metalstack.admin.v2.MachineServiceConsolePasswordRequest\x1a:.metalstack.admin.v2.MachineServiceConsolePasswordResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12~\n\x08SetState\x12\x32.metalstack.admin.v2.MachineServiceSetStateRequest\x1a\x33.metalstack.admin.v2.MachineServiceSetStateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\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
+ 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\x1a(metalstack/api/v2/predefined_rules.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\"\x90\x01\n\x19MachineServiceListRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\x12.\n\tpartition\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01H\x00R\tpartition\x88\x01\x01\x42\x0c\n\n_partition\"T\n\x1aMachineServiceListResponse\x12\x36\n\x08machines\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.MachineR\x08machines\";\n\x1bMachineServiceDeleteRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"T\n\x1cMachineServiceDeleteResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine\"\x89\x01\n\x1fMachineServiceBMCCommandRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12H\n\x07\x63ommand\x18\x02 \x01(\x0e\x32$.metalstack.api.v2.MachineBMCCommandB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07\x63ommand\"\"\n MachineServiceBMCCommandResponse\";\n\x1bMachineServiceGetBMCRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\"s\n\x1cMachineServiceGetBMCResponse\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x35\n\x03\x62mc\x18\x02 \x01(\x0b\x32#.metalstack.api.v2.MachineBMCReportR\x03\x62mc\"X\n\x1cMachineServiceListBMCRequest\x12\x38\n\x05query\x18\x01 \x01(\x0b\x32\".metalstack.api.v2.MachineBMCQueryR\x05query\"\xf7\x01\n\x1dMachineServiceListBMCResponse\x12r\n\x0b\x62mc_reports\x18\x01 \x03(\x0b\x32\x42.metalstack.admin.v2.MachineServiceListBMCResponse.BmcReportsEntryB\r\xbaH\n\x9a\x01\x07\"\x05r\x03\xb0\x01\x01R\nbmcReports\x1a\x62\n\x0f\x42mcReportsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x39\n\x05value\x18\x02 \x01(\x0b\x32#.metalstack.api.v2.MachineBMCReportR\x05value:\x02\x38\x01\"h\n$MachineServiceConsolePasswordRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\"\n\x06reason\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\n\x18\x80\x04R\x06reason\"a\n%MachineServiceConsolePasswordResponse\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1a\n\x08password\x18\x02 \x01(\tR\x08password\"\xad\x01\n\x1dMachineServiceSetStateRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12?\n\x05state\x18\x02 \x01(\x0e\x32\x1f.metalstack.api.v2.MachineStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x05state\x12-\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\"V\n\x1eMachineServiceSetStateResponse\x12\x34\n\x07machine\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.MachineR\x07machine2\x88\x08\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\x12x\n\x06\x44\x65lete\x12\x30.metalstack.admin.v2.MachineServiceDeleteRequest\x1a\x31.metalstack.admin.v2.MachineServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x84\x01\n\nBMCCommand\x12\x34.metalstack.admin.v2.MachineServiceBMCCommandRequest\x1a\x35.metalstack.admin.v2.MachineServiceBMCCommandResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12y\n\x06GetBMC\x12\x30.metalstack.admin.v2.MachineServiceGetBMCRequest\x1a\x31.metalstack.admin.v2.MachineServiceGetBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12|\n\x07ListBMC\x12\x31.metalstack.admin.v2.MachineServiceListBMCRequest\x1a\x32.metalstack.admin.v2.MachineServiceListBMCResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12\x94\x01\n\x0f\x43onsolePassword\x12\x39.metalstack.admin.v2.MachineServiceConsolePasswordRequest\x1a:.metalstack.admin.v2.MachineServiceConsolePasswordResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12~\n\x08SetState\x12\x32.metalstack.admin.v2.MachineServiceSetStateRequest\x1a\x33.metalstack.admin.v2.MachineServiceSetStateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\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')
32
32
 
33
33
  _globals = globals()
34
34
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -40,6 +40,8 @@ if not _descriptor._USE_C_DESCRIPTORS:
40
40
  _globals['_MACHINESERVICEGETREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
41
41
  _globals['_MACHINESERVICELISTREQUEST'].fields_by_name['partition']._loaded_options = None
42
42
  _globals['_MACHINESERVICELISTREQUEST'].fields_by_name['partition']._serialized_options = b'\272H\010r\006\320\263\256\261\002\001'
43
+ _globals['_MACHINESERVICEDELETEREQUEST'].fields_by_name['uuid']._loaded_options = None
44
+ _globals['_MACHINESERVICEDELETEREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
43
45
  _globals['_MACHINESERVICEBMCCOMMANDREQUEST'].fields_by_name['uuid']._loaded_options = None
44
46
  _globals['_MACHINESERVICEBMCCOMMANDREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
45
47
  _globals['_MACHINESERVICEBMCCOMMANDREQUEST'].fields_by_name['command']._loaded_options = None
@@ -68,6 +70,8 @@ if not _descriptor._USE_C_DESCRIPTORS:
68
70
  _globals['_MACHINESERVICE'].methods_by_name['Get']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
69
71
  _globals['_MACHINESERVICE'].methods_by_name['List']._loaded_options = None
70
72
  _globals['_MACHINESERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
73
+ _globals['_MACHINESERVICE'].methods_by_name['Delete']._loaded_options = None
74
+ _globals['_MACHINESERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
71
75
  _globals['_MACHINESERVICE'].methods_by_name['BMCCommand']._loaded_options = None
72
76
  _globals['_MACHINESERVICE'].methods_by_name['BMCCommand']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
73
77
  _globals['_MACHINESERVICE'].methods_by_name['GetBMC']._loaded_options = None
@@ -86,28 +90,32 @@ if not _descriptor._USE_C_DESCRIPTORS:
86
90
  _globals['_MACHINESERVICELISTREQUEST']._serialized_end=480
87
91
  _globals['_MACHINESERVICELISTRESPONSE']._serialized_start=482
88
92
  _globals['_MACHINESERVICELISTRESPONSE']._serialized_end=566
89
- _globals['_MACHINESERVICEBMCCOMMANDREQUEST']._serialized_start=569
90
- _globals['_MACHINESERVICEBMCCOMMANDREQUEST']._serialized_end=706
91
- _globals['_MACHINESERVICEBMCCOMMANDRESPONSE']._serialized_start=708
92
- _globals['_MACHINESERVICEBMCCOMMANDRESPONSE']._serialized_end=742
93
- _globals['_MACHINESERVICEGETBMCREQUEST']._serialized_start=744
94
- _globals['_MACHINESERVICEGETBMCREQUEST']._serialized_end=803
95
- _globals['_MACHINESERVICEGETBMCRESPONSE']._serialized_start=805
96
- _globals['_MACHINESERVICEGETBMCRESPONSE']._serialized_end=920
97
- _globals['_MACHINESERVICELISTBMCREQUEST']._serialized_start=922
98
- _globals['_MACHINESERVICELISTBMCREQUEST']._serialized_end=1010
99
- _globals['_MACHINESERVICELISTBMCRESPONSE']._serialized_start=1013
100
- _globals['_MACHINESERVICELISTBMCRESPONSE']._serialized_end=1260
101
- _globals['_MACHINESERVICELISTBMCRESPONSE_BMCREPORTSENTRY']._serialized_start=1162
102
- _globals['_MACHINESERVICELISTBMCRESPONSE_BMCREPORTSENTRY']._serialized_end=1260
103
- _globals['_MACHINESERVICECONSOLEPASSWORDREQUEST']._serialized_start=1262
104
- _globals['_MACHINESERVICECONSOLEPASSWORDREQUEST']._serialized_end=1366
105
- _globals['_MACHINESERVICECONSOLEPASSWORDRESPONSE']._serialized_start=1368
106
- _globals['_MACHINESERVICECONSOLEPASSWORDRESPONSE']._serialized_end=1465
107
- _globals['_MACHINESERVICESETSTATEREQUEST']._serialized_start=1468
108
- _globals['_MACHINESERVICESETSTATEREQUEST']._serialized_end=1641
109
- _globals['_MACHINESERVICESETSTATERESPONSE']._serialized_start=1643
110
- _globals['_MACHINESERVICESETSTATERESPONSE']._serialized_end=1729
111
- _globals['_MACHINESERVICE']._serialized_start=1732
112
- _globals['_MACHINESERVICE']._serialized_end=2642
93
+ _globals['_MACHINESERVICEDELETEREQUEST']._serialized_start=568
94
+ _globals['_MACHINESERVICEDELETEREQUEST']._serialized_end=627
95
+ _globals['_MACHINESERVICEDELETERESPONSE']._serialized_start=629
96
+ _globals['_MACHINESERVICEDELETERESPONSE']._serialized_end=713
97
+ _globals['_MACHINESERVICEBMCCOMMANDREQUEST']._serialized_start=716
98
+ _globals['_MACHINESERVICEBMCCOMMANDREQUEST']._serialized_end=853
99
+ _globals['_MACHINESERVICEBMCCOMMANDRESPONSE']._serialized_start=855
100
+ _globals['_MACHINESERVICEBMCCOMMANDRESPONSE']._serialized_end=889
101
+ _globals['_MACHINESERVICEGETBMCREQUEST']._serialized_start=891
102
+ _globals['_MACHINESERVICEGETBMCREQUEST']._serialized_end=950
103
+ _globals['_MACHINESERVICEGETBMCRESPONSE']._serialized_start=952
104
+ _globals['_MACHINESERVICEGETBMCRESPONSE']._serialized_end=1067
105
+ _globals['_MACHINESERVICELISTBMCREQUEST']._serialized_start=1069
106
+ _globals['_MACHINESERVICELISTBMCREQUEST']._serialized_end=1157
107
+ _globals['_MACHINESERVICELISTBMCRESPONSE']._serialized_start=1160
108
+ _globals['_MACHINESERVICELISTBMCRESPONSE']._serialized_end=1407
109
+ _globals['_MACHINESERVICELISTBMCRESPONSE_BMCREPORTSENTRY']._serialized_start=1309
110
+ _globals['_MACHINESERVICELISTBMCRESPONSE_BMCREPORTSENTRY']._serialized_end=1407
111
+ _globals['_MACHINESERVICECONSOLEPASSWORDREQUEST']._serialized_start=1409
112
+ _globals['_MACHINESERVICECONSOLEPASSWORDREQUEST']._serialized_end=1513
113
+ _globals['_MACHINESERVICECONSOLEPASSWORDRESPONSE']._serialized_start=1515
114
+ _globals['_MACHINESERVICECONSOLEPASSWORDRESPONSE']._serialized_end=1612
115
+ _globals['_MACHINESERVICESETSTATEREQUEST']._serialized_start=1615
116
+ _globals['_MACHINESERVICESETSTATEREQUEST']._serialized_end=1788
117
+ _globals['_MACHINESERVICESETSTATERESPONSE']._serialized_start=1790
118
+ _globals['_MACHINESERVICESETSTATERESPONSE']._serialized_end=1876
119
+ _globals['_MACHINESERVICE']._serialized_start=1879
120
+ _globals['_MACHINESERVICE']._serialized_end=2911
113
121
  # @@protoc_insertion_point(module_scope)
@@ -36,6 +36,18 @@ class MachineServiceListResponse(_message.Message):
36
36
  machines: _containers.RepeatedCompositeFieldContainer[_machine_pb2.Machine]
37
37
  def __init__(self, machines: _Optional[_Iterable[_Union[_machine_pb2.Machine, _Mapping]]] = ...) -> None: ...
38
38
 
39
+ class MachineServiceDeleteRequest(_message.Message):
40
+ __slots__ = ("uuid",)
41
+ UUID_FIELD_NUMBER: _ClassVar[int]
42
+ uuid: str
43
+ def __init__(self, uuid: _Optional[str] = ...) -> None: ...
44
+
45
+ class MachineServiceDeleteResponse(_message.Message):
46
+ __slots__ = ("machine",)
47
+ MACHINE_FIELD_NUMBER: _ClassVar[int]
48
+ machine: _machine_pb2.Machine
49
+ def __init__(self, machine: _Optional[_Union[_machine_pb2.Machine, _Mapping]] = ...) -> None: ...
50
+
39
51
  class MachineServiceBMCCommandRequest(_message.Message):
40
52
  __slots__ = ("uuid", "command")
41
53
  UUID_FIELD_NUMBER: _ClassVar[int]
@@ -24,10 +24,11 @@ _sym_db = _symbol_database.Default()
24
24
 
25
25
  from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
26
  from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
27
+ from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
27
28
  from metalstack.api.v2 import token_pb2 as metalstack_dot_api_dot_v2_dot_token__pb2
28
29
 
29
30
 
30
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/admin/v2/token.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1dmetalstack/api/v2/token.proto\";\n\x17TokenServiceListRequest\x12\x17\n\x04user\x18\x01 \x01(\tH\x00R\x04user\x88\x01\x01\x42\x07\n\x05_user\"L\n\x18TokenServiceListResponse\x12\x30\n\x06tokens\x18\x01 \x03(\x0b\x32\x18.metalstack.api.v2.TokenR\x06tokens\"Y\n\x19TokenServiceRevokeRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1e\n\x04user\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x04R\x04user\"\x1c\n\x1aTokenServiceRevokeResponse\"\xa9\x01\n\x19TokenServiceCreateRequest\x12#\n\x04user\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x04H\x00R\x04user\x88\x01\x01\x12^\n\x14token_create_request\x18\x02 \x01(\x0b\x32,.metalstack.api.v2.TokenServiceCreateRequestR\x12tokenCreateRequestB\x07\n\x05_user\"d\n\x1aTokenServiceCreateResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret2\xeb\x02\n\x0cTokenService\x12o\n\x04List\x12,.metalstack.admin.v2.TokenServiceListRequest\x1a-.metalstack.admin.v2.TokenServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12t\n\x06Revoke\x12..metalstack.admin.v2.TokenServiceRevokeRequest\x1a/.metalstack.admin.v2.TokenServiceRevokeResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12t\n\x06\x43reate\x12..metalstack.admin.v2.TokenServiceCreateRequest\x1a/.metalstack.admin.v2.TokenServiceCreateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x42\xce\x01\n\x17\x63om.metalstack.admin.v2B\nTokenProtoP\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
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmetalstack/admin/v2/token.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\x1a\x1dmetalstack/api/v2/token.proto\"N\n\x17TokenServiceListRequest\x12\x33\n\x05query\x18\x01 \x01(\x0b\x32\x1d.metalstack.api.v2.TokenQueryR\x05query\"L\n\x18TokenServiceListResponse\x12\x30\n\x06tokens\x18\x01 \x03(\x0b\x32\x18.metalstack.api.v2.TokenR\x06tokens\"Z\n\x19TokenServiceRevokeRequest\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x1f\n\x04user\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xf8\xb3\xae\xb1\x02\x01R\x04user\"\x1c\n\x1aTokenServiceRevokeResponse\"\xaa\x01\n\x19TokenServiceCreateRequest\x12$\n\x04user\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xf8\xb3\xae\xb1\x02\x01H\x00R\x04user\x88\x01\x01\x12^\n\x14token_create_request\x18\x02 \x01(\x0b\x32,.metalstack.api.v2.TokenServiceCreateRequestR\x12tokenCreateRequestB\x07\n\x05_user\"d\n\x1aTokenServiceCreateResponse\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\x12\x16\n\x06secret\x18\x02 \x01(\tR\x06secret2\xeb\x02\n\x0cTokenService\x12o\n\x04List\x12,.metalstack.admin.v2.TokenServiceListRequest\x1a-.metalstack.admin.v2.TokenServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x01\x12t\n\x06Revoke\x12..metalstack.admin.v2.TokenServiceRevokeRequest\x1a/.metalstack.admin.v2.TokenServiceRevokeResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12t\n\x06\x43reate\x12..metalstack.admin.v2.TokenServiceCreateRequest\x1a/.metalstack.admin.v2.TokenServiceCreateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x42\xce\x01\n\x17\x63om.metalstack.admin.v2B\nTokenProtoP\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
 
32
33
  _globals = globals()
33
34
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -38,27 +39,27 @@ if not _descriptor._USE_C_DESCRIPTORS:
38
39
  _globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['uuid']._loaded_options = None
39
40
  _globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
40
41
  _globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['user']._loaded_options = None
41
- _globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['user']._serialized_options = b'\272H\007r\005\020\002\030\200\004'
42
+ _globals['_TOKENSERVICEREVOKEREQUEST'].fields_by_name['user']._serialized_options = b'\272H\010r\006\370\263\256\261\002\001'
42
43
  _globals['_TOKENSERVICECREATEREQUEST'].fields_by_name['user']._loaded_options = None
43
- _globals['_TOKENSERVICECREATEREQUEST'].fields_by_name['user']._serialized_options = b'\272H\007r\005\020\002\030\200\004'
44
+ _globals['_TOKENSERVICECREATEREQUEST'].fields_by_name['user']._serialized_options = b'\272H\010r\006\370\263\256\261\002\001'
44
45
  _globals['_TOKENSERVICE'].methods_by_name['List']._loaded_options = None
45
46
  _globals['_TOKENSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\001'
46
47
  _globals['_TOKENSERVICE'].methods_by_name['Revoke']._loaded_options = None
47
48
  _globals['_TOKENSERVICE'].methods_by_name['Revoke']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
48
49
  _globals['_TOKENSERVICE'].methods_by_name['Create']._loaded_options = None
49
50
  _globals['_TOKENSERVICE'].methods_by_name['Create']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
50
- _globals['_TOKENSERVICELISTREQUEST']._serialized_start=148
51
- _globals['_TOKENSERVICELISTREQUEST']._serialized_end=207
52
- _globals['_TOKENSERVICELISTRESPONSE']._serialized_start=209
53
- _globals['_TOKENSERVICELISTRESPONSE']._serialized_end=285
54
- _globals['_TOKENSERVICEREVOKEREQUEST']._serialized_start=287
55
- _globals['_TOKENSERVICEREVOKEREQUEST']._serialized_end=376
56
- _globals['_TOKENSERVICEREVOKERESPONSE']._serialized_start=378
57
- _globals['_TOKENSERVICEREVOKERESPONSE']._serialized_end=406
58
- _globals['_TOKENSERVICECREATEREQUEST']._serialized_start=409
59
- _globals['_TOKENSERVICECREATEREQUEST']._serialized_end=578
60
- _globals['_TOKENSERVICECREATERESPONSE']._serialized_start=580
61
- _globals['_TOKENSERVICECREATERESPONSE']._serialized_end=680
62
- _globals['_TOKENSERVICE']._serialized_start=683
63
- _globals['_TOKENSERVICE']._serialized_end=1046
51
+ _globals['_TOKENSERVICELISTREQUEST']._serialized_start=190
52
+ _globals['_TOKENSERVICELISTREQUEST']._serialized_end=268
53
+ _globals['_TOKENSERVICELISTRESPONSE']._serialized_start=270
54
+ _globals['_TOKENSERVICELISTRESPONSE']._serialized_end=346
55
+ _globals['_TOKENSERVICEREVOKEREQUEST']._serialized_start=348
56
+ _globals['_TOKENSERVICEREVOKEREQUEST']._serialized_end=438
57
+ _globals['_TOKENSERVICEREVOKERESPONSE']._serialized_start=440
58
+ _globals['_TOKENSERVICEREVOKERESPONSE']._serialized_end=468
59
+ _globals['_TOKENSERVICECREATEREQUEST']._serialized_start=471
60
+ _globals['_TOKENSERVICECREATEREQUEST']._serialized_end=641
61
+ _globals['_TOKENSERVICECREATERESPONSE']._serialized_start=643
62
+ _globals['_TOKENSERVICECREATERESPONSE']._serialized_end=743
63
+ _globals['_TOKENSERVICE']._serialized_start=746
64
+ _globals['_TOKENSERVICE']._serialized_end=1109
64
65
  # @@protoc_insertion_point(module_scope)
@@ -1,5 +1,6 @@
1
1
  from buf.validate import validate_pb2 as _validate_pb2
2
2
  from metalstack.api.v2 import common_pb2 as _common_pb2
3
+ from metalstack.api.v2 import predefined_rules_pb2 as _predefined_rules_pb2
3
4
  from metalstack.api.v2 import token_pb2 as _token_pb2
4
5
  from google.protobuf.internal import containers as _containers
5
6
  from google.protobuf import descriptor as _descriptor
@@ -10,10 +11,10 @@ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
10
11
  DESCRIPTOR: _descriptor.FileDescriptor
11
12
 
12
13
  class TokenServiceListRequest(_message.Message):
13
- __slots__ = ("user",)
14
- USER_FIELD_NUMBER: _ClassVar[int]
15
- user: str
16
- def __init__(self, user: _Optional[str] = ...) -> None: ...
14
+ __slots__ = ("query",)
15
+ QUERY_FIELD_NUMBER: _ClassVar[int]
16
+ query: _token_pb2.TokenQuery
17
+ def __init__(self, query: _Optional[_Union[_token_pb2.TokenQuery, _Mapping]] = ...) -> None: ...
17
18
 
18
19
  class TokenServiceListResponse(_message.Message):
19
20
  __slots__ = ("tokens",)
@@ -28,7 +28,7 @@ from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common
28
28
  from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
29
29
 
30
30
 
31
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dmetalstack/api/v2/audit.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\"\xfd\x02\n\nAuditTrace\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x38\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\x12\x12\n\x04user\x18\x03 \x01(\tR\x04user\x12\x16\n\x06tenant\x18\x04 \x01(\tR\x06tenant\x12\x1d\n\x07project\x18\x05 \x01(\tH\x00R\x07project\x88\x01\x01\x12\x16\n\x06method\x18\x06 \x01(\tR\x06method\x12\x17\n\x04\x62ody\x18\x07 \x01(\tH\x01R\x04\x62ody\x88\x01\x01\x12\x1b\n\tsource_ip\x18\x08 \x01(\tR\x08sourceIp\x12$\n\x0bresult_code\x18\t \x01(\x05H\x02R\nresultCode\x88\x01\x01\x12\x33\n\x05phase\x18\n \x01(\x0e\x32\x1d.metalstack.api.v2.AuditPhaseR\x05phaseB\n\n\x08_projectB\x07\n\x05_bodyB\x0e\n\x0c_result_code\"\xeb\x04\n\nAuditQuery\x12!\n\x04uuid\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x00R\x04uuid\x88\x01\x01\x12\x33\n\x04\x66rom\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\x04\x66rom\x88\x01\x01\x12/\n\x02to\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02R\x02to\x88\x01\x01\x12$\n\x04user\x18\x05 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x03R\x04user\x88\x01\x01\x12\'\n\x07project\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x04R\x07project\x88\x01\x01\x12\'\n\x06method\x18\x07 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02H\x05R\x06method\x88\x01\x01\x12)\n\tsource_ip\x18\x08 \x01(\tB\x07\xbaH\x04r\x02p\x01H\x06R\x08sourceIp\x88\x01\x01\x12-\n\x0bresult_code\x18\t \x01(\x05\x42\x07\xbaH\x04\x1a\x02(\x00H\x07R\nresultCode\x88\x01\x01\x12#\n\x04\x62ody\x18\n \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02H\x08R\x04\x62ody\x88\x01\x01\x12%\n\x05limit\x18\x0b \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xe8\x07 \x00H\tR\x05limit\x88\x01\x01\x12\x42\n\x05phase\x18\x0c \x01(\x0e\x32\x1d.metalstack.api.v2.AuditPhaseB\x08\xbaH\x05\x82\x01\x02\x10\x01H\nR\x05phase\x88\x01\x01\x42\x07\n\x05_uuidB\x07\n\x05_fromB\x05\n\x03_toB\x07\n\x05_userB\n\n\x08_projectB\t\n\x07_methodB\x0c\n\n_source_ipB\x0e\n\x0c_result_codeB\x07\n\x05_bodyB\x08\n\x06_limitB\x08\n\x06_phase\"q\n\x17\x41uditServiceListRequest\x12!\n\x05login\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x05login\x12\x33\n\x05query\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.AuditQueryR\x05query\"Q\n\x18\x41uditServiceListResponse\x12\x35\n\x06traces\x18\x01 \x03(\x0b\x32\x1d.metalstack.api.v2.AuditTraceR\x06traces\"\xa7\x01\n\x16\x41uditServiceGetRequest\x12!\n\x05login\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x05login\x12\x1c\n\x04uuid\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x42\n\x05phase\x18\x03 \x01(\x0e\x32\x1d.metalstack.api.v2.AuditPhaseB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x05phase\x88\x01\x01\x42\x08\n\x06_phase\"N\n\x17\x41uditServiceGetResponse\x12\x33\n\x05trace\x18\x01 \x01(\x0b\x32\x1d.metalstack.api.v2.AuditTraceR\x05trace*\\\n\nAuditPhase\x12\x1b\n\x17\x41UDIT_PHASE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x41UDIT_PHASE_REQUEST\x10\x01\x12\x18\n\x14\x41UDIT_PHASE_RESPONSE\x10\x02\x32\xe3\x01\n\x0c\x41uditService\x12g\n\x03Get\x12).metalstack.api.v2.AuditServiceGetRequest\x1a*.metalstack.api.v2.AuditServiceGetResponse\"\t\xc2\xf3\x18\x01\x01\xe0\xf3\x18\x02\x12j\n\x04List\x12*.metalstack.api.v2.AuditServiceListRequest\x1a+.metalstack.api.v2.AuditServiceListResponse\"\t\xc2\xf3\x18\x01\x01\xe0\xf3\x18\x02\x42\xc0\x01\n\x15\x63om.metalstack.api.v2B\nAuditProtoP\x01Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\xa2\x02\x03MAX\xaa\x02\x11Metalstack.Api.V2\xca\x02\x11Metalstack\\Api\\V2\xe2\x02\x1dMetalstack\\Api\\V2\\GPBMetadata\xea\x02\x13Metalstack::Api::V2b\x06proto3')
31
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dmetalstack/api/v2/audit.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\"\xaa\x03\n\nAuditTrace\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x38\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\ttimestamp\x12\x12\n\x04user\x18\x03 \x01(\tR\x04user\x12\x16\n\x06tenant\x18\x04 \x01(\tR\x06tenant\x12\x1d\n\x07project\x18\x05 \x01(\tH\x00R\x07project\x88\x01\x01\x12\x16\n\x06method\x18\x06 \x01(\tR\x06method\x12\x17\n\x04\x62ody\x18\x07 \x01(\tH\x01R\x04\x62ody\x88\x01\x01\x12\x1b\n\tsource_ip\x18\x08 \x01(\tR\x08sourceIp\x12$\n\x0bresult_code\x18\t \x01(\x05H\x02R\nresultCode\x88\x01\x01\x12\x33\n\x05phase\x18\n \x01(\x0e\x32\x1d.metalstack.api.v2.AuditPhaseR\x05phase\x12+\n\x04meta\x18\x0b \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04metaB\n\n\x08_projectB\x07\n\x05_bodyB\x0e\n\x0c_result_code\"\xeb\x04\n\nAuditQuery\x12!\n\x04uuid\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x00R\x04uuid\x88\x01\x01\x12\x33\n\x04\x66rom\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01R\x04\x66rom\x88\x01\x01\x12/\n\x02to\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x02R\x02to\x88\x01\x01\x12$\n\x04user\x18\x05 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x03R\x04user\x88\x01\x01\x12\'\n\x07project\x18\x06 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x04R\x07project\x88\x01\x01\x12\'\n\x06method\x18\x07 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02H\x05R\x06method\x88\x01\x01\x12)\n\tsource_ip\x18\x08 \x01(\tB\x07\xbaH\x04r\x02p\x01H\x06R\x08sourceIp\x88\x01\x01\x12-\n\x0bresult_code\x18\t \x01(\x05\x42\x07\xbaH\x04\x1a\x02(\x00H\x07R\nresultCode\x88\x01\x01\x12#\n\x04\x62ody\x18\n \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x02H\x08R\x04\x62ody\x88\x01\x01\x12%\n\x05limit\x18\x0b \x01(\x05\x42\n\xbaH\x07\x1a\x05\x18\xe8\x07 \x00H\tR\x05limit\x88\x01\x01\x12\x42\n\x05phase\x18\x0c \x01(\x0e\x32\x1d.metalstack.api.v2.AuditPhaseB\x08\xbaH\x05\x82\x01\x02\x10\x01H\nR\x05phase\x88\x01\x01\x42\x07\n\x05_uuidB\x07\n\x05_fromB\x05\n\x03_toB\x07\n\x05_userB\n\n\x08_projectB\t\n\x07_methodB\x0c\n\n_source_ipB\x0e\n\x0c_result_codeB\x07\n\x05_bodyB\x08\n\x06_limitB\x08\n\x06_phase\"q\n\x17\x41uditServiceListRequest\x12!\n\x05login\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x05login\x12\x33\n\x05query\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.AuditQueryR\x05query\"Q\n\x18\x41uditServiceListResponse\x12\x35\n\x06traces\x18\x01 \x03(\x0b\x32\x1d.metalstack.api.v2.AuditTraceR\x06traces\"\xa7\x01\n\x16\x41uditServiceGetRequest\x12!\n\x05login\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x05login\x12\x1c\n\x04uuid\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12\x42\n\x05phase\x18\x03 \x01(\x0e\x32\x1d.metalstack.api.v2.AuditPhaseB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x05phase\x88\x01\x01\x42\x08\n\x06_phase\"N\n\x17\x41uditServiceGetResponse\x12\x33\n\x05trace\x18\x01 \x01(\x0b\x32\x1d.metalstack.api.v2.AuditTraceR\x05trace*\\\n\nAuditPhase\x12\x1b\n\x17\x41UDIT_PHASE_UNSPECIFIED\x10\x00\x12\x17\n\x13\x41UDIT_PHASE_REQUEST\x10\x01\x12\x18\n\x14\x41UDIT_PHASE_RESPONSE\x10\x02\x32\xe3\x01\n\x0c\x41uditService\x12g\n\x03Get\x12).metalstack.api.v2.AuditServiceGetRequest\x1a*.metalstack.api.v2.AuditServiceGetResponse\"\t\xc2\xf3\x18\x01\x01\xe0\xf3\x18\x02\x12j\n\x04List\x12*.metalstack.api.v2.AuditServiceListRequest\x1a+.metalstack.api.v2.AuditServiceListResponse\"\t\xc2\xf3\x18\x01\x01\xe0\xf3\x18\x02\x42\xc0\x01\n\x15\x63om.metalstack.api.v2B\nAuditProtoP\x01Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\xa2\x02\x03MAX\xaa\x02\x11Metalstack.Api.V2\xca\x02\x11Metalstack\\Api\\V2\xe2\x02\x1dMetalstack\\Api\\V2\\GPBMetadata\xea\x02\x13Metalstack::Api::V2b\x06proto3')
32
32
 
33
33
  _globals = globals()
34
34
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -68,20 +68,20 @@ if not _descriptor._USE_C_DESCRIPTORS:
68
68
  _globals['_AUDITSERVICE'].methods_by_name['Get']._serialized_options = b'\302\363\030\001\001\340\363\030\002'
69
69
  _globals['_AUDITSERVICE'].methods_by_name['List']._loaded_options = None
70
70
  _globals['_AUDITSERVICE'].methods_by_name['List']._serialized_options = b'\302\363\030\001\001\340\363\030\002'
71
- _globals['_AUDITPHASE']._serialized_start=1642
72
- _globals['_AUDITPHASE']._serialized_end=1734
71
+ _globals['_AUDITPHASE']._serialized_start=1687
72
+ _globals['_AUDITPHASE']._serialized_end=1779
73
73
  _globals['_AUDITTRACE']._serialized_start=189
74
- _globals['_AUDITTRACE']._serialized_end=570
75
- _globals['_AUDITQUERY']._serialized_start=573
76
- _globals['_AUDITQUERY']._serialized_end=1192
77
- _globals['_AUDITSERVICELISTREQUEST']._serialized_start=1194
78
- _globals['_AUDITSERVICELISTREQUEST']._serialized_end=1307
79
- _globals['_AUDITSERVICELISTRESPONSE']._serialized_start=1309
80
- _globals['_AUDITSERVICELISTRESPONSE']._serialized_end=1390
81
- _globals['_AUDITSERVICEGETREQUEST']._serialized_start=1393
82
- _globals['_AUDITSERVICEGETREQUEST']._serialized_end=1560
83
- _globals['_AUDITSERVICEGETRESPONSE']._serialized_start=1562
84
- _globals['_AUDITSERVICEGETRESPONSE']._serialized_end=1640
85
- _globals['_AUDITSERVICE']._serialized_start=1737
86
- _globals['_AUDITSERVICE']._serialized_end=1964
74
+ _globals['_AUDITTRACE']._serialized_end=615
75
+ _globals['_AUDITQUERY']._serialized_start=618
76
+ _globals['_AUDITQUERY']._serialized_end=1237
77
+ _globals['_AUDITSERVICELISTREQUEST']._serialized_start=1239
78
+ _globals['_AUDITSERVICELISTREQUEST']._serialized_end=1352
79
+ _globals['_AUDITSERVICELISTRESPONSE']._serialized_start=1354
80
+ _globals['_AUDITSERVICELISTRESPONSE']._serialized_end=1435
81
+ _globals['_AUDITSERVICEGETREQUEST']._serialized_start=1438
82
+ _globals['_AUDITSERVICEGETREQUEST']._serialized_end=1605
83
+ _globals['_AUDITSERVICEGETRESPONSE']._serialized_start=1607
84
+ _globals['_AUDITSERVICEGETRESPONSE']._serialized_end=1685
85
+ _globals['_AUDITSERVICE']._serialized_start=1782
86
+ _globals['_AUDITSERVICE']._serialized_end=2009
87
87
  # @@protoc_insertion_point(module_scope)
@@ -23,7 +23,7 @@ AUDIT_PHASE_REQUEST: AuditPhase
23
23
  AUDIT_PHASE_RESPONSE: AuditPhase
24
24
 
25
25
  class AuditTrace(_message.Message):
26
- __slots__ = ("uuid", "timestamp", "user", "tenant", "project", "method", "body", "source_ip", "result_code", "phase")
26
+ __slots__ = ("uuid", "timestamp", "user", "tenant", "project", "method", "body", "source_ip", "result_code", "phase", "meta")
27
27
  UUID_FIELD_NUMBER: _ClassVar[int]
28
28
  TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
29
29
  USER_FIELD_NUMBER: _ClassVar[int]
@@ -34,6 +34,7 @@ class AuditTrace(_message.Message):
34
34
  SOURCE_IP_FIELD_NUMBER: _ClassVar[int]
35
35
  RESULT_CODE_FIELD_NUMBER: _ClassVar[int]
36
36
  PHASE_FIELD_NUMBER: _ClassVar[int]
37
+ META_FIELD_NUMBER: _ClassVar[int]
37
38
  uuid: str
38
39
  timestamp: _timestamp_pb2.Timestamp
39
40
  user: str
@@ -44,7 +45,8 @@ class AuditTrace(_message.Message):
44
45
  source_ip: str
45
46
  result_code: int
46
47
  phase: AuditPhase
47
- 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: ...
48
+ meta: _common_pb2.Meta
49
+ 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]] = ..., meta: _Optional[_Union[_common_pb2.Meta, _Mapping]] = ...) -> None: ...
48
50
 
49
51
  class AuditQuery(_message.Message):
50
52
  __slots__ = ("uuid", "to", "user", "project", "method", "source_ip", "result_code", "body", "limit", "phase")
@@ -0,0 +1,73 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: metalstack/api/v2/common.proto
5
+ # Protobuf Python Version: 7.35.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
+ 7,
15
+ 35,
16
+ 0,
17
+ '',
18
+ 'metalstack/api/v2/common.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 google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
27
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
28
+ from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
29
+
30
+
31
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emetalstack/api/v2/common.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a google/protobuf/descriptor.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a(metalstack/api/v2/predefined_rules.proto\"O\n\x06Paging\x12\x17\n\x04page\x18\x01 \x01(\x04H\x00R\x04page\x88\x01\x01\x12\x19\n\x05\x63ount\x18\x02 \x01(\x04H\x01R\x05\x63ount\x88\x01\x01\x42\x07\n\x05_pageB\x08\n\x06_count\"\xa2\x01\n\x06Labels\x12]\n\x06labels\x18\x01 \x03(\x0b\x32%.metalstack.api.v2.Labels.LabelsEntryB\x1e\xbaH\x1b\x9a\x01\x18\"\x07r\x05\x10\x01\x18\x80\x02*\x07r\x05\x10\x00\x18\x80\x02\xb8\x95\xb8\xb1\x02\x01R\x06labels\x1a\x39\n\x0bLabelsEntry\x12\x10\n\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n\x05value\x18\x02 \x01(\tR\x05value:\x02\x38\x01\"\xa3\x02\n\x04Meta\x12\x36\n\x06labels\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsH\x00R\x06labels\x88\x01\x01\x12\x39\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tcreatedAt\x12\x39\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x1e\n\ngeneration\x18\x04 \x01(\x04R\ngeneration\x12-\n\x10\x64\x65letion_task_id\x18\x05 \x01(\tH\x01R\x0e\x64\x65letionTaskId\x88\x01\x01\x42\t\n\x07_labelsB\x13\n\x11_deletion_task_id\"Y\n\x0cUpdateLabels\x12\x31\n\x06update\x18\x01 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsR\x06update\x12\x16\n\x06remove\x18\x02 \x03(\tR\x06remove\"\xaa\x01\n\nUpdateMeta\x12\x39\n\nupdated_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x61\n\x10locking_strategy\x18\x02 \x01(\x0e\x32,.metalstack.api.v2.OptimisticLockingStrategyB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x0flockingStrategy*\x87\x01\n\nTenantRole\x12\x1b\n\x17TENANT_ROLE_UNSPECIFIED\x10\x00\x12\x15\n\x11TENANT_ROLE_OWNER\x10\x01\x12\x16\n\x12TENANT_ROLE_EDITOR\x10\x02\x12\x16\n\x12TENANT_ROLE_VIEWER\x10\x03\x12\x15\n\x11TENANT_ROLE_GUEST\x10\x04*u\n\x0bProjectRole\x12\x1c\n\x18PROJECT_ROLE_UNSPECIFIED\x10\x00\x12\x16\n\x12PROJECT_ROLE_OWNER\x10\x01\x12\x17\n\x13PROJECT_ROLE_EDITOR\x10\x02\x12\x17\n\x13PROJECT_ROLE_VIEWER\x10\x03*U\n\tAdminRole\x12\x1a\n\x16\x41\x44MIN_ROLE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41\x44MIN_ROLE_EDITOR\x10\x01\x12\x15\n\x11\x41\x44MIN_ROLE_VIEWER\x10\x02*U\n\tInfraRole\x12\x1a\n\x16INFRA_ROLE_UNSPECIFIED\x10\x00\x12\x15\n\x11INFRA_ROLE_EDITOR\x10\x01\x12\x15\n\x11INFRA_ROLE_VIEWER\x10\x02*]\n\x0bMachineRole\x12\x1c\n\x18MACHINE_ROLE_UNSPECIFIED\x10\x00\x12\x17\n\x13MACHINE_ROLE_EDITOR\x10\x01\x12\x17\n\x13MACHINE_ROLE_VIEWER\x10\x02*T\n\nVisibility\x12\x1a\n\x16VISIBILITY_UNSPECIFIED\x10\x00\x12\x15\n\x11VISIBILITY_PUBLIC\x10\x01\x12\x13\n\x0fVISIBILITY_SELF\x10\x02*R\n\x08\x41uditing\x12\x18\n\x14\x41UDITING_UNSPECIFIED\x10\x00\x12\x15\n\x11\x41UDITING_INCLUDED\x10\x01\x12\x15\n\x11\x41UDITING_EXCLUDED\x10\x02*\x98\x01\n\x19OptimisticLockingStrategy\x12+\n\'OPTIMISTIC_LOCKING_STRATEGY_UNSPECIFIED\x10\x00\x12&\n\"OPTIMISTIC_LOCKING_STRATEGY_CLIENT\x10\x01\x12&\n\"OPTIMISTIC_LOCKING_STRATEGY_SERVER\x10\x02:b\n\x0ctenant_roles\x12\x1e.google.protobuf.MethodOptions\x18\xb8\x8e\x03 \x03(\x0e\x32\x1d.metalstack.api.v2.TenantRoleR\x0btenantRoles:e\n\rproject_roles\x12\x1e.google.protobuf.MethodOptions\x18\xb9\x8e\x03 \x03(\x0e\x32\x1e.metalstack.api.v2.ProjectRoleR\x0cprojectRoles:_\n\x0b\x61\x64min_roles\x12\x1e.google.protobuf.MethodOptions\x18\xba\x8e\x03 \x03(\x0e\x32\x1c.metalstack.api.v2.AdminRoleR\nadminRoles:_\n\nvisibility\x12\x1e.google.protobuf.MethodOptions\x18\xbb\x8e\x03 \x01(\x0e\x32\x1d.metalstack.api.v2.VisibilityR\nvisibility:Y\n\x08\x61uditing\x12\x1e.google.protobuf.MethodOptions\x18\xbc\x8e\x03 \x01(\x0e\x32\x1b.metalstack.api.v2.AuditingR\x08\x61uditing:_\n\x0binfra_roles\x12\x1e.google.protobuf.MethodOptions\x18\xbd\x8e\x03 \x03(\x0e\x32\x1c.metalstack.api.v2.InfraRoleR\ninfraRoles:e\n\rmachine_roles\x12\x1e.google.protobuf.MethodOptions\x18\xbe\x8e\x03 \x03(\x0e\x32\x1e.metalstack.api.v2.MachineRoleR\x0cmachineRoles:O\n\x11\x65num_string_value\x12!.google.protobuf.EnumValueOptions\x18\xa0\x96\x03 \x01(\tR\x0f\x65numStringValueB\xc1\x01\n\x15\x63om.metalstack.api.v2B\x0b\x43ommonProtoP\x01Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\xa2\x02\x03MAX\xaa\x02\x11Metalstack.Api.V2\xca\x02\x11Metalstack\\Api\\V2\xe2\x02\x1dMetalstack\\Api\\V2\\GPBMetadata\xea\x02\x13Metalstack::Api::V2b\x06proto3')
32
+
33
+ _globals = globals()
34
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
35
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'metalstack.api.v2.common_pb2', _globals)
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ _globals['DESCRIPTOR']._loaded_options = None
38
+ _globals['DESCRIPTOR']._serialized_options = b'\n\025com.metalstack.api.v2B\013CommonProtoP\001Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\242\002\003MAX\252\002\021Metalstack.Api.V2\312\002\021Metalstack\\Api\\V2\342\002\035Metalstack\\Api\\V2\\GPBMetadata\352\002\023Metalstack::Api::V2'
39
+ _globals['_LABELS_LABELSENTRY']._loaded_options = None
40
+ _globals['_LABELS_LABELSENTRY']._serialized_options = b'8\001'
41
+ _globals['_LABELS'].fields_by_name['labels']._loaded_options = None
42
+ _globals['_LABELS'].fields_by_name['labels']._serialized_options = b'\272H\033\232\001\030\"\007r\005\020\001\030\200\002*\007r\005\020\000\030\200\002\270\225\270\261\002\001'
43
+ _globals['_UPDATEMETA'].fields_by_name['locking_strategy']._loaded_options = None
44
+ _globals['_UPDATEMETA'].fields_by_name['locking_strategy']._serialized_options = b'\272H\005\202\001\002\020\001'
45
+ _globals['_TENANTROLE']._serialized_start=996
46
+ _globals['_TENANTROLE']._serialized_end=1131
47
+ _globals['_PROJECTROLE']._serialized_start=1133
48
+ _globals['_PROJECTROLE']._serialized_end=1250
49
+ _globals['_ADMINROLE']._serialized_start=1252
50
+ _globals['_ADMINROLE']._serialized_end=1337
51
+ _globals['_INFRAROLE']._serialized_start=1339
52
+ _globals['_INFRAROLE']._serialized_end=1424
53
+ _globals['_MACHINEROLE']._serialized_start=1426
54
+ _globals['_MACHINEROLE']._serialized_end=1519
55
+ _globals['_VISIBILITY']._serialized_start=1521
56
+ _globals['_VISIBILITY']._serialized_end=1605
57
+ _globals['_AUDITING']._serialized_start=1607
58
+ _globals['_AUDITING']._serialized_end=1689
59
+ _globals['_OPTIMISTICLOCKINGSTRATEGY']._serialized_start=1692
60
+ _globals['_OPTIMISTICLOCKINGSTRATEGY']._serialized_end=1844
61
+ _globals['_PAGING']._serialized_start=191
62
+ _globals['_PAGING']._serialized_end=270
63
+ _globals['_LABELS']._serialized_start=273
64
+ _globals['_LABELS']._serialized_end=435
65
+ _globals['_LABELS_LABELSENTRY']._serialized_start=378
66
+ _globals['_LABELS_LABELSENTRY']._serialized_end=435
67
+ _globals['_META']._serialized_start=438
68
+ _globals['_META']._serialized_end=729
69
+ _globals['_UPDATELABELS']._serialized_start=731
70
+ _globals['_UPDATELABELS']._serialized_end=820
71
+ _globals['_UPDATEMETA']._serialized_start=823
72
+ _globals['_UPDATEMETA']._serialized_end=993
73
+ # @@protoc_insertion_point(module_scope)
@@ -129,16 +129,18 @@ class Labels(_message.Message):
129
129
  def __init__(self, labels: _Optional[_Mapping[str, str]] = ...) -> None: ...
130
130
 
131
131
  class Meta(_message.Message):
132
- __slots__ = ("labels", "created_at", "updated_at", "generation")
132
+ __slots__ = ("labels", "created_at", "updated_at", "generation", "deletion_task_id")
133
133
  LABELS_FIELD_NUMBER: _ClassVar[int]
134
134
  CREATED_AT_FIELD_NUMBER: _ClassVar[int]
135
135
  UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
136
136
  GENERATION_FIELD_NUMBER: _ClassVar[int]
137
+ DELETION_TASK_ID_FIELD_NUMBER: _ClassVar[int]
137
138
  labels: Labels
138
139
  created_at: _timestamp_pb2.Timestamp
139
140
  updated_at: _timestamp_pb2.Timestamp
140
141
  generation: int
141
- def __init__(self, labels: _Optional[_Union[Labels, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., generation: _Optional[int] = ...) -> None: ...
142
+ deletion_task_id: str
143
+ def __init__(self, labels: _Optional[_Union[Labels, _Mapping]] = ..., created_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., generation: _Optional[int] = ..., deletion_task_id: _Optional[str] = ...) -> None: ...
142
144
 
143
145
  class UpdateLabels(_message.Message):
144
146
  __slots__ = ("update", "remove")
@@ -31,7 +31,7 @@ from metalstack.api.v2 import token_pb2 as metalstack_dot_api_dot_v2_dot_token__
31
31
  from metalstack.api.v2 import version_pb2 as metalstack_dot_api_dot_v2_dot_version__pb2
32
32
 
33
33
 
34
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/api/v2/component.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\x1a\x1dmetalstack/api/v2/token.proto\x1a\x1fmetalstack/api/v2/version.proto\"\xab\x03\n\tComponent\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12>\n\x04type\x18\x02 \x01(\x0e\x32 .metalstack.api.v2.ComponentTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04type\x12+\n\nidentifier\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\nidentifier\x12\x39\n\nstarted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12;\n\x0breported_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAt\x12\x35\n\x08interval\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08interval\x12\x34\n\x07version\x18\x07 \x01(\x0b\x32\x1a.metalstack.api.v2.VersionR\x07version\x12.\n\x05token\x18\x08 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\"\xcb\x01\n\x0e\x43omponentQuery\x12!\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x00R\x04uuid\x88\x01\x01\x12\x43\n\x04type\x18\x02 \x01(\x0e\x32 .metalstack.api.v2.ComponentTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x01R\x04type\x88\x01\x01\x12\x30\n\nidentifier\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x02R\nidentifier\x88\x01\x01\x42\x07\n\x05_uuidB\x07\n\x05_typeB\r\n\x0b_identifier*\x8c\x03\n\rComponentType\x12/\n\x1a\x43OMPONENT_TYPE_UNSPECIFIED\x10\x00\x1a\x0f\x82\xb2\x19\x0bunspecified\x12+\n\x18\x43OMPONENT_TYPE_PIXIECORE\x10\x01\x1a\r\x82\xb2\x19\tpixiecore\x12-\n\x19\x43OMPONENT_TYPE_METAL_CORE\x10\x02\x1a\x0e\x82\xb2\x19\nmetal-core\x12+\n\x18\x43OMPONENT_TYPE_METAL_BMC\x10\x03\x1a\r\x82\xb2\x19\tmetal-bmc\x12\x45\n%COMPONENT_TYPE_METAL_IMAGE_CACHE_SYNC\x10\x04\x1a\x1a\x82\xb2\x19\x16metal-image-cache-sync\x12\x33\n\x1c\x43OMPONENT_TYPE_METAL_CONSOLE\x10\x05\x1a\x11\x82\xb2\x19\rmetal-console\x12\x45\n%COMPONENT_TYPE_METAL_METRICS_EXPORTER\x10\x06\x1a\x1a\x82\xb2\x19\x16metal-metrics-exporterB\xc4\x01\n\x15\x63om.metalstack.api.v2B\x0e\x43omponentProtoP\x01Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\xa2\x02\x03MAX\xaa\x02\x11Metalstack.Api.V2\xca\x02\x11Metalstack\\Api\\V2\xe2\x02\x1dMetalstack\\Api\\V2\\GPBMetadata\xea\x02\x13Metalstack::Api::V2b\x06proto3')
34
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/api/v2/component.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\x1a\x1dmetalstack/api/v2/token.proto\x1a\x1fmetalstack/api/v2/version.proto\"\xd8\x03\n\tComponent\x12\x1c\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01R\x04uuid\x12>\n\x04type\x18\x02 \x01(\x0e\x32 .metalstack.api.v2.ComponentTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04type\x12+\n\nidentifier\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\nidentifier\x12\x39\n\nstarted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tstartedAt\x12;\n\x0breported_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\nreportedAt\x12\x35\n\x08interval\x18\x06 \x01(\x0b\x32\x19.google.protobuf.DurationR\x08interval\x12\x34\n\x07version\x18\x07 \x01(\x0b\x32\x1a.metalstack.api.v2.VersionR\x07version\x12.\n\x05token\x18\x08 \x01(\x0b\x32\x18.metalstack.api.v2.TokenR\x05token\x12+\n\x04meta\x18\t \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\"\xcb\x01\n\x0e\x43omponentQuery\x12!\n\x04uuid\x18\x01 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x00R\x04uuid\x88\x01\x01\x12\x43\n\x04type\x18\x02 \x01(\x0e\x32 .metalstack.api.v2.ComponentTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x01R\x04type\x88\x01\x01\x12\x30\n\nidentifier\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x02R\nidentifier\x88\x01\x01\x42\x07\n\x05_uuidB\x07\n\x05_typeB\r\n\x0b_identifier*\x8c\x03\n\rComponentType\x12/\n\x1a\x43OMPONENT_TYPE_UNSPECIFIED\x10\x00\x1a\x0f\x82\xb2\x19\x0bunspecified\x12+\n\x18\x43OMPONENT_TYPE_PIXIECORE\x10\x01\x1a\r\x82\xb2\x19\tpixiecore\x12-\n\x19\x43OMPONENT_TYPE_METAL_CORE\x10\x02\x1a\x0e\x82\xb2\x19\nmetal-core\x12+\n\x18\x43OMPONENT_TYPE_METAL_BMC\x10\x03\x1a\r\x82\xb2\x19\tmetal-bmc\x12\x45\n%COMPONENT_TYPE_METAL_IMAGE_CACHE_SYNC\x10\x04\x1a\x1a\x82\xb2\x19\x16metal-image-cache-sync\x12\x33\n\x1c\x43OMPONENT_TYPE_METAL_CONSOLE\x10\x05\x1a\x11\x82\xb2\x19\rmetal-console\x12\x45\n%COMPONENT_TYPE_METAL_METRICS_EXPORTER\x10\x06\x1a\x1a\x82\xb2\x19\x16metal-metrics-exporterB\xc4\x01\n\x15\x63om.metalstack.api.v2B\x0e\x43omponentProtoP\x01Z5github.com/metal-stack/api/go/metalstack/api/v2;apiv2\xa2\x02\x03MAX\xaa\x02\x11Metalstack.Api.V2\xca\x02\x11Metalstack\\Api\\V2\xe2\x02\x1dMetalstack\\Api\\V2\\GPBMetadata\xea\x02\x13Metalstack::Api::V2b\x06proto3')
35
35
 
36
36
  _globals = globals()
37
37
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -65,10 +65,10 @@ if not _descriptor._USE_C_DESCRIPTORS:
65
65
  _globals['_COMPONENTQUERY'].fields_by_name['type']._serialized_options = b'\272H\005\202\001\002\020\001'
66
66
  _globals['_COMPONENTQUERY'].fields_by_name['identifier']._loaded_options = None
67
67
  _globals['_COMPONENTQUERY'].fields_by_name['identifier']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
68
- _globals['_COMPONENTTYPE']._serialized_start=925
69
- _globals['_COMPONENTTYPE']._serialized_end=1321
68
+ _globals['_COMPONENTTYPE']._serialized_start=970
69
+ _globals['_COMPONENTTYPE']._serialized_end=1366
70
70
  _globals['_COMPONENT']._serialized_start=289
71
- _globals['_COMPONENT']._serialized_end=716
72
- _globals['_COMPONENTQUERY']._serialized_start=719
73
- _globals['_COMPONENTQUERY']._serialized_end=922
71
+ _globals['_COMPONENT']._serialized_end=761
72
+ _globals['_COMPONENTQUERY']._serialized_start=764
73
+ _globals['_COMPONENTQUERY']._serialized_end=967
74
74
  # @@protoc_insertion_point(module_scope)
@@ -33,7 +33,7 @@ COMPONENT_TYPE_METAL_CONSOLE: ComponentType
33
33
  COMPONENT_TYPE_METAL_METRICS_EXPORTER: ComponentType
34
34
 
35
35
  class Component(_message.Message):
36
- __slots__ = ("uuid", "type", "identifier", "started_at", "reported_at", "interval", "version", "token")
36
+ __slots__ = ("uuid", "type", "identifier", "started_at", "reported_at", "interval", "version", "token", "meta")
37
37
  UUID_FIELD_NUMBER: _ClassVar[int]
38
38
  TYPE_FIELD_NUMBER: _ClassVar[int]
39
39
  IDENTIFIER_FIELD_NUMBER: _ClassVar[int]
@@ -42,6 +42,7 @@ class Component(_message.Message):
42
42
  INTERVAL_FIELD_NUMBER: _ClassVar[int]
43
43
  VERSION_FIELD_NUMBER: _ClassVar[int]
44
44
  TOKEN_FIELD_NUMBER: _ClassVar[int]
45
+ META_FIELD_NUMBER: _ClassVar[int]
45
46
  uuid: str
46
47
  type: ComponentType
47
48
  identifier: str
@@ -50,7 +51,8 @@ class Component(_message.Message):
50
51
  interval: _duration_pb2.Duration
51
52
  version: _version_pb2.Version
52
53
  token: _token_pb2.Token
53
- def __init__(self, uuid: _Optional[str] = ..., type: _Optional[_Union[ComponentType, str]] = ..., identifier: _Optional[str] = ..., started_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., reported_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., version: _Optional[_Union[_version_pb2.Version, _Mapping]] = ..., token: _Optional[_Union[_token_pb2.Token, _Mapping]] = ...) -> None: ...
54
+ meta: _common_pb2.Meta
55
+ def __init__(self, uuid: _Optional[str] = ..., type: _Optional[_Union[ComponentType, str]] = ..., identifier: _Optional[str] = ..., started_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., reported_at: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., interval: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., version: _Optional[_Union[_version_pb2.Version, _Mapping]] = ..., token: _Optional[_Union[_token_pb2.Token, _Mapping]] = ..., meta: _Optional[_Union[_common_pb2.Meta, _Mapping]] = ...) -> None: ...
54
56
 
55
57
  class ComponentQuery(_message.Message):
56
58
  __slots__ = ("uuid", "type", "identifier")