@flyteorg/flyteidl 1.16.0 → 2.0.0-alpha2

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 (87) hide show
  1. package/package.json +6 -9
  2. package/LICENSE +0 -202
  3. package/NOTICE +0 -4
  4. package/README.md +0 -14
  5. package/gen/pb-js/flyteidl.d.ts +0 -28307
  6. package/gen/pb-js/flyteidl.js +0 -66636
  7. package/protos/buf.lock +0 -18
  8. package/protos/buf.yaml +0 -12
  9. package/protos/docs/admin/admin.rst +0 -4623
  10. package/protos/docs/admin/index.rst +0 -13
  11. package/protos/docs/contributing.md +0 -68
  12. package/protos/docs/core/core.rst +0 -3952
  13. package/protos/docs/core/index.rst +0 -15
  14. package/protos/docs/datacatalog/datacatalog.rst +0 -1313
  15. package/protos/docs/datacatalog/index.rst +0 -16
  16. package/protos/docs/event/event.rst +0 -726
  17. package/protos/docs/event/index.rst +0 -27
  18. package/protos/docs/plugins/index.rst +0 -14
  19. package/protos/docs/plugins/plugins.rst +0 -780
  20. package/protos/docs/restructuredtext.tmpl +0 -129
  21. package/protos/docs/service/index.rst +0 -13
  22. package/protos/docs/service/service.rst +0 -543
  23. package/protos/docs/withoutscalar_restructuredtext.tmpl +0 -105
  24. package/protos/docs_index.rst +0 -19
  25. package/protos/flyteidl/admin/agent.proto +0 -309
  26. package/protos/flyteidl/admin/cluster_assignment.proto +0 -11
  27. package/protos/flyteidl/admin/common.proto +0 -337
  28. package/protos/flyteidl/admin/description_entity.proto +0 -95
  29. package/protos/flyteidl/admin/event.proto +0 -70
  30. package/protos/flyteidl/admin/execution.proto +0 -436
  31. package/protos/flyteidl/admin/launch_plan.proto +0 -231
  32. package/protos/flyteidl/admin/matchable_resource.proto +0 -194
  33. package/protos/flyteidl/admin/node_execution.proto +0 -248
  34. package/protos/flyteidl/admin/notification.proto +0 -27
  35. package/protos/flyteidl/admin/project.proto +0 -132
  36. package/protos/flyteidl/admin/project_attributes.proto +0 -69
  37. package/protos/flyteidl/admin/project_domain_attributes.proto +0 -80
  38. package/protos/flyteidl/admin/schedule.proto +0 -43
  39. package/protos/flyteidl/admin/signal.proto +0 -86
  40. package/protos/flyteidl/admin/task.proto +0 -71
  41. package/protos/flyteidl/admin/task_execution.proto +0 -171
  42. package/protos/flyteidl/admin/version.proto +0 -27
  43. package/protos/flyteidl/admin/workflow.proto +0 -92
  44. package/protos/flyteidl/admin/workflow_attributes.proto +0 -89
  45. package/protos/flyteidl/cacheservice/cacheservice.proto +0 -143
  46. package/protos/flyteidl/core/artifact_id.proto +0 -112
  47. package/protos/flyteidl/core/catalog.proto +0 -63
  48. package/protos/flyteidl/core/compiler.proto +0 -64
  49. package/protos/flyteidl/core/condition.proto +0 -63
  50. package/protos/flyteidl/core/dynamic_job.proto +0 -32
  51. package/protos/flyteidl/core/errors.proto +0 -42
  52. package/protos/flyteidl/core/execution.proto +0 -156
  53. package/protos/flyteidl/core/execution_envs.proto +0 -45
  54. package/protos/flyteidl/core/identifier.proto +0 -80
  55. package/protos/flyteidl/core/interface.proto +0 -64
  56. package/protos/flyteidl/core/literals.proto +0 -205
  57. package/protos/flyteidl/core/metrics.proto +0 -50
  58. package/protos/flyteidl/core/security.proto +0 -135
  59. package/protos/flyteidl/core/tasks.proto +0 -392
  60. package/protos/flyteidl/core/types.proto +0 -208
  61. package/protos/flyteidl/core/workflow.proto +0 -361
  62. package/protos/flyteidl/core/workflow_closure.proto +0 -18
  63. package/protos/flyteidl/datacatalog/datacatalog.proto +0 -420
  64. package/protos/flyteidl/event/cloudevents.proto +0 -81
  65. package/protos/flyteidl/event/event.proto +0 -347
  66. package/protos/flyteidl/plugins/array_job.proto +0 -30
  67. package/protos/flyteidl/plugins/common.proto +0 -27
  68. package/protos/flyteidl/plugins/dask.proto +0 -41
  69. package/protos/flyteidl/plugins/kubeflow/common.proto +0 -28
  70. package/protos/flyteidl/plugins/kubeflow/mpi.proto +0 -47
  71. package/protos/flyteidl/plugins/kubeflow/pytorch.proto +0 -53
  72. package/protos/flyteidl/plugins/kubeflow/tensorflow.proto +0 -46
  73. package/protos/flyteidl/plugins/mpi.proto +0 -20
  74. package/protos/flyteidl/plugins/presto.proto +0 -14
  75. package/protos/flyteidl/plugins/pytorch.proto +0 -25
  76. package/protos/flyteidl/plugins/qubole.proto +0 -26
  77. package/protos/flyteidl/plugins/ray.proto +0 -59
  78. package/protos/flyteidl/plugins/spark.proto +0 -42
  79. package/protos/flyteidl/plugins/tensorflow.proto +0 -18
  80. package/protos/flyteidl/plugins/waitable.proto +0 -15
  81. package/protos/flyteidl/service/admin.proto +0 -668
  82. package/protos/flyteidl/service/agent.proto +0 -79
  83. package/protos/flyteidl/service/auth.proto +0 -94
  84. package/protos/flyteidl/service/dataproxy.proto +0 -205
  85. package/protos/flyteidl/service/external_plugin_service.proto +0 -79
  86. package/protos/flyteidl/service/identity.proto +0 -51
  87. package/protos/flyteidl/service/signal.proto +0 -55
