metal-stack-api 0.0.22__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.
- {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.23.dist-info}/METADATA +3 -2
- metal_stack_api-0.0.23.dist-info/RECORD +97 -0
- {metal_stack_api-0.0.22.dist-info → metal_stack_api-0.0.23.dist-info}/top_level.txt +0 -1
- metalstack/admin/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
- metalstack/admin/v2/filesystem_pb2.py +20 -19
- metalstack/admin/v2/filesystem_pb2.pyi +1 -0
- metalstack/admin/v2/{image_connecpy.py → image_connect.py} +24 -24
- metalstack/admin/v2/image_pb2.py +24 -23
- metalstack/admin/v2/image_pb2.pyi +1 -0
- metalstack/admin/v2/{ip_connecpy.py → ip_connect.py} +20 -20
- metalstack/admin/v2/ip_pb2.py +2 -2
- metalstack/admin/v2/{machine_connecpy.py → machine_connect.py} +20 -20
- metalstack/admin/v2/machine_pb2.py +15 -14
- metalstack/admin/v2/machine_pb2.pyi +1 -0
- metalstack/admin/v2/{network_connecpy.py → network_connect.py} +26 -26
- metalstack/admin/v2/network_pb2.py +45 -36
- metalstack/admin/v2/network_pb2.pyi +1 -0
- metalstack/admin/v2/{partition_connecpy.py → partition_connect.py} +24 -24
- metalstack/admin/v2/partition_pb2.py +23 -22
- metalstack/admin/v2/partition_pb2.pyi +1 -0
- metalstack/admin/v2/{size_connecpy.py → size_connect.py} +22 -22
- metalstack/admin/v2/size_pb2.py +20 -19
- metalstack/admin/v2/size_pb2.pyi +1 -0
- metalstack/admin/v2/switch_connect.py +444 -0
- metalstack/admin/v2/switch_pb2.py +108 -0
- metalstack/admin/v2/switch_pb2.pyi +114 -0
- metalstack/admin/v2/{tenant_connecpy.py → tenant_connect.py} +20 -20
- metalstack/admin/v2/tenant_pb2.py +18 -15
- metalstack/admin/v2/tenant_pb2.pyi +1 -0
- metalstack/admin/v2/{token_connecpy.py → token_connect.py} +20 -20
- metalstack/admin/v2/token_pb2.py +2 -2
- metalstack/api/v2/common_pb2.py +2 -2
- metalstack/api/v2/{filesystem_connecpy.py → filesystem_connect.py} +22 -22
- metalstack/api/v2/filesystem_pb2.py +54 -53
- metalstack/api/v2/filesystem_pb2.pyi +1 -0
- metalstack/api/v2/{health_connecpy.py → health_connect.py} +18 -18
- metalstack/api/v2/health_pb2.py +2 -2
- metalstack/api/v2/{image_connecpy.py → image_connect.py} +22 -22
- metalstack/api/v2/image_pb2.py +32 -31
- metalstack/api/v2/image_pb2.pyi +1 -0
- metalstack/api/v2/{ip_connecpy.py → ip_connect.py} +26 -26
- metalstack/api/v2/ip_pb2.py +41 -40
- metalstack/api/v2/ip_pb2.pyi +1 -0
- metalstack/api/v2/{machine_connecpy.py → machine_connect.py} +26 -26
- metalstack/api/v2/machine_pb2.py +122 -121
- metalstack/api/v2/machine_pb2.pyi +1 -0
- metalstack/api/v2/{method_connecpy.py → method_connect.py} +20 -20
- metalstack/api/v2/method_pb2.py +2 -2
- metalstack/api/v2/{network_connecpy.py → network_connect.py} +28 -28
- metalstack/api/v2/network_pb2.py +73 -66
- metalstack/api/v2/network_pb2.pyi +1 -0
- metalstack/api/v2/{partition_connecpy.py → partition_connect.py} +20 -20
- metalstack/api/v2/partition_pb2.py +25 -24
- metalstack/api/v2/partition_pb2.pyi +1 -0
- metalstack/api/v2/predefined_rules_pb2.py +50 -0
- metalstack/api/v2/predefined_rules_pb2.pyi +19 -0
- metalstack/api/v2/{project_connecpy.py → project_connect.py} +40 -40
- metalstack/api/v2/project_pb2.py +69 -64
- metalstack/api/v2/project_pb2.pyi +1 -0
- metalstack/api/v2/{size_connecpy.py → size_connect.py} +20 -20
- metalstack/api/v2/size_pb2.py +26 -25
- metalstack/api/v2/size_pb2.pyi +1 -0
- metalstack/api/v2/switch_pb2.py +62 -41
- metalstack/api/v2/switch_pb2.pyi +54 -11
- metalstack/api/v2/{tenant_connecpy.py → tenant_connect.py} +40 -40
- metalstack/api/v2/tenant_pb2.py +69 -64
- metalstack/api/v2/tenant_pb2.pyi +1 -0
- metalstack/api/v2/{token_connecpy.py → token_connect.py} +28 -28
- metalstack/api/v2/token_pb2.py +51 -50
- metalstack/api/v2/token_pb2.pyi +1 -0
- metalstack/api/v2/{user_connecpy.py → user_connect.py} +18 -18
- metalstack/api/v2/user_pb2.py +15 -11
- metalstack/api/v2/user_pb2.pyi +2 -0
- metalstack/api/v2/{version_connecpy.py → version_connect.py} +18 -18
- metalstack/api/v2/version_pb2.py +2 -2
- metalstack/client/client.py +56 -52
- metalstack/infra/v2/{bmc_connecpy.py → bmc_connect.py} +18 -18
- metalstack/infra/v2/bmc_pb2.py +2 -2
- metalstack/infra/v2/{switch_connecpy.py → switch_connect.py} +83 -18
- metalstack/infra/v2/switch_pb2.py +28 -10
- metalstack/infra/v2/switch_pb2.pyi +51 -0
- buf/__init__.py +0 -0
- buf/validate/__init__.py +0 -0
- buf/validate/validate_pb2.py +0 -450
- buf/validate/validate_pb2.pyi +0 -627
- buf/validate/validate_pb2_grpc.py +0 -4
- metal_stack_api-0.0.22.dist-info/RECORD +0 -124
- metalstack/admin/v2/filesystem_pb2_grpc.py +0 -169
- metalstack/admin/v2/image_pb2_grpc.py +0 -213
- metalstack/admin/v2/ip_pb2_grpc.py +0 -125
- metalstack/admin/v2/machine_pb2_grpc.py +0 -125
- metalstack/admin/v2/network_pb2_grpc.py +0 -257
- metalstack/admin/v2/partition_pb2_grpc.py +0 -213
- metalstack/admin/v2/size_pb2_grpc.py +0 -169
- metalstack/admin/v2/tenant_pb2_grpc.py +0 -125
- metalstack/admin/v2/token_pb2_grpc.py +0 -125
- metalstack/api/v2/common_pb2_grpc.py +0 -4
- metalstack/api/v2/filesystem_pb2_grpc.py +0 -169
- metalstack/api/v2/health_pb2_grpc.py +0 -81
- metalstack/api/v2/image_pb2_grpc.py +0 -169
- metalstack/api/v2/ip_pb2_grpc.py +0 -257
- metalstack/api/v2/machine_pb2_grpc.py +0 -257
- metalstack/api/v2/method_pb2_grpc.py +0 -128
- metalstack/api/v2/network_pb2_grpc.py +0 -301
- metalstack/api/v2/partition_pb2_grpc.py +0 -125
- metalstack/api/v2/project_pb2_grpc.py +0 -565
- metalstack/api/v2/size_pb2_grpc.py +0 -125
- metalstack/api/v2/switch_pb2_grpc.py +0 -4
- metalstack/api/v2/tenant_pb2_grpc.py +0 -565
- metalstack/api/v2/token_pb2_grpc.py +0 -301
- metalstack/api/v2/user_pb2_grpc.py +0 -81
- metalstack/api/v2/version_pb2_grpc.py +0 -81
- metalstack/infra/v2/bmc_pb2_grpc.py +0 -81
- metalstack/infra/v2/switch_pb2_grpc.py +0 -81
- {metal_stack_api-0.0.22.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/partition.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
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
|
-
|
|
16
|
+
1,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/partition.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 partition_pb2 as metalstack_dot_api_dot_v2_dot_partition__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/partition.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a!metalstack/api/v2/partition.proto\"[\n\x1dPartitionServiceCreateRequest\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#metalstack/admin/v2/partition.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a!metalstack/api/v2/partition.proto\x1a(metalstack/api/v2/predefined_rules.proto\"[\n\x1dPartitionServiceCreateRequest\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\xb2\x04\n\x1dPartitionServiceUpdateRequest\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\x32\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x0b\xbaH\x08r\x06\xc8\xb3\xae\xb1\x02\x01H\x00R\x0b\x64\x65scription\x88\x01\x01\x12\\\n\x12\x62oot_configuration\x18\x04 \x01(\x0b\x32-.metalstack.api.v2.PartitionBootConfigurationR\x11\x62ootConfiguration\x12\x45\n\ndns_server\x18\x05 \x03(\x0b\x32\x1c.metalstack.api.v2.DNSServerB\x08\xbaH\x05\x92\x01\x02\x10\x03R\tdnsServer\x12\x45\n\nntp_server\x18\x06 \x03(\x0b\x32\x1c.metalstack.api.v2.NTPServerB\x08\xbaH\x05\x92\x01\x02\x10\nR\tntpServer\x12\x34\n\x16mgmt_service_addresses\x18\x07 \x03(\tR\x14mgmtServiceAddresses\x12<\n\x06labels\x18\x08 \x01(\x0b\x32\x1f.metalstack.api.v2.UpdateLabelsH\x01R\x06labels\x88\x01\x01\x42\x0e\n\x0c_descriptionB\t\n\x07_labels\";\n\x1dPartitionServiceDeleteRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"\\\n\x1ePartitionServiceCreateResponse\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\\\n\x1ePartitionServiceUpdateResponse\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\\\n\x1ePartitionServiceDeleteResponse\x12:\n\tpartition\x18\x01 \x01(\x0b\x32\x1c.metalstack.api.v2.PartitionR\tpartition\"\xac\x01\n\x1fPartitionServiceCapacityRequest\x12\x1f\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x00R\x02id\x88\x01\x01\x12#\n\x04size\x18\x02 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01H\x01R\x04size\x88\x01\x01\x12\'\n\x07project\x18\x03 \x01(\tB\x08\xbaH\x05r\x03\xb0\x01\x01H\x02R\x07project\x88\x01\x01\x42\x05\n\x03_idB\x07\n\x05_sizeB\n\n\x08_project\"\x83\x04\n PartitionServiceCapacityResponse\x12\x12\n\x04size\x18\x01 \x01(\tR\x04size\x12\x14\n\x05total\x18\x02 \x01(\x03R\x05total\x12\x1f\n\x0bphoned_home\x18\x03 \x01(\x03R\nphonedHome\x12\x18\n\x07waiting\x18\x04 \x01(\x03R\x07waiting\x12\x14\n\x05other\x18\x05 \x01(\x03R\x05other\x12%\n\x0eother_machines\x18\x06 \x03(\tR\rotherMachines\x12\x1c\n\tallocated\x18\x07 \x01(\x03R\tallocated\x12 \n\x0b\x61llocatable\x18\x08 \x01(\x03R\x0b\x61llocatable\x12\x12\n\x04\x66ree\x18\t \x01(\x03R\x04\x66ree\x12 \n\x0bunavailable\x18\n \x01(\x03R\x0bunavailable\x12\x16\n\x06\x66\x61ulty\x18\x0b \x01(\x03R\x06\x66\x61ulty\x12\'\n\x0f\x66\x61ulty_machines\x18\x0c \x03(\tR\x0e\x66\x61ultyMachines\x12\"\n\x0creservations\x18\r \x01(\x03R\x0creservations\x12+\n\x11used_reservations\x18\x0e \x01(\x03R\x10usedReservations\x12\x35\n\x16remaining_reservations\x18\x0f \x01(\x03R\x15remainingReservations2\x92\x04\n\x10PartitionService\x12|\n\x06\x43reate\x12\x32.metalstack.admin.v2.PartitionServiceCreateRequest\x1a\x33.metalstack.admin.v2.PartitionServiceCreateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12|\n\x06Update\x12\x32.metalstack.admin.v2.PartitionServiceUpdateRequest\x1a\x33.metalstack.admin.v2.PartitionServiceUpdateResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12|\n\x06\x44\x65lete\x12\x32.metalstack.admin.v2.PartitionServiceDeleteRequest\x1a\x33.metalstack.admin.v2.PartitionServiceDeleteResponse\"\t\xd2\xf3\x18\x01\x01\xe0\xf3\x18\x01\x12\x83\x01\n\x08\x43\x61pacity\x12\x34.metalstack.admin.v2.PartitionServiceCapacityRequest\x1a\x35.metalstack.admin.v2.PartitionServiceCapacityResponse\"\n\xd2\xf3\x18\x02\x02\x01\xe0\xf3\x18\x02\x42\xd2\x01\n\x17\x63om.metalstack.admin.v2B\x0ePartitionProtoP\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,7 +41,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
40
41
|
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['update_meta']._loaded_options = None
|
|
41
42
|
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['update_meta']._serialized_options = b'\272H\003\310\001\001'
|
|
42
43
|
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['description']._loaded_options = None
|
|
43
|
-
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\
|
|
44
|
+
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
|
|
44
45
|
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['dns_server']._loaded_options = None
|
|
45
46
|
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['dns_server']._serialized_options = b'\272H\005\222\001\002\020\003'
|
|
46
47
|
_globals['_PARTITIONSERVICEUPDATEREQUEST'].fields_by_name['ntp_server']._loaded_options = None
|
|
@@ -61,22 +62,22 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
61
62
|
_globals['_PARTITIONSERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\001\001\340\363\030\001'
|
|
62
63
|
_globals['_PARTITIONSERVICE'].methods_by_name['Capacity']._loaded_options = None
|
|
63
64
|
_globals['_PARTITIONSERVICE'].methods_by_name['Capacity']._serialized_options = b'\322\363\030\002\002\001\340\363\030\002'
|
|
64
|
-
_globals['_PARTITIONSERVICECREATEREQUEST']._serialized_start=
|
|
65
|
-
_globals['_PARTITIONSERVICECREATEREQUEST']._serialized_end=
|
|
66
|
-
_globals['_PARTITIONSERVICEUPDATEREQUEST']._serialized_start=
|
|
67
|
-
_globals['_PARTITIONSERVICEUPDATEREQUEST']._serialized_end=
|
|
68
|
-
_globals['_PARTITIONSERVICEDELETEREQUEST']._serialized_start=
|
|
69
|
-
_globals['_PARTITIONSERVICEDELETEREQUEST']._serialized_end=
|
|
70
|
-
_globals['_PARTITIONSERVICECREATERESPONSE']._serialized_start=
|
|
71
|
-
_globals['_PARTITIONSERVICECREATERESPONSE']._serialized_end=
|
|
72
|
-
_globals['_PARTITIONSERVICEUPDATERESPONSE']._serialized_start=
|
|
73
|
-
_globals['_PARTITIONSERVICEUPDATERESPONSE']._serialized_end=
|
|
74
|
-
_globals['_PARTITIONSERVICEDELETERESPONSE']._serialized_start=
|
|
75
|
-
_globals['_PARTITIONSERVICEDELETERESPONSE']._serialized_end=
|
|
76
|
-
_globals['_PARTITIONSERVICECAPACITYREQUEST']._serialized_start=
|
|
77
|
-
_globals['_PARTITIONSERVICECAPACITYREQUEST']._serialized_end=
|
|
78
|
-
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_start=
|
|
79
|
-
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_end=
|
|
80
|
-
_globals['_PARTITIONSERVICE']._serialized_start=
|
|
81
|
-
_globals['_PARTITIONSERVICE']._serialized_end=
|
|
65
|
+
_globals['_PARTITIONSERVICECREATEREQUEST']._serialized_start=198
|
|
66
|
+
_globals['_PARTITIONSERVICECREATEREQUEST']._serialized_end=289
|
|
67
|
+
_globals['_PARTITIONSERVICEUPDATEREQUEST']._serialized_start=292
|
|
68
|
+
_globals['_PARTITIONSERVICEUPDATEREQUEST']._serialized_end=854
|
|
69
|
+
_globals['_PARTITIONSERVICEDELETEREQUEST']._serialized_start=856
|
|
70
|
+
_globals['_PARTITIONSERVICEDELETEREQUEST']._serialized_end=915
|
|
71
|
+
_globals['_PARTITIONSERVICECREATERESPONSE']._serialized_start=917
|
|
72
|
+
_globals['_PARTITIONSERVICECREATERESPONSE']._serialized_end=1009
|
|
73
|
+
_globals['_PARTITIONSERVICEUPDATERESPONSE']._serialized_start=1011
|
|
74
|
+
_globals['_PARTITIONSERVICEUPDATERESPONSE']._serialized_end=1103
|
|
75
|
+
_globals['_PARTITIONSERVICEDELETERESPONSE']._serialized_start=1105
|
|
76
|
+
_globals['_PARTITIONSERVICEDELETERESPONSE']._serialized_end=1197
|
|
77
|
+
_globals['_PARTITIONSERVICECAPACITYREQUEST']._serialized_start=1200
|
|
78
|
+
_globals['_PARTITIONSERVICECAPACITYREQUEST']._serialized_end=1372
|
|
79
|
+
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_start=1375
|
|
80
|
+
_globals['_PARTITIONSERVICECAPACITYRESPONSE']._serialized_end=1890
|
|
81
|
+
_globals['_PARTITIONSERVICE']._serialized_start=1893
|
|
82
|
+
_globals['_PARTITIONSERVICE']._serialized_end=2423
|
|
82
83
|
# @@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 partition_pb2 as _partition_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,33 +1,33 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by https://github.com/
|
|
2
|
+
# Generated by https://github.com/connectrpc/connect-python. DO NOT EDIT!
|
|
3
3
|
# source: metalstack/admin/v2/size.proto
|
|
4
4
|
|
|
5
5
|
from collections.abc import AsyncIterator, Iterable, Iterator, Mapping
|
|
6
6
|
from typing import Protocol
|
|
7
7
|
|
|
8
|
-
from
|
|
9
|
-
from
|
|
10
|
-
from
|
|
11
|
-
from
|
|
12
|
-
from
|
|
13
|
-
from
|
|
14
|
-
from
|
|
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.size_pb2 as metalstack_dot_admin_dot_v2_dot_size__pb2
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class SizeService(Protocol):
|
|
19
19
|
async def create(self, request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse:
|
|
20
|
-
raise
|
|
20
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
21
21
|
|
|
22
22
|
async def update(self, request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse:
|
|
23
|
-
raise
|
|
23
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
24
24
|
|
|
25
25
|
async def delete(self, request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse:
|
|
26
|
-
raise
|
|
26
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
class SizeServiceASGIApplication(
|
|
30
|
-
def __init__(self, service: SizeService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None):
|
|
29
|
+
class SizeServiceASGIApplication(ConnectASGIApplication):
|
|
30
|
+
def __init__(self, service: SizeService, *, interceptors: Iterable[Interceptor]=(), read_max_bytes: int | None = None) -> None:
|
|
31
31
|
super().__init__(
|
|
32
32
|
endpoints={
|
|
33
33
|
"/metalstack.admin.v2.SizeService/Create": Endpoint.unary(
|
|
@@ -66,12 +66,12 @@ class SizeServiceASGIApplication(ConnecpyASGIApplication):
|
|
|
66
66
|
)
|
|
67
67
|
|
|
68
68
|
@property
|
|
69
|
-
def path(self):
|
|
69
|
+
def path(self) -> str:
|
|
70
70
|
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
71
71
|
return "/metalstack.admin.v2.SizeService"
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
class SizeServiceClient(
|
|
74
|
+
class SizeServiceClient(ConnectClient):
|
|
75
75
|
async def create(
|
|
76
76
|
self,
|
|
77
77
|
request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest,
|
|
@@ -135,15 +135,15 @@ class SizeServiceClient(ConnecpyClient):
|
|
|
135
135
|
|
|
136
136
|
class SizeServiceSync(Protocol):
|
|
137
137
|
def create(self, request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateResponse:
|
|
138
|
-
raise
|
|
138
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
139
139
|
def update(self, request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceUpdateResponse:
|
|
140
|
-
raise
|
|
140
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
141
141
|
def delete(self, request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteRequest, ctx: RequestContext) -> metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceDeleteResponse:
|
|
142
|
-
raise
|
|
142
|
+
raise ConnectError(Code.UNIMPLEMENTED, "Not implemented")
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
class SizeServiceWSGIApplication(
|
|
146
|
-
def __init__(self, service: SizeServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None):
|
|
145
|
+
class SizeServiceWSGIApplication(ConnectWSGIApplication):
|
|
146
|
+
def __init__(self, service: SizeServiceSync, interceptors: Iterable[InterceptorSync]=(), read_max_bytes: int | None = None) -> None:
|
|
147
147
|
super().__init__(
|
|
148
148
|
endpoints={
|
|
149
149
|
"/metalstack.admin.v2.SizeService/Create": EndpointSync.unary(
|
|
@@ -182,12 +182,12 @@ class SizeServiceWSGIApplication(ConnecpyWSGIApplication):
|
|
|
182
182
|
)
|
|
183
183
|
|
|
184
184
|
@property
|
|
185
|
-
def path(self):
|
|
185
|
+
def path(self) -> str:
|
|
186
186
|
"""Returns the URL path to mount the application to when serving multiple applications."""
|
|
187
187
|
return "/metalstack.admin.v2.SizeService"
|
|
188
188
|
|
|
189
189
|
|
|
190
|
-
class SizeServiceClientSync(
|
|
190
|
+
class SizeServiceClientSync(ConnectClientSync):
|
|
191
191
|
def create(
|
|
192
192
|
self,
|
|
193
193
|
request: metalstack_dot_admin_dot_v2_dot_size__pb2.SizeServiceCreateRequest,
|
metalstack/admin/v2/size_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: metalstack/admin/v2/size.proto
|
|
5
|
-
# Protobuf Python Version: 6.32.
|
|
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
|
-
|
|
16
|
+
1,
|
|
17
17
|
'',
|
|
18
18
|
'metalstack/admin/v2/size.proto'
|
|
19
19
|
)
|
|
@@ -24,10 +24,11 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
from buf.validate import validate_pb2 as buf_dot_validate_dot_validate__pb2
|
|
26
26
|
from metalstack.api.v2 import common_pb2 as metalstack_dot_api_dot_v2_dot_common__pb2
|
|
27
|
+
from metalstack.api.v2 import predefined_rules_pb2 as metalstack_dot_api_dot_v2_dot_predefined__rules__pb2
|
|
27
28
|
from metalstack.api.v2 import size_pb2 as metalstack_dot_api_dot_v2_dot_size__pb2
|
|
28
29
|
|
|
29
30
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emetalstack/admin/v2/size.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a\x1cmetalstack/api/v2/size.proto\"G\n\x18SizeServiceCreateRequest\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"H\n\x19SizeServiceCreateResponse\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"\
|
|
31
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emetalstack/admin/v2/size.proto\x12\x13metalstack.admin.v2\x1a\x1b\x62uf/validate/validate.proto\x1a\x1emetalstack/api/v2/common.proto\x1a(metalstack/api/v2/predefined_rules.proto\x1a\x1cmetalstack/api/v2/size.proto\"G\n\x18SizeServiceCreateRequest\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"H\n\x19SizeServiceCreateResponse\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"\xff\x02\n\x18SizeServiceUpdateRequest\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\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\x43\n\x0b\x63onstraints\x18\x05 \x03(\x0b\x32!.metalstack.api.v2.SizeConstraintR\x0b\x63onstraints\x12<\n\x06labels\x18\x06 \x01(\x0b\x32\x1f.metalstack.api.v2.UpdateLabelsH\x02R\x06labels\x88\x01\x01\x42\x07\n\x05_nameB\x0e\n\x0c_descriptionB\t\n\x07_labels\"H\n\x19SizeServiceUpdateResponse\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size\"6\n\x18SizeServiceDeleteRequest\x12\x1a\n\x02id\x18\x01 \x01(\tB\n\xbaH\x07r\x05\x10\x02\x18\x80\x01R\x02id\"H\n\x19SizeServiceDeleteResponse\x12+\n\x04size\x18\x01 \x01(\x0b\x32\x17.metalstack.api.v2.SizeR\x04size2\xe0\x02\n\x0bSizeService\x12o\n\x06\x43reate\x12-.metalstack.admin.v2.SizeServiceCreateRequest\x1a..metalstack.admin.v2.SizeServiceCreateResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x12o\n\x06Update\x12-.metalstack.admin.v2.SizeServiceUpdateRequest\x1a..metalstack.admin.v2.SizeServiceUpdateResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x12o\n\x06\x44\x65lete\x12-.metalstack.admin.v2.SizeServiceDeleteRequest\x1a..metalstack.admin.v2.SizeServiceDeleteResponse\"\x06\xd2\xf3\x18\x02\x01\x02\x42\xcd\x01\n\x17\x63om.metalstack.admin.v2B\tSizeProtoP\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,9 +41,9 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
40
41
|
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['update_meta']._loaded_options = None
|
|
41
42
|
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['update_meta']._serialized_options = b'\272H\003\310\001\001'
|
|
42
43
|
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['name']._loaded_options = None
|
|
43
|
-
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\
|
|
44
|
+
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['name']._serialized_options = b'\272H\010r\006\300\263\256\261\002\001'
|
|
44
45
|
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['description']._loaded_options = None
|
|
45
|
-
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\
|
|
46
|
+
_globals['_SIZESERVICEUPDATEREQUEST'].fields_by_name['description']._serialized_options = b'\272H\010r\006\310\263\256\261\002\001'
|
|
46
47
|
_globals['_SIZESERVICEDELETEREQUEST'].fields_by_name['id']._loaded_options = None
|
|
47
48
|
_globals['_SIZESERVICEDELETEREQUEST'].fields_by_name['id']._serialized_options = b'\272H\007r\005\020\002\030\200\001'
|
|
48
49
|
_globals['_SIZESERVICE'].methods_by_name['Create']._loaded_options = None
|
|
@@ -51,18 +52,18 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
51
52
|
_globals['_SIZESERVICE'].methods_by_name['Update']._serialized_options = b'\322\363\030\002\001\002'
|
|
52
53
|
_globals['_SIZESERVICE'].methods_by_name['Delete']._loaded_options = None
|
|
53
54
|
_globals['_SIZESERVICE'].methods_by_name['Delete']._serialized_options = b'\322\363\030\002\001\002'
|
|
54
|
-
_globals['_SIZESERVICECREATEREQUEST']._serialized_start=
|
|
55
|
-
_globals['_SIZESERVICECREATEREQUEST']._serialized_end=
|
|
56
|
-
_globals['_SIZESERVICECREATERESPONSE']._serialized_start=
|
|
57
|
-
_globals['_SIZESERVICECREATERESPONSE']._serialized_end=
|
|
58
|
-
_globals['_SIZESERVICEUPDATEREQUEST']._serialized_start=
|
|
59
|
-
_globals['_SIZESERVICEUPDATEREQUEST']._serialized_end=
|
|
60
|
-
_globals['_SIZESERVICEUPDATERESPONSE']._serialized_start=
|
|
61
|
-
_globals['_SIZESERVICEUPDATERESPONSE']._serialized_end=
|
|
62
|
-
_globals['_SIZESERVICEDELETEREQUEST']._serialized_start=
|
|
63
|
-
_globals['_SIZESERVICEDELETEREQUEST']._serialized_end=
|
|
64
|
-
_globals['_SIZESERVICEDELETERESPONSE']._serialized_start=
|
|
65
|
-
_globals['_SIZESERVICEDELETERESPONSE']._serialized_end=
|
|
66
|
-
_globals['_SIZESERVICE']._serialized_start=
|
|
67
|
-
_globals['_SIZESERVICE']._serialized_end=
|
|
55
|
+
_globals['_SIZESERVICECREATEREQUEST']._serialized_start=188
|
|
56
|
+
_globals['_SIZESERVICECREATEREQUEST']._serialized_end=259
|
|
57
|
+
_globals['_SIZESERVICECREATERESPONSE']._serialized_start=261
|
|
58
|
+
_globals['_SIZESERVICECREATERESPONSE']._serialized_end=333
|
|
59
|
+
_globals['_SIZESERVICEUPDATEREQUEST']._serialized_start=336
|
|
60
|
+
_globals['_SIZESERVICEUPDATEREQUEST']._serialized_end=719
|
|
61
|
+
_globals['_SIZESERVICEUPDATERESPONSE']._serialized_start=721
|
|
62
|
+
_globals['_SIZESERVICEUPDATERESPONSE']._serialized_end=793
|
|
63
|
+
_globals['_SIZESERVICEDELETEREQUEST']._serialized_start=795
|
|
64
|
+
_globals['_SIZESERVICEDELETEREQUEST']._serialized_end=849
|
|
65
|
+
_globals['_SIZESERVICEDELETERESPONSE']._serialized_start=851
|
|
66
|
+
_globals['_SIZESERVICEDELETERESPONSE']._serialized_end=923
|
|
67
|
+
_globals['_SIZESERVICE']._serialized_start=926
|
|
68
|
+
_globals['_SIZESERVICE']._serialized_end=1278
|
|
68
69
|
# @@protoc_insertion_point(module_scope)
|
metalstack/admin/v2/size_pb2.pyi
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from buf.validate import validate_pb2 as _validate_pb2
|
|
2
2
|
from metalstack.api.v2 import common_pb2 as _common_pb2
|
|
3
|
+
from metalstack.api.v2 import predefined_rules_pb2 as _predefined_rules_pb2
|
|
3
4
|
from metalstack.api.v2 import size_pb2 as _size_pb2
|
|
4
5
|
from google.protobuf.internal import containers as _containers
|
|
5
6
|
from google.protobuf import descriptor as _descriptor
|