metal-stack-api 0.0.21__py3-none-any.whl → 0.0.23__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. {metal_stack_api-0.0.21.dist-info → metal_stack_api-0.0.23.dist-info}/METADATA +3 -2
  2. metal_stack_api-0.0.23.dist-info/RECORD +97 -0
  3. {metal_stack_api-0.0.21.dist-info → metal_stack_api-0.0.23.dist-info}/top_level.txt +0 -1
  4. metalstack/admin/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
  5. metalstack/admin/v2/filesystem_pb2.py +20 -19
  6. metalstack/admin/v2/filesystem_pb2.pyi +1 -0
  7. metalstack/admin/v2/{image_connecpy.py → image_connect.py} +24 -24
  8. metalstack/admin/v2/image_pb2.py +24 -23
  9. metalstack/admin/v2/image_pb2.pyi +1 -0
  10. metalstack/admin/v2/{ip_connecpy.py → ip_connect.py} +20 -20
  11. metalstack/admin/v2/ip_pb2.py +2 -2
  12. metalstack/admin/v2/{machine_connecpy.py → machine_connect.py} +20 -20
  13. metalstack/admin/v2/machine_pb2.py +15 -14
  14. metalstack/admin/v2/machine_pb2.pyi +1 -0
  15. metalstack/admin/v2/{network_connecpy.py → network_connect.py} +26 -26
  16. metalstack/admin/v2/network_pb2.py +45 -36
  17. metalstack/admin/v2/network_pb2.pyi +1 -0
  18. metalstack/admin/v2/{partition_connecpy.py → partition_connect.py} +24 -24
  19. metalstack/admin/v2/partition_pb2.py +23 -22
  20. metalstack/admin/v2/partition_pb2.pyi +1 -0
  21. metalstack/admin/v2/{size_connecpy.py → size_connect.py} +22 -22
  22. metalstack/admin/v2/size_pb2.py +20 -19
  23. metalstack/admin/v2/size_pb2.pyi +1 -0
  24. metalstack/admin/v2/switch_connect.py +444 -0
  25. metalstack/admin/v2/switch_pb2.py +108 -0
  26. metalstack/admin/v2/switch_pb2.pyi +114 -0
  27. metalstack/admin/v2/{tenant_connecpy.py → tenant_connect.py} +20 -20
  28. metalstack/admin/v2/tenant_pb2.py +18 -15
  29. metalstack/admin/v2/tenant_pb2.pyi +1 -0
  30. metalstack/admin/v2/{token_connecpy.py → token_connect.py} +20 -20
  31. metalstack/admin/v2/token_pb2.py +2 -2
  32. metalstack/api/v2/common_pb2.py +20 -18
  33. metalstack/api/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
  34. metalstack/api/v2/filesystem_pb2.py +54 -53
  35. metalstack/api/v2/filesystem_pb2.pyi +1 -0
  36. metalstack/api/v2/{health_connecpy.py → health_connect.py} +18 -18
  37. metalstack/api/v2/health_pb2.py +2 -2
  38. metalstack/api/v2/{image_connecpy.py → image_connect.py} +22 -22
  39. metalstack/api/v2/image_pb2.py +32 -31
  40. metalstack/api/v2/image_pb2.pyi +1 -0
  41. metalstack/api/v2/{ip_connecpy.py → ip_connect.py} +26 -26
  42. metalstack/api/v2/ip_pb2.py +41 -40
  43. metalstack/api/v2/ip_pb2.pyi +1 -0
  44. metalstack/api/v2/{machine_connecpy.py → machine_connect.py} +26 -26
  45. metalstack/api/v2/machine_pb2.py +122 -121
  46. metalstack/api/v2/machine_pb2.pyi +1 -0
  47. metalstack/api/v2/{method_connecpy.py → method_connect.py} +20 -20
  48. metalstack/api/v2/method_pb2.py +2 -2
  49. metalstack/api/v2/{network_connecpy.py → network_connect.py} +28 -28
  50. metalstack/api/v2/network_pb2.py +73 -66
  51. metalstack/api/v2/network_pb2.pyi +1 -0
  52. metalstack/api/v2/{partition_connecpy.py → partition_connect.py} +20 -20
  53. metalstack/api/v2/partition_pb2.py +25 -24
  54. metalstack/api/v2/partition_pb2.pyi +1 -0
  55. metalstack/api/v2/predefined_rules_pb2.py +50 -0
  56. metalstack/api/v2/predefined_rules_pb2.pyi +19 -0
  57. metalstack/api/v2/{project_connecpy.py → project_connect.py} +40 -40
  58. metalstack/api/v2/project_pb2.py +69 -64
  59. metalstack/api/v2/project_pb2.pyi +1 -0
  60. metalstack/api/v2/{size_connecpy.py → size_connect.py} +20 -20
  61. metalstack/api/v2/size_pb2.py +26 -25
  62. metalstack/api/v2/size_pb2.pyi +1 -0
  63. metalstack/api/v2/switch_pb2.py +62 -41
  64. metalstack/api/v2/switch_pb2.pyi +54 -11
  65. metalstack/api/v2/{tenant_connecpy.py → tenant_connect.py} +40 -40
  66. metalstack/api/v2/tenant_pb2.py +69 -64
  67. metalstack/api/v2/tenant_pb2.pyi +1 -0
  68. metalstack/api/v2/{token_connecpy.py → token_connect.py} +28 -28
  69. metalstack/api/v2/token_pb2.py +51 -50
  70. metalstack/api/v2/token_pb2.pyi +1 -0
  71. metalstack/api/v2/{user_connecpy.py → user_connect.py} +18 -18
  72. metalstack/api/v2/user_pb2.py +15 -11
  73. metalstack/api/v2/user_pb2.pyi +2 -0
  74. metalstack/api/v2/{version_connecpy.py → version_connect.py} +18 -18
  75. metalstack/api/v2/version_pb2.py +2 -2
  76. metalstack/client/client.py +56 -52
  77. metalstack/infra/v2/{bmc_connecpy.py → bmc_connect.py} +18 -18
  78. metalstack/infra/v2/bmc_pb2.py +2 -2
  79. metalstack/infra/v2/{switch_connecpy.py → switch_connect.py} +83 -18
  80. metalstack/infra/v2/switch_pb2.py +28 -10
  81. metalstack/infra/v2/switch_pb2.pyi +51 -0
  82. buf/__init__.py +0 -0
  83. buf/validate/__init__.py +0 -0
  84. buf/validate/validate_pb2.py +0 -450
  85. buf/validate/validate_pb2.pyi +0 -627
  86. buf/validate/validate_pb2_grpc.py +0 -4
  87. metal_stack_api-0.0.21.dist-info/RECORD +0 -124
  88. metalstack/admin/v2/filesystem_pb2_grpc.py +0 -169
  89. metalstack/admin/v2/image_pb2_grpc.py +0 -213
  90. metalstack/admin/v2/ip_pb2_grpc.py +0 -125
  91. metalstack/admin/v2/machine_pb2_grpc.py +0 -125
  92. metalstack/admin/v2/network_pb2_grpc.py +0 -257
  93. metalstack/admin/v2/partition_pb2_grpc.py +0 -213
  94. metalstack/admin/v2/size_pb2_grpc.py +0 -169
  95. metalstack/admin/v2/tenant_pb2_grpc.py +0 -125
  96. metalstack/admin/v2/token_pb2_grpc.py +0 -125
  97. metalstack/api/v2/common_pb2_grpc.py +0 -4
  98. metalstack/api/v2/filesystem_pb2_grpc.py +0 -169
  99. metalstack/api/v2/health_pb2_grpc.py +0 -81
  100. metalstack/api/v2/image_pb2_grpc.py +0 -169
  101. metalstack/api/v2/ip_pb2_grpc.py +0 -257
  102. metalstack/api/v2/machine_pb2_grpc.py +0 -257
  103. metalstack/api/v2/method_pb2_grpc.py +0 -128
  104. metalstack/api/v2/network_pb2_grpc.py +0 -301
  105. metalstack/api/v2/partition_pb2_grpc.py +0 -125
  106. metalstack/api/v2/project_pb2_grpc.py +0 -565
  107. metalstack/api/v2/size_pb2_grpc.py +0 -125
  108. metalstack/api/v2/switch_pb2_grpc.py +0 -4
  109. metalstack/api/v2/tenant_pb2_grpc.py +0 -565
  110. metalstack/api/v2/token_pb2_grpc.py +0 -301
  111. metalstack/api/v2/user_pb2_grpc.py +0 -81
  112. metalstack/api/v2/version_pb2_grpc.py +0 -81
  113. metalstack/infra/v2/bmc_pb2_grpc.py +0 -81
  114. metalstack/infra/v2/switch_pb2_grpc.py +0 -81
  115. {metal_stack_api-0.0.21.dist-info → metal_stack_api-0.0.23.dist-info}/WHEEL +0 -0
