@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,79 +0,0 @@
1
- syntax = "proto3";
2
- package flyteidl.service;
3
-
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service";
5
-
6
- import "google/api/annotations.proto";
7
- import "flyteidl/admin/agent.proto";
8
-
9
- // SyncAgentService defines an RPC Service that allows propeller to send the request to the agent server synchronously.
10
- service SyncAgentService {
11
- // ExecuteTaskSync streams the create request and inputs to the agent service and streams the outputs back.
12
- rpc ExecuteTaskSync (stream flyteidl.admin.ExecuteTaskSyncRequest) returns (stream flyteidl.admin.ExecuteTaskSyncResponse){
13
- option (google.api.http) = {
14
- post: "/api/v1/agent/task/stream"
15
- body: "*"
16
- };
17
- };
18
- }
19
-
20
- // AsyncAgentService defines an RPC Service that allows propeller to send the request to the agent server asynchronously.
21
- service AsyncAgentService {
22
- // CreateTask sends a task create request to the agent service.
23
- rpc CreateTask (flyteidl.admin.CreateTaskRequest) returns (flyteidl.admin.CreateTaskResponse){
24
- option (google.api.http) = {
25
- post: "/api/v1/agent/task"
26
- body: "*"
27
- };
28
- };
29
-
30
- // Get job status.
31
- rpc GetTask (flyteidl.admin.GetTaskRequest) returns (flyteidl.admin.GetTaskResponse){
32
- option (google.api.http) = {
33
- get: "/api/v1/agent/task/{task_category.name}/{task_category.version}/{resource_meta}"
34
- };
35
- };
36
-
37
- // Delete the task resource.
38
- rpc DeleteTask (flyteidl.admin.DeleteTaskRequest) returns (flyteidl.admin.DeleteTaskResponse){
39
- option (google.api.http) = {
40
- delete: "/api/v1/agent/task_executions/{task_category.name}/{task_category.version}/{resource_meta}"
41
- };
42
- };
43
-
44
- // GetTaskMetrics returns one or more task execution metrics, if available.
45
- //
46
- // Errors include
47
- // * OutOfRange if metrics are not available for the specified task time range
48
- // * various other errors
49
- rpc GetTaskMetrics(flyteidl.admin.GetTaskMetricsRequest) returns (flyteidl.admin.GetTaskMetricsResponse){
50
- option (google.api.http) = {
51
- get: "/api/v1/agent/task/metrics/{task_category.name}/{task_category.version}/{resource_meta}"
52
- };
53
- };
54
-
55
- // GetTaskLogs returns task execution logs, if available.
56
- rpc GetTaskLogs(flyteidl.admin.GetTaskLogsRequest) returns (stream flyteidl.admin.GetTaskLogsResponse){
57
- option (google.api.http) = {
58
- get: "/api/v1/agent/task/logs/{task_category.name}/{task_category.version}/{resource_meta}"
59
- };
60
- };
61
- }
62
-
63
- // AgentMetadataService defines an RPC service that is also served over HTTP via grpc-gateway.
64
- // This service allows propeller or users to get the metadata of agents.
65
- service AgentMetadataService {
66
- // Fetch a :ref:`ref_flyteidl.admin.Agent` definition.
67
- rpc GetAgent (flyteidl.admin.GetAgentRequest) returns (flyteidl.admin.GetAgentResponse){
68
- option (google.api.http) = {
69
- get: "/api/v1/agent/{name}"
70
- };
71
- };
72
-
73
- // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions.
74
- rpc ListAgents (flyteidl.admin.ListAgentsRequest) returns (flyteidl.admin.ListAgentsResponse){
75
- option (google.api.http) = {
76
- get: "/api/v1/agents"
77
- };
78
- };
79
- }
@@ -1,94 +0,0 @@
1
- syntax = "proto3";
2
- package flyteidl.service;
3
-
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service";
5
-
6
- import "google/api/annotations.proto";
7
- import "protoc-gen-openapiv2/options/annotations.proto";
8
-
9
- message OAuth2MetadataRequest {}
10
-
11
- // OAuth2MetadataResponse defines an RFC-Compliant response for /.well-known/oauth-authorization-server metadata
12
- // as defined in https://tools.ietf.org/html/rfc8414
13
- message OAuth2MetadataResponse {
14
- // Defines the issuer string in all JWT tokens this server issues. The issuer can be admin itself or an external
15
- // issuer.
16
- string issuer = 1;
17
-
18
- // URL of the authorization server's authorization endpoint [RFC6749]. This is REQUIRED unless no grant types are
19
- // supported that use the authorization endpoint.
20
- string authorization_endpoint = 2;
21
-
22
- // URL of the authorization server's token endpoint [RFC6749].
23
- string token_endpoint = 3;
24
-
25
- // Array containing a list of the OAuth 2.0 response_type values that this authorization server supports.
26
- repeated string response_types_supported = 4;
27
-
28
- // JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this authorization server supports.
29
- repeated string scopes_supported = 5;
30
-
31
- // JSON array containing a list of client authentication methods supported by this token endpoint.
32
- repeated string token_endpoint_auth_methods_supported = 6;
33
-
34
- // URL of the authorization server's JWK Set [JWK] document. The referenced document contains the signing key(s) the
35
- // client uses to validate signatures from the authorization server.
36
- string jwks_uri = 7;
37
-
38
- // JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported by
39
- // this authorization server.
40
- repeated string code_challenge_methods_supported = 8;
41
-
42
- // JSON array containing a list of the OAuth 2.0 grant type values that this authorization server supports.
43
- repeated string grant_types_supported = 9;
44
-
45
- // URL of the authorization server's device authorization endpoint, as defined in Section 3.1 of [RFC8628]
46
- string device_authorization_endpoint = 10;
47
- }
48
-
49
- message PublicClientAuthConfigRequest {}
50
-
51
- // FlyteClientResponse encapsulates public information that flyte clients (CLIs... etc.) can use to authenticate users.
52
- message PublicClientAuthConfigResponse {
53
- // client_id to use when initiating OAuth2 authorization requests.
54
- string client_id = 1;
55
- // redirect uri to use when initiating OAuth2 authorization requests.
56
- string redirect_uri = 2;
57
- // scopes to request when initiating OAuth2 authorization requests.
58
- repeated string scopes = 3;
59
- // Authorization Header to use when passing Access Tokens to the server. If not provided, the client should use the
60
- // default http `Authorization` header.
61
- string authorization_metadata_key = 4;
62
- // ServiceHttpEndpoint points to the http endpoint for the backend. If empty, clients can assume the endpoint used
63
- // to configure the gRPC connection can be used for the http one respecting the insecure flag to choose between
64
- // SSL or no SSL connections.
65
- string service_http_endpoint = 5;
66
- // audience to use when initiating OAuth2 authorization requests.
67
- string audience = 6;
68
- }
69
-
70
- // The following defines an RPC service that is also served over HTTP via grpc-gateway.
71
- // Standard response codes for both are defined here: https://github.com/grpc-ecosystem/grpc-gateway/blob/master/runtime/errors.go
72
- // RPCs defined in this service must be anonymously accessible.
73
- service AuthMetadataService {
74
- // Anonymously accessible. Retrieves local or external oauth authorization server metadata.
75
- rpc GetOAuth2Metadata (OAuth2MetadataRequest) returns (OAuth2MetadataResponse) {
76
- option (google.api.http) = {
77
- get: "/.well-known/oauth-authorization-server"
78
- };
79
- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
80
- description: "Retrieves OAuth2 authorization server metadata. This endpoint is anonymously accessible."
81
- };
82
- }
83
-
84
- // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization
85
- // requests.
86
- rpc GetPublicClientConfig (PublicClientAuthConfigRequest) returns (PublicClientAuthConfigResponse) {
87
- option (google.api.http) = {
88
- get: "/config/v1/flyte_client"
89
- };
90
- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
91
- description: "Retrieves public flyte client info. This endpoint is anonymously accessible."
92
- };
93
- }
94
- }
@@ -1,205 +0,0 @@
1
- syntax = "proto3";
2
- package flyteidl.service;
3
-
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service";
5
-
6
- import "google/api/annotations.proto";
7
- import "protoc-gen-openapiv2/options/annotations.proto";
8
- import "google/protobuf/duration.proto";
9
- import "google/protobuf/timestamp.proto";
10
- import "flyteidl/core/identifier.proto";
11
- import "flyteidl/core/literals.proto";
12
-
13
-
14
- message CreateUploadLocationResponse {
15
- // SignedUrl specifies the url to use to upload content to (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
16
- string signed_url = 1;
17
-
18
- // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
19
- string native_url = 2;
20
-
21
- // ExpiresAt defines when will the signed URL expires.
22
- google.protobuf.Timestamp expires_at = 3;
23
-
24
- // Data proxy generates these headers for client, and they have to add these headers to the request when uploading the file.
25
- map<string, string> headers = 4;
26
- }
27
-
28
- // CreateUploadLocationRequest specified request for the CreateUploadLocation API.
29
- // The implementation in data proxy service will create the s3 location with some server side configured prefixes,
30
- // and then:
31
- // - project/domain/(a deterministic str representation of the content_md5)/filename (if present); OR
32
- // - project/domain/filename_root (if present)/filename (if present).
33
- message CreateUploadLocationRequest {
34
- // Project to create the upload location for
35
- // +required
36
- string project = 1;
37
-
38
- // Domain to create the upload location for.
39
- // +required
40
- string domain = 2;
41
-
42
- // Filename specifies a desired suffix for the generated location. E.g. `file.py` or `pre/fix/file.zip`.
43
- // +optional. By default, the service will generate a consistent name based on the provided parameters.
44
- string filename = 3;
45
-
46
- // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
47
- // exceeds the platform allowed max.
48
- // +optional. The default value comes from a global config.
49
- google.protobuf.Duration expires_in = 4;
50
-
51
- // ContentMD5 restricts the upload location to the specific MD5 provided. The ContentMD5 will also appear in the
52
- // generated path.
53
- // +required
54
- bytes content_md5 = 5;
55
-
56
- // If present, data proxy will use this string in lieu of the md5 hash in the path. When the filename is also included
57
- // this makes the upload location deterministic. The native url will still be prefixed by the upload location prefix
58
- // in data proxy config. This option is useful when uploading multiple files.
59
- // +optional
60
- string filename_root = 6;
61
-
62
- // If true, the data proxy will add content_md5 to the metadata to the signed URL and
63
- // it will force clients to add this metadata to the object.
64
- // This make sure dataproxy is backward compatible with the old flytekit.
65
- bool add_content_md5_metadata = 7;
66
-
67
-
68
- // Optional, org key applied to the resource.
69
- string org = 8;
70
- }
71
-
72
- // CreateDownloadLocationRequest specified request for the CreateDownloadLocation API.
73
- message CreateDownloadLocationRequest {
74
- option deprecated = true;
75
- // NativeUrl specifies the url in the format of the configured storage provider (e.g. s3://my-bucket/randomstring/suffix.tar)
76
- string native_url = 1;
77
-
78
- // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
79
- // exceeds the platform allowed max.
80
- // +optional. The default value comes from a global config.
81
- google.protobuf.Duration expires_in = 2;
82
- }
83
-
84
- message CreateDownloadLocationResponse {
85
- option deprecated = true;
86
- // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
87
- string signed_url = 1;
88
- // ExpiresAt defines when will the signed URL expires.
89
- google.protobuf.Timestamp expires_at = 2;
90
- }
91
-
92
- // ArtifactType
93
- enum ArtifactType {
94
- // ARTIFACT_TYPE_UNDEFINED is the default, often invalid, value for the enum.
95
- ARTIFACT_TYPE_UNDEFINED = 0;
96
-
97
- // ARTIFACT_TYPE_DECK refers to the deck html file optionally generated after a task, a workflow or a launch plan
98
- // finishes executing.
99
- ARTIFACT_TYPE_DECK = 1;
100
- }
101
-
102
- // CreateDownloadLinkRequest defines the request parameters to create a download link (signed url)
103
- message CreateDownloadLinkRequest {
104
- // ArtifactType of the artifact requested.
105
- ArtifactType artifact_type = 1;
106
-
107
- // ExpiresIn defines a requested expiration duration for the generated url. The request will be rejected if this
108
- // exceeds the platform allowed max.
109
- // +optional. The default value comes from a global config.
110
- google.protobuf.Duration expires_in = 2;
111
-
112
- oneof source {
113
- // NodeId is the unique identifier for the node execution. For a task node, this will retrieve the output of the
114
- // most recent attempt of the task.
115
- core.NodeExecutionIdentifier node_execution_id = 3;
116
- }
117
- }
118
-
119
- // CreateDownloadLinkResponse defines the response for the generated links
120
- message CreateDownloadLinkResponse {
121
- // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
122
- repeated string signed_url = 1 [deprecated = true];
123
-
124
- // ExpiresAt defines when will the signed URL expire.
125
- google.protobuf.Timestamp expires_at = 2 [deprecated = true];
126
-
127
- // New wrapper object containing the signed urls and expiration time
128
- PreSignedURLs pre_signed_urls = 3;
129
- }
130
-
131
- // Wrapper object since the message is shared across this and the GetDataResponse
132
- message PreSignedURLs {
133
- // SignedUrl specifies the url to use to download content from (e.g. https://my-bucket.s3.amazonaws.com/randomstring/suffix.tar?X-...)
134
- repeated string signed_url = 1;
135
-
136
- // ExpiresAt defines when will the signed URL expire.
137
- google.protobuf.Timestamp expires_at = 2;
138
- }
139
-
140
- // General request artifact to retrieve data from a Flyte artifact url.
141
- message GetDataRequest {
142
- // A unique identifier in the form of flyte://<something> that uniquely, for a given Flyte
143
- // backend, identifies a Flyte artifact ([i]nput, [o]output, flyte [d]eck, etc.).
144
- // e.g. flyte://v1/proj/development/execid/n2/0/i (for 0th task execution attempt input)
145
- // flyte://v1/proj/development/execid/n2/i (for node execution input)
146
- // flyte://v1/proj/development/execid/n2/o/o3 (the o3 output of the second node)
147
- string flyte_url = 1;
148
- }
149
-
150
- message GetDataResponse {
151
- oneof data {
152
- // literal map data will be returned
153
- core.LiteralMap literal_map = 1;
154
-
155
- // Flyte deck html will be returned as a signed url users can download
156
- PreSignedURLs pre_signed_urls = 2;
157
-
158
- // Single literal will be returned. This is returned when the user/url requests a specific output or input
159
- // by name. See the o3 example above.
160
- core.Literal literal = 3;
161
- }
162
- }
163
-
164
- // DataProxyService defines an RPC Service that allows access to user-data in a controlled manner.
165
- service DataProxyService {
166
- // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain.
167
- rpc CreateUploadLocation (CreateUploadLocationRequest) returns (CreateUploadLocationResponse) {
168
- option (google.api.http) = {
169
- post: "/api/v1/dataproxy/artifact_urn"
170
- body: "*"
171
- };
172
- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
173
- description: "Creates a write-only http location that is accessible for tasks at runtime."
174
- };
175
- }
176
-
177
- // CreateDownloadLocation creates a signed url to download artifacts.
178
- rpc CreateDownloadLocation (CreateDownloadLocationRequest) returns (CreateDownloadLocationResponse) {
179
- option deprecated = true;
180
- option (google.api.http) = {
181
- get: "/api/v1/dataproxy/artifact_urn"
182
- };
183
- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
184
- description: "Deprecated: Please use CreateDownloadLink instead. Creates a read-only http location that is accessible for tasks at runtime."
185
- };
186
- }
187
-
188
- // CreateDownloadLocation creates a signed url to download artifacts.
189
- rpc CreateDownloadLink (CreateDownloadLinkRequest) returns (CreateDownloadLinkResponse) {
190
- option (google.api.http) = {
191
- post: "/api/v1/dataproxy/artifact_link"
192
- body: "*"
193
- };
194
- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
195
- description: "Creates a read-only http location that is accessible for tasks at runtime."
196
- };
197
- }
198
-
199
- rpc GetData (GetDataRequest) returns (GetDataResponse) {
200
- // Takes an address like flyte://v1/proj/development/execid/n2/0/i and return the actual data
201
- option (google.api.http) = {
202
- get: "/api/v1/data"
203
- };
204
- }
205
- }
@@ -1,79 +0,0 @@
1
- syntax = "proto3";
2
- package flyteidl.service;
3
-
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service";
5
- import "flyteidl/core/literals.proto";
6
- import "flyteidl/core/tasks.proto";
7
-
8
- // ExternalPluginService defines an RPC Service that allows propeller to send the request to the backend plugin server.
9
- service ExternalPluginService {
10
- // Send a task create request to the backend plugin server.
11
- rpc CreateTask (TaskCreateRequest) returns (TaskCreateResponse){option deprecated = true;};
12
- // Get job status.
13
- rpc GetTask (TaskGetRequest) returns (TaskGetResponse){option deprecated = true;};
14
- // Delete the task resource.
15
- rpc DeleteTask (TaskDeleteRequest) returns (TaskDeleteResponse){option deprecated = true;};
16
- }
17
-
18
- // The state of the execution is used to control its visibility in the UI/CLI.
19
- enum State {
20
- option deprecated = true;
21
- RETRYABLE_FAILURE = 0;
22
- PERMANENT_FAILURE = 1;
23
- PENDING = 2;
24
- RUNNING = 3;
25
- SUCCEEDED = 4;
26
- }
27
-
28
- // Represents a request structure to create task.
29
- message TaskCreateRequest {
30
- option deprecated = true;
31
- // The inputs required to start the execution. All required inputs must be
32
- // included in this map. If not required and not provided, defaults apply.
33
- // +optional
34
- core.LiteralMap inputs = 1;
35
- // Template of the task that encapsulates all the metadata of the task.
36
- core.TaskTemplate template = 2;
37
- // Prefix for where task output data will be written. (e.g. s3://my-bucket/randomstring)
38
- string output_prefix = 3;
39
- }
40
-
41
- // Represents a create response structure.
42
- message TaskCreateResponse {
43
- option deprecated = true;
44
- string job_id = 1;
45
- }
46
-
47
- // A message used to fetch a job state from backend plugin server.
48
- message TaskGetRequest {
49
- option deprecated = true;
50
- // A predefined yet extensible Task type identifier.
51
- string task_type = 1;
52
- // The unique id identifying the job.
53
- string job_id = 2;
54
- }
55
-
56
- // Response to get an individual task state.
57
- message TaskGetResponse {
58
- option deprecated = true;
59
- // The state of the execution is used to control its visibility in the UI/CLI.
60
- State state = 1;
61
- // The outputs of the execution. It's typically used by sql task. Flyteplugins service will create a
62
- // Structured dataset pointing to the query result table.
63
- // +optional
64
- core.LiteralMap outputs = 2;
65
- }
66
-
67
- // A message used to delete a task.
68
- message TaskDeleteRequest {
69
- option deprecated = true;
70
- // A predefined yet extensible Task type identifier.
71
- string task_type = 1;
72
- // The unique id identifying the job.
73
- string job_id = 2;
74
- }
75
-
76
- // Response to delete a task.
77
- message TaskDeleteResponse {
78
- option deprecated = true;
79
- }
@@ -1,51 +0,0 @@
1
- syntax = "proto3";
2
- package flyteidl.service;
3
-
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service";
5
-
6
- import "google/api/annotations.proto";
7
- import "google/protobuf/struct.proto";
8
- import "protoc-gen-openapiv2/options/annotations.proto";
9
-
10
- message UserInfoRequest {}
11
-
12
- // See the OpenID Connect spec at https://openid.net/specs/openid-connect-core-1_0.html#UserInfoResponse for more information.
13
- message UserInfoResponse {
14
- // Locally unique and never reassigned identifier within the Issuer for the End-User, which is intended to be consumed
15
- // by the Client.
16
- string subject = 1;
17
-
18
- // Full name
19
- string name = 2;
20
-
21
- // Shorthand name by which the End-User wishes to be referred to
22
- string preferred_username = 3;
23
-
24
- // Given name(s) or first name(s)
25
- string given_name = 4;
26
-
27
- // Surname(s) or last name(s)
28
- string family_name = 5;
29
-
30
- // Preferred e-mail address
31
- string email = 6;
32
-
33
- // Profile picture URL
34
- string picture = 7;
35
-
36
- // Additional claims
37
- google.protobuf.Struct additional_claims = 8;
38
- }
39
-
40
- // IdentityService defines an RPC Service that interacts with user/app identities.
41
- service IdentityService {
42
- // Retrieves user information about the currently logged in user.
43
- rpc UserInfo (UserInfoRequest) returns (UserInfoResponse) {
44
- option (google.api.http) = {
45
- get: "/me"
46
- };
47
- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
48
- description: "Retrieves authenticated identity info."
49
- };
50
- }
51
- }
@@ -1,55 +0,0 @@
1
- syntax = "proto3";
2
- package flyteidl.service;
3
-
4
- option go_package = "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service";
5
-
6
- import "google/api/annotations.proto";
7
- import "flyteidl/admin/signal.proto";
8
- import "protoc-gen-openapiv2/options/annotations.proto";
9
-
10
- // SignalService defines an RPC Service that may create, update, and retrieve signal(s).
11
- service SignalService {
12
- // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`.
13
- rpc GetOrCreateSignal (flyteidl.admin.SignalGetOrCreateRequest) returns (flyteidl.admin.Signal) {
14
- // Purposefully left out an HTTP API for this RPC call. This is meant to idempotently retrieve
15
- // a signal, meaning the first call will create the signal and all subsequent calls will
16
- // fetch the existing signal. This is only useful during Flyte Workflow execution and therefore
17
- // is not exposed to mitigate unintended behavior.
18
- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
19
- description: "Retrieve a signal, creating it if it does not exist."
20
- };
21
- }
22
-
23
- // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions.
24
- rpc ListSignals (flyteidl.admin.SignalListRequest) returns (flyteidl.admin.SignalList) {
25
- option (google.api.http) = {
26
- get: "/api/v1/signals/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}"
27
- };
28
- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
29
- description: "Fetch existing signal definitions matching the input signal id filters."
30
- };
31
- }
32
-
33
- // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition
34
- rpc SetSignal (flyteidl.admin.SignalSetRequest) returns (flyteidl.admin.SignalSetResponse) {
35
- option (google.api.http) = {
36
- post: "/api/v1/signals"
37
- body: "*"
38
- };
39
- option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
40
- description: "Set a signal value."
41
- responses: {
42
- key: "400"
43
- value: {
44
- description: "Returned for bad request that may have failed validation."
45
- }
46
- }
47
- responses: {
48
- key: "409"
49
- value: {
50
- description: "Returned for a request that references an identical entity that has already been registered."
51
- }
52
- }
53
- };
54
- }
55
- }