elements-api 2025.11.4__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 (153) hide show
  1. elements_api/__init__.py +8 -0
  2. elements_api/async_client.py +43 -0
  3. elements_api/async_interceptors.py +105 -0
  4. elements_api/elements_base_api.py +454 -0
  5. elements_api/models/__init__.py +47 -0
  6. elements_api/models/algorithm_computation_execution_pb2.py +48 -0
  7. elements_api/models/algorithm_computation_execution_pb2.pyi +84 -0
  8. elements_api/models/algorithm_computation_pb2.py +61 -0
  9. elements_api/models/algorithm_computation_pb2.pyi +134 -0
  10. elements_api/models/algorithm_config_pb2.py +90 -0
  11. elements_api/models/algorithm_config_pb2.pyi +185 -0
  12. elements_api/models/algorithm_manifest_pb2.py +43 -0
  13. elements_api/models/algorithm_manifest_pb2.pyi +25 -0
  14. elements_api/models/algorithm_pb2.py +57 -0
  15. elements_api/models/algorithm_pb2.pyi +96 -0
  16. elements_api/models/algorithm_version_pb2.py +88 -0
  17. elements_api/models/algorithm_version_pb2.pyi +233 -0
  18. elements_api/models/analysis_computation_pb2.py +69 -0
  19. elements_api/models/analysis_computation_pb2.pyi +159 -0
  20. elements_api/models/analysis_config_pb2.py +127 -0
  21. elements_api/models/analysis_config_pb2.pyi +180 -0
  22. elements_api/models/analysis_pb2.py +57 -0
  23. elements_api/models/analysis_pb2.pyi +98 -0
  24. elements_api/models/analysis_version_pb2.py +77 -0
  25. elements_api/models/analysis_version_pb2.pyi +141 -0
  26. elements_api/models/aoi_catalog_pb2.py +71 -0
  27. elements_api/models/aoi_catalog_pb2.pyi +162 -0
  28. elements_api/models/aoi_collection_pb2.py +67 -0
  29. elements_api/models/aoi_collection_pb2.pyi +146 -0
  30. elements_api/models/aoi_export_pb2.py +48 -0
  31. elements_api/models/aoi_export_pb2.pyi +62 -0
  32. elements_api/models/aoi_pb2.py +66 -0
  33. elements_api/models/aoi_pb2.pyi +191 -0
  34. elements_api/models/aoi_transaction_pb2.py +52 -0
  35. elements_api/models/aoi_transaction_pb2.pyi +56 -0
  36. elements_api/models/aoi_version_pb2.py +63 -0
  37. elements_api/models/aoi_version_pb2.pyi +171 -0
  38. elements_api/models/common_models_pb2.py +36 -0
  39. elements_api/models/common_models_pb2.pyi +15 -0
  40. elements_api/models/credit_pb2.py +79 -0
  41. elements_api/models/credit_pb2.pyi +216 -0
  42. elements_api/models/data_source_pb2.py +53 -0
  43. elements_api/models/data_source_pb2.pyi +86 -0
  44. elements_api/models/data_tracking_pb2.py +60 -0
  45. elements_api/models/data_tracking_pb2.pyi +127 -0
  46. elements_api/models/data_type_pb2.py +51 -0
  47. elements_api/models/data_type_pb2.pyi +74 -0
  48. elements_api/models/filter_pb2.py +63 -0
  49. elements_api/models/filter_pb2.pyi +133 -0
  50. elements_api/models/forgot_password_pb2.py +42 -0
  51. elements_api/models/forgot_password_pb2.pyi +19 -0
  52. elements_api/models/notification_pb2.py +82 -0
  53. elements_api/models/notification_pb2.pyi +180 -0
  54. elements_api/models/order_pb2.py +68 -0
  55. elements_api/models/order_pb2.pyi +181 -0
  56. elements_api/models/order_recommendation_pb2.py +53 -0
  57. elements_api/models/order_recommendation_pb2.pyi +99 -0
  58. elements_api/models/permission_pb2.py +84 -0
  59. elements_api/models/permission_pb2.pyi +177 -0
  60. elements_api/models/project_analysis_config_pb2.py +154 -0
  61. elements_api/models/project_analysis_config_pb2.pyi +76 -0
  62. elements_api/models/project_aoi_pb2.py +66 -0
  63. elements_api/models/project_aoi_pb2.pyi +118 -0
  64. elements_api/models/project_collaborator_pb2.py +54 -0
  65. elements_api/models/project_collaborator_pb2.pyi +74 -0
  66. elements_api/models/project_filter_pb2.py +55 -0
  67. elements_api/models/project_filter_pb2.pyi +61 -0
  68. elements_api/models/project_group_pb2.py +198 -0
  69. elements_api/models/project_group_pb2.pyi +119 -0
  70. elements_api/models/project_pb2.py +217 -0
  71. elements_api/models/project_pb2.pyi +314 -0
  72. elements_api/models/project_result_pb2.py +123 -0
  73. elements_api/models/project_result_pb2.pyi +221 -0
  74. elements_api/models/provider_quotas_pb2.py +42 -0
  75. elements_api/models/provider_quotas_pb2.pyi +33 -0
  76. elements_api/models/resource_pb2.py +64 -0
  77. elements_api/models/resource_pb2.pyi +133 -0
  78. elements_api/models/result_pb2.py +65 -0
  79. elements_api/models/result_pb2.pyi +158 -0
  80. elements_api/models/s3_pb2.py +52 -0
  81. elements_api/models/s3_pb2.pyi +49 -0
  82. elements_api/models/subject_pb2.py +36 -0
  83. elements_api/models/subject_pb2.pyi +11 -0
  84. elements_api/models/system_pb2.py +47 -0
  85. elements_api/models/system_pb2.pyi +28 -0
  86. elements_api/models/tasking_order_pb2.py +75 -0
  87. elements_api/models/tasking_order_pb2.pyi +156 -0
  88. elements_api/models/tile_pb2.py +52 -0
  89. elements_api/models/tile_pb2.pyi +77 -0
  90. elements_api/models/toi_pb2.py +67 -0
  91. elements_api/models/toi_pb2.pyi +138 -0
  92. elements_api/models/token_pb2.py +42 -0
  93. elements_api/models/token_pb2.pyi +23 -0
  94. elements_api/models/user_collection_pb2.py +78 -0
  95. elements_api/models/user_collection_pb2.pyi +172 -0
  96. elements_api/models/user_pb2.py +86 -0
  97. elements_api/models/user_pb2.pyi +183 -0
  98. elements_api/models/visualization_pb2.py +70 -0
  99. elements_api/models/visualization_pb2.pyi +187 -0
  100. elements_api/stubs/__init__.py +47 -0
  101. elements_api/stubs/algorithm_computation_execution_pb2_grpc.py +111 -0
  102. elements_api/stubs/algorithm_computation_pb2_grpc.py +251 -0
  103. elements_api/stubs/algorithm_config_pb2_grpc.py +377 -0
  104. elements_api/stubs/algorithm_manifest_pb2_grpc.py +99 -0
  105. elements_api/stubs/algorithm_pb2_grpc.py +239 -0
  106. elements_api/stubs/algorithm_version_pb2_grpc.py +336 -0
  107. elements_api/stubs/analysis_computation_pb2_grpc.py +239 -0
  108. elements_api/stubs/analysis_config_pb2_grpc.py +283 -0
  109. elements_api/stubs/analysis_pb2_grpc.py +192 -0
  110. elements_api/stubs/analysis_version_pb2_grpc.py +198 -0
  111. elements_api/stubs/aoi_catalog_pb2_grpc.py +273 -0
  112. elements_api/stubs/aoi_collection_pb2_grpc.py +327 -0
  113. elements_api/stubs/aoi_export_pb2_grpc.py +144 -0
  114. elements_api/stubs/aoi_pb2_grpc.py +241 -0
  115. elements_api/stubs/aoi_transaction_pb2_grpc.py +145 -0
  116. elements_api/stubs/aoi_version_pb2_grpc.py +192 -0
  117. elements_api/stubs/common_models_pb2_grpc.py +24 -0
  118. elements_api/stubs/credit_pb2_grpc.py +418 -0
  119. elements_api/stubs/data_source_pb2_grpc.py +144 -0
  120. elements_api/stubs/data_tracking_pb2_grpc.py +140 -0
  121. elements_api/stubs/data_type_pb2_grpc.py +189 -0
  122. elements_api/stubs/filter_pb2_grpc.py +234 -0
  123. elements_api/stubs/forgot_password_pb2_grpc.py +100 -0
  124. elements_api/stubs/notification_pb2_grpc.py +414 -0
  125. elements_api/stubs/order_pb2_grpc.py +279 -0
  126. elements_api/stubs/order_recommendation_pb2_grpc.py +183 -0
  127. elements_api/stubs/permission_pb2_grpc.py +282 -0
  128. elements_api/stubs/project_analysis_config_pb2_grpc.py +99 -0
  129. elements_api/stubs/project_aoi_pb2_grpc.py +279 -0
  130. elements_api/stubs/project_collaborator_pb2_grpc.py +189 -0
  131. elements_api/stubs/project_filter_pb2_grpc.py +144 -0
  132. elements_api/stubs/project_group_pb2_grpc.py +234 -0
  133. elements_api/stubs/project_pb2_grpc.py +504 -0
  134. elements_api/stubs/project_result_pb2_grpc.py +234 -0
  135. elements_api/stubs/provider_quotas_pb2_grpc.py +99 -0
  136. elements_api/stubs/resource_pb2_grpc.py +228 -0
  137. elements_api/stubs/result_pb2_grpc.py +99 -0
  138. elements_api/stubs/s3_pb2_grpc.py +99 -0
  139. elements_api/stubs/subject_pb2_grpc.py +24 -0
  140. elements_api/stubs/system_pb2_grpc.py +142 -0
  141. elements_api/stubs/tasking_order_pb2_grpc.py +279 -0
  142. elements_api/stubs/tile_pb2_grpc.py +99 -0
  143. elements_api/stubs/toi_pb2_grpc.py +281 -0
  144. elements_api/stubs/token_pb2_grpc.py +100 -0
  145. elements_api/stubs/user_collection_pb2_grpc.py +370 -0
  146. elements_api/stubs/user_pb2_grpc.py +559 -0
  147. elements_api/stubs/visualization_pb2_grpc.py +234 -0
  148. elements_api/sync_client.py +34 -0
  149. elements_api-2025.11.4.dist-info/METADATA +11 -0
  150. elements_api-2025.11.4.dist-info/RECORD +153 -0
  151. elements_api-2025.11.4.dist-info/WHEEL +5 -0
  152. elements_api-2025.11.4.dist-info/licenses/LICENSE +7 -0
  153. elements_api-2025.11.4.dist-info/top_level.txt +1 -0
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: algorithm_computation_execution.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'algorithm_computation_execution.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
27
+ from elements_api.models import common_models_pb2 as common__models__pb2
28
+
29
+ from elements_api.models.common_models_pb2 import *
30
+
31
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%algorithm_computation_execution.proto\x12\x07oi.papi\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x13\x63ommon_models.proto\"\xb4\x05\n\x1d\x41lgorithmComputationExecution\x12\n\n\x02id\x18\x05 \x01(\t\x12\x16\n\x0e\x63omputation_id\x18\x01 \x01(\t\x12,\n\x08start_ts\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\tfinish_ts\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0fpartial_results\x18\x04 \x01(\x08\x12Z\n\x06status\x18\x06 \x01(\x0e\x32J.oi.papi.AlgorithmComputationExecution.AlgorithmComputationExecutionStatus\x12.\n\ncreated_on\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x12validation_details\x18\x08 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x11\n\tinput_ids\x18\t \x03(\t\"\xa4\x02\n#AlgorithmComputationExecutionStatus\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x17\n\x13PERMISSION_CHECKING\x10\x02\x12\x1e\n\x1aPERMISSION_CHECK_SUCCEEDED\x10\x03\x12\x1b\n\x17PERMISSION_CHECK_FAILED\x10\x04\x12\x0e\n\nVALIDATING\x10\x05\x12\x18\n\x14VALIDATION_SUCCEEDED\x10\x06\x12\x15\n\x11VALIDATION_FAILED\x10\x07\x12\x0b\n\x07RUNNING\x10\x08\x12\r\n\tSUCCEEDED\x10\t\x12\n\n\x06\x46\x41ILED\x10\n\x12\x0b\n\x07STOPPED\x10\x0b\x12\r\n\tCANCELLED\x10\x0c\x12\x0c\n\x08RETRYING\x10\r\"_\n\'AlgorithmComputationExecutionGetRequest\x12\x0b\n\x03ids\x18\x01 \x03(\t\x12\'\n\npagination\x18\x02 \x01(\x0b\x32\x13.oi.papi.Pagination\"\xba\x01\n(AlgorithmComputationExecutionGetResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\x12P\n algorithm_computation_executions\x18\x02 \x03(\x0b\x32&.oi.papi.AlgorithmComputationExecution\x12\'\n\npagination\x18\x03 \x01(\x0b\x32\x13.oi.papi.Pagination2\x8e\x01\n AlgorithmComputationExecutionApi\x12j\n\x03get\x12\x30.oi.papi.AlgorithmComputationExecutionGetRequest\x1a\x31.oi.papi.AlgorithmComputationExecutionGetResponseP\x02\x62\x06proto3')
32
+
33
+ _globals = globals()
34
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
35
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'algorithm_computation_execution_pb2', _globals)
36
+ if not _descriptor._USE_C_DESCRIPTORS:
37
+ DESCRIPTOR._loaded_options = None
38
+ _globals['_ALGORITHMCOMPUTATIONEXECUTION']._serialized_start=135
39
+ _globals['_ALGORITHMCOMPUTATIONEXECUTION']._serialized_end=827
40
+ _globals['_ALGORITHMCOMPUTATIONEXECUTION_ALGORITHMCOMPUTATIONEXECUTIONSTATUS']._serialized_start=535
41
+ _globals['_ALGORITHMCOMPUTATIONEXECUTION_ALGORITHMCOMPUTATIONEXECUTIONSTATUS']._serialized_end=827
42
+ _globals['_ALGORITHMCOMPUTATIONEXECUTIONGETREQUEST']._serialized_start=829
43
+ _globals['_ALGORITHMCOMPUTATIONEXECUTIONGETREQUEST']._serialized_end=924
44
+ _globals['_ALGORITHMCOMPUTATIONEXECUTIONGETRESPONSE']._serialized_start=927
45
+ _globals['_ALGORITHMCOMPUTATIONEXECUTIONGETRESPONSE']._serialized_end=1113
46
+ _globals['_ALGORITHMCOMPUTATIONEXECUTIONAPI']._serialized_start=1116
47
+ _globals['_ALGORITHMCOMPUTATIONEXECUTIONAPI']._serialized_end=1258
48
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,84 @@
1
+ import datetime
2
+
3
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
4
+ from google.protobuf import struct_pb2 as _struct_pb2
5
+ import common_models_pb2 as _common_models_pb2
6
+ from google.protobuf.internal import containers as _containers
7
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
8
+ from google.protobuf import descriptor as _descriptor
9
+ from google.protobuf import message as _message
10
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
11
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
12
+ from common_models_pb2 import Pagination as Pagination
13
+
14
+ DESCRIPTOR: _descriptor.FileDescriptor
15
+
16
+ class AlgorithmComputationExecution(_message.Message):
17
+ __slots__ = ("id", "computation_id", "start_ts", "finish_ts", "partial_results", "status", "created_on", "validation_details", "input_ids")
18
+ class AlgorithmComputationExecutionStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
19
+ __slots__ = ()
20
+ UNKNOWN: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
21
+ NEW: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
22
+ PERMISSION_CHECKING: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
23
+ PERMISSION_CHECK_SUCCEEDED: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
24
+ PERMISSION_CHECK_FAILED: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
25
+ VALIDATING: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
26
+ VALIDATION_SUCCEEDED: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
27
+ VALIDATION_FAILED: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
28
+ RUNNING: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
29
+ SUCCEEDED: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
30
+ FAILED: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
31
+ STOPPED: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
32
+ CANCELLED: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
33
+ RETRYING: _ClassVar[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus]
34
+ UNKNOWN: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
35
+ NEW: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
36
+ PERMISSION_CHECKING: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
37
+ PERMISSION_CHECK_SUCCEEDED: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
38
+ PERMISSION_CHECK_FAILED: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
39
+ VALIDATING: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
40
+ VALIDATION_SUCCEEDED: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
41
+ VALIDATION_FAILED: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
42
+ RUNNING: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
43
+ SUCCEEDED: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
44
+ FAILED: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
45
+ STOPPED: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
46
+ CANCELLED: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
47
+ RETRYING: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
48
+ ID_FIELD_NUMBER: _ClassVar[int]
49
+ COMPUTATION_ID_FIELD_NUMBER: _ClassVar[int]
50
+ START_TS_FIELD_NUMBER: _ClassVar[int]
51
+ FINISH_TS_FIELD_NUMBER: _ClassVar[int]
52
+ PARTIAL_RESULTS_FIELD_NUMBER: _ClassVar[int]
53
+ STATUS_FIELD_NUMBER: _ClassVar[int]
54
+ CREATED_ON_FIELD_NUMBER: _ClassVar[int]
55
+ VALIDATION_DETAILS_FIELD_NUMBER: _ClassVar[int]
56
+ INPUT_IDS_FIELD_NUMBER: _ClassVar[int]
57
+ id: str
58
+ computation_id: str
59
+ start_ts: _timestamp_pb2.Timestamp
60
+ finish_ts: _timestamp_pb2.Timestamp
61
+ partial_results: bool
62
+ status: AlgorithmComputationExecution.AlgorithmComputationExecutionStatus
63
+ created_on: _timestamp_pb2.Timestamp
64
+ validation_details: _struct_pb2.Struct
65
+ input_ids: _containers.RepeatedScalarFieldContainer[str]
66
+ def __init__(self, id: _Optional[str] = ..., computation_id: _Optional[str] = ..., start_ts: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., finish_ts: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., partial_results: bool = ..., status: _Optional[_Union[AlgorithmComputationExecution.AlgorithmComputationExecutionStatus, str]] = ..., created_on: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., validation_details: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., input_ids: _Optional[_Iterable[str]] = ...) -> None: ...
67
+
68
+ class AlgorithmComputationExecutionGetRequest(_message.Message):
69
+ __slots__ = ("ids", "pagination")
70
+ IDS_FIELD_NUMBER: _ClassVar[int]
71
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
72
+ ids: _containers.RepeatedScalarFieldContainer[str]
73
+ pagination: _common_models_pb2.Pagination
74
+ def __init__(self, ids: _Optional[_Iterable[str]] = ..., pagination: _Optional[_Union[_common_models_pb2.Pagination, _Mapping]] = ...) -> None: ...
75
+
76
+ class AlgorithmComputationExecutionGetResponse(_message.Message):
77
+ __slots__ = ("status_code", "algorithm_computation_executions", "pagination")
78
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
79
+ ALGORITHM_COMPUTATION_EXECUTIONS_FIELD_NUMBER: _ClassVar[int]
80
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
81
+ status_code: int
82
+ algorithm_computation_executions: _containers.RepeatedCompositeFieldContainer[AlgorithmComputationExecution]
83
+ pagination: _common_models_pb2.Pagination
84
+ def __init__(self, status_code: _Optional[int] = ..., algorithm_computation_executions: _Optional[_Iterable[_Union[AlgorithmComputationExecution, _Mapping]]] = ..., pagination: _Optional[_Union[_common_models_pb2.Pagination, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,61 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: algorithm_computation.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'algorithm_computation.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+ from elements_api.models import common_models_pb2 as common__models__pb2
27
+
28
+ from elements_api.models.common_models_pb2 import *
29
+
30
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1b\x61lgorithm_computation.proto\x12\x07oi.papi\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13\x63ommon_models.proto\"\xf5\x03\n\x14\x41lgorithmComputation\x12\n\n\x02id\x18\x01 \x01(\t\x12\x19\n\x11\x61oi_collection_id\x18\x02 \x01(\t\x12\x16\n\x0e\x61lgo_config_id\x18\x03 \x01(\t\x12\x0e\n\x06toi_id\x18\x04 \x01(\t\x12\x11\n\tinput_ids\x18\x05 \x03(\t\x12\x30\n\x0csubmitted_on\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x05state\x18\x07 \x01(\x0e\x32#.oi.papi.AlgorithmComputation.State\x12\x38\n\x08progress\x18\x08 \x01(\x0b\x32&.oi.papi.AlgorithmComputation.Progress\x12\x32\n\x0elast_execution\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1aO\n\x08Progress\x12\x0f\n\x07running\x18\x01 \x01(\x01\x12\x11\n\tsucceeded\x18\x02 \x01(\x01\x12\x0e\n\x06\x66\x61iled\x18\x03 \x01(\x01\x12\x0f\n\x07no_data\x18\x04 \x01(\x01\"V\n\x05State\x12\x11\n\rUNKNOWN_STATE\x10\x00\x12\x0f\n\x0bNOT_STARTED\x10\x01\x12\x0f\n\x0bIN_PROGRESS\x10\x02\x12\n\n\x06PAUSED\x10\x03\x12\x0c\n\x08\x43OMPLETE\x10\x04\"k\n!AlgorithmComputationCreateRequest\x12\x1b\n\x13\x61lgorithm_config_id\x18\x01 \x01(\t\x12\x19\n\x11\x61oi_collection_id\x18\x02 \x01(\t\x12\x0e\n\x06toi_id\x18\x03 \x01(\t\"w\n\"AlgorithmComputationCreateResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\x12<\n\x15\x61lgorithm_computation\x18\x02 \x01(\x0b\x32\x1d.oi.papi.AlgorithmComputation\"-\n\x1e\x41lgorithmComputationRunRequest\x12\x0b\n\x03ids\x18\x01 \x03(\t\"6\n\x1f\x41lgorithmComputationRunResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\"V\n\x1e\x41lgorithmComputationGetRequest\x12\x0b\n\x03ids\x18\x01 \x03(\t\x12\'\n\npagination\x18\x02 \x01(\x0b\x32\x13.oi.papi.Pagination\"\x9e\x01\n\x1f\x41lgorithmComputationGetResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\x12=\n\x16\x61lgorithm_computations\x18\x02 \x03(\x0b\x32\x1d.oi.papi.AlgorithmComputation\x12\'\n\npagination\x18\x03 \x01(\x0b\x32\x13.oi.papi.Pagination\"\xb2\x02\n\x1f\x41lgorithmComputationListRequest\x12\x32\n\x05state\x18\x01 \x01(\x0e\x32#.oi.papi.AlgorithmComputation.State\x12\x34\n\x10min_submitted_on\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x34\n\x10max_submitted_on\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1b\n\x13\x61lgorithm_config_id\x18\x04 \x01(\t\x12\x0e\n\x06toi_id\x18\x05 \x01(\t\x12\x19\n\x11\x61oi_collection_id\x18\x06 \x01(\t\x12\'\n\npagination\x18\x07 \x01(\x0b\x32\x13.oi.papi.Pagination\"\x9f\x01\n AlgorithmComputationListResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\x12=\n\x16\x61lgorithm_computations\x18\x02 \x03(\x0b\x32\x1d.oi.papi.AlgorithmComputation\x12\'\n\npagination\x18\x03 \x01(\x0b\x32\x13.oi.papi.Pagination2\x8d\x03\n\x17\x41lgorithmComputationApi\x12\x61\n\x06\x63reate\x12*.oi.papi.AlgorithmComputationCreateRequest\x1a+.oi.papi.AlgorithmComputationCreateResponse\x12X\n\x03run\x12\'.oi.papi.AlgorithmComputationRunRequest\x1a(.oi.papi.AlgorithmComputationRunResponse\x12X\n\x03get\x12\'.oi.papi.AlgorithmComputationGetRequest\x1a(.oi.papi.AlgorithmComputationGetResponse\x12[\n\x04list\x12(.oi.papi.AlgorithmComputationListRequest\x1a).oi.papi.AlgorithmComputationListResponseP\x01\x62\x06proto3')
31
+
32
+ _globals = globals()
33
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
34
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'algorithm_computation_pb2', _globals)
35
+ if not _descriptor._USE_C_DESCRIPTORS:
36
+ DESCRIPTOR._loaded_options = None
37
+ _globals['_ALGORITHMCOMPUTATION']._serialized_start=95
38
+ _globals['_ALGORITHMCOMPUTATION']._serialized_end=596
39
+ _globals['_ALGORITHMCOMPUTATION_PROGRESS']._serialized_start=429
40
+ _globals['_ALGORITHMCOMPUTATION_PROGRESS']._serialized_end=508
41
+ _globals['_ALGORITHMCOMPUTATION_STATE']._serialized_start=510
42
+ _globals['_ALGORITHMCOMPUTATION_STATE']._serialized_end=596
43
+ _globals['_ALGORITHMCOMPUTATIONCREATEREQUEST']._serialized_start=598
44
+ _globals['_ALGORITHMCOMPUTATIONCREATEREQUEST']._serialized_end=705
45
+ _globals['_ALGORITHMCOMPUTATIONCREATERESPONSE']._serialized_start=707
46
+ _globals['_ALGORITHMCOMPUTATIONCREATERESPONSE']._serialized_end=826
47
+ _globals['_ALGORITHMCOMPUTATIONRUNREQUEST']._serialized_start=828
48
+ _globals['_ALGORITHMCOMPUTATIONRUNREQUEST']._serialized_end=873
49
+ _globals['_ALGORITHMCOMPUTATIONRUNRESPONSE']._serialized_start=875
50
+ _globals['_ALGORITHMCOMPUTATIONRUNRESPONSE']._serialized_end=929
51
+ _globals['_ALGORITHMCOMPUTATIONGETREQUEST']._serialized_start=931
52
+ _globals['_ALGORITHMCOMPUTATIONGETREQUEST']._serialized_end=1017
53
+ _globals['_ALGORITHMCOMPUTATIONGETRESPONSE']._serialized_start=1020
54
+ _globals['_ALGORITHMCOMPUTATIONGETRESPONSE']._serialized_end=1178
55
+ _globals['_ALGORITHMCOMPUTATIONLISTREQUEST']._serialized_start=1181
56
+ _globals['_ALGORITHMCOMPUTATIONLISTREQUEST']._serialized_end=1487
57
+ _globals['_ALGORITHMCOMPUTATIONLISTRESPONSE']._serialized_start=1490
58
+ _globals['_ALGORITHMCOMPUTATIONLISTRESPONSE']._serialized_end=1649
59
+ _globals['_ALGORITHMCOMPUTATIONAPI']._serialized_start=1652
60
+ _globals['_ALGORITHMCOMPUTATIONAPI']._serialized_end=2049
61
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,134 @@
1
+ import datetime
2
+
3
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
4
+ import common_models_pb2 as _common_models_pb2
5
+ from google.protobuf.internal import containers as _containers
6
+ from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import message as _message
9
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
10
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
11
+ from common_models_pb2 import Pagination as Pagination
12
+
13
+ DESCRIPTOR: _descriptor.FileDescriptor
14
+
15
+ class AlgorithmComputation(_message.Message):
16
+ __slots__ = ("id", "aoi_collection_id", "algo_config_id", "toi_id", "input_ids", "submitted_on", "state", "progress", "last_execution")
17
+ class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
18
+ __slots__ = ()
19
+ UNKNOWN_STATE: _ClassVar[AlgorithmComputation.State]
20
+ NOT_STARTED: _ClassVar[AlgorithmComputation.State]
21
+ IN_PROGRESS: _ClassVar[AlgorithmComputation.State]
22
+ PAUSED: _ClassVar[AlgorithmComputation.State]
23
+ COMPLETE: _ClassVar[AlgorithmComputation.State]
24
+ UNKNOWN_STATE: AlgorithmComputation.State
25
+ NOT_STARTED: AlgorithmComputation.State
26
+ IN_PROGRESS: AlgorithmComputation.State
27
+ PAUSED: AlgorithmComputation.State
28
+ COMPLETE: AlgorithmComputation.State
29
+ class Progress(_message.Message):
30
+ __slots__ = ("running", "succeeded", "failed", "no_data")
31
+ RUNNING_FIELD_NUMBER: _ClassVar[int]
32
+ SUCCEEDED_FIELD_NUMBER: _ClassVar[int]
33
+ FAILED_FIELD_NUMBER: _ClassVar[int]
34
+ NO_DATA_FIELD_NUMBER: _ClassVar[int]
35
+ running: float
36
+ succeeded: float
37
+ failed: float
38
+ no_data: float
39
+ def __init__(self, running: _Optional[float] = ..., succeeded: _Optional[float] = ..., failed: _Optional[float] = ..., no_data: _Optional[float] = ...) -> None: ...
40
+ ID_FIELD_NUMBER: _ClassVar[int]
41
+ AOI_COLLECTION_ID_FIELD_NUMBER: _ClassVar[int]
42
+ ALGO_CONFIG_ID_FIELD_NUMBER: _ClassVar[int]
43
+ TOI_ID_FIELD_NUMBER: _ClassVar[int]
44
+ INPUT_IDS_FIELD_NUMBER: _ClassVar[int]
45
+ SUBMITTED_ON_FIELD_NUMBER: _ClassVar[int]
46
+ STATE_FIELD_NUMBER: _ClassVar[int]
47
+ PROGRESS_FIELD_NUMBER: _ClassVar[int]
48
+ LAST_EXECUTION_FIELD_NUMBER: _ClassVar[int]
49
+ id: str
50
+ aoi_collection_id: str
51
+ algo_config_id: str
52
+ toi_id: str
53
+ input_ids: _containers.RepeatedScalarFieldContainer[str]
54
+ submitted_on: _timestamp_pb2.Timestamp
55
+ state: AlgorithmComputation.State
56
+ progress: AlgorithmComputation.Progress
57
+ last_execution: _timestamp_pb2.Timestamp
58
+ def __init__(self, id: _Optional[str] = ..., aoi_collection_id: _Optional[str] = ..., algo_config_id: _Optional[str] = ..., toi_id: _Optional[str] = ..., input_ids: _Optional[_Iterable[str]] = ..., submitted_on: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., state: _Optional[_Union[AlgorithmComputation.State, str]] = ..., progress: _Optional[_Union[AlgorithmComputation.Progress, _Mapping]] = ..., last_execution: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
59
+
60
+ class AlgorithmComputationCreateRequest(_message.Message):
61
+ __slots__ = ("algorithm_config_id", "aoi_collection_id", "toi_id")
62
+ ALGORITHM_CONFIG_ID_FIELD_NUMBER: _ClassVar[int]
63
+ AOI_COLLECTION_ID_FIELD_NUMBER: _ClassVar[int]
64
+ TOI_ID_FIELD_NUMBER: _ClassVar[int]
65
+ algorithm_config_id: str
66
+ aoi_collection_id: str
67
+ toi_id: str
68
+ def __init__(self, algorithm_config_id: _Optional[str] = ..., aoi_collection_id: _Optional[str] = ..., toi_id: _Optional[str] = ...) -> None: ...
69
+
70
+ class AlgorithmComputationCreateResponse(_message.Message):
71
+ __slots__ = ("status_code", "algorithm_computation")
72
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
73
+ ALGORITHM_COMPUTATION_FIELD_NUMBER: _ClassVar[int]
74
+ status_code: int
75
+ algorithm_computation: AlgorithmComputation
76
+ def __init__(self, status_code: _Optional[int] = ..., algorithm_computation: _Optional[_Union[AlgorithmComputation, _Mapping]] = ...) -> None: ...
77
+
78
+ class AlgorithmComputationRunRequest(_message.Message):
79
+ __slots__ = ("ids",)
80
+ IDS_FIELD_NUMBER: _ClassVar[int]
81
+ ids: _containers.RepeatedScalarFieldContainer[str]
82
+ def __init__(self, ids: _Optional[_Iterable[str]] = ...) -> None: ...
83
+
84
+ class AlgorithmComputationRunResponse(_message.Message):
85
+ __slots__ = ("status_code",)
86
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
87
+ status_code: int
88
+ def __init__(self, status_code: _Optional[int] = ...) -> None: ...
89
+
90
+ class AlgorithmComputationGetRequest(_message.Message):
91
+ __slots__ = ("ids", "pagination")
92
+ IDS_FIELD_NUMBER: _ClassVar[int]
93
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
94
+ ids: _containers.RepeatedScalarFieldContainer[str]
95
+ pagination: _common_models_pb2.Pagination
96
+ def __init__(self, ids: _Optional[_Iterable[str]] = ..., pagination: _Optional[_Union[_common_models_pb2.Pagination, _Mapping]] = ...) -> None: ...
97
+
98
+ class AlgorithmComputationGetResponse(_message.Message):
99
+ __slots__ = ("status_code", "algorithm_computations", "pagination")
100
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
101
+ ALGORITHM_COMPUTATIONS_FIELD_NUMBER: _ClassVar[int]
102
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
103
+ status_code: int
104
+ algorithm_computations: _containers.RepeatedCompositeFieldContainer[AlgorithmComputation]
105
+ pagination: _common_models_pb2.Pagination
106
+ def __init__(self, status_code: _Optional[int] = ..., algorithm_computations: _Optional[_Iterable[_Union[AlgorithmComputation, _Mapping]]] = ..., pagination: _Optional[_Union[_common_models_pb2.Pagination, _Mapping]] = ...) -> None: ...
107
+
108
+ class AlgorithmComputationListRequest(_message.Message):
109
+ __slots__ = ("state", "min_submitted_on", "max_submitted_on", "algorithm_config_id", "toi_id", "aoi_collection_id", "pagination")
110
+ STATE_FIELD_NUMBER: _ClassVar[int]
111
+ MIN_SUBMITTED_ON_FIELD_NUMBER: _ClassVar[int]
112
+ MAX_SUBMITTED_ON_FIELD_NUMBER: _ClassVar[int]
113
+ ALGORITHM_CONFIG_ID_FIELD_NUMBER: _ClassVar[int]
114
+ TOI_ID_FIELD_NUMBER: _ClassVar[int]
115
+ AOI_COLLECTION_ID_FIELD_NUMBER: _ClassVar[int]
116
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
117
+ state: AlgorithmComputation.State
118
+ min_submitted_on: _timestamp_pb2.Timestamp
119
+ max_submitted_on: _timestamp_pb2.Timestamp
120
+ algorithm_config_id: str
121
+ toi_id: str
122
+ aoi_collection_id: str
123
+ pagination: _common_models_pb2.Pagination
124
+ def __init__(self, state: _Optional[_Union[AlgorithmComputation.State, str]] = ..., min_submitted_on: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., max_submitted_on: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., algorithm_config_id: _Optional[str] = ..., toi_id: _Optional[str] = ..., aoi_collection_id: _Optional[str] = ..., pagination: _Optional[_Union[_common_models_pb2.Pagination, _Mapping]] = ...) -> None: ...
125
+
126
+ class AlgorithmComputationListResponse(_message.Message):
127
+ __slots__ = ("status_code", "algorithm_computations", "pagination")
128
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
129
+ ALGORITHM_COMPUTATIONS_FIELD_NUMBER: _ClassVar[int]
130
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
131
+ status_code: int
132
+ algorithm_computations: _containers.RepeatedCompositeFieldContainer[AlgorithmComputation]
133
+ pagination: _common_models_pb2.Pagination
134
+ def __init__(self, status_code: _Optional[int] = ..., algorithm_computations: _Optional[_Iterable[_Union[AlgorithmComputation, _Mapping]]] = ..., pagination: _Optional[_Union[_common_models_pb2.Pagination, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,90 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: algorithm_config.proto
5
+ # Protobuf Python Version: 6.31.1
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 6,
15
+ 31,
16
+ 1,
17
+ '',
18
+ 'algorithm_config.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
26
+ from elements_api.models import common_models_pb2 as common__models__pb2
27
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
28
+ from elements_api.models import algorithm_pb2 as algorithm__pb2
29
+ try:
30
+ common__models__pb2 = algorithm__pb2.common__models__pb2
31
+ except AttributeError:
32
+ common__models__pb2 = algorithm__pb2.common_models_pb2
33
+ from elements_api.models import algorithm_version_pb2 as algorithm__version__pb2
34
+ try:
35
+ common__models__pb2 = algorithm__version__pb2.common__models__pb2
36
+ except AttributeError:
37
+ common__models__pb2 = algorithm__version__pb2.common_models_pb2
38
+ try:
39
+ algorithm__pb2 = algorithm__version__pb2.algorithm__pb2
40
+ except AttributeError:
41
+ algorithm__pb2 = algorithm__version__pb2.algorithm_pb2
42
+ try:
43
+ common__models__pb2 = algorithm__version__pb2.common__models__pb2
44
+ except AttributeError:
45
+ common__models__pb2 = algorithm__version__pb2.common_models_pb2
46
+
47
+ from elements_api.models.common_models_pb2 import *
48
+ from elements_api.models.algorithm_pb2 import *
49
+ from elements_api.models.algorithm_version_pb2 import *
50
+
51
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16\x61lgorithm_config.proto\x12\x07oi.papi\x1a\x1cgoogle/protobuf/struct.proto\x1a\x13\x63ommon_models.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x0f\x61lgorithm.proto\x1a\x17\x61lgorithm_version.proto\"\xbf\x02\n\x0f\x41lgorithmConfig\x12\n\n\x02id\x18\x01 \x01(\t\x12\x34\n\x11\x61lgorithm_version\x18\x02 \x01(\x0b\x32\x19.oi.papi.AlgorithmVersion\x12\'\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12%\n\talgorithm\x18\x04 \x01(\x0b\x32\x12.oi.papi.Algorithm\x12.\n\ncreated_on\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0eis_deactivated\x18\x06 \x01(\x08\x12\x15\n\ris_deprecated\x18\x07 \x01(\x08\x12\x0c\n\x04name\x18\x08 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12\x18\n\x10resources_locked\x18\n \x01(\x08\"\x88\x01\n\x1c\x41lgorithmConfigCreateRequest\x12\x1c\n\x14\x61lgorithm_version_id\x18\x01 \x01(\t\x12\'\n\x06params\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\"h\n\x1d\x41lgorithmConfigCreateResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\x12\x32\n\x10\x61lgorithm_config\x18\x02 \x01(\x0b\x32\x18.oi.papi.AlgorithmConfig\"]\n\x1c\x41lgorithmConfigUpdateRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x31\n\x10\x61lgorithm_config\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"4\n\x1d\x41lgorithmConfigUpdateResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\"\x85\x01\n\x19\x41lgorithmConfigGetRequest\x12\x0b\n\x03ids\x18\x01 \x03(\t\x12\x14\n\x0c\x61lgorithm_id\x18\x02 \x01(\t\x12\'\n\npagination\x18\x03 \x01(\x0b\x32\x13.oi.papi.Pagination\x12\x1c\n\x14\x61lgorithm_version_id\x18\x04 \x01(\t\"\x8f\x01\n\x1a\x41lgorithmConfigGetResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\x12\x33\n\x11\x61lgorithm_configs\x18\x02 \x03(\x0b\x32\x18.oi.papi.AlgorithmConfig\x12\'\n\npagination\x18\x03 \x01(\x0b\x32\x13.oi.papi.Pagination\"\x93\x02\n\x1a\x41lgorithmConfigListRequest\x12\x14\n\x0c\x61lgorithm_id\x18\x01 \x01(\t\x12\x1c\n\x14\x61lgorithm_version_id\x18\x02 \x01(\t\x12\x13\n\x0bsearch_text\x18\x03 \x01(\t\x12\x32\n\x0emin_created_on\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0emax_created_on\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1b\n\x13include_deactivated\x18\x06 \x01(\x08\x12\'\n\npagination\x18\x07 \x01(\x0b\x32\x13.oi.papi.Pagination\"\x90\x01\n\x1b\x41lgorithmConfigListResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\x12\x33\n\x11\x61lgorithm_configs\x18\x02 \x03(\x0b\x32\x18.oi.papi.AlgorithmConfig\x12\'\n\npagination\x18\x03 \x01(\x0b\x32\x13.oi.papi.Pagination\"+\n\x1c\x41lgorithmConfigDeleteRequest\x12\x0b\n\x03ids\x18\x01 \x03(\t\"4\n\x1d\x41lgorithmConfigDeleteResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\".\n\x1f\x41lgorithmConfigDeprecateRequest\x12\x0b\n\x03ids\x18\x01 \x03(\t\"7\n AlgorithmConfigDeprecateResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r\"/\n AlgorithmConfigDeactivateRequest\x12\x0b\n\x03ids\x18\x01 \x03(\t\"8\n!AlgorithmConfigDeactivateResponse\x12\x13\n\x0bstatus_code\x18\x01 \x01(\r2\x89\x05\n\x12\x41lgorithmConfigApi\x12W\n\x06\x63reate\x12%.oi.papi.AlgorithmConfigCreateRequest\x1a&.oi.papi.AlgorithmConfigCreateResponse\x12N\n\x03get\x12\".oi.papi.AlgorithmConfigGetRequest\x1a#.oi.papi.AlgorithmConfigGetResponse\x12Q\n\x04list\x12#.oi.papi.AlgorithmConfigListRequest\x1a$.oi.papi.AlgorithmConfigListResponse\x12W\n\x06update\x12%.oi.papi.AlgorithmConfigUpdateRequest\x1a&.oi.papi.AlgorithmConfigUpdateResponse\x12`\n\tdeprecate\x12(.oi.papi.AlgorithmConfigDeprecateRequest\x1a).oi.papi.AlgorithmConfigDeprecateResponse\x12\x63\n\ndeactivate\x12).oi.papi.AlgorithmConfigDeactivateRequest\x1a*.oi.papi.AlgorithmConfigDeactivateResponse\x12W\n\x06\x64\x65lete\x12%.oi.papi.AlgorithmConfigDeleteRequest\x1a&.oi.papi.AlgorithmConfigDeleteResponseP\x01P\x03P\x04\x62\x06proto3')
52
+
53
+ _globals = globals()
54
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
55
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'algorithm_config_pb2', _globals)
56
+ if not _descriptor._USE_C_DESCRIPTORS:
57
+ DESCRIPTOR._loaded_options = None
58
+ _globals['_ALGORITHMCONFIG']._serialized_start=162
59
+ _globals['_ALGORITHMCONFIG']._serialized_end=481
60
+ _globals['_ALGORITHMCONFIGCREATEREQUEST']._serialized_start=484
61
+ _globals['_ALGORITHMCONFIGCREATEREQUEST']._serialized_end=620
62
+ _globals['_ALGORITHMCONFIGCREATERESPONSE']._serialized_start=622
63
+ _globals['_ALGORITHMCONFIGCREATERESPONSE']._serialized_end=726
64
+ _globals['_ALGORITHMCONFIGUPDATEREQUEST']._serialized_start=728
65
+ _globals['_ALGORITHMCONFIGUPDATEREQUEST']._serialized_end=821
66
+ _globals['_ALGORITHMCONFIGUPDATERESPONSE']._serialized_start=823
67
+ _globals['_ALGORITHMCONFIGUPDATERESPONSE']._serialized_end=875
68
+ _globals['_ALGORITHMCONFIGGETREQUEST']._serialized_start=878
69
+ _globals['_ALGORITHMCONFIGGETREQUEST']._serialized_end=1011
70
+ _globals['_ALGORITHMCONFIGGETRESPONSE']._serialized_start=1014
71
+ _globals['_ALGORITHMCONFIGGETRESPONSE']._serialized_end=1157
72
+ _globals['_ALGORITHMCONFIGLISTREQUEST']._serialized_start=1160
73
+ _globals['_ALGORITHMCONFIGLISTREQUEST']._serialized_end=1435
74
+ _globals['_ALGORITHMCONFIGLISTRESPONSE']._serialized_start=1438
75
+ _globals['_ALGORITHMCONFIGLISTRESPONSE']._serialized_end=1582
76
+ _globals['_ALGORITHMCONFIGDELETEREQUEST']._serialized_start=1584
77
+ _globals['_ALGORITHMCONFIGDELETEREQUEST']._serialized_end=1627
78
+ _globals['_ALGORITHMCONFIGDELETERESPONSE']._serialized_start=1629
79
+ _globals['_ALGORITHMCONFIGDELETERESPONSE']._serialized_end=1681
80
+ _globals['_ALGORITHMCONFIGDEPRECATEREQUEST']._serialized_start=1683
81
+ _globals['_ALGORITHMCONFIGDEPRECATEREQUEST']._serialized_end=1729
82
+ _globals['_ALGORITHMCONFIGDEPRECATERESPONSE']._serialized_start=1731
83
+ _globals['_ALGORITHMCONFIGDEPRECATERESPONSE']._serialized_end=1786
84
+ _globals['_ALGORITHMCONFIGDEACTIVATEREQUEST']._serialized_start=1788
85
+ _globals['_ALGORITHMCONFIGDEACTIVATEREQUEST']._serialized_end=1835
86
+ _globals['_ALGORITHMCONFIGDEACTIVATERESPONSE']._serialized_start=1837
87
+ _globals['_ALGORITHMCONFIGDEACTIVATERESPONSE']._serialized_end=1893
88
+ _globals['_ALGORITHMCONFIGAPI']._serialized_start=1896
89
+ _globals['_ALGORITHMCONFIGAPI']._serialized_end=2545
90
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,185 @@
1
+ import datetime
2
+
3
+ from google.protobuf import struct_pb2 as _struct_pb2
4
+ import common_models_pb2 as _common_models_pb2
5
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
6
+ import algorithm_pb2 as _algorithm_pb2
7
+ import common_models_pb2 as _common_models_pb2_1
8
+ import algorithm_version_pb2 as _algorithm_version_pb2
9
+ import common_models_pb2 as _common_models_pb2_1_1
10
+ import algorithm_pb2 as _algorithm_pb2_1
11
+ from google.protobuf.internal import containers as _containers
12
+ from google.protobuf import descriptor as _descriptor
13
+ from google.protobuf import message as _message
14
+ from collections.abc import Iterable as _Iterable, Mapping as _Mapping
15
+ from typing import ClassVar as _ClassVar, Optional as _Optional, Union as _Union
16
+ from common_models_pb2 import Pagination as Pagination
17
+ from algorithm_pb2 import Algorithm as Algorithm
18
+ from algorithm_pb2 import AlgorithmCreateRequest as AlgorithmCreateRequest
19
+ from algorithm_pb2 import AlgorithmCreateResponse as AlgorithmCreateResponse
20
+ from algorithm_pb2 import AlgorithmGetRequest as AlgorithmGetRequest
21
+ from algorithm_pb2 import AlgorithmGetResponse as AlgorithmGetResponse
22
+ from algorithm_pb2 import AlgorithmListRequest as AlgorithmListRequest
23
+ from algorithm_pb2 import AlgorithmListResponse as AlgorithmListResponse
24
+ from algorithm_pb2 import AlgorithmUpdateRequest as AlgorithmUpdateRequest
25
+ from algorithm_pb2 import AlgorithmUpdateResponse as AlgorithmUpdateResponse
26
+ from algorithm_version_pb2 import Manifest as Manifest
27
+ from algorithm_version_pb2 import AlgorithmVersion as AlgorithmVersion
28
+ from algorithm_version_pb2 import AlgorithmVersionCreateRequest as AlgorithmVersionCreateRequest
29
+ from algorithm_version_pb2 import AlgorithmVersionCreateResponse as AlgorithmVersionCreateResponse
30
+ from algorithm_version_pb2 import AlgorithmVersionGetRequest as AlgorithmVersionGetRequest
31
+ from algorithm_version_pb2 import AlgorithmVersionGetResponse as AlgorithmVersionGetResponse
32
+ from algorithm_version_pb2 import AlgorithmVersionListRequest as AlgorithmVersionListRequest
33
+ from algorithm_version_pb2 import AlgorithmVersionListResponse as AlgorithmVersionListResponse
34
+ from algorithm_version_pb2 import AlgorithmVersionDeprecateRequest as AlgorithmVersionDeprecateRequest
35
+ from algorithm_version_pb2 import AlgorithmVersionDeprecateResponse as AlgorithmVersionDeprecateResponse
36
+ from algorithm_version_pb2 import AlgorithmVersionDeactivateRequest as AlgorithmVersionDeactivateRequest
37
+ from algorithm_version_pb2 import AlgorithmVersionDeactivateResponse as AlgorithmVersionDeactivateResponse
38
+ from algorithm_version_pb2 import AlgorithmVersionActivateRequest as AlgorithmVersionActivateRequest
39
+ from algorithm_version_pb2 import AlgorithmVersionActivateResponse as AlgorithmVersionActivateResponse
40
+
41
+ DESCRIPTOR: _descriptor.FileDescriptor
42
+
43
+ class AlgorithmConfig(_message.Message):
44
+ __slots__ = ("id", "algorithm_version", "config", "algorithm", "created_on", "is_deactivated", "is_deprecated", "name", "description", "resources_locked")
45
+ ID_FIELD_NUMBER: _ClassVar[int]
46
+ ALGORITHM_VERSION_FIELD_NUMBER: _ClassVar[int]
47
+ CONFIG_FIELD_NUMBER: _ClassVar[int]
48
+ ALGORITHM_FIELD_NUMBER: _ClassVar[int]
49
+ CREATED_ON_FIELD_NUMBER: _ClassVar[int]
50
+ IS_DEACTIVATED_FIELD_NUMBER: _ClassVar[int]
51
+ IS_DEPRECATED_FIELD_NUMBER: _ClassVar[int]
52
+ NAME_FIELD_NUMBER: _ClassVar[int]
53
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
54
+ RESOURCES_LOCKED_FIELD_NUMBER: _ClassVar[int]
55
+ id: str
56
+ algorithm_version: _algorithm_version_pb2.AlgorithmVersion
57
+ config: _struct_pb2.Struct
58
+ algorithm: _algorithm_pb2_1.Algorithm
59
+ created_on: _timestamp_pb2.Timestamp
60
+ is_deactivated: bool
61
+ is_deprecated: bool
62
+ name: str
63
+ description: str
64
+ resources_locked: bool
65
+ def __init__(self, id: _Optional[str] = ..., algorithm_version: _Optional[_Union[_algorithm_version_pb2.AlgorithmVersion, _Mapping]] = ..., config: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., algorithm: _Optional[_Union[_algorithm_pb2_1.Algorithm, _Mapping]] = ..., created_on: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., is_deactivated: bool = ..., is_deprecated: bool = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., resources_locked: bool = ...) -> None: ...
66
+
67
+ class AlgorithmConfigCreateRequest(_message.Message):
68
+ __slots__ = ("algorithm_version_id", "params", "name", "description")
69
+ ALGORITHM_VERSION_ID_FIELD_NUMBER: _ClassVar[int]
70
+ PARAMS_FIELD_NUMBER: _ClassVar[int]
71
+ NAME_FIELD_NUMBER: _ClassVar[int]
72
+ DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
73
+ algorithm_version_id: str
74
+ params: _struct_pb2.Struct
75
+ name: str
76
+ description: str
77
+ def __init__(self, algorithm_version_id: _Optional[str] = ..., params: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ...
78
+
79
+ class AlgorithmConfigCreateResponse(_message.Message):
80
+ __slots__ = ("status_code", "algorithm_config")
81
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
82
+ ALGORITHM_CONFIG_FIELD_NUMBER: _ClassVar[int]
83
+ status_code: int
84
+ algorithm_config: AlgorithmConfig
85
+ def __init__(self, status_code: _Optional[int] = ..., algorithm_config: _Optional[_Union[AlgorithmConfig, _Mapping]] = ...) -> None: ...
86
+
87
+ class AlgorithmConfigUpdateRequest(_message.Message):
88
+ __slots__ = ("id", "algorithm_config")
89
+ ID_FIELD_NUMBER: _ClassVar[int]
90
+ ALGORITHM_CONFIG_FIELD_NUMBER: _ClassVar[int]
91
+ id: str
92
+ algorithm_config: _struct_pb2.Struct
93
+ def __init__(self, id: _Optional[str] = ..., algorithm_config: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...
94
+
95
+ class AlgorithmConfigUpdateResponse(_message.Message):
96
+ __slots__ = ("status_code",)
97
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
98
+ status_code: int
99
+ def __init__(self, status_code: _Optional[int] = ...) -> None: ...
100
+
101
+ class AlgorithmConfigGetRequest(_message.Message):
102
+ __slots__ = ("ids", "algorithm_id", "pagination", "algorithm_version_id")
103
+ IDS_FIELD_NUMBER: _ClassVar[int]
104
+ ALGORITHM_ID_FIELD_NUMBER: _ClassVar[int]
105
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
106
+ ALGORITHM_VERSION_ID_FIELD_NUMBER: _ClassVar[int]
107
+ ids: _containers.RepeatedScalarFieldContainer[str]
108
+ algorithm_id: str
109
+ pagination: _common_models_pb2_1_1.Pagination
110
+ algorithm_version_id: str
111
+ def __init__(self, ids: _Optional[_Iterable[str]] = ..., algorithm_id: _Optional[str] = ..., pagination: _Optional[_Union[_common_models_pb2_1_1.Pagination, _Mapping]] = ..., algorithm_version_id: _Optional[str] = ...) -> None: ...
112
+
113
+ class AlgorithmConfigGetResponse(_message.Message):
114
+ __slots__ = ("status_code", "algorithm_configs", "pagination")
115
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
116
+ ALGORITHM_CONFIGS_FIELD_NUMBER: _ClassVar[int]
117
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
118
+ status_code: int
119
+ algorithm_configs: _containers.RepeatedCompositeFieldContainer[AlgorithmConfig]
120
+ pagination: _common_models_pb2_1_1.Pagination
121
+ def __init__(self, status_code: _Optional[int] = ..., algorithm_configs: _Optional[_Iterable[_Union[AlgorithmConfig, _Mapping]]] = ..., pagination: _Optional[_Union[_common_models_pb2_1_1.Pagination, _Mapping]] = ...) -> None: ...
122
+
123
+ class AlgorithmConfigListRequest(_message.Message):
124
+ __slots__ = ("algorithm_id", "algorithm_version_id", "search_text", "min_created_on", "max_created_on", "include_deactivated", "pagination")
125
+ ALGORITHM_ID_FIELD_NUMBER: _ClassVar[int]
126
+ ALGORITHM_VERSION_ID_FIELD_NUMBER: _ClassVar[int]
127
+ SEARCH_TEXT_FIELD_NUMBER: _ClassVar[int]
128
+ MIN_CREATED_ON_FIELD_NUMBER: _ClassVar[int]
129
+ MAX_CREATED_ON_FIELD_NUMBER: _ClassVar[int]
130
+ INCLUDE_DEACTIVATED_FIELD_NUMBER: _ClassVar[int]
131
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
132
+ algorithm_id: str
133
+ algorithm_version_id: str
134
+ search_text: str
135
+ min_created_on: _timestamp_pb2.Timestamp
136
+ max_created_on: _timestamp_pb2.Timestamp
137
+ include_deactivated: bool
138
+ pagination: _common_models_pb2_1_1.Pagination
139
+ def __init__(self, algorithm_id: _Optional[str] = ..., algorithm_version_id: _Optional[str] = ..., search_text: _Optional[str] = ..., min_created_on: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., max_created_on: _Optional[_Union[datetime.datetime, _timestamp_pb2.Timestamp, _Mapping]] = ..., include_deactivated: bool = ..., pagination: _Optional[_Union[_common_models_pb2_1_1.Pagination, _Mapping]] = ...) -> None: ...
140
+
141
+ class AlgorithmConfigListResponse(_message.Message):
142
+ __slots__ = ("status_code", "algorithm_configs", "pagination")
143
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
144
+ ALGORITHM_CONFIGS_FIELD_NUMBER: _ClassVar[int]
145
+ PAGINATION_FIELD_NUMBER: _ClassVar[int]
146
+ status_code: int
147
+ algorithm_configs: _containers.RepeatedCompositeFieldContainer[AlgorithmConfig]
148
+ pagination: _common_models_pb2_1_1.Pagination
149
+ def __init__(self, status_code: _Optional[int] = ..., algorithm_configs: _Optional[_Iterable[_Union[AlgorithmConfig, _Mapping]]] = ..., pagination: _Optional[_Union[_common_models_pb2_1_1.Pagination, _Mapping]] = ...) -> None: ...
150
+
151
+ class AlgorithmConfigDeleteRequest(_message.Message):
152
+ __slots__ = ("ids",)
153
+ IDS_FIELD_NUMBER: _ClassVar[int]
154
+ ids: _containers.RepeatedScalarFieldContainer[str]
155
+ def __init__(self, ids: _Optional[_Iterable[str]] = ...) -> None: ...
156
+
157
+ class AlgorithmConfigDeleteResponse(_message.Message):
158
+ __slots__ = ("status_code",)
159
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
160
+ status_code: int
161
+ def __init__(self, status_code: _Optional[int] = ...) -> None: ...
162
+
163
+ class AlgorithmConfigDeprecateRequest(_message.Message):
164
+ __slots__ = ("ids",)
165
+ IDS_FIELD_NUMBER: _ClassVar[int]
166
+ ids: _containers.RepeatedScalarFieldContainer[str]
167
+ def __init__(self, ids: _Optional[_Iterable[str]] = ...) -> None: ...
168
+
169
+ class AlgorithmConfigDeprecateResponse(_message.Message):
170
+ __slots__ = ("status_code",)
171
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
172
+ status_code: int
173
+ def __init__(self, status_code: _Optional[int] = ...) -> None: ...
174
+
175
+ class AlgorithmConfigDeactivateRequest(_message.Message):
176
+ __slots__ = ("ids",)
177
+ IDS_FIELD_NUMBER: _ClassVar[int]
178
+ ids: _containers.RepeatedScalarFieldContainer[str]
179
+ def __init__(self, ids: _Optional[_Iterable[str]] = ...) -> None: ...
180
+
181
+ class AlgorithmConfigDeactivateResponse(_message.Message):
182
+ __slots__ = ("status_code",)
183
+ STATUS_CODE_FIELD_NUMBER: _ClassVar[int]
184
+ status_code: int
185
+ def __init__(self, status_code: _Optional[int] = ...) -> None: ...