metal-stack-api 0.0.22__py3-none-any.whl → 0.0.24__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.22.dist-info → metal_stack_api-0.0.24.dist-info}/METADATA +3 -2
  2. metal_stack_api-0.0.24.dist-info/RECORD +97 -0
  3. {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.24.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 +2 -2
  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.22.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.22.dist-info → metal_stack_api-0.0.24.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/api/v2/size.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/api/v2/size.proto'
19
19
  )
@@ -24,9 +24,10 @@ _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
 
28
29
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cmetalstack/api/v2/size.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\"3\n\x15SizeServiceGetRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"L\n\x16SizeServiceListRequest\x12\x32\n\x05query\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.SizeQueryR\x05query\"E\n\x16SizeServiceGetResponse\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"H\n\x17SizeServiceListResponse\x12-\n\x05sizes\x18\x01 \x03(\x0b\x32\x17.metalstack.api.v2.SizeR\x05sizes\"\x85\x02\n\x04Size\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\x12+\n\x04meta\x18\x02 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12#\n\x04name\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x04name\x88\x01\x01\x12\x31\n\x0b\x64\x65scription\x18\x05 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12\x43\n\x0b\x63onstraints\x18\x06 \x03(\x0b\x32!.metalstack.api.v2.SizeConstraintR\x0b\x63onstraintsB\x07\n\x05_nameB\x0e\n\x0c_description\"\xb9\x01\n\x0eSizeConstraint\x12\x43\n\x04type\x18\x01 \x01(\x0e\x32%.metalstack.api.v2.SizeConstraintTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04type\x12\x10\n\x03min\x18\x02 \x01(\x04R\x03min\x12\x10\n\x03max\x18\x03 \x01(\x04R\x03max\x12/\n\nidentifier\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x00\x18\x80\x01H\x00R\nidentifier\x88\x01\x01\x42\r\n\x0b_identifier\"\xe7\x01\n\tSizeQuery\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\x36\n\x06labels\x18\x04 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsH\x03R\x06labels\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_nameB\x0e\n\x0c_descriptionB\t\n\x07_labels*\xe8\x01\n\x12SizeConstraintType\x12$\n SIZE_CONSTRAINT_TYPE_UNSPECIFIED\x10\x00\x12)\n\x1aSIZE_CONSTRAINT_TYPE_CORES\x10\x01\x1a\t\x82\xb2\x19\x05\x63ores\x12+\n\x1bSIZE_CONSTRAINT_TYPE_MEMORY\x10\x02\x1a\n\x82\xb2\x19\x06memory\x12-\n\x1cSIZE_CONSTRAINT_TYPE_STORAGE\x10\x03\x1a\x0b\x82\xb2\x19\x07storage\x12%\n\x18SIZE_CONSTRAINT_TYPE_GPU\x10\x04\x1a\x07\x82\xb2\x19\x03gpu2\xdc\x01\n\x0bSizeService\x12\x64\n\x03Get\x12(.metalstack.api.v2.SizeServiceGetRequest\x1a).metalstack.api.v2.SizeServiceGetResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x12g\n\x04List\x12).metalstack.api.v2.SizeServiceListRequest\x1a*.metalstack.api.v2.SizeServiceListResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x42\xbf\x01\n\x15\x63om.metalstack.api.v2B\tSizeProtoP\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')
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cmetalstack/api/v2/size.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\"3\n\x15SizeServiceGetRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"L\n\x16SizeServiceListRequest\x12\x32\n\x05query\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.SizeQueryR\x05query\"E\n\x16SizeServiceGetResponse\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"H\n\x17SizeServiceListResponse\x12-\n\x05sizes\x18\x01 \x03(\x0b\x32\x17.metalstack.api.v2.SizeR\x05sizes\"\x87\x02\n\x04Size\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\x12+\n\x04meta\x18\x02 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12$\n\x04name\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x04name\x88\x01\x01\x12\x32\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x01R\x0b\x64\x65scription\x88\x01\x01\x12\x43\n\x0b\x63onstraints\x18\x06 \x03(\x0b\x32!.metalstack.api.v2.SizeConstraintR\x0b\x63onstraintsB\x07\n\x05_nameB\x0e\n\x0c_description\"\xb9\x01\n\x0eSizeConstraint\x12\x43\n\x04type\x18\x01 \x01(\x0e\x32%.metalstack.api.v2.SizeConstraintTypeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x04type\x12\x10\n\x03min\x18\x02 \x01(\x04R\x03min\x12\x10\n\x03max\x18\x03 \x01(\x04R\x03max\x12/\n\nidentifier\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x00\x18\x80\x01H\x00R\nidentifier\x88\x01\x01\x42\r\n\x0b_identifier\"\xe9\x01\n\tSizeQuery\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\x36\n\x06labels\x18\x04 \x01(\x0b\x32\x19.metalstack.api.v2.LabelsH\x03R\x06labels\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_nameB\x0e\n\x0c_descriptionB\t\n\x07_labels*\xe8\x01\n\x12SizeConstraintType\x12$\n SIZE_CONSTRAINT_TYPE_UNSPECIFIED\x10\x00\x12)\n\x1aSIZE_CONSTRAINT_TYPE_CORES\x10\x01\x1a\t\x82\xb2\x19\x05\x63ores\x12+\n\x1bSIZE_CONSTRAINT_TYPE_MEMORY\x10\x02\x1a\n\x82\xb2\x19\x06memory\x12-\n\x1cSIZE_CONSTRAINT_TYPE_STORAGE\x10\x03\x1a\x0b\x82\xb2\x19\x07storage\x12%\n\x18SIZE_CONSTRAINT_TYPE_GPU\x10\x04\x1a\x07\x82\xb2\x19\x03gpu2\xdc\x01\n\x0bSizeService\x12\x64\n\x03Get\x12(.metalstack.api.v2.SizeServiceGetRequest\x1a).metalstack.api.v2.SizeServiceGetResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x12g\n\x04List\x12).metalstack.api.v2.SizeServiceListRequest\x1a*.metalstack.api.v2.SizeServiceListResponse\"\x08\xd8\xf3\x18\x03\xe0\xf3\x18\x02\x42\xbf\x01\n\x15\x63om.metalstack.api.v2B\tSizeProtoP\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')
30
31
 
31
32
  _globals = globals()
32
33
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -47,9 +48,9 @@ if not _descriptor._USE_C_DESCRIPTORS:
47
48
  _globals['_SIZE'].fields_by_name['id']._loaded_options = None
48
49
  _globals['_SIZE'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
49
50
  _globals['_SIZE'].fields_by_name['name']._loaded_options = None
50
- _globals['_SIZE'].fields_by_name['name']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
51
+ _globals['_SIZE'].fields_by_name['name']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
51
52
  _globals['_SIZE'].fields_by_name['description']._loaded_options = None
52
- _globals['_SIZE'].fields_by_name['description']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
53
+ _globals['_SIZE'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
53
54
  _globals['_SIZECONSTRAINT'].fields_by_name['type']._loaded_options = None
54
55
  _globals['_SIZECONSTRAINT'].fields_by_name['type']._serialized_options = b'\272H\005\202\001\002\020\001'
55
56
  _globals['_SIZECONSTRAINT'].fields_by_name['identifier']._loaded_options = None
@@ -57,29 +58,29 @@ if not _descriptor._USE_C_DESCRIPTORS:
57
58
  _globals['_SIZEQUERY'].fields_by_name['id']._loaded_options = None
58
59
  _globals['_SIZEQUERY'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
59
60
  _globals['_SIZEQUERY'].fields_by_name['name']._loaded_options = None
60
- _globals['_SIZEQUERY'].fields_by_name['name']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
61
+ _globals['_SIZEQUERY'].fields_by_name['name']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
61
62
  _globals['_SIZEQUERY'].fields_by_name['description']._loaded_options = None
62
- _globals['_SIZEQUERY'].fields_by_name['description']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
63
+ _globals['_SIZEQUERY'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
63
64
  _globals['_SIZESERVICE'].methods_by_name['Get']._loaded_options = None
64
65
  _globals['_SIZESERVICE'].methods_by_name['Get']._serialized_options = b'\330\363\030\003\340\363\030\002'
65
66
  _globals['_SIZESERVICE'].methods_by_name['List']._loaded_options = None
66
67
  _globals['_SIZESERVICE'].methods_by_name['List']._serialized_options = b'\330\363\030\003\340\363\030\002'
67
- _globals['_SIZECONSTRAINTTYPE']._serialized_start=1075
68
- _globals['_SIZECONSTRAINTTYPE']._serialized_end=1307
69
- _globals['_SIZESERVICEGETREQUEST']._serialized_start=112
70
- _globals['_SIZESERVICEGETREQUEST']._serialized_end=163
71
- _globals['_SIZESERVICELISTREQUEST']._serialized_start=165
72
- _globals['_SIZESERVICELISTREQUEST']._serialized_end=241
73
- _globals['_SIZESERVICEGETRESPONSE']._serialized_start=243
74
- _globals['_SIZESERVICEGETRESPONSE']._serialized_end=312
75
- _globals['_SIZESERVICELISTRESPONSE']._serialized_start=314
76
- _globals['_SIZESERVICELISTRESPONSE']._serialized_end=386
77
- _globals['_SIZE']._serialized_start=389
78
- _globals['_SIZE']._serialized_end=650
79
- _globals['_SIZECONSTRAINT']._serialized_start=653
80
- _globals['_SIZECONSTRAINT']._serialized_end=838
81
- _globals['_SIZEQUERY']._serialized_start=841
82
- _globals['_SIZEQUERY']._serialized_end=1072
83
- _globals['_SIZESERVICE']._serialized_start=1310
84
- _globals['_SIZESERVICE']._serialized_end=1530
68
+ _globals['_SIZECONSTRAINTTYPE']._serialized_start=1121
69
+ _globals['_SIZECONSTRAINTTYPE']._serialized_end=1353
70
+ _globals['_SIZESERVICEGETREQUEST']._serialized_start=154
71
+ _globals['_SIZESERVICEGETREQUEST']._serialized_end=205
72
+ _globals['_SIZESERVICELISTREQUEST']._serialized_start=207
73
+ _globals['_SIZESERVICELISTREQUEST']._serialized_end=283
74
+ _globals['_SIZESERVICEGETRESPONSE']._serialized_start=285
75
+ _globals['_SIZESERVICEGETRESPONSE']._serialized_end=354
76
+ _globals['_SIZESERVICELISTRESPONSE']._serialized_start=356
77
+ _globals['_SIZESERVICELISTRESPONSE']._serialized_end=428
78
+ _globals['_SIZE']._serialized_start=431
79
+ _globals['_SIZE']._serialized_end=694
80
+ _globals['_SIZECONSTRAINT']._serialized_start=697
81
+ _globals['_SIZECONSTRAINT']._serialized_end=882
82
+ _globals['_SIZEQUERY']._serialized_start=885
83
+ _globals['_SIZEQUERY']._serialized_end=1118
84
+ _globals['_SIZESERVICE']._serialized_start=1356
85
+ _globals['_SIZESERVICE']._serialized_end=1576
85
86
  # @@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 google.protobuf.internal import containers as _containers
4
5
  from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
5
6
  from google.protobuf import descriptor as _descriptor
@@ -2,7 +2,7 @@
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # NO CHECKED-IN PROTOBUF GENCODE
4
4
  # source: metalstack/api/v2/switch.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/api/v2/switch.proto'
19
19
  )
@@ -23,11 +23,12 @@ _sym_db = _symbol_database.Default()
23
23
 
24
24
 
25
25
  from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
26
- from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
26
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
27
27
  from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__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\x1emetalstack/api/v2/switch.proto\x12\x11metalstack.api.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1emetalstack/api/v2/common.proto\"\xd6\x03\n\x06Switch\x12\x1c\n\x02id\x18\x01 \x01(\tB\x0c\xbaH\tr\x07\x10\x02\x18\x80\x01h\x01R\x02id\x12,\n\x0b\x64\x65scription\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x0b\x64\x65scription\x12#\n\x04rack\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x04rack\x88\x01\x01\x12(\n\tpartition\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\tpartition\x12Q\n\x0creplace_mode\x18\x06 \x01(\x0e\x32$.metalstack.api.v2.SwitchReplaceModeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x0breplaceMode\x12,\n\rmanagement_ip\x18\x07 \x01(\tB\x07\xbaH\x04r\x02p\x01R\x0cmanagementIp\x12\x33\n\x0fmanagement_user\x18\x08 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x0emanagementUser\x12\x33\n\x0f\x63onsole_command\x18\t \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x0e\x63onsoleCommand\x12=\n\x0bswitch_nics\x18\n \x03(\x0b\x32\x1c.metalstack.api.v2.SwitchNicR\nswitchNicsB\x07\n\x05_rack\"\xaf\x01\n\x08SwitchOS\x12\x43\n\x06vendor\x18\x01 \x01(\x0e\x32!.metalstack.api.v2.SwitchOSVendorB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06vendor\x12$\n\x07version\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x07version\x12\x38\n\x12metal_core_version\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x10metalCoreVersion\"\xc2\x03\n\tSwitchNic\x12\x1e\n\x04name\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x04name\x12*\n\nidentifier\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\nidentifier\x12\x41\n\x03mac\x18\x03 \x01(\tB/\xbaH,r*2(^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$R\x03mac\x12!\n\x03vrf\x18\x04 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x03vrf\x88\x01\x01\x12\x45\n\x06\x61\x63tual\x18\x05 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06\x61\x63tual\x12@\n\nbgp_filter\x18\x06 \x01(\x0b\x32\x1c.metalstack.api.v2.BGPFilterH\x01R\tbgpFilter\x88\x01\x01\x12P\n\x0e\x62gp_port_state\x18\x07 \x01(\x0b\x32%.metalstack.api.v2.SwitchBGPPortStateH\x02R\x0c\x62gpPortState\x88\x01\x01\x42\x06\n\x04_vrfB\r\n\x0b_bgp_filterB\x11\n\x0f_bgp_port_state\"\x92\x01\n\tBGPFilter\x12\x14\n\x05\x63idrs\x18\x01 \x03(\tR\x05\x63idrs\x12#\n\x04vnis\x18\x02 \x03(\tB\x0f\xbaH\x0c\x92\x01\t\"\x07r\x05\x10\x02\x18\x80\x01R\x04vnis:J\xbaHG\x1a\x45\n\x05\x63idrs\x12\x19given cidrs must be valid\x1a!this.cidrs.all(m, m.isIpPrefix())\"\x8e\x03\n\x12SwitchBGPPortState\x12&\n\x08neighbor\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x08neighbor\x12)\n\npeer_group\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\tpeerGroup\x12%\n\x08vrf_name\x18\x03 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x07vrfName\x12\x42\n\tbgp_state\x18\x04 \x01(\x0e\x32\x1b.metalstack.api.v2.BGPStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x08\x62gpState\x12R\n\x18\x62gp_timer_up_established\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationR\x15\x62gpTimerUpEstablished\x12.\n\x13sent_prefix_counter\x18\x06 \x01(\x04R\x11sentPrefixCounter\x12\x36\n\x17\x61\x63\x63\x65pted_prefix_counter\x18\x07 \x01(\x04R\x15\x61\x63\x63\x65ptedPrefixCounter*\x8b\x02\n\x08\x42GPState\x12\x19\n\x15\x42GP_STATE_UNSPECIFIED\x10\x00\x12\x1c\n\x0e\x42GP_STATE_IDLE\x10\x01\x1a\x08\x82\xb2\x19\x04idle\x12\"\n\x11\x42GP_STATE_CONNECT\x10\x02\x1a\x0b\x82\xb2\x19\x07\x63onnect\x12 \n\x10\x42GP_STATE_ACTIVE\x10\x03\x1a\n\x82\xb2\x19\x06\x61\x63tive\x12&\n\x13\x42GP_STATE_OPEN_SENT\x10\x04\x1a\r\x82\xb2\x19\topen-sent\x12,\n\x16\x42GP_STATE_OPEN_CONFIRM\x10\x05\x1a\x10\x82\xb2\x19\x0copen-confirm\x12*\n\x15\x42GP_STATE_ESTABLISHED\x10\x06\x1a\x0f\x82\xb2\x19\x0b\x65stablished*\x9c\x01\n\x11SwitchReplaceMode\x12#\n\x1fSWITCH_REPLACE_MODE_UNSPECIFIED\x10\x00\x12,\n\x1bSWITCH_REPLACE_MODE_REPLACE\x10\x01\x1a\x0b\x82\xb2\x19\x07replace\x12\x34\n\x1fSWITCH_REPLACE_MODE_OPERATIONAL\x10\x02\x1a\x0f\x82\xb2\x19\x0boperational*\x84\x01\n\x0eSwitchOSVendor\x12 \n\x1cSWITCH_OS_VENDOR_UNSPECIFIED\x10\x00\x12)\n\x18SWITCH_OS_VENDOR_CUMULUS\x10\x01\x1a\x0b\x82\xb2\x19\x07\x63umulus\x12%\n\x16SWITCH_OS_VENDOR_SONIC\x10\x02\x1a\t\x82\xb2\x19\x05sonic*\x80\x01\n\x10SwitchPortStatus\x12\"\n\x1eSWITCH_PORT_STATUS_UNSPECIFIED\x10\x00\x12!\n\x15SWITCH_PORT_STATUS_UP\x10\x01\x1a\x06\x82\xb2\x19\x02up\x12%\n\x17SWITCH_PORT_STATUS_DOWN\x10\x02\x1a\x08\x82\xb2\x19\x04\x64ownB\xc1\x01\n\x15\x63om.metalstack.api.v2B\x0bSwitchProtoP\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\x1emetalstack/api/v2/switch.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\"\xfe\x04\n\x06Switch\x12\x1d\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01R\x02id\x12+\n\x04meta\x18\x02 \x01(\x0b\x32\x17.metalstack.api.v2.MetaR\x04meta\x12-\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01R\x0b\x64\x65scription\x12$\n\x04rack\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x04rack\x88\x01\x01\x12)\n\tpartition\x18\x05 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01R\tpartition\x12Q\n\x0creplace_mode\x18\x06 \x01(\x0e\x32$.metalstack.api.v2.SwitchReplaceModeB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x0breplaceMode\x12,\n\rmanagement_ip\x18\x07 \x01(\tB\x07\xbaH\x04r\x02p\x01R\x0cmanagementIp\x12\x33\n\x0fmanagement_user\x18\x08 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x0emanagementUser\x12\x33\n\x0f\x63onsole_command\x18\t \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x0e\x63onsoleCommand\x12\x30\n\x04nics\x18\n \x03(\x0b\x32\x1c.metalstack.api.v2.SwitchNicR\x04nics\x12+\n\x02os\x18\x0b \x01(\x0b\x32\x1b.metalstack.api.v2.SwitchOSR\x02os\x12U\n\x13machine_connections\x18\x0c \x03(\x0b\x32$.metalstack.api.v2.MachineConnectionR\x12machineConnectionsB\x07\n\x05_rack\"\xb1\x01\n\x08SwitchOS\x12\x43\n\x06vendor\x18\x01 \x01(\x0e\x32!.metalstack.api.v2.SwitchOSVendorB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06vendor\x12%\n\x07version\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x07version\x12\x39\n\x12metal_core_version\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x10metalCoreVersion\"\x9c\x03\n\tSwitchNic\x12\x1f\n\x04name\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x04name\x12+\n\nidentifier\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\nidentifier\x12\x1d\n\x03mac\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xb8\xb3\xae\xb1\x02\x01R\x03mac\x12\"\n\x03vrf\x18\x04 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x00R\x03vrf\x88\x01\x01\x12\x36\n\x05state\x18\x05 \x01(\x0b\x32\x1b.metalstack.api.v2.NicStateH\x01R\x05state\x88\x01\x01\x12@\n\nbgp_filter\x18\x06 \x01(\x0b\x32\x1c.metalstack.api.v2.BGPFilterH\x02R\tbgpFilter\x88\x01\x01\x12P\n\x0e\x62gp_port_state\x18\x07 \x01(\x0b\x32%.metalstack.api.v2.SwitchBGPPortStateH\x03R\x0c\x62gpPortState\x88\x01\x01\x42\x06\n\x04_vrfB\x08\n\x06_stateB\r\n\x0b_bgp_filterB\x11\n\x0f_bgp_port_state\"T\n\tBGPFilter\x12\"\n\x05\x63idrs\x18\x01 \x03(\tB\x0c\xbaH\t\x92\x01\x06\xe0\xb3\xae\xb1\x02\x01R\x05\x63idrs\x12#\n\x04vnis\x18\x02 \x03(\tB\x0f\xbaH\x0c\x92\x01\t\"\x07r\x05\x10\x02\x18\x80\x01R\x04vnis\"\x92\x03\n\x12SwitchBGPPortState\x12\'\n\x08neighbor\x18\x01 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x08neighbor\x12*\n\npeer_group\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\tpeerGroup\x12&\n\x08vrf_name\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01R\x07vrfName\x12\x42\n\tbgp_state\x18\x04 \x01(\x0e\x32\x1b.metalstack.api.v2.BGPStateB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x08\x62gpState\x12S\n\x18\x62gp_timer_up_established\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x15\x62gpTimerUpEstablished\x12.\n\x13sent_prefix_counter\x18\x06 \x01(\x04R\x11sentPrefixCounter\x12\x36\n\x17\x61\x63\x63\x65pted_prefix_counter\x18\x07 \x01(\x04R\x15\x61\x63\x63\x65ptedPrefixCounter\"\x9a\x01\n\x08NicState\x12G\n\x07\x64\x65sired\x18\x01 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x07\x64\x65sired\x12\x45\n\x06\x61\x63tual\x18\x02 \x01(\x0e\x32#.metalstack.api.v2.SwitchPortStatusB\x08\xbaH\x05\x82\x01\x02\x10\x01R\x06\x61\x63tual\"b\n\x11MachineConnection\x12\x1d\n\nmachine_id\x18\x01 \x01(\tR\tmachineId\x12.\n\x03nic\x18\x02 \x01(\x0b\x32\x1c.metalstack.api.v2.SwitchNicR\x03nic\"\xe3\x01\n\x0bSwitchQuery\x12\"\n\x02id\x18\x01 \x01(\tB\r\xbaH\nr\x08h\x01\xc0\xb3\xae\xb1\x02\x01H\x00R\x02id\x88\x01\x01\x12.\n\tpartition\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xd0\xb3\xae\xb1\x02\x01H\x01R\tpartition\x88\x01\x01\x12$\n\x04rack\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x02R\x04rack\x88\x01\x01\x12\x35\n\x02os\x18\x04 \x01(\x0b\x32 .metalstack.api.v2.SwitchOSQueryH\x03R\x02os\x88\x01\x01\x42\x05\n\x03_idB\x0c\n\n_partitionB\x07\n\x05_rackB\x05\n\x03_os\"\x9c\x01\n\rSwitchOSQuery\x12H\n\x06vendor\x18\x01 \x01(\x0e\x32!.metalstack.api.v2.SwitchOSVendorB\x08\xbaH\x05\x82\x01\x02\x10\x01H\x00R\x06vendor\x88\x01\x01\x12*\n\x07version\x18\x02 \x01(\tB\x0b\xbaH\x08r\x06\xc0\xb3\xae\xb1\x02\x01H\x01R\x07version\x88\x01\x01\x42\t\n\x07_vendorB\n\n\x08_version*\x8b\x02\n\x08\x42GPState\x12\x19\n\x15\x42GP_STATE_UNSPECIFIED\x10\x00\x12\x1c\n\x0e\x42GP_STATE_IDLE\x10\x01\x1a\x08\x82\xb2\x19\x04idle\x12\"\n\x11\x42GP_STATE_CONNECT\x10\x02\x1a\x0b\x82\xb2\x19\x07\x63onnect\x12 \n\x10\x42GP_STATE_ACTIVE\x10\x03\x1a\n\x82\xb2\x19\x06\x61\x63tive\x12&\n\x13\x42GP_STATE_OPEN_SENT\x10\x04\x1a\r\x82\xb2\x19\topen-sent\x12,\n\x16\x42GP_STATE_OPEN_CONFIRM\x10\x05\x1a\x10\x82\xb2\x19\x0copen-confirm\x12*\n\x15\x42GP_STATE_ESTABLISHED\x10\x06\x1a\x0f\x82\xb2\x19\x0b\x65stablished*\x9c\x01\n\x11SwitchReplaceMode\x12#\n\x1fSWITCH_REPLACE_MODE_UNSPECIFIED\x10\x00\x12,\n\x1bSWITCH_REPLACE_MODE_REPLACE\x10\x01\x1a\x0b\x82\xb2\x19\x07replace\x12\x34\n\x1fSWITCH_REPLACE_MODE_OPERATIONAL\x10\x02\x1a\x0f\x82\xb2\x19\x0boperational*\x84\x01\n\x0eSwitchOSVendor\x12 \n\x1cSWITCH_OS_VENDOR_UNSPECIFIED\x10\x00\x12)\n\x18SWITCH_OS_VENDOR_CUMULUS\x10\x01\x1a\x0b\x82\xb2\x19\x07\x43umulus\x12%\n\x16SWITCH_OS_VENDOR_SONIC\x10\x02\x1a\t\x82\xb2\x19\x05SONiC*\x80\x01\n\x10SwitchPortStatus\x12\"\n\x1eSWITCH_PORT_STATUS_UNSPECIFIED\x10\x00\x12!\n\x15SWITCH_PORT_STATUS_UP\x10\x01\x1a\x06\x82\xb2\x19\x02up\x12%\n\x17SWITCH_PORT_STATUS_DOWN\x10\x02\x1a\x08\x82\xb2\x19\x04\x64ownB\xc1\x01\n\x15\x63om.metalstack.api.v2B\x0bSwitchProtoP\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
32
 
32
33
  _globals = globals()
33
34
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -52,21 +53,21 @@ if not _descriptor._USE_C_DESCRIPTORS:
52
53
  _globals['_SWITCHREPLACEMODE'].values_by_name["SWITCH_REPLACE_MODE_OPERATIONAL"]._loaded_options = None
53
54
  _globals['_SWITCHREPLACEMODE'].values_by_name["SWITCH_REPLACE_MODE_OPERATIONAL"]._serialized_options = b'\202\262\031\013operational'
54
55
  _globals['_SWITCHOSVENDOR'].values_by_name["SWITCH_OS_VENDOR_CUMULUS"]._loaded_options = None
55
- _globals['_SWITCHOSVENDOR'].values_by_name["SWITCH_OS_VENDOR_CUMULUS"]._serialized_options = b'\202\262\031\007cumulus'
56
+ _globals['_SWITCHOSVENDOR'].values_by_name["SWITCH_OS_VENDOR_CUMULUS"]._serialized_options = b'\202\262\031\007Cumulus'
56
57
  _globals['_SWITCHOSVENDOR'].values_by_name["SWITCH_OS_VENDOR_SONIC"]._loaded_options = None
57
- _globals['_SWITCHOSVENDOR'].values_by_name["SWITCH_OS_VENDOR_SONIC"]._serialized_options = b'\202\262\031\005sonic'
58
+ _globals['_SWITCHOSVENDOR'].values_by_name["SWITCH_OS_VENDOR_SONIC"]._serialized_options = b'\202\262\031\005SONiC'
58
59
  _globals['_SWITCHPORTSTATUS'].values_by_name["SWITCH_PORT_STATUS_UP"]._loaded_options = None
59
60
  _globals['_SWITCHPORTSTATUS'].values_by_name["SWITCH_PORT_STATUS_UP"]._serialized_options = b'\202\262\031\002up'
60
61
  _globals['_SWITCHPORTSTATUS'].values_by_name["SWITCH_PORT_STATUS_DOWN"]._loaded_options = None
61
62
  _globals['_SWITCHPORTSTATUS'].values_by_name["SWITCH_PORT_STATUS_DOWN"]._serialized_options = b'\202\262\031\004down'
62
63
  _globals['_SWITCH'].fields_by_name['id']._loaded_options = None
63
- _globals['_SWITCH'].fields_by_name['id']._serialized_options = b'\272H\tr\007\020\002\030\200\001h\001'
64
+ _globals['_SWITCH'].fields_by_name['id']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
64
65
  _globals['_SWITCH'].fields_by_name['description']._loaded_options = None
65
- _globals['_SWITCH'].fields_by_name['description']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
66
+ _globals['_SWITCH'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
66
67
  _globals['_SWITCH'].fields_by_name['rack']._loaded_options = None
67
- _globals['_SWITCH'].fields_by_name['rack']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
68
+ _globals['_SWITCH'].fields_by_name['rack']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
68
69
  _globals['_SWITCH'].fields_by_name['partition']._loaded_options = None
69
- _globals['_SWITCH'].fields_by_name['partition']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
70
+ _globals['_SWITCH'].fields_by_name['partition']._serialized_options = b'\272H\010r\006\320\263\256\261\002\001'
70
71
  _globals['_SWITCH'].fields_by_name['replace_mode']._loaded_options = None
71
72
  _globals['_SWITCH'].fields_by_name['replace_mode']._serialized_options = b'\272H\005\202\001\002\020\001'
72
73
  _globals['_SWITCH'].fields_by_name['management_ip']._loaded_options = None
@@ -78,47 +79,67 @@ if not _descriptor._USE_C_DESCRIPTORS:
78
79
  _globals['_SWITCHOS'].fields_by_name['vendor']._loaded_options = None
79
80
  _globals['_SWITCHOS'].fields_by_name['vendor']._serialized_options = b'\272H\005\202\001\002\020\001'
80
81
  _globals['_SWITCHOS'].fields_by_name['version']._loaded_options = None
81
- _globals['_SWITCHOS'].fields_by_name['version']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
82
+ _globals['_SWITCHOS'].fields_by_name['version']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
82
83
  _globals['_SWITCHOS'].fields_by_name['metal_core_version']._loaded_options = None
83
- _globals['_SWITCHOS'].fields_by_name['metal_core_version']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
84
+ _globals['_SWITCHOS'].fields_by_name['metal_core_version']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
84
85
  _globals['_SWITCHNIC'].fields_by_name['name']._loaded_options = None
85
- _globals['_SWITCHNIC'].fields_by_name['name']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
86
+ _globals['_SWITCHNIC'].fields_by_name['name']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
86
87
  _globals['_SWITCHNIC'].fields_by_name['identifier']._loaded_options = None
87
- _globals['_SWITCHNIC'].fields_by_name['identifier']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
88
+ _globals['_SWITCHNIC'].fields_by_name['identifier']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
88
89
  _globals['_SWITCHNIC'].fields_by_name['mac']._loaded_options = None
89
- _globals['_SWITCHNIC'].fields_by_name['mac']._serialized_options = b'\272H,r*2(^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$'
90
+ _globals['_SWITCHNIC'].fields_by_name['mac']._serialized_options = b'\272H\010r\006\270\263\256\261\002\001'
90
91
  _globals['_SWITCHNIC'].fields_by_name['vrf']._loaded_options = None
91
- _globals['_SWITCHNIC'].fields_by_name['vrf']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
92
- _globals['_SWITCHNIC'].fields_by_name['actual']._loaded_options = None
93
- _globals['_SWITCHNIC'].fields_by_name['actual']._serialized_options = b'\272H\005\202\001\002\020\001'
92
+ _globals['_SWITCHNIC'].fields_by_name['vrf']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
93
+ _globals['_BGPFILTER'].fields_by_name['cidrs']._loaded_options = None
94
+ _globals['_BGPFILTER'].fields_by_name['cidrs']._serialized_options = b'\272H\t\222\001\006\340\263\256\261\002\001'
94
95
  _globals['_BGPFILTER'].fields_by_name['vnis']._loaded_options = None
95
96
  _globals['_BGPFILTER'].fields_by_name['vnis']._serialized_options = b'\272H\014\222\001\t\"\007r\005\020\002\030\200\001'
96
- _globals['_BGPFILTER']._loaded_options = None
97
- _globals['_BGPFILTER']._serialized_options = b'\272HG\032E\n\005cidrs\022\031given cidrs must be valid\032!this.cidrs.all(m, m.isIpPrefix())'
98
97
  _globals['_SWITCHBGPPORTSTATE'].fields_by_name['neighbor']._loaded_options = None
99
- _globals['_SWITCHBGPPORTSTATE'].fields_by_name['neighbor']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
98
+ _globals['_SWITCHBGPPORTSTATE'].fields_by_name['neighbor']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
100
99
  _globals['_SWITCHBGPPORTSTATE'].fields_by_name['peer_group']._loaded_options = None
101
- _globals['_SWITCHBGPPORTSTATE'].fields_by_name['peer_group']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
100
+ _globals['_SWITCHBGPPORTSTATE'].fields_by_name['peer_group']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
102
101
  _globals['_SWITCHBGPPORTSTATE'].fields_by_name['vrf_name']._loaded_options = None
103
- _globals['_SWITCHBGPPORTSTATE'].fields_by_name['vrf_name']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
102
+ _globals['_SWITCHBGPPORTSTATE'].fields_by_name['vrf_name']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
104
103
  _globals['_SWITCHBGPPORTSTATE'].fields_by_name['bgp_state']._loaded_options = None
105
104
  _globals['_SWITCHBGPPORTSTATE'].fields_by_name['bgp_state']._serialized_options = b'\272H\005\202\001\002\020\001'
106
- _globals['_BGPSTATE']._serialized_start=1801
107
- _globals['_BGPSTATE']._serialized_end=2068
108
- _globals['_SWITCHREPLACEMODE']._serialized_start=2071
109
- _globals['_SWITCHREPLACEMODE']._serialized_end=2227
110
- _globals['_SWITCHOSVENDOR']._serialized_start=2230
111
- _globals['_SWITCHOSVENDOR']._serialized_end=2362
112
- _globals['_SWITCHPORTSTATUS']._serialized_start=2365
113
- _globals['_SWITCHPORTSTATUS']._serialized_end=2493
114
- _globals['_SWITCH']._serialized_start=147
115
- _globals['_SWITCH']._serialized_end=617
116
- _globals['_SWITCHOS']._serialized_start=620
117
- _globals['_SWITCHOS']._serialized_end=795
118
- _globals['_SWITCHNIC']._serialized_start=798
119
- _globals['_SWITCHNIC']._serialized_end=1248
120
- _globals['_BGPFILTER']._serialized_start=1251
121
- _globals['_BGPFILTER']._serialized_end=1397
122
- _globals['_SWITCHBGPPORTSTATE']._serialized_start=1400
123
- _globals['_SWITCHBGPPORTSTATE']._serialized_end=1798
105
+ _globals['_NICSTATE'].fields_by_name['desired']._loaded_options = None
106
+ _globals['_NICSTATE'].fields_by_name['desired']._serialized_options = b'\272H\005\202\001\002\020\001'
107
+ _globals['_NICSTATE'].fields_by_name['actual']._loaded_options = None
108
+ _globals['_NICSTATE'].fields_by_name['actual']._serialized_options = b'\272H\005\202\001\002\020\001'
109
+ _globals['_SWITCHQUERY'].fields_by_name['id']._loaded_options = None
110
+ _globals['_SWITCHQUERY'].fields_by_name['id']._serialized_options = b'\272H\nr\010h\001\300\263\256\261\002\001'
111
+ _globals['_SWITCHQUERY'].fields_by_name['partition']._loaded_options = None
112
+ _globals['_SWITCHQUERY'].fields_by_name['partition']._serialized_options = b'\272H\010r\006\320\263\256\261\002\001'
113
+ _globals['_SWITCHQUERY'].fields_by_name['rack']._loaded_options = None
114
+ _globals['_SWITCHQUERY'].fields_by_name['rack']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
115
+ _globals['_SWITCHOSQUERY'].fields_by_name['vendor']._loaded_options = None
116
+ _globals['_SWITCHOSQUERY'].fields_by_name['vendor']._serialized_options = b'\272H\005\202\001\002\020\001'
117
+ _globals['_SWITCHOSQUERY'].fields_by_name['version']._loaded_options = None
118
+ _globals['_SWITCHOSQUERY'].fields_by_name['version']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
119
+ _globals['_BGPSTATE']._serialized_start=2563
120
+ _globals['_BGPSTATE']._serialized_end=2830
121
+ _globals['_SWITCHREPLACEMODE']._serialized_start=2833
122
+ _globals['_SWITCHREPLACEMODE']._serialized_end=2989
123
+ _globals['_SWITCHOSVENDOR']._serialized_start=2992
124
+ _globals['_SWITCHOSVENDOR']._serialized_end=3124
125
+ _globals['_SWITCHPORTSTATUS']._serialized_start=3127
126
+ _globals['_SWITCHPORTSTATUS']._serialized_end=3255
127
+ _globals['_SWITCH']._serialized_start=190
128
+ _globals['_SWITCH']._serialized_end=828
129
+ _globals['_SWITCHOS']._serialized_start=831
130
+ _globals['_SWITCHOS']._serialized_end=1008
131
+ _globals['_SWITCHNIC']._serialized_start=1011
132
+ _globals['_SWITCHNIC']._serialized_end=1423
133
+ _globals['_BGPFILTER']._serialized_start=1425
134
+ _globals['_BGPFILTER']._serialized_end=1509
135
+ _globals['_SWITCHBGPPORTSTATE']._serialized_start=1512
136
+ _globals['_SWITCHBGPPORTSTATE']._serialized_end=1914
137
+ _globals['_NICSTATE']._serialized_start=1917
138
+ _globals['_NICSTATE']._serialized_end=2071
139
+ _globals['_MACHINECONNECTION']._serialized_start=2073
140
+ _globals['_MACHINECONNECTION']._serialized_end=2171
141
+ _globals['_SWITCHQUERY']._serialized_start=2174
142
+ _globals['_SWITCHQUERY']._serialized_end=2401
143
+ _globals['_SWITCHOSQUERY']._serialized_start=2404
144
+ _globals['_SWITCHOSQUERY']._serialized_end=2560
124
145
  # @@protoc_insertion_point(module_scope)
@@ -1,8 +1,9 @@
1
1
  import datetime
2
2
 
3
3
  from buf.validate import validate_pb2 as _validate_pb2
4
- from google.protobuf import duration_pb2 as _duration_pb2
4
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
5
5
  from metalstack.api.v2 import common_pb2 as _common_pb2
6
+ from metalstack.api.v2 import predefined_rules_pb2 as _predefined_rules_pb2
6
7
  from google.protobuf.internal import containers as _containers
7
8
  from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
8
9
  from google.protobuf import descriptor as _descriptor
@@ -57,8 +58,9 @@ SWITCH_PORT_STATUS_UP: SwitchPortStatus
57
58
  SWITCH_PORT_STATUS_DOWN: SwitchPortStatus
58
59
 
59
60
  class Switch(_message.Message):
60
- __slots__ = ("id", "description", "rack", "partition", "replace_mode", "management_ip", "management_user", "console_command", "switch_nics")
61
+ __slots__ = ("id", "meta", "description", "rack", "partition", "replace_mode", "management_ip", "management_user", "console_command", "nics", "os", "machine_connections")
61
62
  ID_FIELD_NUMBER: _ClassVar[int]
63
+ META_FIELD_NUMBER: _ClassVar[int]
62
64
  DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
63
65
  RACK_FIELD_NUMBER: _ClassVar[int]
64
66
  PARTITION_FIELD_NUMBER: _ClassVar[int]
@@ -66,8 +68,11 @@ class Switch(_message.Message):
66
68
  MANAGEMENT_IP_FIELD_NUMBER: _ClassVar[int]
67
69
  MANAGEMENT_USER_FIELD_NUMBER: _ClassVar[int]
68
70
  CONSOLE_COMMAND_FIELD_NUMBER: _ClassVar[int]
69
- SWITCH_NICS_FIELD_NUMBER: _ClassVar[int]
71
+ NICS_FIELD_NUMBER: _ClassVar[int]
72
+ OS_FIELD_NUMBER: _ClassVar[int]
73
+ MACHINE_CONNECTIONS_FIELD_NUMBER: _ClassVar[int]
70
74
  id: str
75
+ meta: _common_pb2.Meta
71
76
  description: str
72
77
  rack: str
73
78
  partition: str
@@ -75,8 +80,10 @@ class Switch(_message.Message):
75
80
  management_ip: str
76
81
  management_user: str
77
82
  console_command: str
78
- switch_nics: _containers.RepeatedCompositeFieldContainer[SwitchNic]
79
- def __init__(self, id: _Optional[str] = ..., description: _Optional[str] = ..., rack: _Optional[str] = ..., partition: _Optional[str] = ..., replace_mode: _Optional[_Union[SwitchReplaceMode, str]] = ..., management_ip: _Optional[str] = ..., management_user: _Optional[str] = ..., console_command: _Optional[str] = ..., switch_nics: _Optional[_Iterable[_Union[SwitchNic, _Mapping]]] = ...) -> None: ...
83
+ nics: _containers.RepeatedCompositeFieldContainer[SwitchNic]
84
+ os: SwitchOS
85
+ machine_connections: _containers.RepeatedCompositeFieldContainer[MachineConnection]
86
+ def __init__(self, id: _Optional[str] = ..., meta: _Optional[_Union[_common_pb2.Meta, _Mapping]] = ..., description: _Optional[str] = ..., rack: _Optional[str] = ..., partition: _Optional[str] = ..., replace_mode: _Optional[_Union[SwitchReplaceMode, str]] = ..., management_ip: _Optional[str] = ..., management_user: _Optional[str] = ..., console_command: _Optional[str] = ..., nics: _Optional[_Iterable[_Union[SwitchNic, _Mapping]]] = ..., os: _Optional[_Union[SwitchOS, _Mapping]] = ..., machine_connections: _Optional[_Iterable[_Union[MachineConnection, _Mapping]]] = ...) -> None: ...
80
87
 
81
88
  class SwitchOS(_message.Message):
82
89
  __slots__ = ("vendor", "version", "metal_core_version")
@@ -89,22 +96,22 @@ class SwitchOS(_message.Message):
89
96
  def __init__(self, vendor: _Optional[_Union[SwitchOSVendor, str]] = ..., version: _Optional[str] = ..., metal_core_version: _Optional[str] = ...) -> None: ...
90
97
 
91
98
  class SwitchNic(_message.Message):
92
- __slots__ = ("name", "identifier", "mac", "vrf", "actual", "bgp_filter", "bgp_port_state")
99
+ __slots__ = ("name", "identifier", "mac", "vrf", "state", "bgp_filter", "bgp_port_state")
93
100
  NAME_FIELD_NUMBER: _ClassVar[int]
94
101
  IDENTIFIER_FIELD_NUMBER: _ClassVar[int]
95
102
  MAC_FIELD_NUMBER: _ClassVar[int]
96
103
  VRF_FIELD_NUMBER: _ClassVar[int]
97
- ACTUAL_FIELD_NUMBER: _ClassVar[int]
104
+ STATE_FIELD_NUMBER: _ClassVar[int]
98
105
  BGP_FILTER_FIELD_NUMBER: _ClassVar[int]
99
106
  BGP_PORT_STATE_FIELD_NUMBER: _ClassVar[int]
100
107
  name: str
101
108
  identifier: str
102
109
  mac: str
103
110
  vrf: str
104
- actual: SwitchPortStatus
111
+ state: NicState
105
112
  bgp_filter: BGPFilter
106
113
  bgp_port_state: SwitchBGPPortState
107
- def __init__(self, name: _Optional[str] = ..., identifier: _Optional[str] = ..., mac: _Optional[str] = ..., vrf: _Optional[str] = ..., actual: _Optional[_Union[SwitchPortStatus, str]] = ..., bgp_filter: _Optional[_Union[BGPFilter, _Mapping]] = ..., bgp_port_state: _Optional[_Union[SwitchBGPPortState, _Mapping]] = ...) -> None: ...
114
+ def __init__(self, name: _Optional[str] = ..., identifier: _Optional[str] = ..., mac: _Optional[str] = ..., vrf: _Optional[str] = ..., state: _Optional[_Union[NicState, _Mapping]] = ..., bgp_filter: _Optional[_Union[BGPFilter, _Mapping]] = ..., bgp_port_state: _Optional[_Union[SwitchBGPPortState, _Mapping]] = ...) -> None: ...
108
115
 
109
116
  class BGPFilter(_message.Message):
110
117
  __slots__ = ("cidrs", "vnis")
@@ -127,7 +134,43 @@ class SwitchBGPPortState(_message.Message):
127
134
  peer_group: str
128
135
  vrf_name: str
129
136
  bgp_state: BGPState
130
- bgp_timer_up_established: _duration_pb2.Duration
137
+ bgp_timer_up_established: _timestamp_pb2.Timestamp
131
138
  sent_prefix_counter: int
132
139
  accepted_prefix_counter: int
133
- def __init__(self, neighbor: _Optional[str] = ..., peer_group: _Optional[str] = ..., vrf_name: _Optional[str] = ..., bgp_state: _Optional[_Union[BGPState, str]] = ..., bgp_timer_up_established: _Optional[_Union[datetime.timedelta, _duration_pb2.Duration, _Mapping]] = ..., sent_prefix_counter: _Optional[int] = ..., accepted_prefix_counter: _Optional[int] = ...) -> None: ...
140
+ def __init__(self, neighbor: _Optional[str] = ..., peer_group: _Optional[str] = ..., vrf_name: _Optional[str] = ..., bgp_state: _Optional[_Union[BGPState, str]] = ..., bgp_timer_up_established: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., sent_prefix_counter: _Optional[int] = ..., accepted_prefix_counter: _Optional[int] = ...) -> None: ...
141
+
142
+ class NicState(_message.Message):
143
+ __slots__ = ("desired", "actual")
144
+ DESIRED_FIELD_NUMBER: _ClassVar[int]
145
+ ACTUAL_FIELD_NUMBER: _ClassVar[int]
146
+ desired: SwitchPortStatus
147
+ actual: SwitchPortStatus
148
+ def __init__(self, desired: _Optional[_Union[SwitchPortStatus, str]] = ..., actual: _Optional[_Union[SwitchPortStatus, str]] = ...) -> None: ...
149
+
150
+ class MachineConnection(_message.Message):
151
+ __slots__ = ("machine_id", "nic")
152
+ MACHINE_ID_FIELD_NUMBER: _ClassVar[int]
153
+ NIC_FIELD_NUMBER: _ClassVar[int]
154
+ machine_id: str
155
+ nic: SwitchNic
156
+ def __init__(self, machine_id: _Optional[str] = ..., nic: _Optional[_Union[SwitchNic, _Mapping]] = ...) -> None: ...
157
+
158
+ class SwitchQuery(_message.Message):
159
+ __slots__ = ("id", "partition", "rack", "os")
160
+ ID_FIELD_NUMBER: _ClassVar[int]
161
+ PARTITION_FIELD_NUMBER: _ClassVar[int]
162
+ RACK_FIELD_NUMBER: _ClassVar[int]
163
+ OS_FIELD_NUMBER: _ClassVar[int]
164
+ id: str
165
+ partition: str
166
+ rack: str
167
+ os: SwitchOSQuery
168
+ def __init__(self, id: _Optional[str] = ..., partition: _Optional[str] = ..., rack: _Optional[str] = ..., os: _Optional[_Union[SwitchOSQuery, _Mapping]] = ...) -> None: ...
169
+
170
+ class SwitchOSQuery(_message.Message):
171
+ __slots__ = ("vendor", "version")
172
+ VENDOR_FIELD_NUMBER: _ClassVar[int]
173
+ VERSION_FIELD_NUMBER: _ClassVar[int]
174
+ vendor: SwitchOSVendor
175
+ version: str
176
+ def __init__(self, vendor: _Optional[_Union[SwitchOSVendor, str]] = ..., version: _Optional[str] = ...) -> None: ...
@@ -1,60 +1,60 @@
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/api/v2/tenant.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.api.v2.tenant_pb2 as metalstack_dot_api_dot_v2_dot_tenant__pb2
16
16
 
17
17
 
18
18
  class TenantService(Protocol):
19
19
  async def create(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
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_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
23
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
23
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
24
24
 
25
25
  async def get(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse:
26
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
26
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
27
27
 
28
28
  async def update(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse:
29
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
29
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
30
30
 
31
31
  async def delete(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse:
32
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
32
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
33
33
 
34
34
  async def remove_member(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse:
35
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
35
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
36
36
 
37
37
  async def update_member(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse:
38
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
38
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
39
39
 
40
40
  async def invite(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse:
41
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
41
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
42
42
 
43
43
  async def invite_accept(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse:
44
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
44
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
45
45
 
46
46
  async def invite_delete(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse:
47
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
47
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
48
48
 
49
49
  async def invites_list(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse:
50
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
50
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
51
51
 
52
52
  async def invite_get(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse:
53
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
53
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
54
54
 
55
55
 
56
- class TenantServiceASGIApplication(ConnecpyASGIApplication):
57
- def __init__(self, service: TenantService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None):
56
+ class TenantServiceASGIApplication(ConnectASGIApplication):
57
+ def __init__(self, service: TenantService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
58
58
  super().__init__(
59
59
  endpoints={
60
60
  "/metalstack.api.v2.TenantService/Create": Endpoint.unary(
@@ -183,12 +183,12 @@ class TenantServiceASGIApplication(ConnecpyASGIApplication):
183
183
  )
184
184
 
185
185
  @property
186
- def path(self):
186
+ def path(self) -> str:
187
187
  """Returns the URL path to mount the application to when serving multiple applications."""
188
188
  return "/metalstack.api.v2.TenantService"
189
189
 
190
190
 
191
- class TenantServiceClient(ConnecpyClient):
191
+ class TenantServiceClient(ConnectClient):
192
192
  async def create(
193
193
  self,
194
194
  request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,
@@ -432,33 +432,33 @@ class TenantServiceClient(ConnecpyClient):
432
432
 
433
433
  class TenantServiceSync(Protocol):
434
434
  def create(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateResponse:
435
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
435
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
436
436
  def list(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceListResponse:
437
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
437
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
438
438
  def get(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceGetResponse:
439
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
439
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
440
440
  def update(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateResponse:
441
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
441
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
442
442
  def delete(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceDeleteResponse:
443
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
443
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
444
444
  def remove_member(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceRemoveMemberResponse:
445
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
445
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
446
446
  def update_member(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceUpdateMemberResponse:
447
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
447
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
448
448
  def invite(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteResponse:
449
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
449
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
450
450
  def invite_accept(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteAcceptResponse:
451
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
451
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
452
452
  def invite_delete(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteDeleteResponse:
453
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
453
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
454
454
  def invites_list(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInvitesListResponse:
455
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
455
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
456
456
  def invite_get(self, request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetRequest, ctx: RequestContext) -> metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceInviteGetResponse:
457
- raise ConnecpyException(Code.UNIMPLEMENTED, "Not implemented")
457
+ raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
458
458
 
459
459
 
460
- class TenantServiceWSGIApplication(ConnecpyWSGIApplication):
461
- def __init__(self, service: TenantServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None):
460
+ class TenantServiceWSGIApplication(ConnectWSGIApplication):
461
+ def __init__(self, service: TenantServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
462
462
  super().__init__(
463
463
  endpoints={
464
464
  "/metalstack.api.v2.TenantService/Create": EndpointSync.unary(
@@ -587,12 +587,12 @@ class TenantServiceWSGIApplication(ConnecpyWSGIApplication):
587
587
  )
588
588
 
589
589
  @property
590
- def path(self):
590
+ def path(self) -> str:
591
591
  """Returns the URL path to mount the application to when serving multiple applications."""
592
592
  return "/metalstack.api.v2.TenantService"
593
593
 
594
594
 
595
- class TenantServiceClientSync(ConnecpyClientSync):
595
+ class TenantServiceClientSync(ConnectClientSync):
596
596
  def create(
597
597
  self,
598
598
  request: metalstack_dot_api_dot_v2_dot_tenant__pb2.TenantServiceCreateRequest,