@@ -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.32.0
5
+ # Protobuf Python Version: 6.32.1
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
@@ -13,7 +13,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
16
+ 1,
17
17
  '',
18
18
  'metalstack/admin/v2/ip.proto'
19
19
  )
@@ -1,30 +1,30 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Generated by https://github.com/i2y/connecpy/v2/protoc-gen-connecpy. DO NOT EDIT!
2
+ # Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
3
3
  # source: metalstack/admin/v2/machine.proto
4
4
 
5
5
  from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
6
6
  from typing import Protocol
7
7
 
8
- from connecpy.client import ConnecpyClient, ConnecpyClientSync
9
- from connecpy.code import Code
10
- from connecpy.exceptions import ConnecpyException
11
- from connecpy.interceptor import Interceptor, InterceptorSync
12
- from connecpy.method import IdempotencyLevel, MethodInfo
13
- from connecpy.request import Headers, RequestContext
14
- from connecpy.server import ConnecpyASGIApplication, ConnecpyWSGIApplication, Endpoint, EndpointSync
8
+ from connectrpc.client import ConnectClient, ConnectClientSync
9
+ from connectrpc.code import Code
10
+ from connectrpc.errors import ConnectError
11
+ from connectrpc.interceptor import Interceptor, InterceptorSync
12
+ from connectrpc.method import IdempotencyLevel, MethodInfo
13
+ from connectrpc.request import Headers, RequestContext
14
+ from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync
15
15
  import metalstack.admin.v2.machine_pb2 as metalstack_dot_admin_dot_v2_dot_machine__pb2
16
16
 
17
17
 
18
18
  class MachineService(Protocol):
