flyte 2.0.0b22__py3-none-any.whl → 2.0.0b23__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.

Potentially problematic release.


This version of flyte might be problematic. Click here for more details.

Files changed (88) hide show
  1. flyte/__init__.py +5 -0
  2. flyte/_bin/runtime.py +35 -5
  3. flyte/_cache/cache.py +4 -2
  4. flyte/_cache/local_cache.py +215 -0
  5. flyte/_code_bundle/bundle.py +1 -0
  6. flyte/_debug/constants.py +0 -1
  7. flyte/_debug/vscode.py +6 -1
  8. flyte/_deploy.py +193 -52
  9. flyte/_environment.py +5 -0
  10. flyte/_excepthook.py +1 -1
  11. flyte/_image.py +101 -72
  12. flyte/_initialize.py +23 -0
  13. flyte/_internal/controllers/_local_controller.py +64 -24
  14. flyte/_internal/controllers/remote/_action.py +4 -1
  15. flyte/_internal/controllers/remote/_controller.py +5 -2
  16. flyte/_internal/controllers/remote/_core.py +6 -3
  17. flyte/_internal/controllers/remote/_informer.py +1 -1
  18. flyte/_internal/imagebuild/docker_builder.py +92 -28
  19. flyte/_internal/imagebuild/image_builder.py +7 -13
  20. flyte/_internal/imagebuild/remote_builder.py +6 -1
  21. flyte/_internal/runtime/io.py +13 -1
  22. flyte/_internal/runtime/rusty.py +17 -2
  23. flyte/_internal/runtime/task_serde.py +14 -20
  24. flyte/_internal/runtime/taskrunner.py +1 -1
  25. flyte/_internal/runtime/trigger_serde.py +153 -0
  26. flyte/_logging.py +1 -1
  27. flyte/_protos/common/identifier_pb2.py +19 -1
  28. flyte/_protos/common/identifier_pb2.pyi +22 -0
  29. flyte/_protos/workflow/common_pb2.py +14 -3
  30. flyte/_protos/workflow/common_pb2.pyi +49 -0
  31. flyte/_protos/workflow/queue_service_pb2.py +41 -35
  32. flyte/_protos/workflow/queue_service_pb2.pyi +26 -12
  33. flyte/_protos/workflow/queue_service_pb2_grpc.py +34 -0
  34. flyte/_protos/workflow/run_definition_pb2.py +38 -38
  35. flyte/_protos/workflow/run_definition_pb2.pyi +4 -2
  36. flyte/_protos/workflow/run_service_pb2.py +60 -50
  37. flyte/_protos/workflow/run_service_pb2.pyi +24 -6
  38. flyte/_protos/workflow/run_service_pb2_grpc.py +34 -0
  39. flyte/_protos/workflow/task_definition_pb2.py +15 -11
  40. flyte/_protos/workflow/task_definition_pb2.pyi +19 -2
  41. flyte/_protos/workflow/task_service_pb2.py +18 -17
  42. flyte/_protos/workflow/task_service_pb2.pyi +5 -2
  43. flyte/_protos/workflow/trigger_definition_pb2.py +66 -0
  44. flyte/_protos/workflow/trigger_definition_pb2.pyi +117 -0
  45. flyte/_protos/workflow/trigger_definition_pb2_grpc.py +4 -0
  46. flyte/_protos/workflow/trigger_service_pb2.py +96 -0
  47. flyte/_protos/workflow/trigger_service_pb2.pyi +110 -0
  48. flyte/_protos/workflow/trigger_service_pb2_grpc.py +281 -0
  49. flyte/_run.py +42 -15
  50. flyte/_task.py +35 -4
  51. flyte/_task_environment.py +60 -15
  52. flyte/_trigger.py +382 -0
  53. flyte/_version.py +3 -3
  54. flyte/cli/_abort.py +3 -3
  55. flyte/cli/_build.py +1 -3
  56. flyte/cli/_common.py +15 -2
  57. flyte/cli/_create.py +74 -0
  58. flyte/cli/_delete.py +23 -1
  59. flyte/cli/_deploy.py +5 -9
  60. flyte/cli/_get.py +75 -34
  61. flyte/cli/_params.py +4 -2
  62. flyte/cli/_run.py +12 -3
  63. flyte/cli/_update.py +36 -0
  64. flyte/cli/_user.py +17 -0
  65. flyte/cli/main.py +9 -1
  66. flyte/errors.py +9 -0
  67. flyte/io/_dir.py +513 -115
  68. flyte/io/_file.py +495 -135
  69. flyte/models.py +32 -0
  70. flyte/remote/__init__.py +6 -1
  71. flyte/remote/_client/_protocols.py +36 -2
  72. flyte/remote/_client/controlplane.py +19 -3
  73. flyte/remote/_run.py +42 -2
  74. flyte/remote/_task.py +14 -1
  75. flyte/remote/_trigger.py +308 -0
  76. flyte/remote/_user.py +33 -0
  77. flyte/storage/__init__.py +6 -1
  78. flyte/storage/_storage.py +119 -101
  79. flyte/types/_pickle.py +16 -3
  80. {flyte-2.0.0b22.data → flyte-2.0.0b23.data}/scripts/runtime.py +35 -5
  81. {flyte-2.0.0b22.dist-info → flyte-2.0.0b23.dist-info}/METADATA +3 -1
  82. {flyte-2.0.0b22.dist-info → flyte-2.0.0b23.dist-info}/RECORD +87 -75
  83. flyte/_protos/secret/secret_pb2_grpc_grpc.py +0 -198
  84. {flyte-2.0.0b22.data → flyte-2.0.0b23.data}/scripts/debug.py +0 -0
  85. {flyte-2.0.0b22.dist-info → flyte-2.0.0b23.dist-info}/WHEEL +0 -0
  86. {flyte-2.0.0b22.dist-info → flyte-2.0.0b23.dist-info}/entry_points.txt +0 -0
  87. {flyte-2.0.0b22.dist-info → flyte-2.0.0b23.dist-info}/licenses/LICENSE +0 -0
  88. {flyte-2.0.0b22.dist-info → flyte-2.0.0b23.dist-info}/top_level.txt +0 -0
@@ -39,17 +39,34 @@ class TaskIdentifier(_message.Message):
39
39
  version: str
40
40
  def __init__(self, org: _Optional[str] = ..., project: _Optional[str] = ..., domain: _Optional[str] = ..., name: _Optional[str] = ..., version: _Optional[str] = ...) -> None: ...
41
41
 
42
+ class TaskTriggersSummary(_message.Message):
43
+ __slots__ = ["automation_spec", "stats"]
44
+ class TriggerStats(_message.Message):
45
+ __slots__ = ["total", "active"]
46
+ TOTAL_FIELD_NUMBER: _ClassVar[int]
47
+ ACTIVE_FIELD_NUMBER: _ClassVar[int]
48
+ total: int
49
+ active: int
50
+ def __init__(self, total: _Optional[int] = ..., active: _Optional[int] = ...) -> None: ...
51
+ AUTOMATION_SPEC_FIELD_NUMBER: _ClassVar[int]
52
+ STATS_FIELD_NUMBER: _ClassVar[int]
53
+ automation_spec: _common_pb2.TriggerAutomationSpec
54
+ stats: TaskTriggersSummary.TriggerStats
55
+ def __init__(self, automation_spec: _Optional[_Union[_common_pb2.TriggerAutomationSpec, _Mapping]] = ..., stats: _Optional[_Union[TaskTriggersSummary.TriggerStats, _Mapping]] = ...) -> None: ...
56
+
42
57
  class TaskMetadata(_message.Message):
43
- __slots__ = ["deployed_by", "short_name", "deployed_at", "environment_name"]
58
+ __slots__ = ["deployed_by", "short_name", "deployed_at", "environment_name", "triggers_summary"]
44
59
  DEPLOYED_BY_FIELD_NUMBER: _ClassVar[int]
45
60
  SHORT_NAME_FIELD_NUMBER: _ClassVar[int]
46
61
  DEPLOYED_AT_FIELD_NUMBER: _ClassVar[int]
47
62
  ENVIRONMENT_NAME_FIELD_NUMBER: _ClassVar[int]
63
+ TRIGGERS_SUMMARY_FIELD_NUMBER: _ClassVar[int]
48
64
  deployed_by: _identity_pb2.EnrichedIdentity
49
65
  short_name: str
50
66
  deployed_at: _timestamp_pb2.Timestamp
51
67
  environment_name: str
52
- def __init__(self, deployed_by: _Optional[_Union[_identity_pb2.EnrichedIdentity, _Mapping]] = ..., short_name: _Optional[str] = ..., deployed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., environment_name: _Optional[str] = ...) -> None: ...
68
+ triggers_summary: TaskTriggersSummary
69
+ def __init__(self, deployed_by: _Optional[_Union[_identity_pb2.EnrichedIdentity, _Mapping]] = ..., short_name: _Optional[str] = ..., deployed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., environment_name: _Optional[str] = ..., triggers_summary: _Optional[_Union[TaskTriggersSummary, _Mapping]] = ...) -> None: ...
53
70
 
54
71
  class Task(_message.Message):
55
72
  __slots__ = ["task_id", "metadata"]
@@ -15,9 +15,10 @@ from flyte._protos.common import identifier_pb2 as common_dot_identifier__pb2
15
15
  from flyte._protos.common import list_pb2 as common_dot_list__pb2
16
16
  from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
17
17
  from flyte._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
18
+ from flyte._protos.workflow import trigger_definition_pb2 as workflow_dot_trigger__definition__pb2
18
19
 
19
20
 
20
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bworkflow/task_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x11\x63ommon/list.proto\x1a\x17validate/validate.proto\x1a\x1eworkflow/task_definition.proto\"\x94\x01\n\x11\x44\x65ployTaskRequest\x12\x44\n\x07task_id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x06taskId\x12\x39\n\x04spec\x18\x02 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04spec\"\x14\n\x12\x44\x65ployTaskResponse\"]\n\x15GetTaskDetailsRequest\x12\x44\n\x07task_id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x06taskId\"R\n\x16GetTaskDetailsResponse\x12\x38\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1e.cloudidl.workflow.TaskDetailsR\x07\x64\x65tails\"\xdc\x02\n\x10ListTasksRequest\x12\x36\n\x07request\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.ListRequestR\x07request\x12\x1b\n\x03org\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x03org\x12M\n\nproject_id\x18\x03 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12T\n\rknown_filters\x18\x04 \x03(\x0b\x32/.cloudidl.workflow.ListTasksRequest.KnownFilterR\x0cknownFilters\x1a=\n\x0bKnownFilter\x12!\n\x0b\x64\x65ployed_by\x18\x01 \x01(\tH\x00R\ndeployedByB\x0b\n\tfilter_byB\x0f\n\x08scope_by\x12\x03\xf8\x42\x01\"X\n\x11ListTasksResponse\x12-\n\x05tasks\x18\x01 \x03(\x0b\x32\x17.cloudidl.workflow.TaskR\x05tasks\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token2\xb3\x02\n\x0bTaskService\x12[\n\nDeployTask\x12$.cloudidl.workflow.DeployTaskRequest\x1a%.cloudidl.workflow.DeployTaskResponse\"\x00\x12j\n\x0eGetTaskDetails\x12(.cloudidl.workflow.GetTaskDetailsRequest\x1a).cloudidl.workflow.GetTaskDetailsResponse\"\x03\x90\x02\x01\x12[\n\tListTasks\x12#.cloudidl.workflow.ListTasksRequest\x1a$.cloudidl.workflow.ListTasksResponse\"\x03\x90\x02\x01\x42\xbd\x01\n\x15\x63om.cloudidl.workflowB\x10TaskServiceProtoH\x02P\x01Z+github.com/unionai/cloud/gen/pb-go/workflow\xa2\x02\x03\x43WX\xaa\x02\x11\x43loudidl.Workflow\xca\x02\x11\x43loudidl\\Workflow\xe2\x02\x1d\x43loudidl\\Workflow\\GPBMetadata\xea\x02\x12\x43loudidl::Workflowb\x06proto3')
21
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bworkflow/task_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x11\x63ommon/list.proto\x1a\x17validate/validate.proto\x1a\x1eworkflow/task_definition.proto\x1a!workflow/trigger_definition.proto\"\xd0\x01\n\x11\x44\x65ployTaskRequest\x12\x44\n\x07task_id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x06taskId\x12\x39\n\x04spec\x18\x02 \x01(\x0b\x32\x1b.cloudidl.workflow.TaskSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04spec\x12:\n\x08triggers\x18\x03 \x03(\x0b\x32\x1e.cloudidl.workflow.TaskTriggerR\x08triggers\"\x14\n\x12\x44\x65ployTaskResponse\"]\n\x15GetTaskDetailsRequest\x12\x44\n\x07task_id\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x06taskId\"R\n\x16GetTaskDetailsResponse\x12\x38\n\x07\x64\x65tails\x18\x01 \x01(\x0b\x32\x1e.cloudidl.workflow.TaskDetailsR\x07\x64\x65tails\"\xdc\x02\n\x10ListTasksRequest\x12\x36\n\x07request\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.ListRequestR\x07request\x12\x1b\n\x03org\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x03org\x12M\n\nproject_id\x18\x03 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12T\n\rknown_filters\x18\x04 \x03(\x0b\x32/.cloudidl.workflow.ListTasksRequest.KnownFilterR\x0cknownFilters\x1a=\n\x0bKnownFilter\x12!\n\x0b\x64\x65ployed_by\x18\x01 \x01(\tH\x00R\ndeployedByB\x0b\n\tfilter_byB\x0f\n\x08scope_by\x12\x03\xf8\x42\x01\"X\n\x11ListTasksResponse\x12-\n\x05tasks\x18\x01 \x03(\x0b\x32\x17.cloudidl.workflow.TaskR\x05tasks\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token2\xb3\x02\n\x0bTaskService\x12[\n\nDeployTask\x12$.cloudidl.workflow.DeployTaskRequest\x1a%.cloudidl.workflow.DeployTaskResponse\"\x00\x12j\n\x0eGetTaskDetails\x12(.cloudidl.workflow.GetTaskDetailsRequest\x1a).cloudidl.workflow.GetTaskDetailsResponse\"\x03\x90\x02\x01\x12[\n\tListTasks\x12#.cloudidl.workflow.ListTasksRequest\x1a$.cloudidl.workflow.ListTasksResponse\"\x03\x90\x02\x01\x42\xbd\x01\n\x15\x63om.cloudidl.workflowB\x10TaskServiceProtoH\x02P\x01Z+github.com/unionai/cloud/gen/pb-go/workflow\xa2\x02\x03\x43WX\xaa\x02\x11\x43loudidl.Workflow\xca\x02\x11\x43loudidl\\Workflow\xe2\x02\x1d\x43loudidl\\Workflow\\GPBMetadata\xea\x02\x12\x43loudidl::Workflowb\x06proto3')
21
22
 
22
23
  _globals = globals()
23
24
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -41,20 +42,20 @@ if _descriptor._USE_C_DESCRIPTORS == False:
41
42
  _TASKSERVICE.methods_by_name['GetTaskDetails']._serialized_options = b'\220\002\001'
42
43
  _TASKSERVICE.methods_by_name['ListTasks']._options = None
43
44
  _TASKSERVICE.methods_by_name['ListTasks']._serialized_options = b'\220\002\001'
44
- _globals['_DEPLOYTASKREQUEST']._serialized_start=152
45
- _globals['_DEPLOYTASKREQUEST']._serialized_end=300
46
- _globals['_DEPLOYTASKRESPONSE']._serialized_start=302
47
- _globals['_DEPLOYTASKRESPONSE']._serialized_end=322
48
- _globals['_GETTASKDETAILSREQUEST']._serialized_start=324
49
- _globals['_GETTASKDETAILSREQUEST']._serialized_end=417
50
- _globals['_GETTASKDETAILSRESPONSE']._serialized_start=419
51
- _globals['_GETTASKDETAILSRESPONSE']._serialized_end=501
52
- _globals['_LISTTASKSREQUEST']._serialized_start=504
53
- _globals['_LISTTASKSREQUEST']._serialized_end=852
54
- _globals['_LISTTASKSREQUEST_KNOWNFILTER']._serialized_start=774
55
- _globals['_LISTTASKSREQUEST_KNOWNFILTER']._serialized_end=835
56
- _globals['_LISTTASKSRESPONSE']._serialized_start=854
57
- _globals['_LISTTASKSRESPONSE']._serialized_end=942
58
- _globals['_TASKSERVICE']._serialized_start=945
59
- _globals['_TASKSERVICE']._serialized_end=1252
45
+ _globals['_DEPLOYTASKREQUEST']._serialized_start=187
46
+ _globals['_DEPLOYTASKREQUEST']._serialized_end=395
47
+ _globals['_DEPLOYTASKRESPONSE']._serialized_start=397
48
+ _globals['_DEPLOYTASKRESPONSE']._serialized_end=417
49
+ _globals['_GETTASKDETAILSREQUEST']._serialized_start=419
50
+ _globals['_GETTASKDETAILSREQUEST']._serialized_end=512
51
+ _globals['_GETTASKDETAILSRESPONSE']._serialized_start=514
52
+ _globals['_GETTASKDETAILSRESPONSE']._serialized_end=596
53
+ _globals['_LISTTASKSREQUEST']._serialized_start=599
54
+ _globals['_LISTTASKSREQUEST']._serialized_end=947
55
+ _globals['_LISTTASKSREQUEST_KNOWNFILTER']._serialized_start=869
56
+ _globals['_LISTTASKSREQUEST_KNOWNFILTER']._serialized_end=930
57
+ _globals['_LISTTASKSRESPONSE']._serialized_start=949
58
+ _globals['_LISTTASKSRESPONSE']._serialized_end=1037
59
+ _globals['_TASKSERVICE']._serialized_start=1040
60
+ _globals['_TASKSERVICE']._serialized_end=1347
60
61
  # @@protoc_insertion_point(module_scope)
@@ -2,6 +2,7 @@ from flyte._protos.common import identifier_pb2 as _identifier_pb2
2
2
  from flyte._protos.common import list_pb2 as _list_pb2
3
3
  from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
4
4
  from flyte._protos.workflow import task_definition_pb2 as _task_definition_pb2
5
+ from flyte._protos.workflow import trigger_definition_pb2 as _trigger_definition_pb2
5
6
  from google.protobuf.internal import containers as _containers
6
7
  from google.protobuf import descriptor as _descriptor
7
8
  from google.protobuf import message as _message
@@ -10,12 +11,14 @@ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Map
10
11
  DESCRIPTOR: _descriptor.FileDescriptor
11
12
 
12
13
  class DeployTaskRequest(_message.Message):
13
- __slots__ = ["task_id", "spec"]
14
+ __slots__ = ["task_id", "spec", "triggers"]
14
15
  TASK_ID_FIELD_NUMBER: _ClassVar[int]
15
16
  SPEC_FIELD_NUMBER: _ClassVar[int]
17
+ TRIGGERS_FIELD_NUMBER: _ClassVar[int]
16
18
  task_id: _task_definition_pb2.TaskIdentifier
17
19
  spec: _task_definition_pb2.TaskSpec
18
- def __init__(self, task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ..., spec: _Optional[_Union[_task_definition_pb2.TaskSpec, _Mapping]] = ...) -> None: ...
20
+ triggers: _containers.RepeatedCompositeFieldContainer[_trigger_definition_pb2.TaskTrigger]
21
+ def __init__(self, task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ..., spec: _Optional[_Union[_task_definition_pb2.TaskSpec, _Mapping]] = ..., triggers: _Optional[_Iterable[_Union[_trigger_definition_pb2.TaskTrigger, _Mapping]]] = ...) -> None: ...
19
22
 
20
23
  class DeployTaskResponse(_message.Message):
21
24
  __slots__ = []
@@ -0,0 +1,66 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: workflow/trigger_definition.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from flyte._protos.common import identifier_pb2 as common_dot_identifier__pb2
15
+ from flyte._protos.common import identity_pb2 as common_dot_identity__pb2
16
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
17
+ from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
18
+ from flyte._protos.workflow import common_pb2 as workflow_dot_common__pb2
19
+ from flyte._protos.workflow import run_definition_pb2 as workflow_dot_run__definition__pb2
20
+
21
+
22
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!workflow/trigger_definition.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x15\x63ommon/identity.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17validate/validate.proto\x1a\x15workflow/common.proto\x1a\x1dworkflow/run_definition.proto\"\xab\x01\n\x0fTriggerMetadata\x12L\n\x0b\x64\x65ployed_by\x18\x01 \x01(\x0b\x32!.cloudidl.common.EnrichedIdentityB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\ndeployedBy\x12J\n\nupdated_by\x18\x02 \x01(\x0b\x32!.cloudidl.common.EnrichedIdentityB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\tupdatedBy\"\xc3\x01\n\x0bTriggerSpec\x12\x31\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x35\n\x08run_spec\x18\x03 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpec\x12\x16\n\x06\x61\x63tive\x18\x04 \x01(\x08R\x06\x61\x63tive\x12,\n\x0ctask_version\x18\x05 \x01(\tB\t\xfa\x42\x06r\x04\x10\x01\x18?R\x0btaskVersionJ\x04\x08\x01\x10\x02\"\x95\x02\n\rTriggerStatus\x12\x45\n\x0b\x64\x65ployed_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01R\ndeployedAt\x12\x43\n\nupdated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x08\xfa\x42\x05\xb2\x01\x02\x08\x01R\tupdatedAt\x12=\n\x0ctriggered_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\x0btriggeredAt\x12\x39\n\ndeleted_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampR\tdeletedAt\"\xa8\x02\n\x07Trigger\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32\".cloudidl.common.TriggerIdentifierR\x02id\x12>\n\x08metadata\x18\x02 \x01(\x0b\x32\".cloudidl.workflow.TriggerMetadataR\x08metadata\x12\x38\n\x06status\x18\x03 \x01(\x0b\x32 .cloudidl.workflow.TriggerStatusR\x06status\x12\x16\n\x06\x61\x63tive\x18\x05 \x01(\x08R\x06\x61\x63tive\x12Q\n\x0f\x61utomation_spec\x18\x06 \x01(\x0b\x32(.cloudidl.workflow.TriggerAutomationSpecR\x0e\x61utomationSpecJ\x04\x08\x04\x10\x05\"\x81\x02\n\x0fTriggerRevision\x12\x32\n\x02id\x18\x01 \x01(\x0b\x32\".cloudidl.common.TriggerIdentifierR\x02id\x12>\n\x08metadata\x18\x02 \x01(\x0b\x32\".cloudidl.workflow.TriggerMetadataR\x08metadata\x12\x38\n\x06status\x18\x03 \x01(\x0b\x32 .cloudidl.workflow.TriggerStatusR\x06status\x12@\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32(.cloudidl.workflow.TriggerRevisionActionR\x06\x61\x63tion\"\xd9\x02\n\x0eTriggerDetails\x12<\n\x02id\x18\x01 \x01(\x0b\x32\".cloudidl.common.TriggerIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12>\n\x08metadata\x18\x02 \x01(\x0b\x32\".cloudidl.workflow.TriggerMetadataR\x08metadata\x12<\n\x04spec\x18\x03 \x01(\x0b\x32\x1e.cloudidl.workflow.TriggerSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04spec\x12\x38\n\x06status\x18\x04 \x01(\x0b\x32 .cloudidl.workflow.TriggerStatusR\x06status\x12Q\n\x0f\x61utomation_spec\x18\x05 \x01(\x0b\x32(.cloudidl.workflow.TriggerAutomationSpecR\x0e\x61utomationSpec\"\xc2\x01\n\x0bTaskTrigger\x12\x1e\n\x04name\x18\x01 \x01(\tB\n\xfa\x42\x07r\x05\x10\x01\x18\xff\x01R\x04name\x12@\n\x04spec\x18\x02 \x01(\x0b\x32\".cloudidl.workflow.TaskTriggerSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04spec\x12Q\n\x0f\x61utomation_spec\x18\x03 \x01(\x0b\x32(.cloudidl.workflow.TriggerAutomationSpecR\x0e\x61utomationSpec\"\x93\x01\n\x0fTaskTriggerSpec\x12\x16\n\x06\x61\x63tive\x18\x01 \x01(\x08R\x06\x61\x63tive\x12\x31\n\x06inputs\x18\x02 \x01(\x0b\x32\x19.cloudidl.workflow.InputsR\x06inputs\x12\x35\n\x08run_spec\x18\x03 \x01(\x0b\x32\x1a.cloudidl.workflow.RunSpecR\x07runSpec*\xd6\x01\n\x15TriggerRevisionAction\x12\'\n#TRIGGER_REVISION_ACTION_UNSPECIFIED\x10\x00\x12\"\n\x1eTRIGGER_REVISION_ACTION_DEPLOY\x10\x01\x12$\n TRIGGER_REVISION_ACTION_ACTIVATE\x10\x02\x12&\n\"TRIGGER_REVISION_ACTION_DEACTIVATE\x10\x03\x12\"\n\x1eTRIGGER_REVISION_ACTION_DELETE\x10\x04\x42\xc3\x01\n\x15\x63om.cloudidl.workflowB\x16TriggerDefinitionProtoH\x02P\x01Z+github.com/unionai/cloud/gen/pb-go/workflow\xa2\x02\x03\x43WX\xaa\x02\x11\x43loudidl.Workflow\xca\x02\x11\x43loudidl\\Workflow\xe2\x02\x1d\x43loudidl\\Workflow\\GPBMetadata\xea\x02\x12\x43loudidl::Workflowb\x06proto3')
23
+
24
+ _globals = globals()
25
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
26
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.trigger_definition_pb2', _globals)
27
+ if _descriptor._USE_C_DESCRIPTORS == False:
28
+ DESCRIPTOR._options = None
29
+ DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\026TriggerDefinitionProtoH\002P\001Z+github.com/unionai/cloud/gen/pb-go/workflow\242\002\003CWX\252\002\021Cloudidl.Workflow\312\002\021Cloudidl\\Workflow\342\002\035Cloudidl\\Workflow\\GPBMetadata\352\002\022Cloudidl::Workflow'
30
+ _TRIGGERMETADATA.fields_by_name['deployed_by']._options = None
31
+ _TRIGGERMETADATA.fields_by_name['deployed_by']._serialized_options = b'\372B\005\212\001\002\020\001'
32
+ _TRIGGERMETADATA.fields_by_name['updated_by']._options = None
33
+ _TRIGGERMETADATA.fields_by_name['updated_by']._serialized_options = b'\372B\005\212\001\002\020\001'
34
+ _TRIGGERSPEC.fields_by_name['task_version']._options = None
35
+ _TRIGGERSPEC.fields_by_name['task_version']._serialized_options = b'\372B\006r\004\020\001\030?'
36
+ _TRIGGERSTATUS.fields_by_name['deployed_at']._options = None
37
+ _TRIGGERSTATUS.fields_by_name['deployed_at']._serialized_options = b'\372B\005\262\001\002\010\001'
38
+ _TRIGGERSTATUS.fields_by_name['updated_at']._options = None
39
+ _TRIGGERSTATUS.fields_by_name['updated_at']._serialized_options = b'\372B\005\262\001\002\010\001'
40
+ _TRIGGERDETAILS.fields_by_name['id']._options = None
41
+ _TRIGGERDETAILS.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
42
+ _TRIGGERDETAILS.fields_by_name['spec']._options = None
43
+ _TRIGGERDETAILS.fields_by_name['spec']._serialized_options = b'\372B\005\212\001\002\020\001'
44
+ _TASKTRIGGER.fields_by_name['name']._options = None
45
+ _TASKTRIGGER.fields_by_name['name']._serialized_options = b'\372B\007r\005\020\001\030\377\001'
46
+ _TASKTRIGGER.fields_by_name['spec']._options = None
47
+ _TASKTRIGGER.fields_by_name['spec']._serialized_options = b'\372B\005\212\001\002\020\001'
48
+ _globals['_TRIGGERREVISIONACTION']._serialized_start=2123
49
+ _globals['_TRIGGERREVISIONACTION']._serialized_end=2337
50
+ _globals['_TRIGGERMETADATA']._serialized_start=217
51
+ _globals['_TRIGGERMETADATA']._serialized_end=388
52
+ _globals['_TRIGGERSPEC']._serialized_start=391
53
+ _globals['_TRIGGERSPEC']._serialized_end=586
54
+ _globals['_TRIGGERSTATUS']._serialized_start=589
55
+ _globals['_TRIGGERSTATUS']._serialized_end=866
56
+ _globals['_TRIGGER']._serialized_start=869
57
+ _globals['_TRIGGER']._serialized_end=1165
58
+ _globals['_TRIGGERREVISION']._serialized_start=1168
59
+ _globals['_TRIGGERREVISION']._serialized_end=1425
60
+ _globals['_TRIGGERDETAILS']._serialized_start=1428
61
+ _globals['_TRIGGERDETAILS']._serialized_end=1773
62
+ _globals['_TASKTRIGGER']._serialized_start=1776
63
+ _globals['_TASKTRIGGER']._serialized_end=1970
64
+ _globals['_TASKTRIGGERSPEC']._serialized_start=1973
65
+ _globals['_TASKTRIGGERSPEC']._serialized_end=2120
66
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,117 @@
1
+ from flyte._protos.common import identifier_pb2 as _identifier_pb2
2
+ from flyte._protos.common import identity_pb2 as _identity_pb2
3
+ from google.protobuf import timestamp_pb2 as _timestamp_pb2
4
+ from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
5
+ from flyte._protos.workflow import common_pb2 as _common_pb2
6
+ from flyte._protos.workflow import run_definition_pb2 as _run_definition_pb2
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 typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
11
+
12
+ DESCRIPTOR: _descriptor.FileDescriptor
13
+
14
+ class TriggerRevisionAction(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
15
+ __slots__ = []
16
+ TRIGGER_REVISION_ACTION_UNSPECIFIED: _ClassVar[TriggerRevisionAction]
17
+ TRIGGER_REVISION_ACTION_DEPLOY: _ClassVar[TriggerRevisionAction]
18
+ TRIGGER_REVISION_ACTION_ACTIVATE: _ClassVar[TriggerRevisionAction]
19
+ TRIGGER_REVISION_ACTION_DEACTIVATE: _ClassVar[TriggerRevisionAction]
20
+ TRIGGER_REVISION_ACTION_DELETE: _ClassVar[TriggerRevisionAction]
21
+ TRIGGER_REVISION_ACTION_UNSPECIFIED: TriggerRevisionAction
22
+ TRIGGER_REVISION_ACTION_DEPLOY: TriggerRevisionAction
23
+ TRIGGER_REVISION_ACTION_ACTIVATE: TriggerRevisionAction
24
+ TRIGGER_REVISION_ACTION_DEACTIVATE: TriggerRevisionAction
25
+ TRIGGER_REVISION_ACTION_DELETE: TriggerRevisionAction
26
+
27
+ class TriggerMetadata(_message.Message):
28
+ __slots__ = ["deployed_by", "updated_by"]
29
+ DEPLOYED_BY_FIELD_NUMBER: _ClassVar[int]
30
+ UPDATED_BY_FIELD_NUMBER: _ClassVar[int]
31
+ deployed_by: _identity_pb2.EnrichedIdentity
32
+ updated_by: _identity_pb2.EnrichedIdentity
33
+ def __init__(self, deployed_by: _Optional[_Union[_identity_pb2.EnrichedIdentity, _Mapping]] = ..., updated_by: _Optional[_Union[_identity_pb2.EnrichedIdentity, _Mapping]] = ...) -> None: ...
34
+
35
+ class TriggerSpec(_message.Message):
36
+ __slots__ = ["inputs", "run_spec", "active", "task_version"]
37
+ INPUTS_FIELD_NUMBER: _ClassVar[int]
38
+ RUN_SPEC_FIELD_NUMBER: _ClassVar[int]
39
+ ACTIVE_FIELD_NUMBER: _ClassVar[int]
40
+ TASK_VERSION_FIELD_NUMBER: _ClassVar[int]
41
+ inputs: _run_definition_pb2.Inputs
42
+ run_spec: _run_definition_pb2.RunSpec
43
+ active: bool
44
+ task_version: str
45
+ def __init__(self, inputs: _Optional[_Union[_run_definition_pb2.Inputs, _Mapping]] = ..., run_spec: _Optional[_Union[_run_definition_pb2.RunSpec, _Mapping]] = ..., active: bool = ..., task_version: _Optional[str] = ...) -> None: ...
46
+
47
+ class TriggerStatus(_message.Message):
48
+ __slots__ = ["deployed_at", "updated_at", "triggered_at", "deleted_at"]
49
+ DEPLOYED_AT_FIELD_NUMBER: _ClassVar[int]
50
+ UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
51
+ TRIGGERED_AT_FIELD_NUMBER: _ClassVar[int]
52
+ DELETED_AT_FIELD_NUMBER: _ClassVar[int]
53
+ deployed_at: _timestamp_pb2.Timestamp
54
+ updated_at: _timestamp_pb2.Timestamp
55
+ triggered_at: _timestamp_pb2.Timestamp
56
+ deleted_at: _timestamp_pb2.Timestamp
57
+ def __init__(self, deployed_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., triggered_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., deleted_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
58
+
59
+ class Trigger(_message.Message):
60
+ __slots__ = ["id", "metadata", "status", "active", "automation_spec"]
61
+ ID_FIELD_NUMBER: _ClassVar[int]
62
+ METADATA_FIELD_NUMBER: _ClassVar[int]
63
+ STATUS_FIELD_NUMBER: _ClassVar[int]
64
+ ACTIVE_FIELD_NUMBER: _ClassVar[int]
65
+ AUTOMATION_SPEC_FIELD_NUMBER: _ClassVar[int]
66
+ id: _identifier_pb2.TriggerIdentifier
67
+ metadata: TriggerMetadata
68
+ status: TriggerStatus
69
+ active: bool
70
+ automation_spec: _common_pb2.TriggerAutomationSpec
71
+ def __init__(self, id: _Optional[_Union[_identifier_pb2.TriggerIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[TriggerMetadata, _Mapping]] = ..., status: _Optional[_Union[TriggerStatus, _Mapping]] = ..., active: bool = ..., automation_spec: _Optional[_Union[_common_pb2.TriggerAutomationSpec, _Mapping]] = ...) -> None: ...
72
+
73
+ class TriggerRevision(_message.Message):
74
+ __slots__ = ["id", "metadata", "status", "action"]
75
+ ID_FIELD_NUMBER: _ClassVar[int]
76
+ METADATA_FIELD_NUMBER: _ClassVar[int]
77
+ STATUS_FIELD_NUMBER: _ClassVar[int]
78
+ ACTION_FIELD_NUMBER: _ClassVar[int]
79
+ id: _identifier_pb2.TriggerIdentifier
80
+ metadata: TriggerMetadata
81
+ status: TriggerStatus
82
+ action: TriggerRevisionAction
83
+ def __init__(self, id: _Optional[_Union[_identifier_pb2.TriggerIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[TriggerMetadata, _Mapping]] = ..., status: _Optional[_Union[TriggerStatus, _Mapping]] = ..., action: _Optional[_Union[TriggerRevisionAction, str]] = ...) -> None: ...
84
+
85
+ class TriggerDetails(_message.Message):
86
+ __slots__ = ["id", "metadata", "spec", "status", "automation_spec"]
87
+ ID_FIELD_NUMBER: _ClassVar[int]
88
+ METADATA_FIELD_NUMBER: _ClassVar[int]
89
+ SPEC_FIELD_NUMBER: _ClassVar[int]
90
+ STATUS_FIELD_NUMBER: _ClassVar[int]
91
+ AUTOMATION_SPEC_FIELD_NUMBER: _ClassVar[int]
92
+ id: _identifier_pb2.TriggerIdentifier
93
+ metadata: TriggerMetadata
94
+ spec: TriggerSpec
95
+ status: TriggerStatus
96
+ automation_spec: _common_pb2.TriggerAutomationSpec
97
+ def __init__(self, id: _Optional[_Union[_identifier_pb2.TriggerIdentifier, _Mapping]] = ..., metadata: _Optional[_Union[TriggerMetadata, _Mapping]] = ..., spec: _Optional[_Union[TriggerSpec, _Mapping]] = ..., status: _Optional[_Union[TriggerStatus, _Mapping]] = ..., automation_spec: _Optional[_Union[_common_pb2.TriggerAutomationSpec, _Mapping]] = ...) -> None: ...
98
+
99
+ class TaskTrigger(_message.Message):
100
+ __slots__ = ["name", "spec", "automation_spec"]
101
+ NAME_FIELD_NUMBER: _ClassVar[int]
102
+ SPEC_FIELD_NUMBER: _ClassVar[int]
103
+ AUTOMATION_SPEC_FIELD_NUMBER: _ClassVar[int]
104
+ name: str
105
+ spec: TaskTriggerSpec
106
+ automation_spec: _common_pb2.TriggerAutomationSpec
107
+ def __init__(self, name: _Optional[str] = ..., spec: _Optional[_Union[TaskTriggerSpec, _Mapping]] = ..., automation_spec: _Optional[_Union[_common_pb2.TriggerAutomationSpec, _Mapping]] = ...) -> None: ...
108
+
109
+ class TaskTriggerSpec(_message.Message):
110
+ __slots__ = ["active", "inputs", "run_spec"]
111
+ ACTIVE_FIELD_NUMBER: _ClassVar[int]
112
+ INPUTS_FIELD_NUMBER: _ClassVar[int]
113
+ RUN_SPEC_FIELD_NUMBER: _ClassVar[int]
114
+ active: bool
115
+ inputs: _run_definition_pb2.Inputs
116
+ run_spec: _run_definition_pb2.RunSpec
117
+ def __init__(self, active: bool = ..., inputs: _Optional[_Union[_run_definition_pb2.Inputs, _Mapping]] = ..., run_spec: _Optional[_Union[_run_definition_pb2.RunSpec, _Mapping]] = ...) -> None: ...
@@ -0,0 +1,4 @@
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
+
@@ -0,0 +1,96 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: workflow/trigger_service.proto
4
+ """Generated protocol buffer code."""
5
+ from google.protobuf import descriptor as _descriptor
6
+ from google.protobuf import descriptor_pool as _descriptor_pool
7
+ from google.protobuf import symbol_database as _symbol_database
8
+ from google.protobuf.internal import builder as _builder
9
+ # @@protoc_insertion_point(imports)
10
+
11
+ _sym_db = _symbol_database.Default()
12
+
13
+
14
+ from flyte._protos.common import identifier_pb2 as common_dot_identifier__pb2
15
+ from flyte._protos.common import list_pb2 as common_dot_list__pb2
16
+ from flyte._protos.validate.validate import validate_pb2 as validate_dot_validate__pb2
17
+ from flyte._protos.workflow import common_pb2 as workflow_dot_common__pb2
18
+ from flyte._protos.workflow import task_definition_pb2 as workflow_dot_task__definition__pb2
19
+ from flyte._protos.workflow import trigger_definition_pb2 as workflow_dot_trigger__definition__pb2
20
+
21
+
22
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1eworkflow/trigger_service.proto\x12\x11\x63loudidl.workflow\x1a\x17\x63ommon/identifier.proto\x1a\x11\x63ommon/list.proto\x1a\x17validate/validate.proto\x1a\x15workflow/common.proto\x1a\x1eworkflow/task_definition.proto\x1a!workflow/trigger_definition.proto\"\xe5\x01\n\x14\x44\x65ployTriggerRequest\x12<\n\x02id\x18\x01 \x01(\x0b\x32\".cloudidl.common.TriggerIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\x12<\n\x04spec\x18\x02 \x01(\x0b\x32\x1e.cloudidl.workflow.TriggerSpecB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04spec\x12Q\n\x0f\x61utomation_spec\x18\x03 \x01(\x0b\x32(.cloudidl.workflow.TriggerAutomationSpecR\x0e\x61utomationSpec\"^\n\x15\x44\x65ployTriggerResponse\x12\x45\n\x07trigger\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TriggerDetailsB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x07trigger\"V\n\x18GetTriggerDetailsRequest\x12:\n\x04name\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.TriggerNameB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04name\"b\n\x19GetTriggerDetailsResponse\x12\x45\n\x07trigger\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TriggerDetailsB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x07trigger\"`\n GetTriggerRevisionDetailsRequest\x12<\n\x02id\x18\x01 \x01(\x0b\x32\".cloudidl.common.TriggerIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x02id\"j\n!GetTriggerRevisionDetailsResponse\x12\x45\n\x07trigger\x18\x01 \x01(\x0b\x32!.cloudidl.workflow.TriggerDetailsB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x07trigger\"\x92\x02\n\x13ListTriggersRequest\x12\x36\n\x07request\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.ListRequestR\x07request\x12\x1b\n\x03org\x18\x02 \x01(\tB\x07\xfa\x42\x04r\x02\x10\x01H\x00R\x03org\x12M\n\nproject_id\x18\x03 \x01(\x0b\x32\".cloudidl.common.ProjectIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\tprojectId\x12\x46\n\x07task_id\x18\x04 \x01(\x0b\x32!.cloudidl.workflow.TaskIdentifierB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01H\x00R\x06taskIdB\x0f\n\x08scope_by\x12\x03\xf8\x42\x01\"d\n\x14ListTriggersResponse\x12\x36\n\x08triggers\x18\x01 \x03(\x0b\x32\x1a.cloudidl.workflow.TriggerR\x08triggers\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"\x96\x01\n GetTriggerRevisionHistoryRequest\x12\x36\n\x07request\x18\x01 \x01(\x0b\x32\x1c.cloudidl.common.ListRequestR\x07request\x12:\n\x04name\x18\x02 \x01(\x0b\x32\x1c.cloudidl.common.TriggerNameB\x08\xfa\x42\x05\x8a\x01\x02\x10\x01R\x04name\"y\n!GetTriggerRevisionHistoryResponse\x12>\n\x08triggers\x18\x01 \x03(\x0b\x32\".cloudidl.workflow.TriggerRevisionR\x08triggers\x12\x14\n\x05token\x18\x02 \x01(\tR\x05token\"o\n\x15UpdateTriggersRequest\x12>\n\x05names\x18\x01 \x03(\x0b\x32\x1c.cloudidl.common.TriggerNameB\n\xfa\x42\x07\x92\x01\x04\x08\x01\x10\x64R\x05names\x12\x16\n\x06\x61\x63tive\x18\x02 \x01(\x08R\x06\x61\x63tive\"\x18\n\x16UpdateTriggersResponse\"W\n\x15\x44\x65leteTriggersRequest\x12>\n\x05names\x18\x01 \x03(\x0b\x32\x1c.cloudidl.common.TriggerNameB\n\xfa\x42\x07\x92\x01\x04\x08\x01\x10\x64R\x05names\"\x18\n\x16\x44\x65leteTriggersResponse2\xbf\x06\n\x0eTriggerService\x12\x64\n\rDeployTrigger\x12\'.cloudidl.workflow.DeployTriggerRequest\x1a(.cloudidl.workflow.DeployTriggerResponse\"\x00\x12s\n\x11GetTriggerDetails\x12+.cloudidl.workflow.GetTriggerDetailsRequest\x1a,.cloudidl.workflow.GetTriggerDetailsResponse\"\x03\x90\x02\x01\x12\x8b\x01\n\x19GetTriggerRevisionDetails\x12\x33.cloudidl.workflow.GetTriggerRevisionDetailsRequest\x1a\x34.cloudidl.workflow.GetTriggerRevisionDetailsResponse\"\x03\x90\x02\x01\x12\x64\n\x0cListTriggers\x12&.cloudidl.workflow.ListTriggersRequest\x1a\'.cloudidl.workflow.ListTriggersResponse\"\x03\x90\x02\x01\x12\x8b\x01\n\x19GetTriggerRevisionHistory\x12\x33.cloudidl.workflow.GetTriggerRevisionHistoryRequest\x1a\x34.cloudidl.workflow.GetTriggerRevisionHistoryResponse\"\x03\x90\x02\x01\x12g\n\x0eUpdateTriggers\x12(.cloudidl.workflow.UpdateTriggersRequest\x1a).cloudidl.workflow.UpdateTriggersResponse\"\x00\x12g\n\x0e\x44\x65leteTriggers\x12(.cloudidl.workflow.DeleteTriggersRequest\x1a).cloudidl.workflow.DeleteTriggersResponse\"\x00\x42\xc0\x01\n\x15\x63om.cloudidl.workflowB\x13TriggerServiceProtoH\x02P\x01Z+github.com/unionai/cloud/gen/pb-go/workflow\xa2\x02\x03\x43WX\xaa\x02\x11\x43loudidl.Workflow\xca\x02\x11\x43loudidl\\Workflow\xe2\x02\x1d\x43loudidl\\Workflow\\GPBMetadata\xea\x02\x12\x43loudidl::Workflowb\x06proto3')
23
+
24
+ _globals = globals()
25
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
26
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'workflow.trigger_service_pb2', _globals)
27
+ if _descriptor._USE_C_DESCRIPTORS == False:
28
+ DESCRIPTOR._options = None
29
+ DESCRIPTOR._serialized_options = b'\n\025com.cloudidl.workflowB\023TriggerServiceProtoH\002P\001Z+github.com/unionai/cloud/gen/pb-go/workflow\242\002\003CWX\252\002\021Cloudidl.Workflow\312\002\021Cloudidl\\Workflow\342\002\035Cloudidl\\Workflow\\GPBMetadata\352\002\022Cloudidl::Workflow'
30
+ _DEPLOYTRIGGERREQUEST.fields_by_name['id']._options = None
31
+ _DEPLOYTRIGGERREQUEST.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
32
+ _DEPLOYTRIGGERREQUEST.fields_by_name['spec']._options = None
33
+ _DEPLOYTRIGGERREQUEST.fields_by_name['spec']._serialized_options = b'\372B\005\212\001\002\020\001'
34
+ _DEPLOYTRIGGERRESPONSE.fields_by_name['trigger']._options = None
35
+ _DEPLOYTRIGGERRESPONSE.fields_by_name['trigger']._serialized_options = b'\372B\005\212\001\002\020\001'
36
+ _GETTRIGGERDETAILSREQUEST.fields_by_name['name']._options = None
37
+ _GETTRIGGERDETAILSREQUEST.fields_by_name['name']._serialized_options = b'\372B\005\212\001\002\020\001'
38
+ _GETTRIGGERDETAILSRESPONSE.fields_by_name['trigger']._options = None
39
+ _GETTRIGGERDETAILSRESPONSE.fields_by_name['trigger']._serialized_options = b'\372B\005\212\001\002\020\001'
40
+ _GETTRIGGERREVISIONDETAILSREQUEST.fields_by_name['id']._options = None
41
+ _GETTRIGGERREVISIONDETAILSREQUEST.fields_by_name['id']._serialized_options = b'\372B\005\212\001\002\020\001'
42
+ _GETTRIGGERREVISIONDETAILSRESPONSE.fields_by_name['trigger']._options = None
43
+ _GETTRIGGERREVISIONDETAILSRESPONSE.fields_by_name['trigger']._serialized_options = b'\372B\005\212\001\002\020\001'
44
+ _LISTTRIGGERSREQUEST.oneofs_by_name['scope_by']._options = None
45
+ _LISTTRIGGERSREQUEST.oneofs_by_name['scope_by']._serialized_options = b'\370B\001'
46
+ _LISTTRIGGERSREQUEST.fields_by_name['org']._options = None
47
+ _LISTTRIGGERSREQUEST.fields_by_name['org']._serialized_options = b'\372B\004r\002\020\001'
48
+ _LISTTRIGGERSREQUEST.fields_by_name['project_id']._options = None
49
+ _LISTTRIGGERSREQUEST.fields_by_name['project_id']._serialized_options = b'\372B\005\212\001\002\020\001'
50
+ _LISTTRIGGERSREQUEST.fields_by_name['task_id']._options = None
51
+ _LISTTRIGGERSREQUEST.fields_by_name['task_id']._serialized_options = b'\372B\005\212\001\002\020\001'
52
+ _GETTRIGGERREVISIONHISTORYREQUEST.fields_by_name['name']._options = None
53
+ _GETTRIGGERREVISIONHISTORYREQUEST.fields_by_name['name']._serialized_options = b'\372B\005\212\001\002\020\001'
54
+ _UPDATETRIGGERSREQUEST.fields_by_name['names']._options = None
55
+ _UPDATETRIGGERSREQUEST.fields_by_name['names']._serialized_options = b'\372B\007\222\001\004\010\001\020d'
56
+ _DELETETRIGGERSREQUEST.fields_by_name['names']._options = None
57
+ _DELETETRIGGERSREQUEST.fields_by_name['names']._serialized_options = b'\372B\007\222\001\004\010\001\020d'
58
+ _TRIGGERSERVICE.methods_by_name['GetTriggerDetails']._options = None
59
+ _TRIGGERSERVICE.methods_by_name['GetTriggerDetails']._serialized_options = b'\220\002\001'
60
+ _TRIGGERSERVICE.methods_by_name['GetTriggerRevisionDetails']._options = None
61
+ _TRIGGERSERVICE.methods_by_name['GetTriggerRevisionDetails']._serialized_options = b'\220\002\001'
62
+ _TRIGGERSERVICE.methods_by_name['ListTriggers']._options = None
63
+ _TRIGGERSERVICE.methods_by_name['ListTriggers']._serialized_options = b'\220\002\001'
64
+ _TRIGGERSERVICE.methods_by_name['GetTriggerRevisionHistory']._options = None
65
+ _TRIGGERSERVICE.methods_by_name['GetTriggerRevisionHistory']._serialized_options = b'\220\002\001'
66
+ _globals['_DEPLOYTRIGGERREQUEST']._serialized_start=213
67
+ _globals['_DEPLOYTRIGGERREQUEST']._serialized_end=442
68
+ _globals['_DEPLOYTRIGGERRESPONSE']._serialized_start=444
69
+ _globals['_DEPLOYTRIGGERRESPONSE']._serialized_end=538
70
+ _globals['_GETTRIGGERDETAILSREQUEST']._serialized_start=540
71
+ _globals['_GETTRIGGERDETAILSREQUEST']._serialized_end=626
72
+ _globals['_GETTRIGGERDETAILSRESPONSE']._serialized_start=628
73
+ _globals['_GETTRIGGERDETAILSRESPONSE']._serialized_end=726
74
+ _globals['_GETTRIGGERREVISIONDETAILSREQUEST']._serialized_start=728
75
+ _globals['_GETTRIGGERREVISIONDETAILSREQUEST']._serialized_end=824
76
+ _globals['_GETTRIGGERREVISIONDETAILSRESPONSE']._serialized_start=826
77
+ _globals['_GETTRIGGERREVISIONDETAILSRESPONSE']._serialized_end=932
78
+ _globals['_LISTTRIGGERSREQUEST']._serialized_start=935
79
+ _globals['_LISTTRIGGERSREQUEST']._serialized_end=1209
80
+ _globals['_LISTTRIGGERSRESPONSE']._serialized_start=1211
81
+ _globals['_LISTTRIGGERSRESPONSE']._serialized_end=1311
82
+ _globals['_GETTRIGGERREVISIONHISTORYREQUEST']._serialized_start=1314
83
+ _globals['_GETTRIGGERREVISIONHISTORYREQUEST']._serialized_end=1464
84
+ _globals['_GETTRIGGERREVISIONHISTORYRESPONSE']._serialized_start=1466
85
+ _globals['_GETTRIGGERREVISIONHISTORYRESPONSE']._serialized_end=1587
86
+ _globals['_UPDATETRIGGERSREQUEST']._serialized_start=1589
87
+ _globals['_UPDATETRIGGERSREQUEST']._serialized_end=1700
88
+ _globals['_UPDATETRIGGERSRESPONSE']._serialized_start=1702
89
+ _globals['_UPDATETRIGGERSRESPONSE']._serialized_end=1726
90
+ _globals['_DELETETRIGGERSREQUEST']._serialized_start=1728
91
+ _globals['_DELETETRIGGERSREQUEST']._serialized_end=1815
92
+ _globals['_DELETETRIGGERSRESPONSE']._serialized_start=1817
93
+ _globals['_DELETETRIGGERSRESPONSE']._serialized_end=1841
94
+ _globals['_TRIGGERSERVICE']._serialized_start=1844
95
+ _globals['_TRIGGERSERVICE']._serialized_end=2675
96
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,110 @@
1
+ from flyte._protos.common import identifier_pb2 as _identifier_pb2
2
+ from flyte._protos.common import list_pb2 as _list_pb2
3
+ from flyte._protos.validate.validate import validate_pb2 as _validate_pb2
4
+ from flyte._protos.workflow import common_pb2 as _common_pb2
5
+ from flyte._protos.workflow import task_definition_pb2 as _task_definition_pb2
6
+ from flyte._protos.workflow import trigger_definition_pb2 as _trigger_definition_pb2
7
+ from google.protobuf.internal import containers as _containers
8
+ from google.protobuf import descriptor as _descriptor
9
+ from google.protobuf import message as _message
10
+ from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
11
+
12
+ DESCRIPTOR: _descriptor.FileDescriptor
13
+
14
+ class DeployTriggerRequest(_message.Message):
15
+ __slots__ = ["id", "spec", "automation_spec"]
16
+ ID_FIELD_NUMBER: _ClassVar[int]
17
+ SPEC_FIELD_NUMBER: _ClassVar[int]
18
+ AUTOMATION_SPEC_FIELD_NUMBER: _ClassVar[int]
19
+ id: _identifier_pb2.TriggerIdentifier
20
+ spec: _trigger_definition_pb2.TriggerSpec
21
+ automation_spec: _common_pb2.TriggerAutomationSpec
22
+ def __init__(self, id: _Optional[_Union[_identifier_pb2.TriggerIdentifier, _Mapping]] = ..., spec: _Optional[_Union[_trigger_definition_pb2.TriggerSpec, _Mapping]] = ..., automation_spec: _Optional[_Union[_common_pb2.TriggerAutomationSpec, _Mapping]] = ...) -> None: ...
23
+
24
+ class DeployTriggerResponse(_message.Message):
25
+ __slots__ = ["trigger"]
26
+ TRIGGER_FIELD_NUMBER: _ClassVar[int]
27
+ trigger: _trigger_definition_pb2.TriggerDetails
28
+ def __init__(self, trigger: _Optional[_Union[_trigger_definition_pb2.TriggerDetails, _Mapping]] = ...) -> None: ...
29
+
30
+ class GetTriggerDetailsRequest(_message.Message):
31
+ __slots__ = ["name"]
32
+ NAME_FIELD_NUMBER: _ClassVar[int]
33
+ name: _identifier_pb2.TriggerName
34
+ def __init__(self, name: _Optional[_Union[_identifier_pb2.TriggerName, _Mapping]] = ...) -> None: ...
35
+
36
+ class GetTriggerDetailsResponse(_message.Message):
37
+ __slots__ = ["trigger"]
38
+ TRIGGER_FIELD_NUMBER: _ClassVar[int]
39
+ trigger: _trigger_definition_pb2.TriggerDetails
40
+ def __init__(self, trigger: _Optional[_Union[_trigger_definition_pb2.TriggerDetails, _Mapping]] = ...) -> None: ...
41
+
42
+ class GetTriggerRevisionDetailsRequest(_message.Message):
43
+ __slots__ = ["id"]
44
+ ID_FIELD_NUMBER: _ClassVar[int]
45
+ id: _identifier_pb2.TriggerIdentifier
46
+ def __init__(self, id: _Optional[_Union[_identifier_pb2.TriggerIdentifier, _Mapping]] = ...) -> None: ...
47
+
48
+ class GetTriggerRevisionDetailsResponse(_message.Message):
49
+ __slots__ = ["trigger"]
50
+ TRIGGER_FIELD_NUMBER: _ClassVar[int]
51
+ trigger: _trigger_definition_pb2.TriggerDetails
52
+ def __init__(self, trigger: _Optional[_Union[_trigger_definition_pb2.TriggerDetails, _Mapping]] = ...) -> None: ...
53
+
54
+ class ListTriggersRequest(_message.Message):
55
+ __slots__ = ["request", "org", "project_id", "task_id"]
56
+ REQUEST_FIELD_NUMBER: _ClassVar[int]
57
+ ORG_FIELD_NUMBER: _ClassVar[int]
58
+ PROJECT_ID_FIELD_NUMBER: _ClassVar[int]
59
+ TASK_ID_FIELD_NUMBER: _ClassVar[int]
60
+ request: _list_pb2.ListRequest
61
+ org: str
62
+ project_id: _identifier_pb2.ProjectIdentifier
63
+ task_id: _task_definition_pb2.TaskIdentifier
64
+ def __init__(self, request: _Optional[_Union[_list_pb2.ListRequest, _Mapping]] = ..., org: _Optional[str] = ..., project_id: _Optional[_Union[_identifier_pb2.ProjectIdentifier, _Mapping]] = ..., task_id: _Optional[_Union[_task_definition_pb2.TaskIdentifier, _Mapping]] = ...) -> None: ...
65
+
66
+ class ListTriggersResponse(_message.Message):
67
+ __slots__ = ["triggers", "token"]
68
+ TRIGGERS_FIELD_NUMBER: _ClassVar[int]
69
+ TOKEN_FIELD_NUMBER: _ClassVar[int]
70
+ triggers: _containers.RepeatedCompositeFieldContainer[_trigger_definition_pb2.Trigger]
71
+ token: str
72
+ def __init__(self, triggers: _Optional[_Iterable[_Union[_trigger_definition_pb2.Trigger, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ...
73
+
74
+ class GetTriggerRevisionHistoryRequest(_message.Message):
75
+ __slots__ = ["request", "name"]
76
+ REQUEST_FIELD_NUMBER: _ClassVar[int]
77
+ NAME_FIELD_NUMBER: _ClassVar[int]
78
+ request: _list_pb2.ListRequest
79
+ name: _identifier_pb2.TriggerName
80
+ def __init__(self, request: _Optional[_Union[_list_pb2.ListRequest, _Mapping]] = ..., name: _Optional[_Union[_identifier_pb2.TriggerName, _Mapping]] = ...) -> None: ...
81
+
82
+ class GetTriggerRevisionHistoryResponse(_message.Message):
83
+ __slots__ = ["triggers", "token"]
84
+ TRIGGERS_FIELD_NUMBER: _ClassVar[int]
85
+ TOKEN_FIELD_NUMBER: _ClassVar[int]
86
+ triggers: _containers.RepeatedCompositeFieldContainer[_trigger_definition_pb2.TriggerRevision]
87
+ token: str
88
+ def __init__(self, triggers: _Optional[_Iterable[_Union[_trigger_definition_pb2.TriggerRevision, _Mapping]]] = ..., token: _Optional[str] = ...) -> None: ...
89
+
90
+ class UpdateTriggersRequest(_message.Message):
91
+ __slots__ = ["names", "active"]
92
+ NAMES_FIELD_NUMBER: _ClassVar[int]
93
+ ACTIVE_FIELD_NUMBER: _ClassVar[int]
94
+ names: _containers.RepeatedCompositeFieldContainer[_identifier_pb2.TriggerName]
95
+ active: bool
96
+ def __init__(self, names: _Optional[_Iterable[_Union[_identifier_pb2.TriggerName, _Mapping]]] = ..., active: bool = ...) -> None: ...
97
+
98
+ class UpdateTriggersResponse(_message.Message):
99
+ __slots__ = []
100
+ def __init__(self) -> None: ...
101
+
102
+ class DeleteTriggersRequest(_message.Message):
103
+ __slots__ = ["names"]
104
+ NAMES_FIELD_NUMBER: _ClassVar[int]
105
+ names: _containers.RepeatedCompositeFieldContainer[_identifier_pb2.TriggerName]
106
+ def __init__(self, names: _Optional[_Iterable[_Union[_identifier_pb2.TriggerName, _Mapping]]] = ...) -> None: ...
107
+
108
+ class DeleteTriggersResponse(_message.Message):
109
+ __slots__ = []
110
+ def __init__(self) -> None: ...