@@ -1,309 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package flyteidl.admin;
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin";
5
-
6
- import "flyteidl/core/literals.proto";
7
- import "flyteidl/core/tasks.proto";
8
- import "flyteidl/core/workflow.proto";
9
- import "flyteidl/core/identifier.proto";
10
- import "flyteidl/core/execution.proto";
11
- import "flyteidl/core/metrics.proto";
12
- import "flyteidl/core/security.proto";
13
- import "google/protobuf/duration.proto";
14
- import "google/protobuf/timestamp.proto";
15
- import "google/protobuf/struct.proto";
16
-
17
- // The state of the execution is used to control its visibility in the UI/CLI.
18
- enum State {
19
- option deprecated = true;
20
- RETRYABLE_FAILURE = 0;
21
- PERMANENT_FAILURE = 1;
22
- PENDING = 2;
23
- RUNNING = 3;
24
- SUCCEEDED = 4;
25
- }
26
-
27
- // Represents a subset of runtime task execution metadata that are relevant to external plugins.
28
- message TaskExecutionMetadata {
29
- // ID of the task execution
30
-
31
- core.TaskExecutionIdentifier task_execution_id = 1;
32
- // k8s namespace where the task is executed in
33
- string namespace = 2;
34
- // Labels attached to the task execution
35
- map<string, string> labels = 3;
36
- // Annotations attached to the task execution
37
- map<string, string> annotations = 4;
38
- // k8s service account associated with the task execution
39
- string k8s_service_account = 5;
40
- // Environment variables attached to the task execution
41
- map<string, string> environment_variables = 6;
42
- // Represents the maximum number of attempts allowed for a task.
43
- // If a task fails, it can be retried up to this maximum number of attempts.
44
- int32 max_attempts = 7;
45
- // Indicates whether the task execution can be interrupted.
46
- // If set to true, the task can be stopped before completion.
47
- bool interruptible = 8;
48
- // Specifies the threshold for failure count at which the interruptible property
49
- // will take effect. If the number of consecutive task failures exceeds this threshold,
50
- // interruptible behavior will be activated.
51
- int32 interruptible_failure_threshold = 9;
52
- // Overrides for specific properties of the task node.
53
- // These overrides can be used to customize the behavior of the task node.
54
- core.TaskNodeOverrides overrides = 10;
55
- // Identity of user running this task execution
56
- core.Identity identity = 11;
57
- }
58
-
59
- // Represents a request structure to create task.
60
- message CreateTaskRequest {
61
- // The inputs required to start the execution. All required inputs must be
62
- // included in this map. If not required and not provided, defaults apply.
63
- // +optional
64
- core.LiteralMap inputs = 1;
65
- // Template of the task that encapsulates all the metadata of the task.
66
- core.TaskTemplate template = 2;
67
- // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
68
- string output_prefix = 3;
69
- // subset of runtime task execution metadata.
70
- TaskExecutionMetadata task_execution_metadata = 4;
71
- }
72
-
73
- // Represents a create response structure.
74
- message CreateTaskResponse {
75
- // ResourceMeta is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
76
- bytes resource_meta = 1;
77
- }
78
-
79
- message CreateRequestHeader {
80
- // Template of the task that encapsulates all the metadata of the task.
81
- core.TaskTemplate template = 1;
82
- // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
83
- string output_prefix = 2;
84
- // subset of runtime task execution metadata.
85
- TaskExecutionMetadata task_execution_metadata = 3;
86
- // MaxDatasetSizeBytes is the maximum size of the dataset that can be generated by the task.
87
- int64 max_dataset_size_bytes = 4;
88
- }
89
-
90
-
91
- message ExecuteTaskSyncRequest {
92
- oneof part {
93
- CreateRequestHeader header = 1;
94
- core.LiteralMap inputs = 2;
95
- }
96
- }
97
-
98
- message ExecuteTaskSyncResponseHeader {
99
- Resource resource = 1;
100
- }
101
-
102
- message ExecuteTaskSyncResponse {
103
- // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
104
- // Resource is for synchronous task execution.
105
- oneof res {
106
- ExecuteTaskSyncResponseHeader header = 1;
107
- core.LiteralMap outputs = 2;
108
- }
109
- }
110
-
111
- // A message used to fetch a job resource from flyte agent server.
112
- message GetTaskRequest {
113
- reserved 5;
114
- // A predefined yet extensible Task type identifier.
115
- string task_type = 1 [deprecated = true];
116
- // Metadata about the resource to be pass to the agent.
117
- bytes resource_meta = 2;
118
- // A predefined yet extensible Task type identifier.
119
- TaskCategory task_category = 3;
120
- // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
121
- string output_prefix = 4;
122
- }
123
-
124
- // Response to get an individual task resource.
125
- message GetTaskResponse {
126
- Resource resource = 1;
127
- }
128
-
129
- message Resource {
130
- // DEPRECATED. The state of the execution is used to control its visibility in the UI/CLI.
131
- State state = 1 [deprecated = true];
132
- // The outputs of the execution. It's typically used by sql task. Agent service will create a
133
- // Structured dataset pointing to the query result table.
134
- // +optional
135
- core.LiteralMap outputs = 2;
136
- // A descriptive message for the current state. e.g. waiting for cluster.
137
- string message = 3;
138
- // log information for the task execution.
139
- repeated core.TaskLog log_links = 4;
140
- // The phase of the execution is used to determine the phase of the plugin's execution.
141
- core.TaskExecution.Phase phase = 5;
142
- // Custom data specific to the agent.
143
- google.protobuf.Struct custom_info = 6;
144
- // The error raised during execution
145
- AgentError agent_error = 7;
146
- }
147
-
148
- // A message used to delete a task.
149
- message DeleteTaskRequest {
150
- // A predefined yet extensible Task type identifier.
151
- string task_type = 1 [deprecated = true];
152
- // Metadata about the resource to be pass to the agent.
153
- bytes resource_meta = 2;
154
- // A predefined yet extensible Task type identifier.
155
- TaskCategory task_category = 3;
156
- }
157
-
158
- // Response to delete a task.
159
- message DeleteTaskResponse {}
160
-
161
- // A message containing the agent metadata.
162
- message Agent {
163
- // Name is the developer-assigned name of the agent.
164
- string name = 1;
165
-
166
- // SupportedTaskTypes are the types of the tasks that the agent can handle.
167
- repeated string supported_task_types = 2 [deprecated = true];
168
-
169
- // IsSync indicates whether this agent is a sync agent. Sync agents are expected to return their
170
- // results synchronously when called by propeller. Given that sync agents can affect the performance
171
- // of the system, it's important to enforce strict timeout policies.
172
- // An Async agent, on the other hand, is required to be able to identify jobs by an
173
- // identifier and query for job statuses as jobs progress.
174
- bool is_sync = 3;
175
-
176
- // Supported_task_categories are the categories of the tasks that the agent can handle.
177
- repeated TaskCategory supported_task_categories = 4;
178
- }
179
-
180
- message TaskCategory {
181
- // The name of the task type.
182
- string name = 1;
183
- // The version of the task type.
184
- int32 version = 2;
185
- }
186
-
187
- // A request to get an agent.
188
- message GetAgentRequest {
189
- // The name of the agent.
190
- string name = 1;
191
- }
192
-
193
- // A response containing an agent.
194
- message GetAgentResponse {
195
- Agent agent = 1;
196
- }
197
-
198
- // A request to list all agents.
199
- message ListAgentsRequest {}
200
-
201
- // A response containing a list of agents.
202
- message ListAgentsResponse {
203
- repeated Agent agents = 1;
204
- }
205
-
206
- // A request to get the metrics from a task execution.
207
- message GetTaskMetricsRequest {
208
- // A predefined yet extensible Task type identifier.
209
- string task_type = 1 [deprecated = true];
210
- // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
211
- bytes resource_meta = 2;
212
- // The metrics to query. If empty, will return a default set of metrics.
213
- // e.g. EXECUTION_METRIC_USED_CPU_AVG or EXECUTION_METRIC_USED_MEMORY_BYTES_AVG
214
- repeated string queries = 3;
215
- // Start timestamp, inclusive.
216
- google.protobuf.Timestamp start_time = 4;
217
- // End timestamp, inclusive..
218
- google.protobuf.Timestamp end_time = 5;
219
- // Query resolution step width in duration format or float number of seconds.
220
- google.protobuf.Duration step = 6;
221
- // A predefined yet extensible Task type identifier.
222
- TaskCategory task_category = 7;
223
- }
224
-
225
- // A response containing a list of metrics for a task execution.
226
- message GetTaskMetricsResponse {
227
- // The execution metric results.
228
- repeated core.ExecutionMetricResult results = 1;
229
- }
230
-
231
- // A request to get the log from a task execution.
232
- message GetTaskLogsRequest {
233
- // A predefined yet extensible Task type identifier.
234
- string task_type = 1 [deprecated = true];
235
- // Metadata is created by the agent. It could be a string (jobId) or a dict (more complex metadata).
236
- bytes resource_meta = 2;
237
- // Number of lines to return.
238
- uint64 lines = 3;
239
- // In the case of multiple pages of results, the server-provided token can be used to fetch the next page
240
- // in a query. If there are no more results, this value will be empty.
241
- string token = 4;
242
- // A predefined yet extensible Task type identifier.
243
- TaskCategory task_category = 5;
244
- }
245
-
246
- message GetTaskLogsResponseHeader {
247
- // In the case of multiple pages of results, the server-provided token can be used to fetch the next page
248
- // in a query. If there are no more results, this value will be empty.
249
- string token = 1;
250
- }
251
-
252
- enum LogLineOriginator {
253
- // The originator of the log line is unknown.
254
- UNKNOWN = 0;
255
-
256
- // The originator of the log line is the user application.
257
- USER = 1;
258
-
259
- // The originator of the log line is the system.
260
- SYSTEM = 2;
261
- }
262
-
263
- message LogLine {
264
- google.protobuf.Timestamp timestamp = 1;
265
-
266
- // Each line is separated by either CRLF, CR or LF, which are included
267
- // at the ends of the lines. This lets clients know whether log emitter
268
- // wanted to overwrite the previous line (LF) or append a new line (CRLF).
269
- string message = 2;
270
-
271
- LogLineOriginator originator = 3;
272
- }
273
-
274
- message GetTaskLogsResponseBody {
275
- // The execution log results.
276
- repeated string results = 1 [deprecated = true];
277
-
278
- // Each line is separated by either CRLF, CR or LF, which are included
279
- // at the ends of the lines. This lets clients know whether log emitter
280
- // wanted to overwrite the previous line (LF) or append a new line (CRLF).
281
- repeated LogLine structured_lines = 2;
282
- }
283
-
284
- // A response containing the logs for a task execution.
285
- message GetTaskLogsResponse {
286
- oneof part {
287
- GetTaskLogsResponseHeader header = 1;
288
- GetTaskLogsResponseBody body = 2;
289
- }
290
- }
291
-
292
- // Error message to propagate detailed errors from agent executions to the execution
293
- // engine.
294
- message AgentError {
295
- // A simplified code for errors, so that we can provide a glossary of all possible errors.
296
- string code = 1;
297
-
298
- // Defines a generic error type that dictates the behavior of the retry strategy.
299
- enum Kind {
300
- NON_RECOVERABLE = 0;
301
- RECOVERABLE = 1;
302
- }
303
-
304
- // An abstract error kind for this error. Defaults to Non_Recoverable if not specified.
305
- Kind kind = 3;
306
-
307
- // Defines the origin of the error (system, user, unknown).
308
- core.ExecutionError.ErrorKind origin = 4;
309
- }
@@ -1,11 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package flyteidl.admin;
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin";
5
-
6
-
7
- // Encapsulates specifications for routing an execution onto a specific cluster.
8
- message ClusterAssignment {
9
- reserved 1, 2;
10
- string cluster_pool_name = 3;
11
- }
@@ -1,337 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package flyteidl.admin;
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin";
5
-
6
- import "flyteidl/core/execution.proto";
7
- import "flyteidl/core/identifier.proto";
8
- import "flyteidl/core/literals.proto";
9
- import "google/protobuf/timestamp.proto";
10
-
11
- // Encapsulation of fields that identifies a Flyte resource.
12
- // A Flyte resource can be a task, workflow or launch plan.
13
- // A resource can internally have multiple versions and is uniquely identified
14
- // by project, domain, and name.
15
- message NamedEntityIdentifier {
16
- // Name of the project the resource belongs to.
17
- string project = 1;
18
- // Name of the domain the resource belongs to.
19
- // A domain can be considered as a subset within a specific project.
20
- string domain = 2;
21
- // User provided value for the resource.
22
- // The combination of project + domain + name uniquely identifies the resource.
23
- // +optional - in certain contexts - like 'List API', 'Launch plans'
24
- string name = 3;
25
-
26
- // Optional, org key applied to the resource.
27
- string org = 4;
28
- }
29
-
30
- // The status of the named entity is used to control its visibility in the UI.
31
- enum NamedEntityState {
32
- reserved 3, 4;
33
- // By default, all named entities are considered active and under development.
34
- NAMED_ENTITY_ACTIVE = 0;
35
-
36
- // Archived named entities are no longer visible in the UI.
37
- NAMED_ENTITY_ARCHIVED = 1;
38
-
39
- // System generated entities that aren't explicitly created or managed by a user.
40
- SYSTEM_GENERATED = 2;
41
- }
42
-
43
- // Additional metadata around a named entity.
44
- message NamedEntityMetadata {
45
- // Common description across all versions of the entity
46
- // +optional
47
- string description = 1;
48
-
49
- // Shared state across all version of the entity
50
- // At this point in time, only workflow entities can have their state archived.
51
- NamedEntityState state = 2;
52
- }
53
-
54
- // Encapsulates information common to a NamedEntity, a Flyte resource such as a task,
55
- // workflow or launch plan. A NamedEntity is exclusively identified by its resource type
56
- // and identifier.
57
- message NamedEntity {
58
- // Resource type of the named entity. One of Task, Workflow or LaunchPlan.
59
- flyteidl.core.ResourceType resource_type = 1;
60
- NamedEntityIdentifier id = 2;
61
-
62
- // Additional metadata around a named entity.
63
- NamedEntityMetadata metadata = 3;
64
- }
65
-
66
- // Specifies sort ordering in a list request.
67
- message Sort {
68
- enum Direction {
69
-
70
- // By default, fields are sorted in descending order.
71
- DESCENDING = 0;
72
- ASCENDING = 1;
73
- }
74
- // Indicates an attribute to sort the response values.
75
- // +required
76
- string key = 1;
77
-
78
- // Indicates the direction to apply sort key for response values.
79
- // +optional
80
- Direction direction = 2;
81
- }
82
-
83
- // Represents a request structure to list NamedEntityIdentifiers.
84
- message NamedEntityIdentifierListRequest {
85
- // Name of the project that contains the identifiers.
86
- // +required
87
- string project = 1;
88
-
89
- // Name of the domain the identifiers belongs to within the project.
90
- // +required
91
- string domain = 2;
92
-
93
- // Indicates the number of resources to be returned.
94
- // +required
95
- uint32 limit = 3;
96
-
97
- // In the case of multiple pages of results, the server-provided token can be used to fetch the next page
98
- // in a query.
99
- // +optional
100
- string token = 4;
101
-
102
- // Specifies how listed entities should be sorted in the response.
103
- // +optional
104
- Sort sort_by = 5;
105
-
106
- // Indicates a list of filters passed as string.
107
- // +optional
108
- string filters = 6;
109
-
110
- // Optional, org key applied to the resource.
111
- string org = 7;
112
- }
113
-
114
- // Represents a request structure to list NamedEntity objects
115
- message NamedEntityListRequest {
116
- // Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.
117
- // +required
118
- flyteidl.core.ResourceType resource_type = 1;
119
- // Name of the project that contains the identifiers.
120
- // +required
121
- string project = 2;
122
- // Name of the domain the identifiers belongs to within the project.
123
- string domain = 3;
124
- // Indicates the number of resources to be returned.
125
- uint32 limit = 4;
126
- // In the case of multiple pages of results, the server-provided token can be used to fetch the next page
127
- // in a query.
128
- // +optional
129
- string token = 5;
130
-
131
- // Specifies how listed entities should be sorted in the response.
132
- // +optional
133
- Sort sort_by = 6;
134
-
135
- // Indicates a list of filters passed as string.
136
- // +optional
137
- string filters = 7;
138
-
139
- // Optional, org key applied to the resource.
140
- string org = 8;
141
- }
142
-
143
- // Represents a list of NamedEntityIdentifiers.
144
- message NamedEntityIdentifierList {
145
- // A list of identifiers.
146
- repeated NamedEntityIdentifier entities = 1;
147
-
148
- // In the case of multiple pages of results, the server-provided token can be used to fetch the next page
149
- // in a query. If there are no more results, this value will be empty.
150
- string token = 2;
151
- }
152
-
153
- // Represents a list of NamedEntityIdentifiers.
154
- message NamedEntityList {
155
- // A list of NamedEntity objects
156
- repeated NamedEntity entities = 1;
157
-
158
- // In the case of multiple pages of results, the server-provided token can be used to fetch the next page
159
- // in a query. If there are no more results, this value will be empty.
160
- string token = 2;
161
- }
162
-
163
- // A request to retrieve the metadata associated with a NamedEntityIdentifier
164
- message NamedEntityGetRequest {
165
- // Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.
166
- // +required
167
- flyteidl.core.ResourceType resource_type = 1;
168
-
169
- // The identifier for the named entity for which to fetch metadata.
170
- // +required
171
- NamedEntityIdentifier id = 2;
172
- }
173
-
174
- // Request to set the referenced named entity state to the configured value.
175
- message NamedEntityUpdateRequest {
176
- // Resource type of the metadata to update
177
- // +required
178
- flyteidl.core.ResourceType resource_type = 1;
179
-
180
- // Identifier of the metadata to update
181
- // +required
182
- NamedEntityIdentifier id = 2;
183
-
184
- // Metadata object to set as the new value
185
- // +required
186
- NamedEntityMetadata metadata = 3;
187
- }
188
-
189
- // Purposefully empty, may be populated in the future.
190
- message NamedEntityUpdateResponse {
191
- }
192
-
193
- // Shared request structure to fetch a single resource.
194
- // Resources include: Task, Workflow, LaunchPlan
195
- message ObjectGetRequest {
196
- // Indicates a unique version of resource.
197
- // +required
198
- core.Identifier id = 1;
199
- }
200
-
201
- // Shared request structure to retrieve a list of resources.
202
- // Resources include: Task, Workflow, LaunchPlan
203
- message ResourceListRequest {
204
- // id represents the unique identifier of the resource.
205
- // +required
206
- NamedEntityIdentifier id = 1;
207
-
208
- // Indicates the number of resources to be returned.
209
- // +required
210
- uint32 limit = 2;
211
-
212
- // In the case of multiple pages of results, this server-provided token can be used to fetch the next page
213
- // in a query.
214
- // +optional
215
- string token = 3;
216
-
217
- // Indicates a list of filters passed as string.
218
- // More info on constructing filters : <Link>
219
- // +optional
220
- string filters = 4;
221
-
222
- // Sort ordering.
223
- // +optional
224
- Sort sort_by = 5;
225
- }
226
-
227
- // Defines an email notification specification.
228
- message EmailNotification {
229
- // The list of email addresses recipients for this notification.
230
- // +required
231
- repeated string recipients_email = 1;
232
- // The template to use for this notification.
233
- // +optional
234
- string template = 2;
235
- }
236
-
237
- // Defines a pager duty notification specification.
238
- message PagerDutyNotification {
239
- // Currently, PagerDuty notifications leverage email to trigger a notification.
240
- // +required
241
- repeated string recipients_email = 1;
242
- // The template to use for this notification.
243
- // +optional
244
- string template = 2;
245
- }
246
-
247
- // Defines a slack notification specification.
248
- message SlackNotification {
249
- // Currently, Slack notifications leverage email to trigger a notification.
250
- // +required
251
- repeated string recipients_email = 1;
252
- // The template to use for this notification.
253
- // +optional
254
- string template = 2;
255
- }
256
-
257
- // Represents a structure for notifications based on execution status.
258
- // The notification content is configured within flyte admin but can be templatized.
259
- // Future iterations could expose configuring notifications with custom content.
260
- message Notification {
261
- // A list of phases to which users can associate the notifications to.
262
- // +required
263
- repeated core.WorkflowExecution.Phase phases = 1;
264
-
265
- // The type of notification to trigger.
266
- // +required
267
- oneof type {
268
- EmailNotification email = 2;
269
- PagerDutyNotification pager_duty = 3;
270
- SlackNotification slack = 4;
271
- }
272
-
273
- }
274
-
275
- // Represents a string url and associated metadata used throughout the platform.
276
- message UrlBlob {
277
- option deprecated = true;
278
-
279
- // Actual url value.
280
- string url = 1;
281
-
282
- // Represents the size of the file accessible at the above url.
283
- int64 bytes = 2;
284
- }
285
-
286
- // Label values to be applied to an execution resource.
287
- // In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
288
- // to specify how to merge labels defined at registration and execution time.
289
- message Labels {
290
- // Map of custom labels to be applied to the execution resource.
291
- map<string, string> values = 1;
292
- }
293
-
294
- // Annotation values to be applied to an execution resource.
295
- // In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
296
- // to specify how to merge annotations defined at registration and execution time.
297
- message Annotations {
298
- // Map of custom annotations to be applied to the execution resource.
299
- map<string, string> values = 1;
300
- }
301
-
302
- // Environment variable values to be applied to an execution resource.
303
- // In the future a mode (e.g. OVERRIDE, APPEND, etc) can be defined
304
- // to specify how to merge environment variables defined at registration and execution time.
305
- message Envs {
306
- // Map of custom environment variables to be applied to the execution resource.
307
- repeated flyteidl.core.KeyValuePair values = 1;
308
- }
309
-
310
- // Defines permissions associated with executions created by this launch plan spec.
311
- // Use either of these roles when they have permissions required by your workflow execution.
312
- // Deprecated.
313
- message AuthRole {
314
- option deprecated = true;
315
-
316
- // Defines an optional iam role which will be used for tasks run in executions created with this launch plan.
317
- string assumable_iam_role = 1;
318
-
319
- // Defines an optional kubernetes service account which will be used for tasks run in executions created with this launch plan.
320
- string kubernetes_service_account = 2;
321
- }
322
-
323
-
324
- // Encapsulates user settings pertaining to offloaded data (i.e. Blobs, Schema, query data, etc.).
325
- // See https://github.com/flyteorg/flyte/issues/211 for more background information.
326
- message RawOutputDataConfig {
327
- // Prefix for where offloaded data from user workflows will be written
328
- // e.g. s3://bucket/key or s3://bucket/
329
- string output_location_prefix = 1;
330
- }
331
-
332
- // These URLs are returned as part of node and task execution data requests.
333
- message FlyteURLs {
334
- string inputs = 1;
335
- string outputs = 2;
336
- string deck = 3;
337
- }