diff --git a/backend/orchestrator/function_pb2.py b/backend/orchestrator/function_pb2.py index 4d67b3f83..51a52d5cc 100644 --- a/backend/orchestrator/function_pb2.py +++ b/backend/orchestrator/function_pb2.py @@ -15,7 +15,7 @@ from . import common_pb2 as common__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x66unction.proto\x12\x0corchestrator\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0c\x63ommon.proto\"Z\n\rFunctionInput\x12%\n\x04kind\x18\x01 \x01(\x0e\x32\x17.orchestrator.AssetKind\x12\x10\n\x08multiple\x18\x02 \x01(\x08\x12\x10\n\x08optional\x18\x03 \x01(\x08\"I\n\x0e\x46unctionOutput\x12%\n\x04kind\x18\x01 \x01(\x0e\x32\x17.orchestrator.AssetKind\x12\x10\n\x08multiple\x18\x02 \x01(\x08\"\xc8\x05\n\x08\x46unction\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32\x19.orchestrator.Addressable\x12*\n\x07\x61rchive\x18\x05 \x01(\x0b\x32\x19.orchestrator.Addressable\x12.\n\x0bpermissions\x18\x06 \x01(\x0b\x32\x19.orchestrator.Permissions\x12\r\n\x05owner\x18\x07 \x01(\t\x12\x31\n\rcreation_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x08metadata\x18\x10 \x03(\x0b\x32$.orchestrator.Function.MetadataEntry\x12\x32\n\x06inputs\x18\x11 \x03(\x0b\x32\".orchestrator.Function.InputsEntry\x12\x34\n\x07outputs\x18\x12 \x03(\x0b\x32#.orchestrator.Function.OutputsEntry\x12,\n\x06status\x18\x13 \x01(\x0e\x32\x1c.orchestrator.FunctionStatus\x12(\n\x05image\x18\x14 \x01(\x0b\x32\x19.orchestrator.Addressable\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aJ\n\x0bInputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.orchestrator.FunctionInput:\x02\x38\x01\x1aL\n\x0cOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.orchestrator.FunctionOutput:\x02\x38\x01J\x04\x08\x03\x10\x04R\x08\x63\x61tegory\"\xc1\x04\n\x0bNewFunction\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32\x19.orchestrator.Addressable\x12*\n\x07\x61rchive\x18\x05 \x01(\x0b\x32\x19.orchestrator.Addressable\x12\x35\n\x0fnew_permissions\x18\x06 \x01(\x0b\x32\x1c.orchestrator.NewPermissions\x12\x39\n\x08metadata\x18\x11 \x03(\x0b\x32\'.orchestrator.NewFunction.MetadataEntry\x12\x35\n\x06inputs\x18\x12 \x03(\x0b\x32%.orchestrator.NewFunction.InputsEntry\x12\x37\n\x07outputs\x18\x13 \x03(\x0b\x32&.orchestrator.NewFunction.OutputsEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aJ\n\x0bInputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.orchestrator.FunctionInput:\x02\x38\x01\x1aL\n\x0cOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.orchestrator.FunctionOutput:\x02\x38\x01J\x04\x08\x03\x10\x04R\x08\x63\x61tegory\"\x1f\n\x10GetFunctionParam\x12\x0b\n\x03key\x18\x01 \x01(\t\"\\\n\x16QueryFunctionsResponse\x12)\n\tFunctions\x18\x01 \x03(\x0b\x32\x16.orchestrator.Function\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"/\n\x13\x46unctionQueryFilter\x12\x18\n\x10\x63ompute_plan_key\x18\x02 \x01(\t\"o\n\x13QueryFunctionsParam\x12\x12\n\npage_token\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\r\x12\x31\n\x06\x66ilter\x18\x03 \x01(\x0b\x32!.orchestrator.FunctionQueryFilter\"0\n\x13UpdateFunctionParam\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"\x18\n\x16UpdateFunctionResponse\"^\n\x18\x41pplyFunctionActionParam\x12\x14\n\x0c\x66unction_key\x18\x01 \x01(\t\x12,\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32\x1c.orchestrator.FunctionAction\"\x1d\n\x1b\x41pplyFunctionActionResponse*\xa0\x01\n\x0e\x46unctionAction\x12\x1b\n\x17\x46UNCTION_ACTION_UNKNOWN\x10\x00\x12\x1c\n\x18\x46UNCTION_ACTION_BUILDING\x10\x01\x12\x1c\n\x18\x46UNCTION_ACTION_CANCELED\x10\x02\x12\x1a\n\x16\x46UNCTION_ACTION_FAILED\x10\x03\x12\x19\n\x15\x46UNCTION_ACTION_READY\x10\x04*\xbd\x01\n\x0e\x46unctionStatus\x12\x1b\n\x17\x46UNCTION_STATUS_UNKNOWN\x10\x00\x12\x1b\n\x17\x46UNCTION_STATUS_WAITING\x10\x01\x12\x1c\n\x18\x46UNCTION_STATUS_BUILDING\x10\x02\x12\x19\n\x15\x46UNCTION_STATUS_READY\x10\x03\x12\x1c\n\x18\x46UNCTION_STATUS_CANCELED\x10\x04\x12\x1a\n\x16\x46UNCTION_STATUS_FAILED\x10\x05\x32\xbf\x03\n\x0f\x46unctionService\x12\x45\n\x10RegisterFunction\x12\x19.orchestrator.NewFunction\x1a\x16.orchestrator.Function\x12\x45\n\x0bGetFunction\x12\x1e.orchestrator.GetFunctionParam\x1a\x16.orchestrator.Function\x12Y\n\x0eQueryFunctions\x12!.orchestrator.QueryFunctionsParam\x1a$.orchestrator.QueryFunctionsResponse\x12Y\n\x0eUpdateFunction\x12!.orchestrator.UpdateFunctionParam\x1a$.orchestrator.UpdateFunctionResponse\x12h\n\x13\x41pplyFunctionAction\x12&.orchestrator.ApplyFunctionActionParam\x1a).orchestrator.ApplyFunctionActionResponseB+Z)github.com/substra/orchestrator/lib/assetb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0e\x66unction.proto\x12\x0corchestrator\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0c\x63ommon.proto\"Z\n\rFunctionInput\x12%\n\x04kind\x18\x01 \x01(\x0e\x32\x17.orchestrator.AssetKind\x12\x10\n\x08multiple\x18\x02 \x01(\x08\x12\x10\n\x08optional\x18\x03 \x01(\x08\"I\n\x0e\x46unctionOutput\x12%\n\x04kind\x18\x01 \x01(\x0e\x32\x17.orchestrator.AssetKind\x12\x10\n\x08multiple\x18\x02 \x01(\x08\"\xc8\x05\n\x08\x46unction\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32\x19.orchestrator.Addressable\x12*\n\x07\x61rchive\x18\x05 \x01(\x0b\x32\x19.orchestrator.Addressable\x12.\n\x0bpermissions\x18\x06 \x01(\x0b\x32\x19.orchestrator.Permissions\x12\r\n\x05owner\x18\x07 \x01(\t\x12\x31\n\rcreation_date\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x08metadata\x18\x10 \x03(\x0b\x32$.orchestrator.Function.MetadataEntry\x12\x32\n\x06inputs\x18\x11 \x03(\x0b\x32\".orchestrator.Function.InputsEntry\x12\x34\n\x07outputs\x18\x12 \x03(\x0b\x32#.orchestrator.Function.OutputsEntry\x12,\n\x06status\x18\x13 \x01(\x0e\x32\x1c.orchestrator.FunctionStatus\x12(\n\x05image\x18\x14 \x01(\x0b\x32\x19.orchestrator.Addressable\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aJ\n\x0bInputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.orchestrator.FunctionInput:\x02\x38\x01\x1aL\n\x0cOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.orchestrator.FunctionOutput:\x02\x38\x01J\x04\x08\x03\x10\x04R\x08\x63\x61tegory\"\xc1\x04\n\x0bNewFunction\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12.\n\x0b\x64\x65scription\x18\x04 \x01(\x0b\x32\x19.orchestrator.Addressable\x12*\n\x07\x61rchive\x18\x05 \x01(\x0b\x32\x19.orchestrator.Addressable\x12\x35\n\x0fnew_permissions\x18\x06 \x01(\x0b\x32\x1c.orchestrator.NewPermissions\x12\x39\n\x08metadata\x18\x11 \x03(\x0b\x32\'.orchestrator.NewFunction.MetadataEntry\x12\x35\n\x06inputs\x18\x12 \x03(\x0b\x32%.orchestrator.NewFunction.InputsEntry\x12\x37\n\x07outputs\x18\x13 \x03(\x0b\x32&.orchestrator.NewFunction.OutputsEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aJ\n\x0bInputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.orchestrator.FunctionInput:\x02\x38\x01\x1aL\n\x0cOutputsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.orchestrator.FunctionOutput:\x02\x38\x01J\x04\x08\x03\x10\x04R\x08\x63\x61tegory\"\x1f\n\x10GetFunctionParam\x12\x0b\n\x03key\x18\x01 \x01(\t\"\\\n\x16QueryFunctionsResponse\x12)\n\tFunctions\x18\x01 \x03(\x0b\x32\x16.orchestrator.Function\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"/\n\x13\x46unctionQueryFilter\x12\x18\n\x10\x63ompute_plan_key\x18\x02 \x01(\t\"o\n\x13QueryFunctionsParam\x12\x12\n\npage_token\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\r\x12\x31\n\x06\x66ilter\x18\x03 \x01(\x0b\x32!.orchestrator.FunctionQueryFilter\"Z\n\x13UpdateFunctionParam\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12(\n\x05image\x18\x03 \x01(\x0b\x32\x19.orchestrator.Addressable\"\x18\n\x16UpdateFunctionResponse\"^\n\x18\x41pplyFunctionActionParam\x12\x14\n\x0c\x66unction_key\x18\x01 \x01(\t\x12,\n\x06\x61\x63tion\x18\x02 \x01(\x0e\x32\x1c.orchestrator.FunctionAction\"\x1d\n\x1b\x41pplyFunctionActionResponse*\xa0\x01\n\x0e\x46unctionAction\x12\x1b\n\x17\x46UNCTION_ACTION_UNKNOWN\x10\x00\x12\x1c\n\x18\x46UNCTION_ACTION_BUILDING\x10\x01\x12\x1c\n\x18\x46UNCTION_ACTION_CANCELED\x10\x02\x12\x1a\n\x16\x46UNCTION_ACTION_FAILED\x10\x03\x12\x19\n\x15\x46UNCTION_ACTION_READY\x10\x04*\xbd\x01\n\x0e\x46unctionStatus\x12\x1b\n\x17\x46UNCTION_STATUS_UNKNOWN\x10\x00\x12\x1b\n\x17\x46UNCTION_STATUS_WAITING\x10\x01\x12\x1c\n\x18\x46UNCTION_STATUS_BUILDING\x10\x02\x12\x19\n\x15\x46UNCTION_STATUS_READY\x10\x03\x12\x1c\n\x18\x46UNCTION_STATUS_CANCELED\x10\x04\x12\x1a\n\x16\x46UNCTION_STATUS_FAILED\x10\x05\x32\xbf\x03\n\x0f\x46unctionService\x12\x45\n\x10RegisterFunction\x12\x19.orchestrator.NewFunction\x1a\x16.orchestrator.Function\x12\x45\n\x0bGetFunction\x12\x1e.orchestrator.GetFunctionParam\x1a\x16.orchestrator.Function\x12Y\n\x0eQueryFunctions\x12!.orchestrator.QueryFunctionsParam\x1a$.orchestrator.QueryFunctionsResponse\x12Y\n\x0eUpdateFunction\x12!.orchestrator.UpdateFunctionParam\x1a$.orchestrator.UpdateFunctionResponse\x12h\n\x13\x41pplyFunctionAction\x12&.orchestrator.ApplyFunctionActionParam\x1a).orchestrator.ApplyFunctionActionResponseB+Z)github.com/substra/orchestrator/lib/assetb\x06proto3') _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'function_pb2', globals()) @@ -35,10 +35,10 @@ _NEWFUNCTION_INPUTSENTRY._serialized_options = b'8\001' _NEWFUNCTION_OUTPUTSENTRY._options = None _NEWFUNCTION_OUTPUTSENTRY._serialized_options = b'8\001' - _FUNCTIONACTION._serialized_start=2034 - _FUNCTIONACTION._serialized_end=2194 - _FUNCTIONSTATUS._serialized_start=2197 - _FUNCTIONSTATUS._serialized_end=2386 + _FUNCTIONACTION._serialized_start=2076 + _FUNCTIONACTION._serialized_end=2236 + _FUNCTIONSTATUS._serialized_start=2239 + _FUNCTIONSTATUS._serialized_end=2428 _FUNCTIONINPUT._serialized_start=79 _FUNCTIONINPUT._serialized_end=169 _FUNCTIONOUTPUT._serialized_start=171 @@ -68,13 +68,13 @@ _QUERYFUNCTIONSPARAM._serialized_start=1717 _QUERYFUNCTIONSPARAM._serialized_end=1828 _UPDATEFUNCTIONPARAM._serialized_start=1830 - _UPDATEFUNCTIONPARAM._serialized_end=1878 - _UPDATEFUNCTIONRESPONSE._serialized_start=1880 - _UPDATEFUNCTIONRESPONSE._serialized_end=1904 - _APPLYFUNCTIONACTIONPARAM._serialized_start=1906 - _APPLYFUNCTIONACTIONPARAM._serialized_end=2000 - _APPLYFUNCTIONACTIONRESPONSE._serialized_start=2002 - _APPLYFUNCTIONACTIONRESPONSE._serialized_end=2031 - _FUNCTIONSERVICE._serialized_start=2389 - _FUNCTIONSERVICE._serialized_end=2836 + _UPDATEFUNCTIONPARAM._serialized_end=1920 + _UPDATEFUNCTIONRESPONSE._serialized_start=1922 + _UPDATEFUNCTIONRESPONSE._serialized_end=1946 + _APPLYFUNCTIONACTIONPARAM._serialized_start=1948 + _APPLYFUNCTIONACTIONPARAM._serialized_end=2042 + _APPLYFUNCTIONACTIONRESPONSE._serialized_start=2044 + _APPLYFUNCTIONACTIONRESPONSE._serialized_end=2073 + _FUNCTIONSERVICE._serialized_start=2431 + _FUNCTIONSERVICE._serialized_end=2878 # @@protoc_insertion_point(module_scope) diff --git a/backend/orchestrator/function_pb2.pyi b/backend/orchestrator/function_pb2.pyi index 61b68fbca..07c9fed23 100644 --- a/backend/orchestrator/function_pb2.pyi +++ b/backend/orchestrator/function_pb2.pyi @@ -387,25 +387,28 @@ class QueryFunctionsParam(google.protobuf.message.Message): global___QueryFunctionsParam = QueryFunctionsParam -@typing_extensions.final class UpdateFunctionParam(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor KEY_FIELD_NUMBER: builtins.int NAME_FIELD_NUMBER: builtins.int + IMAGE_FIELD_NUMBER: builtins.int key: builtins.str name: builtins.str + @property + def image(self) -> common_pb2.Addressable: ... def __init__( self, *, key: builtins.str = ..., name: builtins.str = ..., + image: common_pb2.Addressable | None = ..., ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "name", b"name"]) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["image", b"image"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["image", b"image", "key", b"key", "name", b"name"]) -> None: ... global___UpdateFunctionParam = UpdateFunctionParam -@typing_extensions.final class UpdateFunctionResponse(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor