tracdap-runtime 0.6.1.dev2__py3-none-any.whl → 0.6.2__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.
- tracdap/rt/_exec/context.py +25 -1
- tracdap/rt/_exec/dev_mode.py +277 -213
- tracdap/rt/_exec/functions.py +37 -8
- tracdap/rt/_exec/graph.py +2 -0
- tracdap/rt/_exec/graph_builder.py +118 -56
- tracdap/rt/_exec/runtime.py +28 -0
- tracdap/rt/_exec/server.py +68 -0
- tracdap/rt/_impl/data.py +14 -0
- tracdap/rt/_impl/grpc/__init__.py +13 -0
- tracdap/rt/_impl/grpc/codec.py +44 -0
- tracdap/rt/_impl/grpc/tracdap/api/internal/runtime_pb2.py +51 -0
- tracdap/rt/_impl/grpc/tracdap/api/internal/runtime_pb2.pyi +59 -0
- tracdap/rt/_impl/grpc/tracdap/api/internal/runtime_pb2_grpc.py +183 -0
- tracdap/rt/_impl/grpc/tracdap/config/common_pb2.py +55 -0
- tracdap/rt/_impl/grpc/tracdap/config/common_pb2.pyi +103 -0
- tracdap/rt/_impl/grpc/tracdap/config/job_pb2.py +42 -0
- tracdap/rt/_impl/grpc/tracdap/config/job_pb2.pyi +44 -0
- tracdap/rt/_impl/grpc/tracdap/config/platform_pb2.py +71 -0
- tracdap/rt/_impl/grpc/tracdap/config/platform_pb2.pyi +197 -0
- tracdap/rt/_impl/grpc/tracdap/config/result_pb2.py +37 -0
- tracdap/rt/_impl/grpc/tracdap/config/result_pb2.pyi +35 -0
- tracdap/rt/_impl/grpc/tracdap/config/runtime_pb2.py +42 -0
- tracdap/rt/_impl/grpc/tracdap/config/runtime_pb2.pyi +46 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/common_pb2.py +33 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/common_pb2.pyi +34 -0
- tracdap/rt/{metadata → _impl/grpc/tracdap/metadata}/custom_pb2.py +5 -5
- tracdap/rt/_impl/grpc/tracdap/metadata/custom_pb2.pyi +15 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/data_pb2.py +51 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/data_pb2.pyi +115 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/file_pb2.py +28 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/file_pb2.pyi +22 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/flow_pb2.py +59 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/flow_pb2.pyi +109 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/job_pb2.py +76 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/job_pb2.pyi +177 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/model_pb2.py +51 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/model_pb2.pyi +92 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/object_id_pb2.py +32 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/object_id_pb2.pyi +68 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.py +35 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/object_pb2.pyi +35 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/search_pb2.py +39 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/search_pb2.pyi +83 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/stoarge_pb2.py +50 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/stoarge_pb2.pyi +89 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/tag_pb2.py +34 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/tag_pb2.pyi +26 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/tag_update_pb2.py +30 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/tag_update_pb2.pyi +34 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/type_pb2.py +47 -0
- tracdap/rt/_impl/grpc/tracdap/metadata/type_pb2.pyi +101 -0
- tracdap/rt/_impl/guard_rails.py +5 -6
- tracdap/rt/_impl/static_api.py +10 -6
- tracdap/rt/_version.py +1 -1
- tracdap/rt/api/hook.py +6 -2
- tracdap/rt/api/model_api.py +22 -0
- tracdap/rt/api/static_api.py +14 -4
- tracdap/rt/config/__init__.py +3 -3
- tracdap/rt/config/platform.py +9 -9
- tracdap/rt/launch/cli.py +3 -5
- tracdap/rt/launch/launch.py +15 -3
- tracdap/rt/metadata/__init__.py +15 -15
- tracdap/rt/metadata/common.py +7 -7
- tracdap/rt/metadata/custom.py +2 -0
- tracdap/rt/metadata/data.py +28 -5
- tracdap/rt/metadata/file.py +2 -0
- tracdap/rt/metadata/flow.py +66 -4
- tracdap/rt/metadata/job.py +56 -16
- tracdap/rt/metadata/model.py +4 -0
- tracdap/rt/metadata/object_id.py +9 -9
- tracdap/rt/metadata/search.py +35 -13
- tracdap/rt/metadata/stoarge.py +64 -6
- tracdap/rt/metadata/tag_update.py +21 -7
- tracdap/rt/metadata/type.py +28 -13
- {tracdap_runtime-0.6.1.dev2.dist-info → tracdap_runtime-0.6.2.dist-info}/METADATA +22 -19
- tracdap_runtime-0.6.2.dist-info/RECORD +121 -0
- {tracdap_runtime-0.6.1.dev2.dist-info → tracdap_runtime-0.6.2.dist-info}/WHEEL +1 -1
- tracdap/rt/config/common_pb2.py +0 -55
- tracdap/rt/config/job_pb2.py +0 -42
- tracdap/rt/config/platform_pb2.py +0 -71
- tracdap/rt/config/result_pb2.py +0 -37
- tracdap/rt/config/runtime_pb2.py +0 -42
- tracdap/rt/metadata/common_pb2.py +0 -33
- tracdap/rt/metadata/data_pb2.py +0 -51
- tracdap/rt/metadata/file_pb2.py +0 -28
- tracdap/rt/metadata/flow_pb2.py +0 -55
- tracdap/rt/metadata/job_pb2.py +0 -76
- tracdap/rt/metadata/model_pb2.py +0 -51
- tracdap/rt/metadata/object_id_pb2.py +0 -32
- tracdap/rt/metadata/object_pb2.py +0 -35
- tracdap/rt/metadata/search_pb2.py +0 -39
- tracdap/rt/metadata/stoarge_pb2.py +0 -50
- tracdap/rt/metadata/tag_pb2.py +0 -34
- tracdap/rt/metadata/tag_update_pb2.py +0 -30
- tracdap/rt/metadata/type_pb2.py +0 -48
- tracdap_runtime-0.6.1.dev2.dist-info/RECORD +0 -96
- {tracdap_runtime-0.6.1.dev2.dist-info → tracdap_runtime-0.6.2.dist-info}/LICENSE +0 -0
- {tracdap_runtime-0.6.1.dev2.dist-info → tracdap_runtime-0.6.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: tracdap/rt/_impl/grpc/tracdap/api/internal/runtime.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_id_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_object__id__pb2
|
16
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import job_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_job__pb2
|
17
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_object__pb2
|
18
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
19
|
+
|
20
|
+
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n8tracdap/rt/_impl/grpc/tracdap/api/internal/runtime.proto\x12\x14tracdap.api.internal\x1a\x36tracdap/rt/_impl/grpc/tracdap/metadata/object_id.proto\x1a\x30tracdap/rt/_impl/grpc/tracdap/metadata/job.proto\x1a\x33tracdap/rt/_impl/grpc/tracdap/metadata/object.proto\x1a\x1cgoogle/api/annotations.proto\"/\n\x0fListJobsRequest\x12\x12\n\x05limit\x18\x01 \x01(\rH\x00\x88\x01\x01\x42\x08\n\x06_limit\"A\n\x10ListJobsResponse\x12-\n\x04jobs\x18\x01 \x03(\x0b\x32\x1f.tracdap.api.internal.JobStatus\"f\n\x15\x42\x61tchJobStatusRequest\x12\x34\n\x0bjobSelector\x18\x01 \x01(\x0b\x32\x1d.tracdap.metadata.TagSelectorH\x00\x12\x10\n\x06jobKey\x18\x02 \x01(\tH\x00\x42\x05\n\x03job\"\x83\x01\n\tJobStatus\x12*\n\x05jobId\x18\x01 \x01(\x0b\x32\x1b.tracdap.metadata.TagHeader\x12\x33\n\nstatusCode\x18\x02 \x01(\x0e\x32\x1f.tracdap.metadata.JobStatusCode\x12\x15\n\rstatusMessage\x18\x03 \x01(\t\"\xa0\x02\n\x0e\x42\x61tchJobResult\x12*\n\x05jobId\x18\x01 \x01(\x0b\x32\x1b.tracdap.metadata.TagHeader\x12\x33\n\nstatusCode\x18\x02 \x01(\x0e\x32\x1f.tracdap.metadata.JobStatusCode\x12\x15\n\rstatusMessage\x18\x03 \x01(\t\x12\x42\n\x07results\x18\x04 \x03(\x0b\x32\x31.tracdap.api.internal.BatchJobResult.ResultsEntry\x1aR\n\x0cResultsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\".tracdap.metadata.ObjectDefinition:\x02\x38\x01\x32\xff\x02\n\x0eTracRuntimeApi\x12m\n\x08listJobs\x12%.tracdap.api.internal.ListJobsRequest\x1a&.tracdap.api.internal.ListJobsResponse\"\x12\x82\xd3\xe4\x93\x02\x0c\x12\n/list-jobs\x12z\n\x0cgetJobStatus\x12+.tracdap.api.internal.BatchJobStatusRequest\x1a\x1f.tracdap.api.internal.JobStatus\"\x1c\x82\xd3\xe4\x93\x02\x16\x12\x14/job-status/{jobKey}\x12\x81\x01\n\rgetJobDetails\x12+.tracdap.api.internal.BatchJobStatusRequest\x1a$.tracdap.api.internal.BatchJobResult\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/job-details/{jobKey}B\"\n\x1eorg.finos.tracdap.api.internalP\x01\x62\x06proto3')
|
22
|
+
|
23
|
+
_globals = globals()
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tracdap.rt._impl.grpc.tracdap.api.internal.runtime_pb2', _globals)
|
26
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
27
|
+
_globals['DESCRIPTOR']._options = None
|
28
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\036org.finos.tracdap.api.internalP\001'
|
29
|
+
_globals['_BATCHJOBRESULT_RESULTSENTRY']._options = None
|
30
|
+
_globals['_BATCHJOBRESULT_RESULTSENTRY']._serialized_options = b'8\001'
|
31
|
+
_globals['_TRACRUNTIMEAPI'].methods_by_name['listJobs']._options = None
|
32
|
+
_globals['_TRACRUNTIMEAPI'].methods_by_name['listJobs']._serialized_options = b'\202\323\344\223\002\014\022\n/list-jobs'
|
33
|
+
_globals['_TRACRUNTIMEAPI'].methods_by_name['getJobStatus']._options = None
|
34
|
+
_globals['_TRACRUNTIMEAPI'].methods_by_name['getJobStatus']._serialized_options = b'\202\323\344\223\002\026\022\024/job-status/{jobKey}'
|
35
|
+
_globals['_TRACRUNTIMEAPI'].methods_by_name['getJobDetails']._options = None
|
36
|
+
_globals['_TRACRUNTIMEAPI'].methods_by_name['getJobDetails']._serialized_options = b'\202\323\344\223\002\027\022\025/job-details/{jobKey}'
|
37
|
+
_globals['_LISTJOBSREQUEST']._serialized_start=271
|
38
|
+
_globals['_LISTJOBSREQUEST']._serialized_end=318
|
39
|
+
_globals['_LISTJOBSRESPONSE']._serialized_start=320
|
40
|
+
_globals['_LISTJOBSRESPONSE']._serialized_end=385
|
41
|
+
_globals['_BATCHJOBSTATUSREQUEST']._serialized_start=387
|
42
|
+
_globals['_BATCHJOBSTATUSREQUEST']._serialized_end=489
|
43
|
+
_globals['_JOBSTATUS']._serialized_start=492
|
44
|
+
_globals['_JOBSTATUS']._serialized_end=623
|
45
|
+
_globals['_BATCHJOBRESULT']._serialized_start=626
|
46
|
+
_globals['_BATCHJOBRESULT']._serialized_end=914
|
47
|
+
_globals['_BATCHJOBRESULT_RESULTSENTRY']._serialized_start=832
|
48
|
+
_globals['_BATCHJOBRESULT_RESULTSENTRY']._serialized_end=914
|
49
|
+
_globals['_TRACRUNTIMEAPI']._serialized_start=917
|
50
|
+
_globals['_TRACRUNTIMEAPI']._serialized_end=1300
|
51
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,59 @@
|
|
1
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_id_pb2 as _object_id_pb2
|
2
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import job_pb2 as _job_pb2
|
3
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_pb2 as _object_pb2
|
4
|
+
from google.api import annotations_pb2 as _annotations_pb2
|
5
|
+
from google.protobuf.internal import containers as _containers
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import message as _message
|
8
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
9
|
+
|
10
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
11
|
+
|
12
|
+
class ListJobsRequest(_message.Message):
|
13
|
+
__slots__ = ("limit",)
|
14
|
+
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
15
|
+
limit: int
|
16
|
+
def __init__(self, limit: _Optional[int] = ...) -> None: ...
|
17
|
+
|
18
|
+
class ListJobsResponse(_message.Message):
|
19
|
+
__slots__ = ("jobs",)
|
20
|
+
JOBS_FIELD_NUMBER: _ClassVar[int]
|
21
|
+
jobs: _containers.RepeatedCompositeFieldContainer[JobStatus]
|
22
|
+
def __init__(self, jobs: _Optional[_Iterable[_Union[JobStatus, _Mapping]]] = ...) -> None: ...
|
23
|
+
|
24
|
+
class BatchJobStatusRequest(_message.Message):
|
25
|
+
__slots__ = ("jobSelector", "jobKey")
|
26
|
+
JOBSELECTOR_FIELD_NUMBER: _ClassVar[int]
|
27
|
+
JOBKEY_FIELD_NUMBER: _ClassVar[int]
|
28
|
+
jobSelector: _object_id_pb2.TagSelector
|
29
|
+
jobKey: str
|
30
|
+
def __init__(self, jobSelector: _Optional[_Union[_object_id_pb2.TagSelector, _Mapping]] = ..., jobKey: _Optional[str] = ...) -> None: ...
|
31
|
+
|
32
|
+
class JobStatus(_message.Message):
|
33
|
+
__slots__ = ("jobId", "statusCode", "statusMessage")
|
34
|
+
JOBID_FIELD_NUMBER: _ClassVar[int]
|
35
|
+
STATUSCODE_FIELD_NUMBER: _ClassVar[int]
|
36
|
+
STATUSMESSAGE_FIELD_NUMBER: _ClassVar[int]
|
37
|
+
jobId: _object_id_pb2.TagHeader
|
38
|
+
statusCode: _job_pb2.JobStatusCode
|
39
|
+
statusMessage: str
|
40
|
+
def __init__(self, jobId: _Optional[_Union[_object_id_pb2.TagHeader, _Mapping]] = ..., statusCode: _Optional[_Union[_job_pb2.JobStatusCode, str]] = ..., statusMessage: _Optional[str] = ...) -> None: ...
|
41
|
+
|
42
|
+
class BatchJobResult(_message.Message):
|
43
|
+
__slots__ = ("jobId", "statusCode", "statusMessage", "results")
|
44
|
+
class ResultsEntry(_message.Message):
|
45
|
+
__slots__ = ("key", "value")
|
46
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
47
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
48
|
+
key: str
|
49
|
+
value: _object_pb2.ObjectDefinition
|
50
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_pb2.ObjectDefinition, _Mapping]] = ...) -> None: ...
|
51
|
+
JOBID_FIELD_NUMBER: _ClassVar[int]
|
52
|
+
STATUSCODE_FIELD_NUMBER: _ClassVar[int]
|
53
|
+
STATUSMESSAGE_FIELD_NUMBER: _ClassVar[int]
|
54
|
+
RESULTS_FIELD_NUMBER: _ClassVar[int]
|
55
|
+
jobId: _object_id_pb2.TagHeader
|
56
|
+
statusCode: _job_pb2.JobStatusCode
|
57
|
+
statusMessage: str
|
58
|
+
results: _containers.MessageMap[str, _object_pb2.ObjectDefinition]
|
59
|
+
def __init__(self, jobId: _Optional[_Union[_object_id_pb2.TagHeader, _Mapping]] = ..., statusCode: _Optional[_Union[_job_pb2.JobStatusCode, str]] = ..., statusMessage: _Optional[str] = ..., results: _Optional[_Mapping[str, _object_pb2.ObjectDefinition]] = ...) -> None: ...
|
@@ -0,0 +1,183 @@
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
3
|
+
import grpc
|
4
|
+
import warnings
|
5
|
+
|
6
|
+
from tracdap.rt._impl.grpc.tracdap.api.internal import runtime_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2
|
7
|
+
|
8
|
+
GRPC_GENERATED_VERSION = '1.66.1'
|
9
|
+
GRPC_VERSION = grpc.__version__
|
10
|
+
_version_not_supported = False
|
11
|
+
|
12
|
+
try:
|
13
|
+
from grpc._utilities import first_version_is_lower
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
15
|
+
except ImportError:
|
16
|
+
_version_not_supported = True
|
17
|
+
|
18
|
+
if _version_not_supported:
|
19
|
+
raise RuntimeError(
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
21
|
+
+ f' but the generated code in tracdap/rt/_impl/grpc/tracdap/api/internal/runtime_pb2_grpc.py depends on'
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
25
|
+
)
|
26
|
+
|
27
|
+
|
28
|
+
class TracRuntimeApiStub(object):
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
30
|
+
|
31
|
+
def __init__(self, channel):
|
32
|
+
"""Constructor.
|
33
|
+
|
34
|
+
Args:
|
35
|
+
channel: A grpc.Channel.
|
36
|
+
"""
|
37
|
+
self.listJobs = channel.unary_unary(
|
38
|
+
'/tracdap.api.internal.TracRuntimeApi/listJobs',
|
39
|
+
request_serializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.ListJobsRequest.SerializeToString,
|
40
|
+
response_deserializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.ListJobsResponse.FromString,
|
41
|
+
_registered_method=True)
|
42
|
+
self.getJobStatus = channel.unary_unary(
|
43
|
+
'/tracdap.api.internal.TracRuntimeApi/getJobStatus',
|
44
|
+
request_serializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.BatchJobStatusRequest.SerializeToString,
|
45
|
+
response_deserializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.JobStatus.FromString,
|
46
|
+
_registered_method=True)
|
47
|
+
self.getJobDetails = channel.unary_unary(
|
48
|
+
'/tracdap.api.internal.TracRuntimeApi/getJobDetails',
|
49
|
+
request_serializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.BatchJobStatusRequest.SerializeToString,
|
50
|
+
response_deserializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.BatchJobResult.FromString,
|
51
|
+
_registered_method=True)
|
52
|
+
|
53
|
+
|
54
|
+
class TracRuntimeApiServicer(object):
|
55
|
+
"""Missing associated documentation comment in .proto file."""
|
56
|
+
|
57
|
+
def listJobs(self, request, context):
|
58
|
+
"""Missing associated documentation comment in .proto file."""
|
59
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
60
|
+
context.set_details('Method not implemented!')
|
61
|
+
raise NotImplementedError('Method not implemented!')
|
62
|
+
|
63
|
+
def getJobStatus(self, request, context):
|
64
|
+
"""Missing associated documentation comment in .proto file."""
|
65
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
66
|
+
context.set_details('Method not implemented!')
|
67
|
+
raise NotImplementedError('Method not implemented!')
|
68
|
+
|
69
|
+
def getJobDetails(self, request, context):
|
70
|
+
"""Missing associated documentation comment in .proto file."""
|
71
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
72
|
+
context.set_details('Method not implemented!')
|
73
|
+
raise NotImplementedError('Method not implemented!')
|
74
|
+
|
75
|
+
|
76
|
+
def add_TracRuntimeApiServicer_to_server(servicer, server):
|
77
|
+
rpc_method_handlers = {
|
78
|
+
'listJobs': grpc.unary_unary_rpc_method_handler(
|
79
|
+
servicer.listJobs,
|
80
|
+
request_deserializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.ListJobsRequest.FromString,
|
81
|
+
response_serializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.ListJobsResponse.SerializeToString,
|
82
|
+
),
|
83
|
+
'getJobStatus': grpc.unary_unary_rpc_method_handler(
|
84
|
+
servicer.getJobStatus,
|
85
|
+
request_deserializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.BatchJobStatusRequest.FromString,
|
86
|
+
response_serializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.JobStatus.SerializeToString,
|
87
|
+
),
|
88
|
+
'getJobDetails': grpc.unary_unary_rpc_method_handler(
|
89
|
+
servicer.getJobDetails,
|
90
|
+
request_deserializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.BatchJobStatusRequest.FromString,
|
91
|
+
response_serializer=tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.BatchJobResult.SerializeToString,
|
92
|
+
),
|
93
|
+
}
|
94
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
95
|
+
'tracdap.api.internal.TracRuntimeApi', rpc_method_handlers)
|
96
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
97
|
+
server.add_registered_method_handlers('tracdap.api.internal.TracRuntimeApi', rpc_method_handlers)
|
98
|
+
|
99
|
+
|
100
|
+
# This class is part of an EXPERIMENTAL API.
|
101
|
+
class TracRuntimeApi(object):
|
102
|
+
"""Missing associated documentation comment in .proto file."""
|
103
|
+
|
104
|
+
@staticmethod
|
105
|
+
def listJobs(request,
|
106
|
+
target,
|
107
|
+
options=(),
|
108
|
+
channel_credentials=None,
|
109
|
+
call_credentials=None,
|
110
|
+
insecure=False,
|
111
|
+
compression=None,
|
112
|
+
wait_for_ready=None,
|
113
|
+
timeout=None,
|
114
|
+
metadata=None):
|
115
|
+
return grpc.experimental.unary_unary(
|
116
|
+
request,
|
117
|
+
target,
|
118
|
+
'/tracdap.api.internal.TracRuntimeApi/listJobs',
|
119
|
+
tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.ListJobsRequest.SerializeToString,
|
120
|
+
tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.ListJobsResponse.FromString,
|
121
|
+
options,
|
122
|
+
channel_credentials,
|
123
|
+
insecure,
|
124
|
+
call_credentials,
|
125
|
+
compression,
|
126
|
+
wait_for_ready,
|
127
|
+
timeout,
|
128
|
+
metadata,
|
129
|
+
_registered_method=True)
|
130
|
+
|
131
|
+
@staticmethod
|
132
|
+
def getJobStatus(request,
|
133
|
+
target,
|
134
|
+
options=(),
|
135
|
+
channel_credentials=None,
|
136
|
+
call_credentials=None,
|
137
|
+
insecure=False,
|
138
|
+
compression=None,
|
139
|
+
wait_for_ready=None,
|
140
|
+
timeout=None,
|
141
|
+
metadata=None):
|
142
|
+
return grpc.experimental.unary_unary(
|
143
|
+
request,
|
144
|
+
target,
|
145
|
+
'/tracdap.api.internal.TracRuntimeApi/getJobStatus',
|
146
|
+
tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.BatchJobStatusRequest.SerializeToString,
|
147
|
+
tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.JobStatus.FromString,
|
148
|
+
options,
|
149
|
+
channel_credentials,
|
150
|
+
insecure,
|
151
|
+
call_credentials,
|
152
|
+
compression,
|
153
|
+
wait_for_ready,
|
154
|
+
timeout,
|
155
|
+
metadata,
|
156
|
+
_registered_method=True)
|
157
|
+
|
158
|
+
@staticmethod
|
159
|
+
def getJobDetails(request,
|
160
|
+
target,
|
161
|
+
options=(),
|
162
|
+
channel_credentials=None,
|
163
|
+
call_credentials=None,
|
164
|
+
insecure=False,
|
165
|
+
compression=None,
|
166
|
+
wait_for_ready=None,
|
167
|
+
timeout=None,
|
168
|
+
metadata=None):
|
169
|
+
return grpc.experimental.unary_unary(
|
170
|
+
request,
|
171
|
+
target,
|
172
|
+
'/tracdap.api.internal.TracRuntimeApi/getJobDetails',
|
173
|
+
tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.BatchJobStatusRequest.SerializeToString,
|
174
|
+
tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_api_dot_internal_dot_runtime__pb2.BatchJobResult.FromString,
|
175
|
+
options,
|
176
|
+
channel_credentials,
|
177
|
+
insecure,
|
178
|
+
call_credentials,
|
179
|
+
compression,
|
180
|
+
wait_for_ready,
|
181
|
+
timeout,
|
182
|
+
metadata,
|
183
|
+
_registered_method=True)
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: tracdap/rt/_impl/grpc/tracdap/config/common.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n1tracdap/rt/_impl/grpc/tracdap/config/common.proto\x12\x0etracdap.config\"u\n\x0b_ConfigFile\x12\x37\n\x06\x63onfig\x18\x01 \x03(\x0b\x32\'.tracdap.config._ConfigFile.ConfigEntry\x1a-\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x81\x02\n\x0cPluginConfig\x12\x10\n\x08protocol\x18\x01 \x01(\t\x12@\n\nproperties\x18\x02 \x03(\x0b\x32,.tracdap.config.PluginConfig.PropertiesEntry\x12:\n\x07secrets\x18\x03 \x03(\x0b\x32).tracdap.config.PluginConfig.SecretsEntry\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a.\n\x0cSecretsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xb8\x01\n\x0cPlatformInfo\x12\x13\n\x0b\x65nvironment\x18\x01 \x01(\t\x12\x12\n\nproduction\x18\x02 \x01(\x08\x12H\n\x0e\x64\x65ploymentInfo\x18\x03 \x03(\x0b\x32\x30.tracdap.config.PlatformInfo.DeploymentInfoEntry\x1a\x35\n\x13\x44\x65ploymentInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xba\x02\n\x14\x41uthenticationConfig\x12\x11\n\tjwtIssuer\x18\x01 \x01(\t\x12\x11\n\tjwtExpiry\x18\x02 \x01(\x11\x12\x10\n\x08jwtLimit\x18\x06 \x01(\x11\x12\x12\n\njwtRefresh\x18\x07 \x01(\x11\x12\x33\n\x08provider\x18\x03 \x01(\x0b\x32\x1c.tracdap.config.PluginConfigH\x00\x88\x01\x01\x12\x13\n\x0b\x64isableAuth\x18\x04 \x01(\x08\x12\x16\n\x0e\x64isableSigning\x18\x05 \x01(\x08\x12\x14\n\x0csystemUserId\x18\x08 \x01(\t\x12\x16\n\x0esystemUserName\x18\t \x01(\t\x12\x1c\n\x14systemTicketDuration\x18\n \x01(\x11\x12\x1b\n\x13systemTicketRefresh\x18\x0b \x01(\x11\x42\x0b\n\t_provider\"\xc8\x01\n\rStorageConfig\x12;\n\x07\x62uckets\x18\x01 \x03(\x0b\x32*.tracdap.config.StorageConfig.BucketsEntry\x12\x15\n\rdefaultBucket\x18\x02 \x01(\t\x12\x15\n\rdefaultFormat\x18\x03 \x01(\t\x1aL\n\x0c\x42ucketsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.tracdap.config.PluginConfig:\x02\x38\x01\x42\x1c\n\x18org.finos.tracdap.configP\x01\x62\x06proto3')
|
18
|
+
|
19
|
+
_globals = globals()
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tracdap.rt._impl.grpc.tracdap.config.common_pb2', _globals)
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
23
|
+
_globals['DESCRIPTOR']._options = None
|
24
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030org.finos.tracdap.configP\001'
|
25
|
+
_globals['__CONFIGFILE_CONFIGENTRY']._options = None
|
26
|
+
_globals['__CONFIGFILE_CONFIGENTRY']._serialized_options = b'8\001'
|
27
|
+
_globals['_PLUGINCONFIG_PROPERTIESENTRY']._options = None
|
28
|
+
_globals['_PLUGINCONFIG_PROPERTIESENTRY']._serialized_options = b'8\001'
|
29
|
+
_globals['_PLUGINCONFIG_SECRETSENTRY']._options = None
|
30
|
+
_globals['_PLUGINCONFIG_SECRETSENTRY']._serialized_options = b'8\001'
|
31
|
+
_globals['_PLATFORMINFO_DEPLOYMENTINFOENTRY']._options = None
|
32
|
+
_globals['_PLATFORMINFO_DEPLOYMENTINFOENTRY']._serialized_options = b'8\001'
|
33
|
+
_globals['_STORAGECONFIG_BUCKETSENTRY']._options = None
|
34
|
+
_globals['_STORAGECONFIG_BUCKETSENTRY']._serialized_options = b'8\001'
|
35
|
+
_globals['__CONFIGFILE']._serialized_start=69
|
36
|
+
_globals['__CONFIGFILE']._serialized_end=186
|
37
|
+
_globals['__CONFIGFILE_CONFIGENTRY']._serialized_start=141
|
38
|
+
_globals['__CONFIGFILE_CONFIGENTRY']._serialized_end=186
|
39
|
+
_globals['_PLUGINCONFIG']._serialized_start=189
|
40
|
+
_globals['_PLUGINCONFIG']._serialized_end=446
|
41
|
+
_globals['_PLUGINCONFIG_PROPERTIESENTRY']._serialized_start=349
|
42
|
+
_globals['_PLUGINCONFIG_PROPERTIESENTRY']._serialized_end=398
|
43
|
+
_globals['_PLUGINCONFIG_SECRETSENTRY']._serialized_start=400
|
44
|
+
_globals['_PLUGINCONFIG_SECRETSENTRY']._serialized_end=446
|
45
|
+
_globals['_PLATFORMINFO']._serialized_start=449
|
46
|
+
_globals['_PLATFORMINFO']._serialized_end=633
|
47
|
+
_globals['_PLATFORMINFO_DEPLOYMENTINFOENTRY']._serialized_start=580
|
48
|
+
_globals['_PLATFORMINFO_DEPLOYMENTINFOENTRY']._serialized_end=633
|
49
|
+
_globals['_AUTHENTICATIONCONFIG']._serialized_start=636
|
50
|
+
_globals['_AUTHENTICATIONCONFIG']._serialized_end=950
|
51
|
+
_globals['_STORAGECONFIG']._serialized_start=953
|
52
|
+
_globals['_STORAGECONFIG']._serialized_end=1153
|
53
|
+
_globals['_STORAGECONFIG_BUCKETSENTRY']._serialized_start=1077
|
54
|
+
_globals['_STORAGECONFIG_BUCKETSENTRY']._serialized_end=1153
|
55
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,103 @@
|
|
1
|
+
from google.protobuf.internal import containers as _containers
|
2
|
+
from google.protobuf import descriptor as _descriptor
|
3
|
+
from google.protobuf import message as _message
|
4
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
5
|
+
|
6
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
7
|
+
|
8
|
+
class _ConfigFile(_message.Message):
|
9
|
+
__slots__ = ("config",)
|
10
|
+
class ConfigEntry(_message.Message):
|
11
|
+
__slots__ = ("key", "value")
|
12
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
13
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
14
|
+
key: str
|
15
|
+
value: str
|
16
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
17
|
+
CONFIG_FIELD_NUMBER: _ClassVar[int]
|
18
|
+
config: _containers.ScalarMap[str, str]
|
19
|
+
def __init__(self, config: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
20
|
+
|
21
|
+
class PluginConfig(_message.Message):
|
22
|
+
__slots__ = ("protocol", "properties", "secrets")
|
23
|
+
class PropertiesEntry(_message.Message):
|
24
|
+
__slots__ = ("key", "value")
|
25
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
26
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
27
|
+
key: str
|
28
|
+
value: str
|
29
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
30
|
+
class SecretsEntry(_message.Message):
|
31
|
+
__slots__ = ("key", "value")
|
32
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
33
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
34
|
+
key: str
|
35
|
+
value: str
|
36
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
37
|
+
PROTOCOL_FIELD_NUMBER: _ClassVar[int]
|
38
|
+
PROPERTIES_FIELD_NUMBER: _ClassVar[int]
|
39
|
+
SECRETS_FIELD_NUMBER: _ClassVar[int]
|
40
|
+
protocol: str
|
41
|
+
properties: _containers.ScalarMap[str, str]
|
42
|
+
secrets: _containers.ScalarMap[str, str]
|
43
|
+
def __init__(self, protocol: _Optional[str] = ..., properties: _Optional[_Mapping[str, str]] = ..., secrets: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
44
|
+
|
45
|
+
class PlatformInfo(_message.Message):
|
46
|
+
__slots__ = ("environment", "production", "deploymentInfo")
|
47
|
+
class DeploymentInfoEntry(_message.Message):
|
48
|
+
__slots__ = ("key", "value")
|
49
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
50
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
51
|
+
key: str
|
52
|
+
value: str
|
53
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
54
|
+
ENVIRONMENT_FIELD_NUMBER: _ClassVar[int]
|
55
|
+
PRODUCTION_FIELD_NUMBER: _ClassVar[int]
|
56
|
+
DEPLOYMENTINFO_FIELD_NUMBER: _ClassVar[int]
|
57
|
+
environment: str
|
58
|
+
production: bool
|
59
|
+
deploymentInfo: _containers.ScalarMap[str, str]
|
60
|
+
def __init__(self, environment: _Optional[str] = ..., production: bool = ..., deploymentInfo: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
61
|
+
|
62
|
+
class AuthenticationConfig(_message.Message):
|
63
|
+
__slots__ = ("jwtIssuer", "jwtExpiry", "jwtLimit", "jwtRefresh", "provider", "disableAuth", "disableSigning", "systemUserId", "systemUserName", "systemTicketDuration", "systemTicketRefresh")
|
64
|
+
JWTISSUER_FIELD_NUMBER: _ClassVar[int]
|
65
|
+
JWTEXPIRY_FIELD_NUMBER: _ClassVar[int]
|
66
|
+
JWTLIMIT_FIELD_NUMBER: _ClassVar[int]
|
67
|
+
JWTREFRESH_FIELD_NUMBER: _ClassVar[int]
|
68
|
+
PROVIDER_FIELD_NUMBER: _ClassVar[int]
|
69
|
+
DISABLEAUTH_FIELD_NUMBER: _ClassVar[int]
|
70
|
+
DISABLESIGNING_FIELD_NUMBER: _ClassVar[int]
|
71
|
+
SYSTEMUSERID_FIELD_NUMBER: _ClassVar[int]
|
72
|
+
SYSTEMUSERNAME_FIELD_NUMBER: _ClassVar[int]
|
73
|
+
SYSTEMTICKETDURATION_FIELD_NUMBER: _ClassVar[int]
|
74
|
+
SYSTEMTICKETREFRESH_FIELD_NUMBER: _ClassVar[int]
|
75
|
+
jwtIssuer: str
|
76
|
+
jwtExpiry: int
|
77
|
+
jwtLimit: int
|
78
|
+
jwtRefresh: int
|
79
|
+
provider: PluginConfig
|
80
|
+
disableAuth: bool
|
81
|
+
disableSigning: bool
|
82
|
+
systemUserId: str
|
83
|
+
systemUserName: str
|
84
|
+
systemTicketDuration: int
|
85
|
+
systemTicketRefresh: int
|
86
|
+
def __init__(self, jwtIssuer: _Optional[str] = ..., jwtExpiry: _Optional[int] = ..., jwtLimit: _Optional[int] = ..., jwtRefresh: _Optional[int] = ..., provider: _Optional[_Union[PluginConfig, _Mapping]] = ..., disableAuth: bool = ..., disableSigning: bool = ..., systemUserId: _Optional[str] = ..., systemUserName: _Optional[str] = ..., systemTicketDuration: _Optional[int] = ..., systemTicketRefresh: _Optional[int] = ...) -> None: ...
|
87
|
+
|
88
|
+
class StorageConfig(_message.Message):
|
89
|
+
__slots__ = ("buckets", "defaultBucket", "defaultFormat")
|
90
|
+
class BucketsEntry(_message.Message):
|
91
|
+
__slots__ = ("key", "value")
|
92
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
93
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
94
|
+
key: str
|
95
|
+
value: PluginConfig
|
96
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[PluginConfig, _Mapping]] = ...) -> None: ...
|
97
|
+
BUCKETS_FIELD_NUMBER: _ClassVar[int]
|
98
|
+
DEFAULTBUCKET_FIELD_NUMBER: _ClassVar[int]
|
99
|
+
DEFAULTFORMAT_FIELD_NUMBER: _ClassVar[int]
|
100
|
+
buckets: _containers.MessageMap[str, PluginConfig]
|
101
|
+
defaultBucket: str
|
102
|
+
defaultFormat: str
|
103
|
+
def __init__(self, buckets: _Optional[_Mapping[str, PluginConfig]] = ..., defaultBucket: _Optional[str] = ..., defaultFormat: _Optional[str] = ...) -> None: ...
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: tracdap/rt/_impl/grpc/tracdap/config/job.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_id_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_object__id__pb2
|
16
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_object__pb2
|
17
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import job_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_job__pb2
|
18
|
+
|
19
|
+
|
20
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.tracdap/rt/_impl/grpc/tracdap/config/job.proto\x12\x0etracdap.config\x1a\x36tracdap/rt/_impl/grpc/tracdap/metadata/object_id.proto\x1a\x33tracdap/rt/_impl/grpc/tracdap/metadata/object.proto\x1a\x30tracdap/rt/_impl/grpc/tracdap/metadata/job.proto\"\xae\x04\n\tJobConfig\x12*\n\x05jobId\x18\x01 \x01(\x0b\x32\x1b.tracdap.metadata.TagHeader\x12,\n\x03job\x18\x02 \x01(\x0b\x32\x1f.tracdap.metadata.JobDefinition\x12;\n\tresources\x18\x03 \x03(\x0b\x32(.tracdap.config.JobConfig.ResourcesEntry\x12G\n\x0fresourceMapping\x18\x04 \x03(\x0b\x32..tracdap.config.JobConfig.ResourceMappingEntry\x12\x43\n\rresultMapping\x18\x05 \x03(\x0b\x32,.tracdap.config.JobConfig.ResultMappingEntry\x1aT\n\x0eResourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\".tracdap.metadata.ObjectDefinition:\x02\x38\x01\x1aS\n\x14ResourceMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.tracdap.metadata.TagHeader:\x02\x38\x01\x1aQ\n\x12ResultMappingEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.tracdap.metadata.TagHeader:\x02\x38\x01\x42\x1c\n\x18org.finos.tracdap.configP\x01\x62\x06proto3')
|
21
|
+
|
22
|
+
_globals = globals()
|
23
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
24
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tracdap.rt._impl.grpc.tracdap.config.job_pb2', _globals)
|
25
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
26
|
+
_globals['DESCRIPTOR']._options = None
|
27
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030org.finos.tracdap.configP\001'
|
28
|
+
_globals['_JOBCONFIG_RESOURCESENTRY']._options = None
|
29
|
+
_globals['_JOBCONFIG_RESOURCESENTRY']._serialized_options = b'8\001'
|
30
|
+
_globals['_JOBCONFIG_RESOURCEMAPPINGENTRY']._options = None
|
31
|
+
_globals['_JOBCONFIG_RESOURCEMAPPINGENTRY']._serialized_options = b'8\001'
|
32
|
+
_globals['_JOBCONFIG_RESULTMAPPINGENTRY']._options = None
|
33
|
+
_globals['_JOBCONFIG_RESULTMAPPINGENTRY']._serialized_options = b'8\001'
|
34
|
+
_globals['_JOBCONFIG']._serialized_start=226
|
35
|
+
_globals['_JOBCONFIG']._serialized_end=784
|
36
|
+
_globals['_JOBCONFIG_RESOURCESENTRY']._serialized_start=532
|
37
|
+
_globals['_JOBCONFIG_RESOURCESENTRY']._serialized_end=616
|
38
|
+
_globals['_JOBCONFIG_RESOURCEMAPPINGENTRY']._serialized_start=618
|
39
|
+
_globals['_JOBCONFIG_RESOURCEMAPPINGENTRY']._serialized_end=701
|
40
|
+
_globals['_JOBCONFIG_RESULTMAPPINGENTRY']._serialized_start=703
|
41
|
+
_globals['_JOBCONFIG_RESULTMAPPINGENTRY']._serialized_end=784
|
42
|
+
# @@protoc_insertion_point(module_scope)
|
@@ -0,0 +1,44 @@
|
|
1
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_id_pb2 as _object_id_pb2
|
2
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import object_pb2 as _object_pb2
|
3
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import job_pb2 as _job_pb2
|
4
|
+
from google.protobuf.internal import containers as _containers
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
6
|
+
from google.protobuf import message as _message
|
7
|
+
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
8
|
+
|
9
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
10
|
+
|
11
|
+
class JobConfig(_message.Message):
|
12
|
+
__slots__ = ("jobId", "job", "resources", "resourceMapping", "resultMapping")
|
13
|
+
class ResourcesEntry(_message.Message):
|
14
|
+
__slots__ = ("key", "value")
|
15
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
16
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
17
|
+
key: str
|
18
|
+
value: _object_pb2.ObjectDefinition
|
19
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_pb2.ObjectDefinition, _Mapping]] = ...) -> None: ...
|
20
|
+
class ResourceMappingEntry(_message.Message):
|
21
|
+
__slots__ = ("key", "value")
|
22
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
23
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
24
|
+
key: str
|
25
|
+
value: _object_id_pb2.TagHeader
|
26
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_id_pb2.TagHeader, _Mapping]] = ...) -> None: ...
|
27
|
+
class ResultMappingEntry(_message.Message):
|
28
|
+
__slots__ = ("key", "value")
|
29
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
30
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
31
|
+
key: str
|
32
|
+
value: _object_id_pb2.TagHeader
|
33
|
+
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_object_id_pb2.TagHeader, _Mapping]] = ...) -> None: ...
|
34
|
+
JOBID_FIELD_NUMBER: _ClassVar[int]
|
35
|
+
JOB_FIELD_NUMBER: _ClassVar[int]
|
36
|
+
RESOURCES_FIELD_NUMBER: _ClassVar[int]
|
37
|
+
RESOURCEMAPPING_FIELD_NUMBER: _ClassVar[int]
|
38
|
+
RESULTMAPPING_FIELD_NUMBER: _ClassVar[int]
|
39
|
+
jobId: _object_id_pb2.TagHeader
|
40
|
+
job: _job_pb2.JobDefinition
|
41
|
+
resources: _containers.MessageMap[str, _object_pb2.ObjectDefinition]
|
42
|
+
resourceMapping: _containers.MessageMap[str, _object_id_pb2.TagHeader]
|
43
|
+
resultMapping: _containers.MessageMap[str, _object_id_pb2.TagHeader]
|
44
|
+
def __init__(self, jobId: _Optional[_Union[_object_id_pb2.TagHeader, _Mapping]] = ..., job: _Optional[_Union[_job_pb2.JobDefinition, _Mapping]] = ..., resources: _Optional[_Mapping[str, _object_pb2.ObjectDefinition]] = ..., resourceMapping: _Optional[_Mapping[str, _object_id_pb2.TagHeader]] = ..., resultMapping: _Optional[_Mapping[str, _object_id_pb2.TagHeader]] = ...) -> None: ...
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: tracdap/rt/_impl/grpc/tracdap/config/platform.proto
|
4
|
+
# Protobuf Python Version: 4.25.3
|
5
|
+
"""Generated protocol buffer code."""
|
6
|
+
from google.protobuf import descriptor as _descriptor
|
7
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
+
from google.protobuf import symbol_database as _symbol_database
|
9
|
+
from google.protobuf.internal import builder as _builder
|
10
|
+
# @@protoc_insertion_point(imports)
|
11
|
+
|
12
|
+
_sym_db = _symbol_database.Default()
|
13
|
+
|
14
|
+
|
15
|
+
from tracdap.rt._impl.grpc.tracdap.metadata import common_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_metadata_dot_common__pb2
|
16
|
+
from tracdap.rt._impl.grpc.tracdap.config import common_pb2 as tracdap_dot_rt_dot___impl_dot_grpc_dot_tracdap_dot_config_dot_common__pb2
|
17
|
+
|
18
|
+
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3tracdap/rt/_impl/grpc/tracdap/config/platform.proto\x12\x0etracdap.config\x1a\x33tracdap/rt/_impl/grpc/tracdap/metadata/common.proto\x1a\x31tracdap/rt/_impl/grpc/tracdap/config/common.proto\"\xa4\x08\n\x0ePlatformConfig\x12:\n\x06\x63onfig\x18\x01 \x03(\x0b\x32*.tracdap.config.PlatformConfig.ConfigEntry\x12\x32\n\x0cplatformInfo\x18\x02 \x01(\x0b\x32\x1c.tracdap.config.PlatformInfo\x12<\n\x0e\x61uthentication\x18\x05 \x01(\x0b\x32$.tracdap.config.AuthenticationConfig\x12\x30\n\x08metadata\x18\x06 \x01(\x0b\x32\x1e.tracdap.config.MetadataConfig\x12.\n\x07storage\x18\x07 \x01(\x0b\x32\x1d.tracdap.config.StorageConfig\x12\x46\n\x0crepositories\x18\x08 \x03(\x0b\x32\x30.tracdap.config.PlatformConfig.RepositoriesEntry\x12.\n\x08\x65xecutor\x18\t \x01(\x0b\x32\x1c.tracdap.config.PluginConfig\x12.\n\x08jobCache\x18\x0c \x01(\x0b\x32\x1c.tracdap.config.PluginConfig\x12<\n\x07tenants\x18\n \x03(\x0b\x32+.tracdap.config.PlatformConfig.TenantsEntry\x12\x37\n\twebServer\x18\x0b \x01(\x0b\x32\x1f.tracdap.config.WebServerConfigH\x00\x88\x01\x01\x12\x33\n\x07gateway\x18\r \x01(\x0b\x32\x1d.tracdap.config.GatewayConfigH\x01\x88\x01\x01\x12>\n\x08services\x18\x04 \x03(\x0b\x32,.tracdap.config.PlatformConfig.ServicesEntry\x12\x34\n\ndeployment\x18\x0e \x01(\x0b\x32 .tracdap.config.DeploymentConfig\x1a-\n\x0b\x43onfigEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aQ\n\x11RepositoriesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.tracdap.config.PluginConfig:\x02\x38\x01\x1aL\n\x0cTenantsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.tracdap.config.TenantConfig:\x02\x38\x01\x1aN\n\rServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.tracdap.config.ServiceConfig:\x02\x38\x01\x42\x0c\n\n_webServerB\n\n\x08_gateway\"r\n\x0eMetadataConfig\x12.\n\x08\x64\x61tabase\x18\x01 \x01(\x0b\x32\x1c.tracdap.config.PluginConfig\x12\x30\n\x06\x66ormat\x18\x02 \x01(\x0e\x32 .tracdap.metadata.MetadataFormat\"j\n\x0cTenantConfig\x12\x1a\n\rdefaultBucket\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rdefaultFormat\x18\x02 \x01(\tH\x01\x88\x01\x01\x42\x10\n\x0e_defaultBucketB\x10\n\x0e_defaultFormat\"\xc7\x01\n\x0fWebServerConfig\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x31\n\x0b\x63ontentRoot\x18\x03 \x01(\x0b\x32\x1c.tracdap.config.PluginConfig\x12:\n\x0crewriteRules\x18\x04 \x03(\x0b\x32$.tracdap.config.WebServerRewriteRule\x12\x34\n\tredirects\x18\x05 \x03(\x0b\x32!.tracdap.config.WebServerRedirect\"6\n\x14WebServerRewriteRule\x12\x0e\n\x06source\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\t\"C\n\x11WebServerRedirect\x12\x0e\n\x06source\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\x05\"\x87\x01\n\rGatewayConfig\x12\x13\n\x0bidleTimeout\x18\x01 \x01(\r\x12+\n\x06routes\x18\x02 \x03(\x0b\x32\x1b.tracdap.config.RouteConfig\x12\x34\n\tredirects\x18\x03 \x03(\x0b\x32!.tracdap.config.WebServerRedirect\"\xe4\x01\n\x0bRouteConfig\x12\x11\n\trouteName\x18\x01 \x01(\t\x12\x32\n\trouteType\x18\x02 \x01(\x0e\x32\x1f.tracdap.config.RoutingProtocol\x12\x32\n\tprotocols\x18\x03 \x03(\x0e\x32\x1f.tracdap.config.RoutingProtocol\x12+\n\x05match\x18\x05 \x01(\x0b\x32\x1c.tracdap.config.RoutingMatch\x12-\n\x06target\x18\x06 \x01(\x0b\x32\x1d.tracdap.config.RoutingTarget\"*\n\x0cRoutingMatch\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\"I\n\rRoutingTarget\x12\x0e\n\x06scheme\x18\x01 \x01(\t\x12\x0c\n\x04host\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\r\x12\x0c\n\x04path\x18\x04 \x01(\t\"N\n\rServiceConfig\x12\x14\n\x07\x65nabled\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\r\n\x05\x61lias\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\rB\n\n\x08_enabled\"D\n\x10\x44\x65ploymentConfig\x12\x30\n\x06layout\x18\x01 \x01(\x0e\x32 .tracdap.config.DeploymentLayout*S\n\x0fRoutingProtocol\x12\x14\n\x10PROTOCOL_NOT_SET\x10\x00\x12\x08\n\x04HTTP\x10\x01\x12\x08\n\x04GRPC\x10\x02\x12\x0c\n\x08GRPC_WEB\x10\x03\x12\x08\n\x04REST\x10\x04*K\n\x10\x44\x65ploymentLayout\x12\x12\n\x0eLAYOUT_NOT_SET\x10\x00\x12\x0b\n\x07SANDBOX\x10\x01\x12\n\n\x06HOSTED\x10\x02\x12\n\n\x06\x43USTOM\x10\x03\x42\x1c\n\x18org.finos.tracdap.configP\x01\x62\x06proto3')
|
20
|
+
|
21
|
+
_globals = globals()
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'tracdap.rt._impl.grpc.tracdap.config.platform_pb2', _globals)
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
25
|
+
_globals['DESCRIPTOR']._options = None
|
26
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030org.finos.tracdap.configP\001'
|
27
|
+
_globals['_PLATFORMCONFIG_CONFIGENTRY']._options = None
|
28
|
+
_globals['_PLATFORMCONFIG_CONFIGENTRY']._serialized_options = b'8\001'
|
29
|
+
_globals['_PLATFORMCONFIG_REPOSITORIESENTRY']._options = None
|
30
|
+
_globals['_PLATFORMCONFIG_REPOSITORIESENTRY']._serialized_options = b'8\001'
|
31
|
+
_globals['_PLATFORMCONFIG_TENANTSENTRY']._options = None
|
32
|
+
_globals['_PLATFORMCONFIG_TENANTSENTRY']._serialized_options = b'8\001'
|
33
|
+
_globals['_PLATFORMCONFIG_SERVICESENTRY']._options = None
|
34
|
+
_globals['_PLATFORMCONFIG_SERVICESENTRY']._serialized_options = b'8\001'
|
35
|
+
_globals['_ROUTINGPROTOCOL']._serialized_start=2427
|
36
|
+
_globals['_ROUTINGPROTOCOL']._serialized_end=2510
|
37
|
+
_globals['_DEPLOYMENTLAYOUT']._serialized_start=2512
|
38
|
+
_globals['_DEPLOYMENTLAYOUT']._serialized_end=2587
|
39
|
+
_globals['_PLATFORMCONFIG']._serialized_start=176
|
40
|
+
_globals['_PLATFORMCONFIG']._serialized_end=1236
|
41
|
+
_globals['_PLATFORMCONFIG_CONFIGENTRY']._serialized_start=924
|
42
|
+
_globals['_PLATFORMCONFIG_CONFIGENTRY']._serialized_end=969
|
43
|
+
_globals['_PLATFORMCONFIG_REPOSITORIESENTRY']._serialized_start=971
|
44
|
+
_globals['_PLATFORMCONFIG_REPOSITORIESENTRY']._serialized_end=1052
|
45
|
+
_globals['_PLATFORMCONFIG_TENANTSENTRY']._serialized_start=1054
|
46
|
+
_globals['_PLATFORMCONFIG_TENANTSENTRY']._serialized_end=1130
|
47
|
+
_globals['_PLATFORMCONFIG_SERVICESENTRY']._serialized_start=1132
|
48
|
+
_globals['_PLATFORMCONFIG_SERVICESENTRY']._serialized_end=1210
|
49
|
+
_globals['_METADATACONFIG']._serialized_start=1238
|
50
|
+
_globals['_METADATACONFIG']._serialized_end=1352
|
51
|
+
_globals['_TENANTCONFIG']._serialized_start=1354
|
52
|
+
_globals['_TENANTCONFIG']._serialized_end=1460
|
53
|
+
_globals['_WEBSERVERCONFIG']._serialized_start=1463
|
54
|
+
_globals['_WEBSERVERCONFIG']._serialized_end=1662
|
55
|
+
_globals['_WEBSERVERREWRITERULE']._serialized_start=1664
|
56
|
+
_globals['_WEBSERVERREWRITERULE']._serialized_end=1718
|
57
|
+
_globals['_WEBSERVERREDIRECT']._serialized_start=1720
|
58
|
+
_globals['_WEBSERVERREDIRECT']._serialized_end=1787
|
59
|
+
_globals['_GATEWAYCONFIG']._serialized_start=1790
|
60
|
+
_globals['_GATEWAYCONFIG']._serialized_end=1925
|
61
|
+
_globals['_ROUTECONFIG']._serialized_start=1928
|
62
|
+
_globals['_ROUTECONFIG']._serialized_end=2156
|
63
|
+
_globals['_ROUTINGMATCH']._serialized_start=2158
|
64
|
+
_globals['_ROUTINGMATCH']._serialized_end=2200
|
65
|
+
_globals['_ROUTINGTARGET']._serialized_start=2202
|
66
|
+
_globals['_ROUTINGTARGET']._serialized_end=2275
|
67
|
+
_globals['_SERVICECONFIG']._serialized_start=2277
|
68
|
+
_globals['_SERVICECONFIG']._serialized_end=2355
|
69
|
+
_globals['_DEPLOYMENTCONFIG']._serialized_start=2357
|
70
|
+
_globals['_DEPLOYMENTCONFIG']._serialized_end=2425
|
71
|
+
# @@protoc_insertion_point(module_scope)
|