19
19
  async def get(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse:
20
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
20
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
21
21
 
22
22
  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:
23
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
23
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
24
24
 
25
25
 
26
- class MachineServiceASGIApplication(ConnecpyASGIApplication):
27
- def __init__(self, service: MachineService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None):
26
+ class MachineServiceASGIApplication(ConnectASGIApplication):
27
+ def __init__(self, service: MachineService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
28
28
  super().__init__(
29
29
  endpoints={
30
30
  "/metalstack.admin.v2.MachineService/Get": Endpoint.unary(
@@ -53,12 +53,12 @@ class MachineServiceASGIApplication(ConnecpyASGIApplication):
53
53
  )
54
54
 
55
55
  @property
56
- def path(self):
56
+ def path(self) -> str:
57
57
  """Returns the URL path to mount the application to when serving multiple applications."""
58
58
  return "/metalstack.admin.v2.MachineService"
59
59
 
60
60
 
61
- class MachineServiceClient(ConnecpyClient):
61
+ class MachineServiceClient(ConnectClient):
62
62
  async def get(
63
63
  self,
64
64
  request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
@@ -102,13 +102,13 @@ class MachineServiceClient(ConnecpyClient):
102
102
 
103
103
  class MachineServiceSync(Protocol):
104
104
  def get(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetResponse:
105
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
105
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
106
106
  def list(self, request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceListResponse:
107
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
107
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
108
108
 
109
109
 
110
- class MachineServiceWSGIApplication(ConnecpyWSGIApplication):
111
- def __init__(self, service: MachineServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None):
110
+ class MachineServiceWSGIApplication(ConnectWSGIApplication):
111
+ def __init__(self, service: MachineServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
112
112
  super().__init__(
113
113
  endpoints={
114
114
  "/metalstack.admin.v2.MachineService/Get": EndpointSync.unary(
@@ -137,12 +137,12 @@ class MachineServiceWSGIApplication(ConnecpyWSGIApplication):
137
137
  )
138
138
 
139
139
  @property
140
- def path(self):
140
+ def path(self) -> str:
141
141
  """Returns the URL path to mount the application to when serving multiple applications."""
142
142
  return "/metalstack.admin.v2.MachineService"
143
143
 
144
144
 
145
- class MachineServiceClientSync(ConnecpyClientSync):
145
+ class MachineServiceClientSync(ConnectClientSync):
146
146
  def get(
147
147
  self,
148
148
  request: metalstack_dot_admin_dot_v2_dot_machine__pb2.MachineServiceGetRequest,
@@ -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/machine.proto
5
- # Protobuf Python Version: 6.32.0
5
+ # Protobuf Python Version: 6.32.1
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
@@ -13,7 +13,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
16
+ 1,
17
17
  '',
18
18
  'metalstack/admin/v2/machine.proto'
19
19
  )
@@ -25,9 +25,10 @@ _sym_db = _symbol_database.Default()
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
27
  from metalstack.api.v2 import machine_pb2 as metalstack_dot_api_dot_v2_dot_machine__pb2
28
+ from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
28
29
 
29
30
 
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\"z\n\x19MachineServiceListRequest\x12\x35\n\x05query\x18\x01 \x01(\x0b\x32\x1f.metalstack.api.v2.MachineQueryR\x05query\x12&\n\tpartition\x18\x02 \x01(\tB\x08\xbaH\x05r\x03\x18\x80\x01R\tpartition\"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
+ 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\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
 
32
33
  _globals = globals()
33
34
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -38,19 +39,19 @@ if not _descriptor._USE_C_DESCRIPTORS:
38
39
  _globals['_MACHINESERVICEGETREQUEST'].fields_by_name['uuid']._loaded_options = None
39
40
  _globals['_MACHINESERVICEGETREQUEST'].fields_by_name['uuid']._serialized_options = b'\272H\005r\003\260\001\001'
40
41
  _globals['_MACHINESERVICELISTREQUEST'].fields_by_name['partition']._loaded_options = None
41
- _globals['_MACHINESERVICELISTREQUEST'].fields_by_name['partition']._serialized_options = b'\272H\005r\003\030\200\001'
42
+ _globals['_MACHINESERVICELISTREQUEST'].fields_by_name['partition']._serialized_options = b'\272H\010r\006\320\263\256\261\002\001'
42
43
  _globals['_MACHINESERVICE'].methods_by_name['Get']._loaded_options = None
43
44
  _globals['_MACHINESERVICE'].methods_by_name['Get']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
44
45
  _globals['_MACHINESERVICE'].methods_by_name['List']._loaded_options = None
45
46
  _globals['_MACHINESERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
46
- _globals['_MACHINESERVICEGETREQUEST']._serialized_start=152
47
- _globals['_MACHINESERVICEGETREQUEST']._serialized_end=208
48
- _globals['_MACHINESERVICEGETRESPONSE']._serialized_start=210
49
- _globals['_MACHINESERVICEGETRESPONSE']._serialized_end=291
50
- _globals['_MACHINESERVICELISTREQUEST']._serialized_start=293
51
- _globals['_MACHINESERVICELISTREQUEST']._serialized_end=415
52
- _globals['_MACHINESERVICELISTRESPONSE']._serialized_start=417
53
- _globals['_MACHINESERVICELISTRESPONSE']._serialized_end=501
54
- _globals['_MACHINESERVICE']._serialized_start=504
55
- _globals['_MACHINESERVICE']._serialized_end=751
47
+ _globals['_MACHINESERVICEGETREQUEST']._serialized_start=194
48
+ _globals['_MACHINESERVICEGETREQUEST']._serialized_end=250
49
+ _globals['_MACHINESERVICEGETRESPONSE']._serialized_start=252
50
+ _globals['_MACHINESERVICEGETRESPONSE']._serialized_end=333
51
+ _globals['_MACHINESERVICELISTREQUEST']._serialized_start=336
52
+ _globals['_MACHINESERVICELISTREQUEST']._serialized_end=480
53
+ _globals['_MACHINESERVICELISTRESPONSE']._serialized_start=482
54
+ _globals['_MACHINESERVICELISTRESPONSE']._serialized_end=566
55
+ _globals['_MACHINESERVICE']._serialized_start=569
56
+ _globals['_MACHINESERVICE']._serialized_end=816
56
57
  # @@protoc_insertion_point(module_scope)
@@ -1,6 +1,7 @@
1
1
  from buf.validate import validate_pb2 as _validate_pb2
2
2
  from metalstack.api.v2 import common_pb2 as _common_pb2
3
3
  from metalstack.api.v2 import machine_pb2 as _machine_pb2
4
+ from metalstack.api.v2 import predefined_rules_pb2 as _predefined_rules_pb2
4
5
  from google.protobuf.internal import containers as _containers
5
6
  from google.protobuf import descriptor as _descriptor
6
7
  from google.protobuf import message as _message
@@ -1,39 +1,39 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Generated by https://github.com/i2y/connecpy/v2/protoc-gen-connecpy. DO NOT EDIT!
2
+ # Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
3
3
  # source: metalstack/admin/v2/network.proto
4
4
 
5
5
  from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
6
6
  from typing import Protocol
7
7
 
8
- from connecpy.client import ConnecpyClient, ConnecpyClientSync
9
- from connecpy.code import Code
10
- from connecpy.exceptions import ConnecpyException
11
- from connecpy.interceptor import Interceptor, InterceptorSync
12
- from connecpy.method import IdempotencyLevel, MethodInfo
13
- from connecpy.request import Headers, RequestContext
14
- from connecpy.server import ConnecpyASGIApplication, ConnecpyWSGIApplication, Endpoint, EndpointSync
8
+ from connectrpc.client import ConnectClient, ConnectClientSync
9
+ from connectrpc.code import Code
10
+ from connectrpc.errors import ConnectError
11
+ from connectrpc.interceptor import Interceptor, InterceptorSync
12
+ from connectrpc.method import IdempotencyLevel, MethodInfo
13
+ from connectrpc.request import Headers, RequestContext
14
+ from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync
15
15
  import metalstack.admin.v2.network_pb2 as metalstack_dot_admin_dot_v2_dot_network__pb2
16
16
 
17
17
 
18
18
  class NetworkService(Protocol):
19
19
  async def get(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetResponse:
20
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
20
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
21
21
 
22
22
  async def create(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateResponse:
23
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
23
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
24
24
 
25
25
  async def update(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateResponse:
26
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
26
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
27
27
 
28
28
  async def delete(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteResponse:
29
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
29
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
30
30
 
31
31
  async def list(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListResponse:
32
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
32
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
33
33
 
34
34
 
35
- class NetworkServiceASGIApplication(ConnecpyASGIApplication):
36
- def __init__(self, service: NetworkService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None):
35
+ class NetworkServiceASGIApplication(ConnectASGIApplication):
36
+ def __init__(self, service: NetworkService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
37
37
  super().__init__(
38
38
  endpoints={
39
39
  "/metalstack.admin.v2.NetworkService/Get": Endpoint.unary(
@@ -92,12 +92,12 @@ class NetworkServiceASGIApplication(ConnecpyASGIApplication):
92
92
  )
93
93
 
94
94
  @property
95
- def path(self):
95
+ def path(self) -> str:
96
96
  """Returns the URL path to mount the application to when serving multiple applications."""
97
97
  return "/metalstack.admin.v2.NetworkService"
98
98
 
99
99
 
100
- class NetworkServiceClient(ConnecpyClient):
100
+ class NetworkServiceClient(ConnectClient):
101
101
  async def get(
102
102
  self,
103
103
  request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetRequest,
@@ -201,19 +201,19 @@ class NetworkServiceClient(ConnecpyClient):
201
201
 
202
202
  class NetworkServiceSync(Protocol):
203
203
  def get(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetResponse:
204
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
204
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
205
205
  def create(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceCreateResponse:
206
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
206
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
207
207
  def update(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceUpdateResponse:
208
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
208
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
209
209
  def delete(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceDeleteResponse:
210
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
210
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
211
211
  def list(self, request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceListResponse:
212
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
212
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
213
213
 
214
214
 
215
- class NetworkServiceWSGIApplication(ConnecpyWSGIApplication):
216
- def __init__(self, service: NetworkServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None):
215
+ class NetworkServiceWSGIApplication(ConnectWSGIApplication):
216
+ def __init__(self, service: NetworkServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
217
217
  super().__init__(
218
218
  endpoints={
219
219
  "/metalstack.admin.v2.NetworkService/Get": EndpointSync.unary(
@@ -272,12 +272,12 @@ class NetworkServiceWSGIApplication(ConnecpyWSGIApplication):
272
272
  )
273
273
 
274
274
  @property
275
- def path(self):
275
+ def path(self) -> str:
276
276
  """Returns the URL path to mount the application to when serving multiple applications."""
277
277
  return "/metalstack.admin.v2.NetworkService"
278
278
 
279
279
 
280
- class NetworkServiceClientSync(ConnecpyClientSync):
280
+ class NetworkServiceClientSync(ConnectClientSync):
281
281
  def get(
282
282
  self,
283
283
  request: metalstack_dot_admin_dot_v2_dot_network__pb2.NetworkServiceGetRequest,
@@ -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.32.0
5
+ # Protobuf Python Version: 6.32.1
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
@@ -13,7 +13,7 @@ _runtime_version.ValidateProtobufRuntimeVersion(
13
13
  _runtime_version.Domain.PUBLIC,
14
14
  6,
15
15
  32,
16
- 0,
16
+ 1,
17
17
  '',
18
18
  'metalstack/admin/v2/network.proto'
19
19
  )
@@ -25,9 +25,10 @@ _sym_db = _symbol_database.Default()
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
27
  from metalstack.api.v2 import network_pb2 as metalstack_dot_api_dot_v2_dot_network__pb2
28
+ from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
28
29
 
29
30
 
30
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!metalstack/admin/v2/network.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/network.proto\"6\n\x18NetworkServiceGetRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"Q\n\x19NetworkServiceGetResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"\xd1\x0b\n\x1bNetworkServiceCreateRequest\x12\x1f\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x02id\x88\x01\x01\x12#\n\x04name\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x02R\x0b\x64\x65scription\x88\x01\x01\x12-\n\tpartition\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x03R\tpartition\x88\x01\x01\x12\'\n\x07project\x18\x05 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x04R\x07project\x88\x01\x01\x12<\n\x04type\x18\x06 \x01(\x0e\x32\x1e.metalstack.api.v2.NetworkTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04type\x12\x36\n\x06labels\x18\x07 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsH\x05R\x06labels\x88\x01\x01\x12\x1a\n\x08prefixes\x18\x08 \x03(\tR\x08prefixes\x12\x31\n\x14\x64\x65stination_prefixes\x18\t \x03(\tR\x13\x64\x65stinationPrefixes\x12\x63\n\x1b\x64\x65\x66\x61ult_child_prefix_length\x18\n \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthR\x18\x64\x65\x66\x61ultChildPrefixLength\x12[\n\x17min_child_prefix_length\x18\x0b \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthR\x14minChildPrefixLength\x12\x44\n\x08nat_type\x18\x0c \x01(\x0e\x32\x1a.metalstack.api.v2.NATTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x06R\x07natType\x88\x01\x01\x12\x15\n\x03vrf\x18\r \x01(\rH\x07R\x03vrf\x88\x01\x01\x12\x36\n\x0eparent_network\x18\x0e \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x08R\rparentNetwork\x88\x01\x01\x12@\n\x1c\x61\x64\x64itional_announcable_cidrs\x18\x0f \x03(\tR\x1a\x61\x64\x64itionalAnnouncableCidrs\x12\x41\n\x06length\x18\x10 \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthH\tR\x06length\x88\x01\x01\x12]\n\x0e\x61\x64\x64ress_family\x18\x11 \x01(\x0e\x32\'.metalstack.api.v2.NetworkAddressFamilyB\x08\xbaH\x05\x82\x01\x02\x10\x01H\nR\raddressFamily\x88\x01\x01:\xd5\x02\xbaH\xd1\x02\x1aN\n\x08prefixes\x12\x1cgiven prefixes must be valid\x1a$this.prefixes.all(m, m.isIpPrefix())\x1ar\n\x14\x64\x65stination_prefixes\x12(given destination_prefixes must be valid\x1a\x30this.destination_prefixes.all(m, m.isIpPrefix())\x1a\x8a\x01\n\x1c\x61\x64\x64itional_announcable_cidrs\x12\x30given additional_announcable_cidrs must be valid\x1a\x38this.additional_announcable_cidrs.all(m, m.isIpPrefix())B\x05\n\x03_idB\x07\n\x05_nameB\x0e\n\x0c_descriptionB\x0c\n\n_partitionB\n\n\x08_projectB\t\n\x07_labelsB\x0b\n\t_nat_typeB\x06\n\x04_vrfB\x11\n\x0f_parent_networkB\t\n\x07_lengthB\x11\n\x0f_address_family\"\x95\t\n\x1bNetworkServiceUpdateRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\x12\x46\n\x0bupdate_meta\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.UpdateMetaB\x06\xbaH\x03\xc8\x01\x01R\nupdateMeta\x12#\n\x04name\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12<\n\x06labels\x18\x05 \x01(\x0b\x32\x1f.metalstack.api.v2.UpdateLabelsH\x02R\x06labels\x88\x01\x01\x12\x1a\n\x08prefixes\x18\x06 \x03(\tR\x08prefixes\x12\x31\n\x14\x64\x65stination_prefixes\x18\x07 \x03(\tR\x13\x64\x65stinationPrefixes\x12h\n\x1b\x64\x65\x66\x61ult_child_prefix_length\x18\n \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthH\x03R\x18\x64\x65\x66\x61ultChildPrefixLength\x88\x01\x01\x12`\n\x17min_child_prefix_length\x18\x0b \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthH\x04R\x14minChildPrefixLength\x88\x01\x01\x12\x44\n\x08nat_type\x18\r \x01(\x0e\x32\x1a.metalstack.api.v2.NATTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x05R\x07natType\x88\x01\x01\x12@\n\x1c\x61\x64\x64itional_announcable_cidrs\x18\x10 \x03(\tR\x1a\x61\x64\x64itionalAnnouncableCidrs\x12\x14\n\x05\x66orce\x18\x14 \x01(\x08R\x05\x66orce:\xd5\x02\xbaH\xd1\x02\x1aN\n\x08prefixes\x12\x1cgiven prefixes must be valid\x1a$this.prefixes.all(m, m.isIpPrefix())\x1ar\n\x14\x64\x65stination_prefixes\x12(given destination_prefixes must be valid\x1a\x30this.destination_prefixes.all(m, m.isIpPrefix())\x1a\x8a\x01\n\x1c\x61\x64\x64itional_announcable_cidrs\x12\x30given additional_announcable_cidrs must be valid\x1a\x38this.additional_announcable_cidrs.all(m, m.isIpPrefix())B\x07\n\x05_nameB\x0e\n\x0c_descriptionB\t\n\x07_labelsB\x1e\n\x1c_default_child_prefix_lengthB\x1a\n\x18_min_child_prefix_lengthB\x0b\n\t_nat_type\"9\n\x1bNetworkServiceDeleteRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"R\n\x19NetworkServiceListRequest\x12\x35\n\x05query\x18\x02 \x01(\x0b\x32\x1f.metalstack.api.v2.NetworkQueryR\x05query\"T\n\x1cNetworkServiceCreateResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"T\n\x1cNetworkServiceUpdateResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"T\n\x1cNetworkServiceDeleteResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"T\n\x1aNetworkServiceListResponse\x12\x36\n\x08networks\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x08networks2\xe5\x04\n\x0eNetworkService\x12p\n\x03Get\x12-.metalstack.admin.v2.NetworkServiceGetRequest\x1a..metalstack.admin.v2.NetworkServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12x\n\x06\x43reate\x12\x30.metalstack.admin.v2.NetworkServiceCreateRequest\x1a\x31.metalstack.admin.v2.NetworkServiceCreateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12x\n\x06Update\x12\x30.metalstack.admin.v2.NetworkServiceUpdateRequest\x1a\x31.metalstack.admin.v2.NetworkServiceUpdateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12x\n\x06\x44\x65lete\x12\x30.metalstack.admin.v2.NetworkServiceDeleteRequest\x1a\x31.metalstack.admin.v2.NetworkServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12s\n\x04List\x12..metalstack.admin.v2.NetworkServiceListRequest\x1a/.metalstack.admin.v2.NetworkServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xd0\x01\n\x17\x63om.metalstack.admin.v2B\x0cNetworkProtoP\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/network.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1fmetalstack/api/v2/network.proto\x1a(metalstack/api/v2/predefined_rules.proto\"6\n\x18NetworkServiceGetRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"Q\n\x19NetworkServiceGetResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"\xa7\t\n\x1bNetworkServiceCreateRequest\x12\x1f\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x02id\x88\x01\x01\x12$\n\x04name\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x01R\x04name\x88\x01\x01\x12\x32\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x02R\x0b\x64\x65scription\x88\x01\x01\x12.\n\tpartition\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01H\x03R\tpartition\x88\x01\x01\x12\'\n\x07project\x18\x05 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x04R\x07project\x88\x01\x01\x12<\n\x04type\x18\x06 \x01(\x0e\x32\x1e.metalstack.api.v2.NetworkTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04type\x12\x36\n\x06labels\x18\x07 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsH\x05R\x06labels\x88\x01\x01\x12(\n\x08prefixes\x18\x08 \x03(\tB\x0c\xbaH\t\x92\x01\x06\xe0\xb3\xae\xb1\x02\x01R\x08prefixes\x12?\n\x14\x64\x65stination_prefixes\x18\t \x03(\tB\x0c\xbaH\t\x92\x01\x06\xe0\xb3\xae\xb1\x02\x01R\x13\x64\x65stinationPrefixes\x12\x63\n\x1b\x64\x65\x66\x61ult_child_prefix_length\x18\n \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthR\x18\x64\x65\x66\x61ultChildPrefixLength\x12[\n\x17min_child_prefix_length\x18\x0b \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthR\x14minChildPrefixLength\x12\x44\n\x08nat_type\x18\x0c \x01(\x0e\x32\x1a.metalstack.api.v2.NATTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x06R\x07natType\x88\x01\x01\x12\x15\n\x03vrf\x18\r \x01(\rH\x07R\x03vrf\x88\x01\x01\x12\x37\n\x0eparent_network\x18\x0e \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x08R\rparentNetwork\x88\x01\x01\x12N\n\x1c\x61\x64\x64itional_announcable_cidrs\x18\x0f \x03(\tB\x0c\xbaH\t\x92\x01\x06\xe0\xb3\xae\xb1\x02\x01R\x1a\x61\x64\x64itionalAnnouncableCidrs\x12\x41\n\x06length\x18\x10 \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthH\tR\x06length\x88\x01\x01\x12]\n\x0e\x61\x64\x64ress_family\x18\x11 \x01(\x0e\x32\'.metalstack.api.v2.NetworkAddressFamilyB\x08\xbaH\x05\x82\x01\x02\x10\x01H\nR\raddressFamily\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_nameB\x0e\n\x0c_descriptionB\x0c\n\n_partitionB\n\n\x08_projectB\t\n\x07_labelsB\x0b\n\t_nat_typeB\x06\n\x04_vrfB\x11\n\x0f_parent_networkB\t\n\x07_lengthB\x11\n\x0f_address_family\"\xea\x06\n\x1bNetworkServiceUpdateRequest\x12\x1b\n\x02id\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x02id\x12\x46\n\x0bupdate_meta\x18\x02 \x01(\x0b\x32\x1d.metalstack.api.v2.UpdateMetaB\x06\xbaH\x03\xc8\x01\x01R\nupdateMeta\x12$\n\x04name\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x04name\x88\x01\x01\x12\x32\n\x0b\x64\x65scription\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12<\n\x06labels\x18\x05 \x01(\x0b\x32\x1f.metalstack.api.v2.UpdateLabelsH\x02R\x06labels\x88\x01\x01\x12(\n\x08prefixes\x18\x06 \x03(\tB\x0c\xbaH\t\x92\x01\x06\xe0\xb3\xae\xb1\x02\x01R\x08prefixes\x12?\n\x14\x64\x65stination_prefixes\x18\x07 \x03(\tB\x0c\xbaH\t\x92\x01\x06\xe0\xb3\xae\xb1\x02\x01R\x13\x64\x65stinationPrefixes\x12h\n\x1b\x64\x65\x66\x61ult_child_prefix_length\x18\n \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthH\x03R\x18\x64\x65\x66\x61ultChildPrefixLength\x88\x01\x01\x12`\n\x17min_child_prefix_length\x18\x0b \x01(\x0b\x32$.metalstack.api.v2.ChildPrefixLengthH\x04R\x14minChildPrefixLength\x88\x01\x01\x12\x44\n\x08nat_type\x18\r \x01(\x0e\x32\x1a.metalstack.api.v2.NATTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x05R\x07natType\x88\x01\x01\x12N\n\x1c\x61\x64\x64itional_announcable_cidrs\x18\x10 \x03(\tB\x0c\xbaH\t\x92\x01\x06\xe0\xb3\xae\xb1\x02\x01R\x1a\x61\x64\x64itionalAnnouncableCidrs\x12\x14\n\x05\x66orce\x18\x14 \x01(\x08R\x05\x66orceB\x07\n\x05_nameB\x0e\n\x0c_descriptionB\t\n\x07_labelsB\x1e\n\x1c_default_child_prefix_lengthB\x1a\n\x18_min_child_prefix_lengthB\x0b\n\t_nat_type\"9\n\x1bNetworkServiceDeleteRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"R\n\x19NetworkServiceListRequest\x12\x35\n\x05query\x18\x02 \x01(\x0b\x32\x1f.metalstack.api.v2.NetworkQueryR\x05query\"T\n\x1cNetworkServiceCreateResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"T\n\x1cNetworkServiceUpdateResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"T\n\x1cNetworkServiceDeleteResponse\x12\x34\n\x07network\x18\x01 \x01(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x07network\"T\n\x1aNetworkServiceListResponse\x12\x36\n\x08networks\x18\x01 \x03(\x0b\x32\x1a.metalstack.api.v2.NetworkR\x08networks2\xe5\x04\n\x0eNetworkService\x12p\n\x03Get\x12-.metalstack.admin.v2.NetworkServiceGetRequest\x1a..metalstack.admin.v2.NetworkServiceGetResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x12x\n\x06\x43reate\x12\x30.metalstack.admin.v2.NetworkServiceCreateRequest\x1a\x31.metalstack.admin.v2.NetworkServiceCreateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12x\n\x06Update\x12\x30.metalstack.admin.v2.NetworkServiceUpdateRequest\x1a\x31.metalstack.admin.v2.NetworkServiceUpdateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12x\n\x06\x44\x65lete\x12\x30.metalstack.admin.v2.NetworkServiceDeleteRequest\x1a\x31.metalstack.admin.v2.NetworkServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12s\n\x04List\x12..metalstack.admin.v2.NetworkServiceListRequest\x1a/.metalstack.admin.v2.NetworkServiceListResponse\"\n\xd2\xf3\x18\x02\x01\x02\xe0\xf3\x18\x02\x42\xd0\x01\n\x17\x63om.metalstack.admin.v2B\x0cNetworkProtoP\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)
@@ -40,35 +41,43 @@ if not _descriptor._USE_C_DESCRIPTORS:
40
41
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['id']._loaded_options = None
41
42
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
42
43
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['name']._loaded_options = None
43
- _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
44
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
44
45
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['description']._loaded_options = None
45
- _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
46
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
46
47
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['partition']._loaded_options = None
47
- _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['partition']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
48
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['partition']._serialized_options = b'\272H\010r\006\320\263\256\261\002\001'
48
49
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['project']._loaded_options = None
49
50
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['project']._serialized_options = b'\272H\005r\003\260\001\001'
50
51
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['type']._loaded_options = None
51
52
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['type']._serialized_options = b'\272H\005\202\001\002\020\001'
53
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['prefixes']._loaded_options = None
54
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['prefixes']._serialized_options = b'\272H\t\222\001\006\340\263\256\261\002\001'
55
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['destination_prefixes']._loaded_options = None
56
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['destination_prefixes']._serialized_options = b'\272H\t\222\001\006\340\263\256\261\002\001'
52
57
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['nat_type']._loaded_options = None
53
58
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['nat_type']._serialized_options = b'\272H\005\202\001\002\020\001'
54
59
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['parent_network']._loaded_options = None
55
- _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['parent_network']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
60
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['parent_network']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
61
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['additional_announcable_cidrs']._loaded_options = None
62
+ _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['additional_announcable_cidrs']._serialized_options = b'\272H\t\222\001\006\340\263\256\261\002\001'
56
63
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['address_family']._loaded_options = None
57
64
  _globals['_NETWORKSERVICECREATEREQUEST'].fields_by_name['address_family']._serialized_options = b'\272H\005\202\001\002\020\001'
58
- _globals['_NETWORKSERVICECREATEREQUEST']._loaded_options = None
59
- _globals['_NETWORKSERVICECREATEREQUEST']._serialized_options = b'\272H\321\002\032N\n\010prefixes\022\034given prefixes must be valid\032$this.prefixes.all(m, m.isIpPrefix())\032r\n\024destination_prefixes\022(given destination_prefixes must be valid\0320this.destination_prefixes.all(m, m.isIpPrefix())\032\212\001\n\034additional_announcable_cidrs\0220given additional_announcable_cidrs must be valid\0328this.additional_announcable_cidrs.all(m, m.isIpPrefix())'
60
65
  _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['id']._loaded_options = None
61
- _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
66
+ _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
62
67
  _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['update_meta']._loaded_options = None
63
68
  _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['update_meta']._serialized_options = b'\272H\003\310\001\001'
64
69
  _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['name']._loaded_options = None
65
- _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
70
+ _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
66
71
  _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['description']._loaded_options = None
67
- _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
72
+ _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
73
+ _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['prefixes']._loaded_options = None
74
+ _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['prefixes']._serialized_options = b'\272H\t\222\001\006\340\263\256\261\002\001'
75
+ _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['destination_prefixes']._loaded_options = None
76
+ _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['destination_prefixes']._serialized_options = b'\272H\t\222\001\006\340\263\256\261\002\001'
68
77
  _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['nat_type']._loaded_options = None
69
78
  _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['nat_type']._serialized_options = b'\272H\005\202\001\002\020\001'
70
- _globals['_NETWORKSERVICEUPDATEREQUEST']._loaded_options = None
71
- _globals['_NETWORKSERVICEUPDATEREQUEST']._serialized_options = b'\272H\321\002\032N\n\010prefixes\022\034given prefixes must be valid\032$this.prefixes.all(m, m.isIpPrefix())\032r\n\024destination_prefixes\022(given destination_prefixes must be valid\0320this.destination_prefixes.all(m, m.isIpPrefix())\032\212\001\n\034additional_announcable_cidrs\0220given additional_announcable_cidrs must be valid\0328this.additional_announcable_cidrs.all(m, m.isIpPrefix())'
79
+ _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['additional_announcable_cidrs']._loaded_options = None
80
+ _globals['_NETWORKSERVICEUPDATEREQUEST'].fields_by_name['additional_announcable_cidrs']._serialized_options = b'\272H\t\222\001\006\340\263\256\261\002\001'
72
81
  _globals['_NETWORKSERVICEDELETEREQUEST'].fields_by_name['id']._loaded_options = None
73
82
  _globals['_NETWORKSERVICEDELETEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
74
83
  _globals['_NETWORKSERVICE'].methods_by_name['Get']._loaded_options = None
@@ -81,26 +90,26 @@ if not _descriptor._USE_C_DESCRIPTORS:
81
90
  _globals['_NETWORKSERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
82
91
  _globals['_NETWORKSERVICE'].methods_by_name['List']._loaded_options = None
83
92
  _globals['_NETWORKSERVICE'].methods_by_name['List']._serialized_options = b'\322\363\030\002\001\002\340\363\030\002'
84
- _globals['_NETWORKSERVICEGETREQUEST']._serialized_start=152
85
- _globals['_NETWORKSERVICEGETREQUEST']._serialized_end=206
86
- _globals['_NETWORKSERVICEGETRESPONSE']._serialized_start=208
87
- _globals['_NETWORKSERVICEGETRESPONSE']._serialized_end=289
88
- _globals['_NETWORKSERVICECREATEREQUEST']._serialized_start=292
89
- _globals['_NETWORKSERVICECREATEREQUEST']._serialized_end=1781
90
- _globals['_NETWORKSERVICEUPDATEREQUEST']._serialized_start=1784
91
- _globals['_NETWORKSERVICEUPDATEREQUEST']._serialized_end=2957
92
- _globals['_NETWORKSERVICEDELETEREQUEST']._serialized_start=2959
93
- _globals['_NETWORKSERVICEDELETEREQUEST']._serialized_end=3016
94
- _globals['_NETWORKSERVICELISTREQUEST']._serialized_start=3018
95
- _globals['_NETWORKSERVICELISTREQUEST']._serialized_end=3100
96
- _globals['_NETWORKSERVICECREATERESPONSE']._serialized_start=3102
97
- _globals['_NETWORKSERVICECREATERESPONSE']._serialized_end=3186
98
- _globals['_NETWORKSERVICEUPDATERESPONSE']._serialized_start=3188
99
- _globals['_NETWORKSERVICEUPDATERESPONSE']._serialized_end=3272
100
- _globals['_NETWORKSERVICEDELETERESPONSE']._serialized_start=3274
101
- _globals['_NETWORKSERVICEDELETERESPONSE']._serialized_end=3358
102
- _globals['_NETWORKSERVICELISTRESPONSE']._serialized_start=3360
103
- _globals['_NETWORKSERVICELISTRESPONSE']._serialized_end=3444
104
- _globals['_NETWORKSERVICE']._serialized_start=3447
105
- _globals['_NETWORKSERVICE']._serialized_end=4060
93
+ _globals['_NETWORKSERVICEGETREQUEST']._serialized_start=194
94
+ _globals['_NETWORKSERVICEGETREQUEST']._serialized_end=248
95
+ _globals['_NETWORKSERVICEGETRESPONSE']._serialized_start=250
96
+ _globals['_NETWORKSERVICEGETRESPONSE']._serialized_end=331
97
+ _globals['_NETWORKSERVICECREATEREQUEST']._serialized_start=334
98
+ _globals['_NETWORKSERVICECREATEREQUEST']._serialized_end=1525
99
+ _globals['_NETWORKSERVICEUPDATEREQUEST']._serialized_start=1528
100
+ _globals['_NETWORKSERVICEUPDATEREQUEST']._serialized_end=2402
101
+ _globals['_NETWORKSERVICEDELETEREQUEST']._serialized_start=2404
102
+ _globals['_NETWORKSERVICEDELETEREQUEST']._serialized_end=2461
103
+ _globals['_NETWORKSERVICELISTREQUEST']._serialized_start=2463
104
+ _globals['_NETWORKSERVICELISTREQUEST']._serialized_end=2545
105
+ _globals['_NETWORKSERVICECREATERESPONSE']._serialized_start=2547
106
+ _globals['_NETWORKSERVICECREATERESPONSE']._serialized_end=2631
107
+ _globals['_NETWORKSERVICEUPDATERESPONSE']._serialized_start=2633
108
+ _globals['_NETWORKSERVICEUPDATERESPONSE']._serialized_end=2717
109
+ _globals['_NETWORKSERVICEDELETERESPONSE']._serialized_start=2719
110
+ _globals['_NETWORKSERVICEDELETERESPONSE']._serialized_end=2803
111
+ _globals['_NETWORKSERVICELISTRESPONSE']._serialized_start=2805
112
+ _globals['_NETWORKSERVICELISTRESPONSE']._serialized_end=2889
113
+ _globals['_NETWORKSERVICE']._serialized_start=2892
114
+ _globals['_NETWORKSERVICE']._serialized_end=3505
106
115
  # @@protoc_insertion_point(module_scope)
@@ -1,6 +1,7 @@
1
1
  from buf.validate import validate_pb2 as _validate_pb2
2
2
  from metalstack.api.v2 import common_pb2 as _common_pb2
3
3
  from metalstack.api.v2 import network_pb2 as _network_pb2
4
+ from metalstack.api.v2 import predefined_rules_pb2 as _predefined_rules_pb2
4
5
  from google.protobuf.internal import containers as _containers
5
6
  from google.protobuf import descriptor as _descriptor
6
7
  from google.protobuf import message as _message
@@ -1,36 +1,36 @@
1
1
  # -*- coding: utf-8 -*-
2
- # Generated by https://github.com/i2y/connecpy/v2/protoc-gen-connecpy. DO NOT EDIT!
2
+ # Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
3
3
  # source: metalstack/admin/v2/partition.proto
4
4
 
5
5
  from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
6
6
  from typing import Protocol
7
7
 
8
- from connecpy.client import ConnecpyClient, ConnecpyClientSync
9
- from connecpy.code import Code
10
- from connecpy.exceptions import ConnecpyException
11
- from connecpy.interceptor import Interceptor, InterceptorSync
12
- from connecpy.method import IdempotencyLevel, MethodInfo
13
- from connecpy.request import Headers, RequestContext
14
- from connecpy.server import ConnecpyASGIApplication, ConnecpyWSGIApplication, Endpoint, EndpointSync
8
+ from connectrpc.client import ConnectClient, ConnectClientSync
9
+ from connectrpc.code import Code
10
+ from connectrpc.errors import ConnectError
11
+ from connectrpc.interceptor import Interceptor, InterceptorSync
12
+ from connectrpc.method import IdempotencyLevel, MethodInfo
13
+ from connectrpc.request import Headers, RequestContext
14
+ from connectrpc.server import ConnectASGIApplication, ConnectWSGIApplication, Endpoint, EndpointSync
15
15
  import metalstack.admin.v2.partition_pb2 as metalstack_dot_admin_dot_v2_dot_partition__pb2
16
16
 
17
17
 
18
18
  class PartitionService(Protocol):
19
19
  async def create(self, request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateResponse:
20
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
20
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
21
21
 
22
22
  async def update(self, request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateResponse:
23
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
23
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
24
24
 
25
25
  async def delete(self, request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteResponse:
26
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
26
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
27
27
 
28
28
  async def capacity(self, request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityResponse:
29
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
29
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
30
30
 
31
31
 
32
- class PartitionServiceASGIApplication(ConnecpyASGIApplication):
33
- def __init__(self, service: PartitionService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None):
32
+ class PartitionServiceASGIApplication(ConnectASGIApplication):
33
+ def __init__(self, service: PartitionService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
34
34
  super().__init__(
35
35
  endpoints={
36
36
  "/metalstack.admin.v2.PartitionService/Create": Endpoint.unary(
@@ -79,12 +79,12 @@ class PartitionServiceASGIApplication(ConnecpyASGIApplication):
79
79
  )
80
80
 
81
81
  @property
82
- def path(self):
82
+ def path(self) -> str:
83
83
  """Returns the URL path to mount the application to when serving multiple applications."""
84
84
  return "/metalstack.admin.v2.PartitionService"
85
85
 
86
86
 
87
- class PartitionServiceClient(ConnecpyClient):
87
+ class PartitionServiceClient(ConnectClient):
88
88
  async def create(
89
89
  self,
90
90
  request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateRequest,
@@ -168,17 +168,17 @@ class PartitionServiceClient(ConnecpyClient):
168
168
 
169
169
  class PartitionServiceSync(Protocol):
170
170
  def create(self, request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateResponse:
171
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
171
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
172
172
  def update(self, request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceUpdateResponse:
173
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
173
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
174
174
  def delete(self, request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceDeleteResponse:
175
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
175
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
176
176
  def capacity(self, request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCapacityResponse:
177
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
177
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
178
178
 
179
179
 
180
- class PartitionServiceWSGIApplication(ConnecpyWSGIApplication):
181
- def __init__(self, service: PartitionServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None):
180
+ class PartitionServiceWSGIApplication(ConnectWSGIApplication):
181
+ def __init__(self, service: PartitionServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
182
182
  super().__init__(
183
183
  endpoints={
184
184
  "/metalstack.admin.v2.PartitionService/Create": EndpointSync.unary(
@@ -227,12 +227,12 @@ class PartitionServiceWSGIApplication(ConnecpyWSGIApplication):
227
227
  )
228
228
 
229
229
  @property
230
- def path(self):
230
+ def path(self) -> str:
231
231
  """Returns the URL path to mount the application to when serving multiple applications."""
232
232
  return "/metalstack.admin.v2.PartitionService"
233
233
 
234
234
 
235
- class PartitionServiceClientSync(ConnecpyClientSync):
235
+ class PartitionServiceClientSync(ConnectClientSync):
236
236
  def create(
237
237
  self,
238
238
  request: metalstack_dot_admin_dot_v2_dot_partition__pb2.PartitionServiceCreateRequest,