From 69ef9957f77b4b7d8eea7a02fd0a27fb71c79cb7 Mon Sep 17 00:00:00 2001 From: Yee Hing Tong Date: Thu, 22 Feb 2024 13:23:31 -0800 Subject: [PATCH] remove connect go for now (#91) Signed-off-by: Yee Hing Tong --- flyteidl/buf.gen.yaml | 5 - flyteidl/clients/go/assets/admin.swagger.json | 9989 ++++++----------- .../artifactsconnect/artifacts.connect.go | 442 - .../datacatalogconnect/datacatalog.connect.go | 426 - .../service/serviceconnect/admin.connect.go | 1818 --- .../service/serviceconnect/agent.connect.go | 362 - .../service/serviceconnect/auth.connect.go | 150 - .../serviceconnect/dataproxy.connect.go | 215 - .../external_plugin_service.connect.go | 198 - .../serviceconnect/identity.connect.go | 115 - .../service/serviceconnect/signal.connect.go | 179 - 11 files changed, 3145 insertions(+), 10754 deletions(-) delete mode 100644 flyteidl/gen/pb-go/flyteidl/artifacts/artifactsconnect/artifacts.connect.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalogconnect/datacatalog.connect.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/serviceconnect/admin.connect.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/serviceconnect/agent.connect.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/serviceconnect/auth.connect.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/serviceconnect/dataproxy.connect.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/serviceconnect/external_plugin_service.connect.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/serviceconnect/identity.connect.go delete mode 100644 flyteidl/gen/pb-go/flyteidl/service/serviceconnect/signal.connect.go diff --git a/flyteidl/buf.gen.yaml b/flyteidl/buf.gen.yaml index e5ccdfac34..8bea491bf4 100644 --- a/flyteidl/buf.gen.yaml +++ b/flyteidl/buf.gen.yaml @@ -37,8 +37,3 @@ plugins: - plugin: buf.build/connectrpc/es:v1.3.0 out: gen/pb-es opt: target=ts - - plugin: buf.build/connectrpc/go - out: gen/pb-go - opt: - - paths=import - - module=github.com/flyteorg/flyte/flyteidl/gen/pb-go diff --git a/flyteidl/clients/go/assets/admin.swagger.json b/flyteidl/clients/go/assets/admin.swagger.json index 2a291b43c5..67a741a2e8 100644 --- a/flyteidl/clients/go/assets/admin.swagger.json +++ b/flyteidl/clients/go/assets/admin.swagger.json @@ -16,144 +16,6 @@ "application/json" ], "paths": { -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/active_launch_plans/org/{id.org}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`.", - "description": "Retrieve the active launch plan version specified by input request filters.", - "operationId": "AdminService_GetActiveLaunchPlan2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlan" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/active_launch_plans/org/{org}/{project}/{domain}": { - "get": { - "summary": "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`.", - "description": "Fetch the active launch plan versions specified by input request filters.", - "operationId": "AdminService_ListActiveLaunchPlans2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json "/api/v1/active_launch_plans/{id.project}/{id.domain}/{id.name}": { "get": { "summary": "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`.", @@ -289,11 +151,10 @@ ] } }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/children/org/{task_execution_id.node_execution_id.execution_id.org}/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { + "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { "get": { "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "AdminService_ListNodeExecutionsForTask2", + "operationId": "AdminService_ListNodeExecutionsForTask", "responses": { "200": { "description": "A successful response.", @@ -309,13 +170,6 @@ } }, "parameters": [ - { - "name": "task_execution_id.node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, { "name": "task_execution_id.node_execution_id.execution_id.project", "description": "Name of the project the resource belongs to.", @@ -400,6 +254,13 @@ "required": false, "type": "string" }, + { + "name": "task_execution_id.node_execution_id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, { "name": "limit", "description": "Indicates the number of resources to be returned.\n+required", @@ -447,17 +308,15 @@ ] } }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/children/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { + "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "AdminService_ListNodeExecutionsForTask", + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_GetExecutionData", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminNodeExecutionList" + "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" } }, "default": { @@ -469,153 +328,109 @@ }, "parameters": [ { - "name": "task_execution_id.node_execution_id.execution_id.project", + "name": "id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "task_execution_id.node_execution_id.execution_id.domain", + "name": "id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "task_execution_id.node_execution_id.execution_id.name", + "name": "id.name", "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "task_execution_id.node_execution_id.node_id", - "in": "path", - "required": true, + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "get": { + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "AdminService_GetNodeExecutionData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNodeExecutionGetDataResponse" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { - "name": "task_execution_id.task_id.project", + "name": "id.execution_id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "task_execution_id.task_id.domain", + "name": "id.execution_id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "task_execution_id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.version", - "description": "Specific version of the resource.", + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "task_execution_id.retry_attempt", + "name": "id.node_id", "in": "path", "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "task_execution_id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "task_execution_id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, "type": "string" }, { - "name": "task_execution_id.node_execution_id.execution_id.org", + "name": "id.execution_id.org", "description": "Optional, org key applied to the resource.", "in": "query", "required": false, "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/data/executions/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_GetExecutionData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" - } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "get": { + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`.", + "description": "Retrieve input and output data from an existing task execution.", + "operationId": "AdminService_GetTaskExecutionData", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminTaskExecutionGetDataResponse" + } }, "default": { "description": "An unexpected error response.", @@ -626,87 +441,91 @@ }, "parameters": [ { - "name": "id.project", + "name": "id.node_execution_id.execution_id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", + "name": "id.node_execution_id.execution_id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", + "name": "id.node_execution_id.execution_id.name", "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, + "name": "id.node_execution_id.node_id", + "in": "path", + "required": true, "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/data/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "AdminService_GetNodeExecutionData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionGetDataResponse" - } }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ { - "name": "id.execution_id.project", + "name": "id.task_id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.execution_id.domain", + "name": "id.task_id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", + "name": "id.task_id.name", + "description": "User provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_id", + "name": "id.task_id.version", + "description": "Specific version of the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.execution_id.org", + "name": "id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "id.task_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.org", "description": "Optional, org key applied to the resource.", "in": "query", "required": false, @@ -718,16 +537,16 @@ ] } }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/data/org/{id.execution_id.org}/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}": { "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "AdminService_GetNodeExecutionData2", + "summary": "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object.", + "description": "Retrieve an existing description entity description.", + "operationId": "AdminService_GetDescriptionEntity", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminNodeExecutionGetDataResponse" + "$ref": "#/definitions/adminDescriptionEntity" } }, "default": { @@ -739,38 +558,53 @@ }, "parameters": [ { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", "in": "path", "required": true, - "type": "string" + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] }, { - "name": "id.execution_id.project", + "name": "id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.execution_id.domain", + "name": "id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", + "name": "id.name", + "description": "User provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_id", + "name": "id.version", + "description": "Specific version of the resource.", "in": "path", "required": true, "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -778,16 +612,16 @@ ] } }, - "/api/v1/data/org/{id.node_execution_id.execution_id.org}/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}": { "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`.", - "description": "Retrieve input and output data from an existing task execution.", - "operationId": "AdminService_GetTaskExecutionData2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", + "description": "Fetch existing description entity definitions matching input filters.", + "operationId": "AdminService_ListDescriptionEntities3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskExecutionGetDataResponse" + "$ref": "#/definitions/adminDescriptionEntityList" } }, "default": { @@ -799,95 +633,87 @@ }, "parameters": [ { - "name": "id.node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", + "name": "resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", "in": "path", "required": true, - "type": "string" + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] }, { - "name": "id.node_execution_id.execution_id.project", + "name": "id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_execution_id.execution_id.domain", + "name": "id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.node_execution_id.node_id", - "in": "path", - "required": true, + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" }, { - "name": "id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" + "DESCENDING", + "ASCENDING" ], - "default": "UNSPECIFIED" - }, - { - "name": "id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" + "default": "DESCENDING" } ], "tags": [ @@ -895,15 +721,16 @@ ] } }, - "/api/v1/data/org/{id.org}/executions/{id.project}/{id.domain}/{id.name}": { + "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_GetExecutionData2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", + "description": "Fetch existing description entity definitions matching input filters.", + "operationId": "AdminService_ListDescriptionEntities", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" + "$ref": "#/definitions/adminDescriptionEntityList" } }, "default": { @@ -915,11 +742,18 @@ }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", "in": "path", "required": true, - "type": "string" + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] }, { "name": "id.project", @@ -937,129 +771,58 @@ }, { "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/data/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`.", - "description": "Retrieve input and output data from an existing task execution.", - "operationId": "AdminService_GetTaskExecutionData", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionGetDataResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.name", - "description": "User provided value for the resource.", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", "in": "path", "required": true, "type": "string" }, { - "name": "id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.retry_attempt", - "in": "path", - "required": true, + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, "type": "integer", "format": "int64" }, { - "name": "id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" + "type": "string" }, { - "name": "id.task_id.org", - "description": "Optional, org key applied to the resource.", + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", "in": "query", "required": false, "type": "string" }, { - "name": "id.node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" } ], "tags": [ @@ -1067,17 +830,16 @@ ] } }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/description_entities/org/{id.org}/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object.", - "description": "Retrieve an existing description entity description.", - "operationId": "AdminService_GetDescriptionEntity2", + "/api/v1/events/nodes": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred.", + "description": "Create a node execution event recording a phase transition.", + "operationId": "AdminService_CreateNodeEvent", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminDescriptionEntity" + "$ref": "#/definitions/adminNodeExecutionEventResponse" } }, "default": { @@ -1089,53 +851,13 @@ }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", + "name": "body", + "description": "Request to send a notification that a node execution event has occurred.", + "in": "body", "required": true, - "type": "string" + "schema": { + "$ref": "#/definitions/adminNodeExecutionEventRequest" + } } ], "tags": [ @@ -1143,16 +865,16 @@ ] } }, - "/api/v1/description_entities/org/{id.org}/{resource_type}/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "description": "Fetch existing description entity definitions matching input filters.", - "operationId": "AdminService_ListDescriptionEntities4", + "/api/v1/events/tasks": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred.", + "description": "Create a task execution event recording a phase transition.", + "operationId": "AdminService_CreateTaskEvent", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" + "$ref": "#/definitions/adminTaskExecutionEventResponse" } }, "default": { @@ -1164,87 +886,83 @@ }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", + "name": "body", + "description": "Request to send a notification that a task execution event has occurred.", + "in": "body", "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] + "schema": { + "$ref": "#/definitions/adminTaskExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/events/workflows": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.", + "description": "Create a workflow execution event recording a phase transition.", + "operationId": "AdminService_CreateWorkflowEvent", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionEventResponse" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", + "name": "body", + "description": "Request to send a notification that a workflow execution event has occurred.", + "in": "body", "required": true, - "type": "string" + "schema": { + "$ref": "#/definitions/adminWorkflowExecutionEventRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions": { + "post": { + "summary": "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`", + "description": "Create a workflow execution.", + "operationId": "AdminService_CreateExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", + "name": "body", + "description": "Request to launch an execution with the given project, domain and optionally-assigned name.", + "in": "body", "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" + "schema": { + "$ref": "#/definitions/adminExecutionCreateRequest" + } } ], "tags": [ @@ -1252,16 +970,16 @@ ] } }, - "/api/v1/description_entities/org/{id.org}/{resource_type}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "description": "Fetch existing description entity definitions matching input filters.", - "operationId": "AdminService_ListDescriptionEntities2", + "/api/v1/executions/recover": { + "post": { + "summary": "Recreates a previously-run workflow execution that will only start executing from the last known failure point.\nIn Recover mode, users cannot change any input parameters or update the version of the execution.\nThis is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures,\ndownstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\nSee :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details.", + "description": "Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.", + "operationId": "AdminService_RecoverExecution", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" + "$ref": "#/definitions/adminExecutionCreateResponse" } }, "default": { @@ -1273,26 +991,74 @@ }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", + "name": "body", + "description": "Request to recover the referenced execution.", + "in": "body", "required": true, - "type": "string" + "schema": { + "$ref": "#/definitions/adminExecutionRecoverRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/relaunch": { + "post": { + "summary": "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`", + "description": "Relaunch a workflow execution.", + "operationId": "AdminService_RelaunchExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionCreateResponse" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", + "name": "body", + "description": "Request to relaunch the referenced execution.", + "in": "body", "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] + "schema": { + "$ref": "#/definitions/adminExecutionRelaunchRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/executions/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_ListExecutions", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionList" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { "name": "id.project", "description": "Name of the project the resource belongs to.", @@ -1310,8 +1076,15 @@ { "name": "id.name", "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, "type": "string" }, { @@ -1324,7 +1097,7 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" @@ -1361,18 +1134,16 @@ ] } }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/description_entities/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}": { + "/api/v1/executions/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object.", - "description": "Retrieve an existing description entity description.", - "operationId": "AdminService_GetDescriptionEntity", + "summary": "Fetches a :ref:`ref_flyteidl.admin.Execution`.", + "description": "Retrieve an existing workflow execution.", + "operationId": "AdminService_GetExecution", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminDescriptionEntity" + "$ref": "#/definitions/adminExecution" } }, "default": { @@ -1384,22 +1155,8 @@ }, "parameters": [ { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" @@ -1413,14 +1170,7 @@ }, { "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", + "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" @@ -1436,18 +1186,15 @@ "tags": [ "AdminService" ] - } - }, - "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "description": "Fetch existing description entity definitions matching input filters.", - "operationId": "AdminService_ListDescriptionEntities3", + }, + "delete": { + "summary": "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_TerminateExecution", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" + "$ref": "#/definitions/adminExecutionTerminateResponse" } }, "default": { @@ -1459,19 +1206,57 @@ }, "parameters": [ { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceTerminateExecutionBody" + } + } + ], + "tags": [ + "AdminService" + ] + }, + "put": { + "summary": "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_UpdateExecution", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminExecutionUpdateResponse" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { "name": "id.project", "description": "Name of the project the resource belongs to.", @@ -1488,16 +1273,57 @@ }, { "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, "type": "string" }, { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateExecutionBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plan_ids/{project}/{domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects.", + "description": "Fetch existing launch plan definition identifiers matching input filters.", + "operationId": "AdminService_ListLaunchPlanIds", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "in": "path", + "required": true, "type": "string" }, { @@ -1515,13 +1341,6 @@ "required": false, "type": "string" }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, { "name": "sort_by.key", "description": "Indicates an attribute to sort the response values.\n+required", @@ -1540,6 +1359,20 @@ "ASCENDING" ], "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -1547,18 +1380,26 @@ ] } }, - "/api/v1/description_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "description": "Fetch existing description entity definitions matching input filters.", - "operationId": "AdminService_ListDescriptionEntities", + "/api/v1/launch_plans": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition", + "description": "Create and register a launch plan definition.", + "operationId": "AdminService_CreateLaunchPlan", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" + "$ref": "#/definitions/adminLaunchPlanCreateResponse" } }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + }, "default": { "description": "An unexpected error response.", "schema": { @@ -1568,19 +1409,40 @@ }, "parameters": [ { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", + "name": "body", + "description": "Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required\nto launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan.", + "in": "body", "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] + "schema": { + "$ref": "#/definitions/adminLaunchPlanCreateRequest" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/launch_plans/{id.project}/{id.domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", + "description": "Fetch existing launch plan definitions matching input filters.", + "operationId": "AdminService_ListLaunchPlans3", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { "name": "id.project", "description": "Name of the project the resource belongs to.", @@ -1598,8 +1460,8 @@ { "name": "id.name", "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, + "in": "query", + "required": false, "type": "string" }, { @@ -1619,7 +1481,7 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" @@ -1656,3674 +1518,26 @@ ] } }, - "/api/v1/events/nodes": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred.", - "description": "Create a node execution event recording a phase transition.", - "operationId": "AdminService_CreateNodeEvent", + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", + "description": "Fetch existing launch plan definitions matching input filters.", + "operationId": "AdminService_ListLaunchPlans", "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionEventResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to send a notification that a node execution event has occurred.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminNodeExecutionEventRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/events/org/{event.execution_id.org}/workflows": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.", - "description": "Create a workflow execution event recording a phase transition.", - "operationId": "AdminService_CreateWorkflowEvent2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionEventResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "event.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceCreateWorkflowEventBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/events/org/{event.id.execution_id.org}/nodes": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred.", - "description": "Create a node execution event recording a phase transition.", - "operationId": "AdminService_CreateNodeEvent2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionEventResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "event.id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceCreateNodeEventBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/events/org/{event.parent_node_execution_id.execution_id.org}/tasks": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred.", - "description": "Create a task execution event recording a phase transition.", - "operationId": "AdminService_CreateTaskEvent2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionEventResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "event.parent_node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceCreateTaskEventBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/events/tasks": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred.", - "description": "Create a task execution event recording a phase transition.", - "operationId": "AdminService_CreateTaskEvent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionEventResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to send a notification that a task execution event has occurred.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminTaskExecutionEventRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/events/workflows": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.", - "description": "Create a workflow execution event recording a phase transition.", - "operationId": "AdminService_CreateWorkflowEvent", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionEventResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to send a notification that a workflow execution event has occurred.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionEventRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions": { - "post": { - "summary": "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`", - "description": "Create a workflow execution.", - "operationId": "AdminService_CreateExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to launch an execution with the given project, domain and optionally-assigned name.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/executions/org/{id.org}/recover": { - "post": { - "summary": "Recreates a previously-run workflow execution that will only start executing from the last known failure point.\nIn Recover mode, users cannot change any input parameters or update the version of the execution.\nThis is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures,\ndownstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\nSee :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details.", - "description": "Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.", - "operationId": "AdminService_RecoverExecution2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceRecoverExecutionBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/org/{id.org}/relaunch": { - "post": { - "summary": "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`", - "description": "Relaunch a workflow execution.", - "operationId": "AdminService_RelaunchExecution2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceRelaunchExecutionBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/org/{id.org}/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_ListExecutions2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/org/{id.org}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.Execution`.", - "description": "Retrieve an existing workflow execution.", - "operationId": "AdminService_GetExecution2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecution" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_TerminateExecution2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionTerminateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceTerminateExecutionBody" - } - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_UpdateExecution2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateExecutionBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/org/{org}": { - "put": { - "summary": "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`", - "description": "Create a workflow execution.", - "operationId": "AdminService_CreateExecution2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceCreateExecutionBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/executions/recover": { - "post": { - "summary": "Recreates a previously-run workflow execution that will only start executing from the last known failure point.\nIn Recover mode, users cannot change any input parameters or update the version of the execution.\nThis is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures,\ndownstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\nSee :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details.", - "description": "Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.", - "operationId": "AdminService_RecoverExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to recover the referenced execution.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionRecoverRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/relaunch": { - "post": { - "summary": "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`", - "description": "Relaunch a workflow execution.", - "operationId": "AdminService_RelaunchExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to relaunch the referenced execution.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionRelaunchRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_ListExecutions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/executions/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.Execution`.", - "description": "Retrieve an existing workflow execution.", - "operationId": "AdminService_GetExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecution" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_TerminateExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionTerminateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceTerminateExecutionBody" - } - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "AdminService_UpdateExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminExecutionUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateExecutionBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/launch_plan_ids/org/{org}/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects.", - "description": "Fetch existing launch plan definition identifiers matching input filters.", - "operationId": "AdminService_ListLaunchPlanIds2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/launch_plan_ids/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects.", - "description": "Fetch existing launch plan definition identifiers matching input filters.", - "operationId": "AdminService_ListLaunchPlanIds", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition", - "description": "Create and register a launch plan definition.", - "operationId": "AdminService_CreateLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanCreateResponse" - } - }, - "400": { - "description": "Returned for bad request that may have failed validation.", - "schema": {} - }, - "409": { - "description": "Returned for a request that references an identical entity that has already been registered.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "body", - "description": "Request to register a launch plan. The included LaunchPlanSpec may have a complete or incomplete set of inputs required\nto launch a workflow execution. By default all launch plans are registered in state INACTIVE. If you wish to\nset the state to ACTIVE, you must submit a LaunchPlanUpdateRequest, after you have successfully created a launch plan.", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminLaunchPlanCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/launch_plans/org/{id.org}": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition", - "description": "Create and register a launch plan definition.", - "operationId": "AdminService_CreateLaunchPlan2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanCreateResponse" - } - }, - "400": { - "description": "Returned for bad request that may have failed validation.", - "schema": {} - }, - "409": { - "description": "Returned for a request that references an identical entity that has already been registered.", - "schema": {} - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceCreateLaunchPlanBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/org/{id.org}/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "description": "Fetch existing launch plan definitions matching input filters.", - "operationId": "AdminService_ListLaunchPlans4", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/org/{id.org}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "description": "Fetch existing launch plan definitions matching input filters.", - "operationId": "AdminService_ListLaunchPlans2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/org/{id.org}/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition.", - "description": "Retrieve an existing launch plan definition.", - "operationId": "AdminService_GetLaunchPlan2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlan" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`.", - "description": "Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.", - "operationId": "AdminService_UpdateLaunchPlan2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "state", - "description": "Desired state to apply to the launch plan.\n+required.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "INACTIVE", - "ACTIVE" - ], - "default": "INACTIVE" - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/launch_plans/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "description": "Fetch existing launch plan definitions matching input filters.", - "operationId": "AdminService_ListLaunchPlans3", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "description": "Fetch existing launch plan definitions matching input filters.", - "operationId": "AdminService_ListLaunchPlans", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition.", - "description": "Retrieve an existing launch plan definition.", - "operationId": "AdminService_GetLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlan" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`.", - "description": "Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.", - "operationId": "AdminService_UpdateLaunchPlan", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateLaunchPlanBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/matchable_attributes": { - "get": { - "summary": "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type.", - "description": "Retrieve a list of MatchableAttributesConfiguration objects.", - "operationId": "AdminService_ListMatchableAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminListMatchableAttributesResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - }, - { - "name": "org", - "description": "Optional, org filter applied to list project requests.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/matchable_attributes/org/{org}": { - "get": { - "summary": "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type.", - "description": "Retrieve a list of MatchableAttributesConfiguration objects.", - "operationId": "AdminService_ListMatchableAttributes2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminListMatchableAttributesResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org filter applied to list project requests.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/metrics/executions/org/{id.org}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`.", - "description": "Retrieve metrics from an existing workflow execution.", - "operationId": "AdminService_GetExecutionMetrics2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetMetricsResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "depth", - "description": "depth defines the number of Flyte entity levels to traverse when breaking down execution details.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`.", - "description": "Retrieve metrics from an existing workflow execution.", - "operationId": "AdminService_GetExecutionMetrics", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetMetricsResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "depth", - "description": "depth defines the number of Flyte entity levels to traverse when breaking down execution details.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "AdminService" - ] - } - }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/named_entities/org/{id.org}/{resource_type}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "description": "Retrieve a NamedEntity object.", - "operationId": "AdminService_GetNamedEntity2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntity" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "description": "Update the fields associated with a NamedEntity", - "operationId": "AdminService_UpdateNamedEntity2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Resource type of the metadata to update\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateNamedEntityBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/named_entities/org/{org}/{resource_type}/{project}/{domain}": { - "get": { - "summary": "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects.", - "description": "Retrieve a list of NamedEntity objects sharing a common resource type, project, and domain.", - "operationId": "AdminService_ListNamedEntities2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "description": "Retrieve a NamedEntity object.", - "operationId": "AdminService_GetNamedEntity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntity" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "put": { - "summary": "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "description": "Update the fields associated with a NamedEntity", - "operationId": "AdminService_UpdateNamedEntity", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Resource type of the metadata to update\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateNamedEntityBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/named_entities/{resource_type}/{project}/{domain}": { - "get": { - "summary": "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects.", - "description": "Retrieve a list of NamedEntity objects sharing a common resource type, project, and domain.", - "operationId": "AdminService_ListNamedEntities", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "resource_type", - "description": "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.\n+required", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/node_executions/org/{id.execution_id.org}/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "AdminService_GetNodeExecution2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/flyteidladminNodeExecution" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/node_executions/org/{id.execution_id.org}/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`.", - "operationId": "AdminService_GetDynamicNodeWorkflow2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDynamicNodeWorkflowResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/node_executions/org/{workflow_execution_id.org}/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "AdminService_ListNodeExecutions2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "workflow_execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "unique_parent_id", - "description": "Unique identifier of the parent node in the execution\n+optional", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "AdminService_GetNodeExecution", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/flyteidladminNodeExecution" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`.", - "operationId": "AdminService_GetDynamicNodeWorkflow", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDynamicNodeWorkflowResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "AdminService_ListNodeExecutions", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionList" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "workflow_execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "workflow_execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "unique_parent_id", - "description": "Unique identifier of the parent node in the execution\n+optional", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/active_launch_plans/{id.org}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`.", - "operationId": "GetActiveLaunchPlan2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlan" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/active_launch_plans/{org}/{project}/{domain}": { - "get": { - "summary": "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`.", - "operationId": "ListActiveLaunchPlans2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/children/{task_execution_id.node_execution_id.execution_id.org}/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "ListNodeExecutionsForTask2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionList" - } - } - }, - "parameters": [ - { - "name": "task_execution_id.node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "task_execution_id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "task_execution_id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "task_execution_id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/data/executions/{id.org}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "GetExecutionData2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/data/node_executions/{id.execution_id.org}/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "GetNodeExecutionData2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionGetDataResponse" - } - } - }, - "parameters": [ - { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/data/task_executions/{id.node_execution_id.execution_id.org}/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { - "get": { - "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "GetTaskExecutionData2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminTaskExecutionGetDataResponse" - } - } - }, - "parameters": [ - { - "name": "id.node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/description_entities/{id.org}/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object.", - "operationId": "GetDescriptionEntity2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDescriptionEntity" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/description_entities/{id.org}/{resource_type}/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "operationId": "ListDescriptionEntities4", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanList" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { "name": "id.project", "description": "Name of the project the resource belongs to.", @@ -5340,14 +1554,21 @@ }, { "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", "in": "query", "required": false, "type": "string" }, { "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", + "description": "Indicates the number of resources to be returned.\n+required", "in": "query", "required": false, "type": "integer", @@ -5355,28 +1576,28 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -5392,40 +1613,26 @@ ] } }, - "/api/v1/org/description_entities/{id.org}/{resource_type}/{id.project}/{id.domain}/{id.name}": { + "/api/v1/launch_plans/{id.project}/{id.domain}/{id.name}/{id.version}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", - "operationId": "ListDescriptionEntities2", + "summary": "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition.", + "description": "Retrieve an existing launch plan definition.", + "operationId": "AdminService_GetLaunchPlan", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminDescriptionEntityList" + "$ref": "#/definitions/adminLaunchPlan" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.", - "in": "path", - "required": true, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ] - }, { "name": "id.project", "description": "Name of the project the resource belongs to.", @@ -5442,74 +1649,88 @@ }, { "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "description": "User provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, "type": "string" }, { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", "in": "query", "required": false, - "type": "string" + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" }, { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "name": "id.org", + "description": "Optional, org key applied to the resource.", "in": "query", "required": false, "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" } ], "tags": [ "AdminService" ] - } - }, - "/api/v1/org/events/{event.execution_id.org}/workflows": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.", - "operationId": "CreateWorkflowEvent2", + }, + "put": { + "summary": "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`.", + "description": "Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.", + "operationId": "AdminService_UpdateLaunchPlan", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowExecutionEventResponse" + "$ref": "#/definitions/adminLaunchPlanUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "event.execution_id.org", - "description": "Optional, org key applied to the resource.", + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", "in": "path", "required": true, "type": "string" @@ -5519,7 +1740,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/adminWorkflowExecutionEventRequest" + "$ref": "#/definitions/AdminServiceUpdateLaunchPlanBody" } } ], @@ -5528,33 +1749,50 @@ ] } }, - "/api/v1/org/events/{event.id.execution_id.org}/nodes": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred.", - "operationId": "CreateNodeEvent2", + "/api/v1/matchable_attributes": { + "get": { + "summary": "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type.", + "description": "Retrieve a list of MatchableAttributesConfiguration objects.", + "operationId": "AdminService_ListMatchableAttributes", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminNodeExecutionEventResponse" + "$ref": "#/definitions/adminListMatchableAttributesResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "event.id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" + "name": "resource_type", + "description": "+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" }, { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminNodeExecutionEventRequest" - } + "name": "org", + "description": "Optional, org filter applied to list project requests.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -5562,33 +1800,61 @@ ] } }, - "/api/v1/org/events/{event.parent_node_execution_id.execution_id.org}/tasks": { - "post": { - "summary": "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred.", - "operationId": "CreateTaskEvent2", + "/api/v1/metrics/executions/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`.", + "description": "Retrieve metrics from an existing workflow execution.", + "operationId": "AdminService_GetExecutionMetrics", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskExecutionEventResponse" + "$ref": "#/definitions/adminWorkflowExecutionGetMetricsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "event.parent_node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/adminTaskExecutionEventRequest" - } + "type": "string" + }, + { + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "depth", + "description": "depth defines the number of Flyte entity levels to traverse when breaking down execution details.", + "in": "query", + "required": false, + "type": "integer", + "format": "int32" } ], "tags": [ @@ -5596,56 +1862,123 @@ ] } }, - "/api/v1/org/executions/{id.org}/recover": { - "post": { - "summary": "Recreates a previously-run workflow execution that will only start executing from the last known failure point.\nIn Recover mode, users cannot change any input parameters or update the version of the execution.\nThis is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures,\ndownstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\nSee :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details.", - "operationId": "RecoverExecution2", + "/api/v1/named_entities/{resource_type}/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object.", + "description": "Retrieve a NamedEntity object.", + "operationId": "AdminService_GetNamedEntity", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" + "$ref": "#/definitions/adminNamedEntity" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "resource_type", + "description": "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionRecoverRequest" - } + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ "AdminService" ] - } - }, - "/api/v1/org/executions/{id.org}/relaunch": { - "post": { - "summary": "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`", - "operationId": "RelaunchExecution2", + }, + "put": { + "summary": "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object.", + "description": "Update the fields associated with a NamedEntity", + "operationId": "AdminService_UpdateNamedEntity", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" + "$ref": "#/definitions/adminNamedEntityUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "resource_type", + "description": "Resource type of the metadata to update\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", "in": "path", "required": true, "type": "string" @@ -5655,7 +1988,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/adminExecutionRelaunchRequest" + "$ref": "#/definitions/AdminServiceUpdateNamedEntityBody" } } ], @@ -5664,50 +1997,57 @@ ] } }, - "/api/v1/org/executions/{id.org}/{id.project}/{id.domain}": { + "/api/v1/named_entities/{resource_type}/{project}/{domain}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "ListExecutions2", + "summary": "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects.", + "description": "Retrieve a list of NamedEntity objects sharing a common resource type, project, and domain.", + "operationId": "AdminService_ListNamedEntities", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminExecutionList" + "$ref": "#/definitions/adminNamedEntityList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "resource_type", + "description": "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.\n+required", "in": "path", "required": true, - "type": "string" + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] }, { - "name": "id.project", - "description": "Name of the project the resource belongs to.", + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.", "in": "path", "required": true, "type": "string" }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", - "in": "query", - "required": false, - "type": "string" - }, { "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", + "description": "Indicates the number of resources to be returned.", "in": "query", "required": false, "type": "integer", @@ -5715,28 +2055,21 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -5745,6 +2078,20 @@ "ASCENDING" ], "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -5752,113 +2099,240 @@ ] } }, - "/api/v1/org/executions/{id.org}/{id.project}/{id.domain}/{id.name}": { + "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "GetExecution2", + "summary": "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "AdminService_GetNodeExecution", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminExecution" + "$ref": "#/definitions/flyteidladminNodeExecution" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.project", + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/node_executions/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`.", + "operationId": "AdminService_GetDynamicNodeWorkflow", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminDynamicNodeWorkflowResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.execution_id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", + "name": "id.execution_id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", + "name": "id.execution_id.name", "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ "AdminService" ] - }, - "delete": { - "summary": "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "TerminateExecution2", + } + }, + "/api/v1/node_executions/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "AdminService_ListNodeExecutions", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminExecutionTerminateResponse" + "$ref": "#/definitions/adminNodeExecutionList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", + "name": "workflow_execution_id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", + "name": "workflow_execution_id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", + "name": "workflow_execution_id.name", "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionTerminateRequest" - } + "name": "workflow_execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "unique_parent_id", + "description": "Unique identifier of the parent node in the execution\n+optional", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ "AdminService" ] - }, - "put": { - "summary": "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "UpdateExecution2", + } + }, + "/api/v1/org/active_launch_plans/{id.org}/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`.", + "description": "Retrieve the active launch plan version specified by input request filters.", + "operationId": "AdminService_GetActiveLaunchPlan2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminExecutionUpdateResponse" + "$ref": "#/definitions/adminLaunchPlan" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -5886,18 +2360,10 @@ }, { "name": "id.name", - "description": "User or system provided value for the resource.", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", "in": "path", "required": true, "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionUpdateRequest" - } } ], "tags": [ @@ -5905,49 +2371,22 @@ ] } }, - "/api/v1/org/executions/{org}": { - "post": { - "summary": "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`", - "operationId": "CreateExecution2", + "/api/v1/org/active_launch_plans/{org}/{project}/{domain}": { + "get": { + "summary": "List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`.", + "description": "Fetch the active launch plan versions specified by input request filters.", + "operationId": "AdminService_ListActiveLaunchPlans2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminExecutionCreateResponse" + "$ref": "#/definitions/adminLaunchPlanList" } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminExecutionCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/launch_plan_ids/{org}/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects.", - "operationId": "ListLaunchPlanIds2", - "responses": { - "200": { - "description": "A successful response.", + "default": { + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -5961,14 +2400,14 @@ }, { "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", + "description": "Name of the project that contains the identifiers.\n+required.", "in": "path", "required": true, "type": "string" }, { "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "description": "Name of the domain the identifiers belongs to within the project.\n+required.", "in": "path", "required": true, "type": "string" @@ -5983,21 +2422,21 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -6006,13 +2445,6 @@ "ASCENDING" ], "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional.", - "in": "query", - "required": false, - "type": "string" } ], "tags": [ @@ -6020,84 +2452,119 @@ ] } }, - "/api/v1/org/launch_plans/{id.org}": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition", - "operationId": "CreateLaunchPlan2", + "/api/v1/org/children/{task_execution_id.node_execution_id.execution_id.org}/task_executions/{task_execution_id.node_execution_id.execution_id.project}/{task_execution_id.node_execution_id.execution_id.domain}/{task_execution_id.node_execution_id.execution_id.name}/{task_execution_id.node_execution_id.node_id}/{task_execution_id.task_id.project}/{task_execution_id.task_id.domain}/{task_execution_id.task_id.name}/{task_execution_id.task_id.version}/{task_execution_id.retry_attempt}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`.", + "operationId": "AdminService_ListNodeExecutionsForTask2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminLaunchPlanCreateResponse" + "$ref": "#/definitions/adminNodeExecutionList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", + "name": "task_execution_id.node_execution_id.execution_id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "task_execution_id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/adminLaunchPlanCreateRequest" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/launch_plans/{id.org}/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "operationId": "ListLaunchPlans4", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminLaunchPlanList" - } - } - }, - "parameters": [ + "type": "string" + }, { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "task_execution_id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.project", + "name": "task_execution_id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "name": "task_execution_id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "task_execution_id.retry_attempt", "in": "path", "required": true, - "type": "string" + "type": "integer", + "format": "int64" }, { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", + "name": "task_execution_id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "task_execution_id.task_id.org", + "description": "Optional, org key applied to the resource.", "in": "query", "required": false, "type": "string" }, { "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", + "description": "Indicates the number of resources to be returned.\n+required", "in": "query", "required": false, "type": "integer", @@ -6105,28 +2572,28 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "description": "In the case of multiple pages of results, the, server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -6142,15 +2609,21 @@ ] } }, - "/api/v1/org/launch_plans/{id.org}/{id.project}/{id.domain}/{id.name}": { + "/api/v1/org/data/executions/{id.org}/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", - "operationId": "ListLaunchPlans2", + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_GetExecutionData2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminLaunchPlanList" + "$ref": "#/definitions/adminWorkflowExecutionGetDataResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -6178,51 +2651,10 @@ }, { "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" } ], "tags": [ @@ -6230,251 +2662,159 @@ ] } }, - "/api/v1/org/launch_plans/{id.org}/{id.project}/{id.domain}/{id.name}/{id.version}": { + "/api/v1/org/data/node_executions/{id.execution_id.org}/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition.", - "operationId": "GetLaunchPlan2", + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "AdminService_GetNodeExecutionData2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminLaunchPlan" + "$ref": "#/definitions/adminNodeExecutionGetDataResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", + "name": "id.execution_id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.project", + "name": "id.execution_id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", + "name": "id.execution_id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", - "description": "User provided value for the resource.", + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.version", - "description": "Specific version of the resource.", + "name": "id.node_id", "in": "path", "required": true, "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" } ], "tags": [ "AdminService" ] - }, - "put": { - "summary": "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`.", - "operationId": "UpdateLaunchPlan2", + } + }, + "/api/v1/org/data/task_executions/{id.node_execution_id.execution_id.org}/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "get": { + "summary": "Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`.", + "description": "Retrieve input and output data from an existing task execution.", + "operationId": "AdminService_GetTaskExecutionData2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminLaunchPlanUpdateResponse" + "$ref": "#/definitions/adminTaskExecutionGetDataResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", + "name": "id.node_execution_id.execution_id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.project", + "name": "id.node_execution_id.execution_id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", + "name": "id.node_execution_id.execution_id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/matchable_attributes/{org}": { - "get": { - "summary": "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type.", - "operationId": "ListMatchableAttributes2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminListMatchableAttributesResponse" - } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org filter applied to list project requests.", + "name": "id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "resource_type", - "description": "+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/metrics/executions/{id.org}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`.", - "operationId": "GetExecutionMetrics2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowExecutionGetMetricsResponse" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "id.node_execution_id.node_id", "in": "path", "required": true, "type": "string" }, { - "name": "id.project", + "name": "id.task_id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", + "name": "id.task_id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", - "description": "User or system provided value for the resource.", + "name": "id.task_id.name", + "description": "User provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "depth", - "description": "depth defines the number of Flyte entity levels to traverse when breaking down execution details.", - "in": "query", - "required": false, - "type": "integer", - "format": "int32" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/named_entities/{id.org}/{resource_type}/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "operationId": "GetNamedEntity2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntity" - } - } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "id.task_id.version", + "description": "Specific version of the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "resource_type", - "description": "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.\n+required", + "name": "id.retry_attempt", "in": "path", "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, "type": "string", "enum": [ "UNSPECIFIED", @@ -6482,42 +2822,38 @@ "WORKFLOW", "LAUNCH_PLAN", "DATASET" - ] - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" + ], + "default": "UNSPECIFIED" }, { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, + "name": "id.task_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, "type": "string" } ], "tags": [ "AdminService" ] - }, - "put": { - "summary": "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object.", - "operationId": "UpdateNamedEntity2", + } + }, + "/api/v1/org/description_entities/{id.org}/{id.resource_type}/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object.", + "description": "Retrieve an existing description entity description.", + "operationId": "AdminService_GetDescriptionEntity2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminNamedEntityUpdateResponse" + "$ref": "#/definitions/adminDescriptionEntity" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -6530,8 +2866,8 @@ "type": "string" }, { - "name": "resource_type", - "description": "Resource type of the metadata to update\n+required", + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", "in": "path", "required": true, "type": "string", @@ -6559,18 +2895,17 @@ }, { "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "description": "User provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/adminNamedEntityUpdateRequest" - } + "type": "string" } ], "tags": [ @@ -6578,21 +2913,28 @@ ] } }, - "/api/v1/org/named_entities/{org}/{resource_type}/{project}/{domain}": { + "/api/v1/org/description_entities/{id.org}/{resource_type}/{id.project}/{id.domain}": { "get": { - "summary": "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects.", - "operationId": "ListNamedEntities2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", + "description": "Fetch existing description entity definitions matching input filters.", + "operationId": "AdminService_ListDescriptionEntities4", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminNamedEntityList" + "$ref": "#/definitions/adminDescriptionEntityList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "org", + "name": "id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, @@ -6600,7 +2942,7 @@ }, { "name": "resource_type", - "description": "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.\n+required", + "description": "Identifies the specific type of resource that this identifier corresponds to.", "in": "path", "required": true, "type": "string", @@ -6613,22 +2955,29 @@ ] }, { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.", + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "query", + "required": false, + "type": "string" + }, { "name": "limit", - "description": "Indicates the number of resources to be returned.", + "description": "Indicates the number of resources to be returned.\n+required", "in": "query", "required": false, "type": "integer", @@ -6636,21 +2985,28 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -6659,13 +3015,6 @@ "ASCENDING" ], "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional.", - "in": "query", - "required": false, - "type": "string" } ], "tags": [ @@ -6673,156 +3022,71 @@ ] } }, - "/api/v1/org/node_executions/{id.execution_id.org}/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "/api/v1/org/description_entities/{id.org}/{resource_type}/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "GetNodeExecution2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions.", + "description": "Fetch existing description entity definitions matching input filters.", + "operationId": "AdminService_ListDescriptionEntities2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/flyteidladminNodeExecution" + "$ref": "#/definitions/adminDescriptionEntityList" } - } - }, - "parameters": [ - { - "name": "id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/node_executions/{id.execution_id.org}/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`.", - "operationId": "GetDynamicNodeWorkflow2", - "responses": { - "200": { - "description": "A successful response.", + "default": { + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/adminDynamicNodeWorkflowResponse" + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.execution_id.org", + "name": "id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_id", - "in": "path", - "required": true, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/node_executions/{workflow_execution_id.org}/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`.", - "operationId": "ListNodeExecutions2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNodeExecutionList" - } - } - }, - "parameters": [ - { - "name": "workflow_execution_id.org", - "description": "Optional, org key applied to the resource.", + "name": "resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.", "in": "path", "required": true, - "type": "string" + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] }, { - "name": "workflow_execution_id.project", + "name": "id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "workflow_execution_id.domain", + "name": "id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "workflow_execution_id.name", - "description": "User or system provided value for the resource.", + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", "in": "path", "required": true, "type": "string" }, { "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", + "description": "Indicates the number of resources to be returned.\n+required", "in": "query", "required": false, "type": "integer", @@ -6830,27 +3094,28 @@ }, { "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -6859,13 +3124,6 @@ "ASCENDING" ], "default": "DESCENDING" - }, - { - "name": "unique_parent_id", - "description": "Unique identifier of the parent node in the execution\n+optional.", - "in": "query", - "required": false, - "type": "string" } ], "tags": [ @@ -6873,29 +3131,29 @@ ] } }, - "/api/v1/org/project_domain_attributes/{attributes.org}/{attributes.project}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level", - "operationId": "UpdateProjectAttributes2", + "/api/v1/org/events/{event.execution_id.org}/workflows": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred.", + "description": "Create a workflow execution event recording a phase transition.", + "operationId": "AdminService_CreateWorkflowEvent2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectAttributesUpdateResponse" + "$ref": "#/definitions/adminWorkflowExecutionEventResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "attributes.org", - "description": "Optional, org key applied to the project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", + "name": "event.execution_id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" @@ -6905,7 +3163,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/adminProjectAttributesUpdateRequest" + "$ref": "#/definitions/AdminServiceCreateWorkflowEventBody" } } ], @@ -6914,36 +3172,29 @@ ] } }, - "/api/v1/org/project_domain_attributes/{attributes.org}/{attributes.project}/{attributes.domain}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "UpdateProjectDomainAttributes2", + "/api/v1/org/events/{event.id.execution_id.org}/nodes": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred.", + "description": "Create a node execution event recording a phase transition.", + "operationId": "AdminService_CreateNodeEvent2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesUpdateResponse" + "$ref": "#/definitions/adminNodeExecutionEventResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "attributes.org", - "description": "Optional, org key applied to the attributes.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.domain", - "description": "Unique domain id for which this set of attributes will be applied.", + "name": "event.id.execution_id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" @@ -6953,7 +3204,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesUpdateRequest" + "$ref": "#/definitions/AdminServiceCreateNodeEventBody" } } ], @@ -6962,78 +3213,29 @@ ] } }, - "/api/v1/org/project_domain_attributes/{org}/{project}": { - "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "GetProjectAttributes2", + "/api/v1/org/events/{event.parent_node_execution_id.execution_id.org}/tasks": { + "post": { + "summary": "Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred.", + "description": "Create a task execution event recording a phase transition.", + "operationId": "AdminService_CreateTaskEvent2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectAttributesGetResponse" + "$ref": "#/definitions/adminTaskExecutionEventResponse" } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" }, - { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "DeleteProjectAttributes2", - "responses": { - "200": { - "description": "A successful response.", + "default": { + "description": "An unexpected error response.", "schema": { - "$ref": "#/definitions/adminProjectAttributesDeleteResponse" + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "org", - "description": "Optional, org key applied to the project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", + "name": "event.parent_node_execution_id.execution_id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" @@ -7043,7 +3245,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/adminProjectAttributesDeleteRequest" + "$ref": "#/definitions/AdminServiceCreateTaskEventBody" } } ], @@ -7052,92 +3254,70 @@ ] } }, - "/api/v1/org/project_domain_attributes/{org}/{project}/{domain}": { - "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "GetProjectDomainAttributes2", + "/api/v1/org/executions/{id.org}/recover": { + "post": { + "summary": "Recreates a previously-run workflow execution that will only start executing from the last known failure point.\nIn Recover mode, users cannot change any input parameters or update the version of the execution.\nThis is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures,\ndownstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.\nSee :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details.", + "description": "Recreates a previously-run workflow execution that will only start executing from the last known failure point. In Recover mode, users cannot change any input parameters or update the version of the execution. This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again.", + "operationId": "AdminService_RecoverExecution2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesGetResponse" + "$ref": "#/definitions/adminExecutionCreateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "org", - "description": "Optional, org key applied to the attributes.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", + "name": "id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", + "name": "body", + "in": "body", "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" + "schema": { + "$ref": "#/definitions/AdminServiceRecoverExecutionBody" + } } ], "tags": [ "AdminService" ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "operationId": "DeleteProjectDomainAttributes2", + } + }, + "/api/v1/org/executions/{id.org}/relaunch": { + "post": { + "summary": "Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution`", + "description": "Relaunch a workflow execution.", + "operationId": "AdminService_RelaunchExecution2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesDeleteResponse" + "$ref": "#/definitions/adminExecutionCreateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "org", - "description": "Optional, org key applied to the attributes.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", + "name": "id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" @@ -7147,7 +3327,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesDeleteRequest" + "$ref": "#/definitions/AdminServiceRelaunchExecutionBody" } } ], @@ -7156,29 +3336,56 @@ ] } }, - "/api/v1/org/projects/{org}": { + "/api/v1/org/executions/{id.org}/{id.project}/{id.domain}": { "get": { - "summary": "Fetches a list of :ref:`ref_flyteidl.admin.Project`", - "operationId": "ListProjects2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_ListExecutions2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjects" + "$ref": "#/definitions/adminExecutionList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "org", - "description": "Optional, org filter applied to list project requests.", + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "query", + "required": false, + "type": "string" + }, { "name": "limit", - "description": "Indicates the number of projects to be returned.\n+required.", + "description": "Indicates the number of resources to be returned.\n+required", "in": "query", "required": false, "type": "integer", @@ -7186,28 +3393,28 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -7223,278 +3430,171 @@ ] } }, - "/api/v1/org/projects/{org}/{id}": { - "put": { - "summary": "Updates an existing :ref:`ref_flyteidl.admin.Project`\nflyteidl.admin.Project should be passed but the domains property should be empty;\nit will be ignored in the handler as domains cannot be updated via this API.", - "operationId": "UpdateProject2", + "/api/v1/org/executions/{id.org}/{id.project}/{id.domain}/{id.name}": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.Execution`.", + "description": "Retrieve an existing workflow execution.", + "operationId": "AdminService_GetExecution2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectUpdateResponse" + "$ref": "#/definitions/adminExecution" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "org", + "name": "id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id", - "description": "Globally unique project name.", + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminProject" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/projects/{project.org}": { - "post": { - "summary": "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment.", - "operationId": "RegisterProject2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectRegisterResponse" - } - } - }, - "parameters": [ - { - "name": "project.org", - "description": "Optional, org key applied to the resource.", + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "id.name", + "description": "User or system provided value for the resource.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/adminProjectRegisterRequest" - } + "type": "string" } ], "tags": [ "AdminService" ] - } - }, - "/api/v1/org/task_executions/{id.node_execution_id.execution_id.org}/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { - "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "GetTaskExecution2", + }, + "delete": { + "summary": "Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_TerminateExecution2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/flyteidladminTaskExecution" + "$ref": "#/definitions/adminExecutionTerminateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.node_execution_id.execution_id.org", + "name": "id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_execution_id.execution_id.project", + "name": "id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_execution_id.execution_id.domain", + "name": "id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_execution_id.execution_id.name", + "name": "id.name", "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_execution_id.node_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.retry_attempt", - "in": "path", + "name": "body", + "in": "body", "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" + "schema": { + "$ref": "#/definitions/AdminServiceTerminateExecutionBody" + } } ], "tags": [ "AdminService" ] - } - }, - "/api/v1/org/task_executions/{node_execution_id.execution_id.org}/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { - "get": { - "summary": "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`.", - "operationId": "ListTaskExecutions2", + }, + "put": { + "summary": "Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`.", + "operationId": "AdminService_UpdateExecution2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskExecutionList" + "$ref": "#/definitions/adminExecutionUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "node_execution_id.execution_id.org", + "name": "id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "node_execution_id.execution_id.project", + "name": "id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "node_execution_id.execution_id.domain", + "name": "id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "node_execution_id.execution_id.name", + "name": "id.name", "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "node_execution_id.node_id", - "in": "path", + "name": "body", + "in": "body", "required": true, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" + "schema": { + "$ref": "#/definitions/AdminServiceUpdateExecutionBody" + } } ], "tags": [ @@ -7502,21 +3602,28 @@ ] } }, - "/api/v1/org/tasks/{id.org}": { + "/api/v1/org/executions/{org}": { "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Task` definition", - "operationId": "CreateTask2", + "summary": "Triggers the creation of a :ref:`ref_flyteidl.admin.Execution`", + "description": "Create a workflow execution.", + "operationId": "AdminService_CreateExecution2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/flyteidladminTaskCreateResponse" + "$ref": "#/definitions/adminExecutionCreateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", + "name": "org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, @@ -7527,7 +3634,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/flyteidladminTaskCreateRequest" + "$ref": "#/definitions/AdminServiceCreateExecutionBody" } } ], @@ -7536,50 +3643,50 @@ ] } }, - "/api/v1/org/tasks/{id.org}/{id.project}/{id.domain}": { + "/api/v1/org/launch_plan_ids/{org}/{project}/{domain}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "operationId": "ListTasks4", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects.", + "description": "Fetch existing launch plan definition identifiers matching input filters.", + "operationId": "AdminService_ListLaunchPlanIds2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskList" + "$ref": "#/definitions/adminNamedEntityIdentifierList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", + "name": "org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.project", - "description": "Name of the project the resource belongs to.", + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", "in": "path", "required": true, "type": "string" }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", - "in": "query", - "required": false, - "type": "string" - }, { "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", + "description": "Indicates the number of resources to be returned.\n+required", "in": "query", "required": false, "type": "integer", @@ -7587,28 +3694,21 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -7617,6 +3717,13 @@ "ASCENDING" ], "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -7624,15 +3731,71 @@ ] } }, - "/api/v1/org/tasks/{id.org}/{id.project}/{id.domain}/{id.name}": { + "/api/v1/org/launch_plans/{id.org}": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition", + "description": "Create and register a launch plan definition.", + "operationId": "AdminService_CreateLaunchPlan2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminLaunchPlanCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceCreateLaunchPlanBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/org/launch_plans/{id.org}/{id.project}/{id.domain}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "operationId": "ListTasks2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", + "description": "Fetch existing launch plan definitions matching input filters.", + "operationId": "AdminService_ListLaunchPlans4", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskList" + "$ref": "#/definitions/adminLaunchPlanList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -7661,13 +3824,13 @@ { "name": "id.name", "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", - "required": true, + "in": "query", + "required": false, "type": "string" }, { "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", + "description": "Indicates the number of resources to be returned.\n+required", "in": "query", "required": false, "type": "integer", @@ -7675,28 +3838,28 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -7712,15 +3875,22 @@ ] } }, - "/api/v1/org/tasks/{id.org}/{id.project}/{id.domain}/{id.name}/{id.version}": { + "/api/v1/org/launch_plans/{id.org}/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Task` definition.", - "operationId": "GetTask2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions.", + "description": "Fetch existing launch plan definitions matching input filters.", + "operationId": "AdminService_ListLaunchPlans2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTask" + "$ref": "#/definitions/adminLaunchPlanList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -7748,76 +3918,14 @@ }, { "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/tasks/{org}/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects.", - "operationId": "ListTaskIds2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" - } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", "in": "path", "required": true, "type": "string" }, { "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", + "description": "Indicates the number of resources to be returned.\n+required", "in": "query", "required": false, "type": "integer", @@ -7825,91 +3933,36 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional.", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/org/workflow_attributes/{attributes.org}/{attributes.project}/{attributes.domain}/{attributes.workflow}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "operationId": "UpdateWorkflowAttributes2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesUpdateResponse" - } - } - }, - "parameters": [ - { - "name": "attributes.org", - "description": "Optional, org key applied to the attributes.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "attributes.domain", - "description": "Unique domain id for which this set of attributes will be applied.", - "in": "path", - "required": true, + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "attributes.workflow", - "description": "Workflow name for which this set of attributes will be applied.", - "in": "path", - "required": true, + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, "type": "string" }, { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesUpdateRequest" - } + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" } ], "tags": [ @@ -7917,117 +3970,161 @@ ] } }, - "/api/v1/org/workflow_attributes/{org}/{project}/{domain}/{workflow}": { + "/api/v1/org/launch_plans/{id.org}/{id.project}/{id.domain}/{id.name}/{id.version}": { "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "operationId": "GetWorkflowAttributes2", + "summary": "Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition.", + "description": "Retrieve an existing launch plan definition.", + "operationId": "AdminService_GetLaunchPlan2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowAttributesGetResponse" + "$ref": "#/definitions/adminLaunchPlan" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "org", - "description": "Optional, org key applied to the attributes.", + "name": "id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", + "name": "id.name", + "description": "User provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required.\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", "in": "query", "required": false, "type": "string", "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" ], - "default": "TASK_RESOURCE" + "default": "UNSPECIFIED" } ], "tags": [ "AdminService" ] }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "operationId": "DeleteWorkflowAttributes2", + "put": { + "summary": "Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`.", + "description": "Update the status of an existing launch plan definition. At most one launch plan version for a given {project, domain, name} can be active at a time. If this call sets a launch plan to active and existing version is already active, the result of this call will be that the formerly active launch plan will be made inactive and specified launch plan in this request will be made active. In the event that the formerly active launch plan had a schedule associated it with it, this schedule will be disabled. If the reference launch plan in this request is being set to active and has a schedule associated with it, the schedule will be enabled.", + "operationId": "AdminService_UpdateLaunchPlan2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowAttributesDeleteResponse" + "$ref": "#/definitions/adminLaunchPlanUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "org", - "description": "Optional, org key applied to the attributes.", + "name": "id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", + "name": "id.name", + "description": "User provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesDeleteRequest" - } + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "state", + "description": "Desired state to apply to the launch plan.\n+required.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "INACTIVE", + "ACTIVE" + ], + "default": "INACTIVE" } ], "tags": [ @@ -8035,33 +4132,50 @@ ] } }, - "/api/v1/org/workflows/{id.org}": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition", - "operationId": "CreateWorkflow2", + "/api/v1/org/matchable_attributes/{org}": { + "get": { + "summary": "Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type.", + "description": "Retrieve a list of MatchableAttributesConfiguration objects.", + "operationId": "AdminService_ListMatchableAttributes2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowCreateResponse" + "$ref": "#/definitions/adminListMatchableAttributesResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "org", + "description": "Optional, org filter applied to list project requests.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowCreateRequest" - } + "name": "resource_type", + "description": "+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" } ], "tags": [ @@ -8069,15 +4183,22 @@ ] } }, - "/api/v1/org/workflows/{id.org}/{id.project}/{id.domain}": { + "/api/v1/org/metrics/executions/{id.org}/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", - "operationId": "ListWorkflows4", + "summary": "Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`.", + "description": "Retrieve metrics from an existing workflow execution.", + "operationId": "AdminService_GetExecutionMetrics2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowList" + "$ref": "#/definitions/adminWorkflowExecutionGetMetricsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -8105,51 +4226,18 @@ }, { "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'.", - "in": "query", - "required": false, + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, "type": "string" }, { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", + "name": "depth", + "description": "depth defines the number of Flyte entity levels to traverse when breaking down execution details.", "in": "query", "required": false, "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" + "format": "int32" } ], "tags": [ @@ -8157,15 +4245,22 @@ ] } }, - "/api/v1/org/workflows/{id.org}/{id.project}/{id.domain}/{id.name}": { + "/api/v1/org/named_entities/{id.org}/{resource_type}/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", - "operationId": "ListWorkflows2", + "summary": "Returns a :ref:`ref_flyteidl.admin.NamedEntity` object.", + "description": "Retrieve a NamedEntity object.", + "operationId": "AdminService_GetNamedEntity2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowList" + "$ref": "#/definitions/adminNamedEntity" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -8177,6 +4272,20 @@ "required": true, "type": "string" }, + { + "name": "resource_type", + "description": "Resource type of the metadata to get. One of Task, Workflow or LaunchPlan.\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, { "name": "id.project", "description": "Name of the project the resource belongs to.", @@ -8197,63 +4306,27 @@ "in": "path", "required": true, "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" } ], "tags": [ "AdminService" ] - } - }, - "/api/v1/org/workflows/{id.org}/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition.", - "operationId": "GetWorkflow2", + }, + "put": { + "summary": "Updates a :ref:`ref_flyteidl.admin.NamedEntity` object.", + "description": "Update the fields associated with a NamedEntity", + "operationId": "AdminService_UpdateNamedEntity2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflow" + "$ref": "#/definitions/adminNamedEntityUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -8265,6 +4338,20 @@ "required": true, "type": "string" }, + { + "name": "resource_type", + "description": "Resource type of the metadata to update\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, { "name": "id.project", "description": "Name of the project the resource belongs to.", @@ -8281,32 +4368,18 @@ }, { "name": "id.name", - "description": "User provided value for the resource.", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", "in": "path", "required": true, "type": "string" }, { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", + "name": "body", + "in": "body", "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" + "schema": { + "$ref": "#/definitions/AdminServiceUpdateNamedEntityBody" + } } ], "tags": [ @@ -8314,15 +4387,22 @@ ] } }, - "/api/v1/org/workflows/{org}/{project}/{domain}": { + "/api/v1/org/named_entities/{org}/{resource_type}/{project}/{domain}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects.", - "operationId": "ListWorkflowIds2", + "summary": "Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects.", + "description": "Retrieve a list of NamedEntity objects sharing a common resource type, project, and domain.", + "operationId": "AdminService_ListNamedEntities2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" + "$ref": "#/definitions/adminNamedEntityList" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" } } }, @@ -8334,6 +4414,20 @@ "required": true, "type": "string" }, + { + "name": "resource_type", + "description": "Resource type of the metadata to query. One of Task, Workflow or LaunchPlan.\n+required", + "in": "path", + "required": true, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ] + }, { "name": "project", "description": "Name of the project that contains the identifiers.\n+required", @@ -8343,14 +4437,14 @@ }, { "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "description": "Name of the domain the identifiers belongs to within the project.", "in": "path", "required": true, "type": "string" }, { "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required.", + "description": "Indicates the number of resources to be returned.", "in": "query", "required": false, "type": "integer", @@ -8358,21 +4452,21 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional.", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required.", + "description": "Indicates an attribute to sort the response values.\n+required", "in": "query", "required": false, "type": "string" }, { "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional.\n\n - DESCENDING: By default, fields are sorted in descending order.", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", @@ -8384,7 +4478,7 @@ }, { "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional.", + "description": "Indicates a list of filters passed as string.\n+optional", "in": "query", "required": false, "type": "string" @@ -8395,16 +4489,15 @@ ] } }, - "/api/v1/project_attributes/{attributes.project}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level", - "description": "Update the customized resource attributes associated with a project", - "operationId": "AdminService_UpdateProjectAttributes", + "/api/v1/org/node_executions/{id.execution_id.org}/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "AdminService_GetNodeExecution2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectAttributesUpdateResponse" + "$ref": "#/definitions/flyteidladminNodeExecution" } }, "default": { @@ -8416,19 +4509,38 @@ }, "parameters": [ { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", + "name": "id.execution_id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateProjectAttributesBody" - } + "type": "string" + }, + { + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, + "type": "string" } ], "tags": [ @@ -8436,16 +4548,15 @@ ] } }, - "/api/v1/project_attributes/{project}": { + "/api/v1/org/node_executions/{id.execution_id.org}/{id.execution_id.project}/{id.execution_id.domain}/{id.execution_id.name}/{id.node_id}/dynamic_workflow": { "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Retrieve the customized resource attributes associated with a project", - "operationId": "AdminService_GetProjectAttributes", + "summary": "Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`.", + "operationId": "AdminService_GetDynamicNodeWorkflow2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectAttributesGetResponse" + "$ref": "#/definitions/adminDynamicNodeWorkflowResponse" } }, "default": { @@ -8457,51 +4568,54 @@ }, "parameters": [ { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", + "name": "id.execution_id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" + "name": "id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" }, { - "name": "org", - "description": "Optional, org key applied to the project.", - "in": "query", - "required": false, + "name": "id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.node_id", + "in": "path", + "required": true, "type": "string" } ], "tags": [ "AdminService" ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Delete the customized resource attributes associated with a project", - "operationId": "AdminService_DeleteProjectAttributes", + } + }, + "/api/v1/org/node_executions/{workflow_execution_id.org}/{workflow_execution_id.project}/{workflow_execution_id.domain}/{workflow_execution_id.name}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`.", + "operationId": "AdminService_ListNodeExecutions2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectAttributesDeleteResponse" + "$ref": "#/definitions/adminNodeExecutionList" } }, "default": { @@ -8513,19 +4627,79 @@ }, "parameters": [ { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", + "name": "workflow_execution_id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "workflow_execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceDeleteProjectAttributesBody" - } + "type": "string" + }, + { + "name": "workflow_execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow_execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "unique_parent_id", + "description": "Unique identifier of the parent node in the execution\n+optional", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -8533,8 +4707,7 @@ ] } }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/project_domain_attributes/org/{attributes.org}/{attributes.project}": { + "/api/v1/org/project_domain_attributes/{attributes.org}/{attributes.project}": { "put": { "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level", "description": "Update the customized resource attributes associated with a project", @@ -8582,7 +4755,7 @@ ] } }, - "/api/v1/project_domain_attributes/org/{attributes.org}/{attributes.project}/{attributes.domain}": { + "/api/v1/org/project_domain_attributes/{attributes.org}/{attributes.project}/{attributes.domain}": { "put": { "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", "description": "Update the customized resource attributes associated with a project-domain combination", @@ -8637,7 +4810,7 @@ ] } }, - "/api/v1/project_domain_attributes/org/{org}/{project}": { + "/api/v1/org/project_domain_attributes/{org}/{project}": { "get": { "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", "description": "Retrieve the customized resource attributes associated with a project", @@ -8741,7 +4914,7 @@ ] } }, - "/api/v1/project_domain_attributes/org/{org}/{project}/{domain}": { + "/api/v1/org/project_domain_attributes/{org}/{project}/{domain}": { "get": { "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", "description": "Retrieve the customized resource attributes associated with a project-domain combination", @@ -8795,178 +4968,10 @@ "EXECUTION_CLUSTER_LABEL", "QUALITY_OF_SERVICE_SPECIFICATION", "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Delete the customized resource attributes associated with a project-domain combination", - "operationId": "AdminService_DeleteProjectDomainAttributes2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesDeleteResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the attributes.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceDeleteProjectDomainAttributesBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Update the customized resource attributes associated with a project-domain combination", - "operationId": "AdminService_UpdateProjectDomainAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesUpdateResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.domain", - "description": "Unique domain id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateProjectDomainAttributesBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/project_domain_attributes/{project}/{domain}": { - "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", - "description": "Retrieve the customized resource attributes associated with a project-domain combination", - "operationId": "AdminService_GetProjectDomainAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectDomainAttributesGetResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" - }, - { - "name": "org", - "description": "Optional, org key applied to the attributes.", - "in": "query", - "required": false, - "type": "string" + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" } ], "tags": [ @@ -8976,7 +4981,7 @@ "delete": { "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", "description": "Delete the customized resource attributes associated with a project-domain combination", - "operationId": "AdminService_DeleteProjectDomainAttributes", + "operationId": "AdminService_DeleteProjectDomainAttributes2", "responses": { "200": { "description": "A successful response.", @@ -8992,6 +4997,13 @@ } }, "parameters": [ + { + "name": "org", + "description": "Optional, org key applied to the attributes.", + "in": "path", + "required": true, + "type": "string" + }, { "name": "project", "description": "Unique project id which this set of attributes references.\n+required", @@ -9020,11 +5032,11 @@ ] } }, - "/api/v1/projects": { + "/api/v1/org/projects/{org}": { "get": { "summary": "Fetches a list of :ref:`ref_flyteidl.admin.Project`", "description": "Fetch registered projects.", - "operationId": "AdminService_ListProjects", + "operationId": "AdminService_ListProjects2", "responses": { "200": { "description": "A successful response.", @@ -9040,6 +5052,13 @@ } }, "parameters": [ + { + "name": "org", + "description": "Optional, org filter applied to list project requests.", + "in": "path", + "required": true, + "type": "string" + }, { "name": "limit", "description": "Indicates the number of projects to be returned.\n+required", @@ -9080,22 +5099,65 @@ "ASCENDING" ], "default": "DESCENDING" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/org/projects/{org}/{id}": { + "put": { + "summary": "Updates an existing :ref:`ref_flyteidl.admin.Project`\nflyteidl.admin.Project should be passed but the domains property should be empty;\nit will be ignored in the handler as domains cannot be updated via this API.", + "description": "Update a project.", + "operationId": "AdminService_UpdateProject2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectUpdateResponse" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { "name": "org", - "description": "Optional, org filter applied to list project requests.", - "in": "query", - "required": false, + "description": "Optional, org key applied to the resource.", + "in": "path", + "required": true, "type": "string" + }, + { + "name": "id", + "description": "Globally unique project name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateProjectBody" + } } ], "tags": [ "AdminService" ] - }, + } + }, + "/api/v1/org/projects/{project.org}": { "post": { "summary": "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment.", - "operationId": "AdminService_RegisterProject", + "operationId": "AdminService_RegisterProject2", "responses": { "200": { "description": "A successful response.", @@ -9111,12 +5173,19 @@ } }, "parameters": [ + { + "name": "project.org", + "description": "Optional, org key applied to the resource.", + "in": "path", + "required": true, + "type": "string" + }, { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/adminProjectRegisterRequest" + "$ref": "#/definitions/AdminServiceRegisterProjectBody" } } ], @@ -9125,17 +5194,16 @@ ] } }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/projects/org/{org}": { + "/api/v1/org/task_executions/{id.node_execution_id.execution_id.org}/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { "get": { - "summary": "Fetches a list of :ref:`ref_flyteidl.admin.Project`", - "description": "Fetch registered projects.", - "operationId": "AdminService_ListProjects2", + "summary": "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`.", + "description": "Retrieve an existing task execution.", + "operationId": "AdminService_GetTaskExecution2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjects" + "$ref": "#/definitions/flyteidladminTaskExecution" } }, "default": { @@ -9147,52 +5215,95 @@ }, "parameters": [ { - "name": "org", - "description": "Optional, org filter applied to list project requests.", + "name": "id.node_execution_id.execution_id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "limit", - "description": "Indicates the number of projects to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" + "name": "id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" }, { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, + "name": "id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, "type": "string" }, { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, + "name": "id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, "type": "string" }, { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, + "name": "id.node_execution_id.node_id", + "in": "path", + "required": true, "type": "string" }, { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "name": "id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", "in": "query", "required": false, "type": "string", "enum": [ - "DESCENDING", - "ASCENDING" + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" ], - "default": "DESCENDING" + "default": "UNSPECIFIED" + }, + { + "name": "id.task_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -9200,16 +5311,16 @@ ] } }, - "/api/v1/projects/org/{org}/{id}": { - "put": { - "summary": "Updates an existing :ref:`ref_flyteidl.admin.Project`\nflyteidl.admin.Project should be passed but the domains property should be empty;\nit will be ignored in the handler as domains cannot be updated via this API.", - "description": "Update a project.", - "operationId": "AdminService_UpdateProject2", + "/api/v1/org/task_executions/{node_execution_id.execution_id.org}/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { + "get": { + "summary": "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`.", + "description": "Fetch existing task executions matching input filters.", + "operationId": "AdminService_ListTaskExecutions2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectUpdateResponse" + "$ref": "#/definitions/adminTaskExecutionList" } }, "default": { @@ -9221,66 +5332,79 @@ }, "parameters": [ { - "name": "org", + "name": "node_execution_id.execution_id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id", - "description": "Globally unique project name.", + "name": "node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateProjectBody" - } - } - ], - "tags": [ - "AdminService" - ] - } - }, - "/api/v1/projects/org/{project.org}": { - "post": { - "summary": "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment.", - "operationId": "AdminService_RegisterProject2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminProjectRegisterResponse" - } + "type": "string" + }, + { + "name": "node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "node_execution_id.node_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ { - "name": "project.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceRegisterProjectBody" - } + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" } ], "tags": [ @@ -9288,20 +5412,26 @@ ] } }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/projects/{id}": { - "put": { - "summary": "Updates an existing :ref:`ref_flyteidl.admin.Project`\nflyteidl.admin.Project should be passed but the domains property should be empty;\nit will be ignored in the handler as domains cannot be updated via this API.", - "description": "Update a project.", - "operationId": "AdminService_UpdateProject", + "/api/v1/org/tasks/{id.org}": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.Task` definition", + "description": "Create and register a task definition.", + "operationId": "AdminService_CreateTask2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminProjectUpdateResponse" + "$ref": "#/definitions/flyteidladminTaskCreateResponse" } }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + }, "default": { "description": "An unexpected error response.", "schema": { @@ -9311,8 +5441,8 @@ }, "parameters": [ { - "name": "id", - "description": "Globally unique project name.", + "name": "id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" @@ -9322,7 +5452,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/AdminServiceUpdateProjectBody" + "$ref": "#/definitions/serviceAdminServiceCreateTaskBody" } } ], @@ -9331,17 +5461,16 @@ ] } }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/task_executions/org/{id.node_execution_id.execution_id.org}/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "/api/v1/org/tasks/{id.org}/{id.project}/{id.domain}": { "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`.", - "description": "Retrieve an existing task execution.", - "operationId": "AdminService_GetTaskExecution2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", + "description": "Fetch existing task definitions matching input filters.", + "operationId": "AdminService_ListTasks4", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/flyteidladminTaskExecution" + "$ref": "#/definitions/adminTaskList" } }, "default": { @@ -9353,95 +5482,73 @@ }, "parameters": [ { - "name": "id.node_execution_id.execution_id.org", + "name": "id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_execution_id.execution_id.project", + "name": "id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_execution_id.execution_id.domain", + "name": "id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.node_id", - "in": "path", - "required": true, + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.task_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" }, { - "name": "id.task_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.task_id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.task_id.version", - "description": "Specific version of the resource.", - "in": "path", - "required": true, + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, "type": "string" }, { - "name": "id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "id.task_id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" + "DESCENDING", + "ASCENDING" ], - "default": "UNSPECIFIED" - }, - { - "name": "id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" + "default": "DESCENDING" } ], "tags": [ @@ -9449,16 +5556,16 @@ ] } }, - "/api/v1/task_executions/org/{node_execution_id.execution_id.org}/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { + "/api/v1/org/tasks/{id.org}/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`.", - "description": "Fetch existing task executions matching input filters.", - "operationId": "AdminService_ListTaskExecutions2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", + "description": "Fetch existing task definitions matching input filters.", + "operationId": "AdminService_ListTasks2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskExecutionList" + "$ref": "#/definitions/adminTaskList" } }, "default": { @@ -9470,35 +5577,29 @@ }, "parameters": [ { - "name": "node_execution_id.execution_id.org", + "name": "id.org", "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "node_execution_id.execution_id.project", + "name": "id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "node_execution_id.execution_id.domain", + "name": "id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "node_execution_id.node_id", + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", "in": "path", "required": true, "type": "string" @@ -9513,7 +5614,7 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", "in": "query", "required": false, "type": "string" @@ -9550,18 +5651,16 @@ ] } }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "/api/v1/org/tasks/{id.org}/{id.project}/{id.domain}/{id.name}/{id.version}": { "get": { - "summary": "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`.", - "description": "Retrieve an existing task execution.", - "operationId": "AdminService_GetTaskExecution", + "summary": "Fetch a :ref:`ref_flyteidl.admin.Task` definition.", + "description": "Retrieve an existing task definition.", + "operationId": "AdminService_GetTask2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/flyteidladminTaskExecution" + "$ref": "#/definitions/adminTask" } }, "default": { @@ -9573,69 +5672,42 @@ }, "parameters": [ { - "name": "id.node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.node_execution_id.node_id", + "name": "id.org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.task_id.project", + "name": "id.project", "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "id.task_id.domain", + "name": "id.domain", "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "id.task_id.name", + "name": "id.name", "description": "User provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.task_id.version", + "name": "id.version", "description": "Specific version of the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "id.retry_attempt", - "in": "path", - "required": true, - "type": "integer", - "format": "int64" - }, - { - "name": "id.task_id.resource_type", + "name": "id.resource_type", "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", "in": "query", "required": false, @@ -9648,20 +5720,6 @@ "DATASET" ], "default": "UNSPECIFIED" - }, - { - "name": "id.task_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "id.node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" } ], "tags": [ @@ -9669,16 +5727,16 @@ ] } }, - "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { + "/api/v1/org/tasks/{org}/{project}/{domain}": { "get": { - "summary": "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`.", - "description": "Fetch existing task executions matching input filters.", - "operationId": "AdminService_ListTaskExecutions", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects.", + "description": "Fetch existing task definition identifiers matching input filters.", + "operationId": "AdminService_ListTaskIds2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskExecutionList" + "$ref": "#/definitions/adminNamedEntityIdentifierList" } }, "default": { @@ -9690,39 +5748,26 @@ }, "parameters": [ { - "name": "node_execution_id.execution_id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "node_execution_id.execution_id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "name": "org", + "description": "Optional, org key applied to the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "node_execution_id.execution_id.name", - "description": "User or system provided value for the resource.", + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "node_execution_id.node_id", + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", "in": "path", "required": true, "type": "string" }, - { - "name": "node_execution_id.execution_id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" - }, { "name": "limit", "description": "Indicates the number of resources to be returned.\n+required", @@ -9738,13 +5783,6 @@ "required": false, "type": "string" }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, - "type": "string" - }, { "name": "sort_by.key", "description": "Indicates an attribute to sort the response values.\n+required", @@ -9763,6 +5801,13 @@ "ASCENDING" ], "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -9770,16 +5815,16 @@ ] } }, - "/api/v1/task_ids/{project}/{domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects.", - "description": "Fetch existing task definition identifiers matching input filters.", - "operationId": "AdminService_ListTaskIds", + "/api/v1/org/workflow_attributes/{attributes.org}/{attributes.project}/{attributes.domain}/{attributes.workflow}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "description": "Update the customized resource attributes associated with a project, domain and workflow combination", + "operationId": "AdminService_UpdateWorkflowAttributes2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" + "$ref": "#/definitions/adminWorkflowAttributesUpdateResponse" } }, "default": { @@ -9791,93 +5836,129 @@ }, "parameters": [ { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", + "name": "attributes.org", + "description": "Optional, org key applied to the attributes.", "in": "path", "required": true, "type": "string" }, { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", "in": "path", "required": true, "type": "string" }, { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" + "name": "attributes.domain", + "description": "Unique domain id for which this set of attributes will be applied.", + "in": "path", + "required": true, + "type": "string" }, { - "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, + "name": "attributes.workflow", + "description": "Workflow name for which this set of attributes will be applied.", + "in": "path", + "required": true, "type": "string" }, { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateWorkflowAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/org/workflow_attributes/{org}/{project}/{domain}/{workflow}": { + "get": { + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "description": "Retrieve the customized resource attributes associated with a project, domain and workflow combination", + "operationId": "AdminService_GetWorkflowAttributes2", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowAttributesGetResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "org", + "description": "Optional, org key applied to the attributes.", + "in": "path", + "required": true, "type": "string" }, { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" }, { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, "type": "string" }, { - "name": "org", - "description": "Optional, org key applied to the resource.", + "name": "workflow", + "description": "Workflow name which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", "in": "query", "required": false, - "type": "string" + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" } ], "tags": [ "AdminService" ] - } - }, - "/api/v1/tasks": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Task` definition", - "description": "Create and register a task definition.", - "operationId": "AdminService_CreateTask", + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "description": "Delete the customized resource attributes associated with a project, domain and workflow combination", + "operationId": "AdminService_DeleteWorkflowAttributes2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/flyteidladminTaskCreateResponse" + "$ref": "#/definitions/adminWorkflowAttributesDeleteResponse" } }, - "400": { - "description": "Returned for bad request that may have failed validation.", - "schema": {} - }, - "409": { - "description": "Returned for a request that references an identical entity that has already been registered.", - "schema": {} - }, "default": { "description": "An unexpected error response.", "schema": { @@ -9886,12 +5967,40 @@ } }, "parameters": [ + { + "name": "org", + "description": "Optional, org key applied to the attributes.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "workflow", + "description": "Workflow name which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/flyteidladminTaskCreateRequest" + "$ref": "#/definitions/AdminServiceDeleteWorkflowAttributesBody" } } ], @@ -9900,17 +6009,16 @@ ] } }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/tasks/org/{id.org}": { + "/api/v1/org/workflows/{id.org}": { "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Task` definition", - "description": "Create and register a task definition.", - "operationId": "AdminService_CreateTask2", + "summary": "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition", + "description": "Create and register a workflow definition.", + "operationId": "AdminService_CreateWorkflow2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/flyteidladminTaskCreateResponse" + "$ref": "#/definitions/adminWorkflowCreateResponse" } }, "400": { @@ -9941,7 +6049,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/serviceAdminServiceCreateTaskBody" + "$ref": "#/definitions/AdminServiceCreateWorkflowBody" } } ], @@ -9950,16 +6058,16 @@ ] } }, - "/api/v1/tasks/org/{id.org}/{id.project}/{id.domain}": { + "/api/v1/org/workflows/{id.org}/{id.project}/{id.domain}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "description": "Fetch existing task definitions matching input filters.", - "operationId": "AdminService_ListTasks4", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", + "description": "Fetch existing workflow definitions matching input filters.", + "operationId": "AdminService_ListWorkflows4", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskList" + "$ref": "#/definitions/adminWorkflowList" } }, "default": { @@ -10045,16 +6153,16 @@ ] } }, - "/api/v1/tasks/org/{id.org}/{id.project}/{id.domain}/{id.name}": { + "/api/v1/org/workflows/{id.org}/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "description": "Fetch existing task definitions matching input filters.", - "operationId": "AdminService_ListTasks2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", + "description": "Fetch existing workflow definitions matching input filters.", + "operationId": "AdminService_ListWorkflows2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskList" + "$ref": "#/definitions/adminWorkflowList" } }, "default": { @@ -10140,16 +6248,16 @@ ] } }, - "/api/v1/tasks/org/{id.org}/{id.project}/{id.domain}/{id.name}/{id.version}": { + "/api/v1/org/workflows/{id.org}/{id.project}/{id.domain}/{id.name}/{id.version}": { "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Task` definition.", - "description": "Retrieve an existing task definition.", - "operationId": "AdminService_GetTask2", + "summary": "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition.", + "description": "Retrieve an existing workflow definition.", + "operationId": "AdminService_GetWorkflow2", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTask" + "$ref": "#/definitions/adminWorkflow" } }, "default": { @@ -10216,11 +6324,10 @@ ] } }, - "/api/v1/tasks/org/{org}/{project}/{domain}": { + "/api/v1/org/workflows/{org}/{project}/{domain}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects.", - "description": "Fetch existing task definition identifiers matching input filters.", - "operationId": "AdminService_ListTaskIds2", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects.", + "operationId": "AdminService_ListWorkflowIds2", "responses": { "200": { "description": "A successful response.", @@ -10304,18 +6411,16 @@ ] } }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/tasks/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "description": "Fetch existing task definitions matching input filters.", - "operationId": "AdminService_ListTasks3", + "/api/v1/project_attributes/{attributes.project}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level", + "description": "Update the customized resource attributes associated with a project", + "operationId": "AdminService_UpdateProjectAttributes", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskList" + "$ref": "#/definitions/adminProjectAttributesUpdateResponse" } }, "default": { @@ -10327,90 +6432,244 @@ }, "parameters": [ { - "name": "id.project", - "description": "Name of the project the resource belongs to.", + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateProjectAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_attributes/{project}": { + "get": { + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Retrieve the customized resource attributes associated with a project", + "operationId": "AdminService_GetProjectAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectAttributesGetResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", "in": "query", "required": false, - "type": "string" + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" }, { - "name": "id.org", - "description": "Optional, org key applied to the resource.", + "name": "org", + "description": "Optional, org key applied to the project.", "in": "query", "required": false, "type": "string" + } + ], + "tags": [ + "AdminService" + ] + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Delete the customized resource attributes associated with a project", + "operationId": "AdminService_DeleteProjectAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectAttributesDeleteResponse" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" }, { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceDeleteProjectAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_domain_attributes/{attributes.project}/{attributes.domain}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Update the customized resource attributes associated with a project-domain combination", + "operationId": "AdminService_UpdateProjectDomainAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesUpdateResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", + "in": "path", + "required": true, "type": "string" }, { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, + "name": "attributes.domain", + "description": "Unique domain id for which this set of attributes will be applied.", + "in": "path", + "required": true, "type": "string" }, { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateProjectDomainAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/project_domain_attributes/{project}/{domain}": { + "get": { + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Retrieve the customized resource attributes associated with a project-domain combination", + "operationId": "AdminService_GetProjectDomainAttributes", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjectDomainAttributesGetResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", + "in": "path", + "required": true, "type": "string" }, { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", "in": "query", "required": false, "type": "string", "enum": [ - "DESCENDING", - "ASCENDING" + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" ], - "default": "DESCENDING" + "default": "TASK_RESOURCE" + }, + { + "name": "org", + "description": "Optional, org key applied to the attributes.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ "AdminService" ] - } - }, - "/api/v1/tasks/{id.project}/{id.domain}/{id.name}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", - "description": "Fetch existing task definitions matching input filters.", - "operationId": "AdminService_ListTasks", + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain.", + "description": "Delete the customized resource attributes associated with a project-domain combination", + "operationId": "AdminService_DeleteProjectDomainAttributes", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTaskList" + "$ref": "#/definitions/adminProjectDomainAttributesDeleteResponse" } }, "default": { @@ -10422,36 +6681,56 @@ }, "parameters": [ { - "name": "id.project", - "description": "Name of the project the resource belongs to.", + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "path", + "name": "body", + "in": "body", "required": true, - "type": "string" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" + "schema": { + "$ref": "#/definitions/AdminServiceDeleteProjectDomainAttributesBody" + } + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/projects": { + "get": { + "summary": "Fetches a list of :ref:`ref_flyteidl.admin.Project`", + "description": "Fetch registered projects.", + "operationId": "AdminService_ListProjects", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminProjects" + } }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ { "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", + "description": "Indicates the number of projects to be returned.\n+required", "in": "query", "required": false, "type": "integer", @@ -10489,23 +6768,27 @@ "ASCENDING" ], "default": "DESCENDING" + }, + { + "name": "org", + "description": "Optional, org filter applied to list project requests.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ "AdminService" ] - } - }, - "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Task` definition.", - "description": "Retrieve an existing task definition.", - "operationId": "AdminService_GetTask", + }, + "post": { + "summary": "Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment.", + "operationId": "AdminService_RegisterProject", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminTask" + "$ref": "#/definitions/adminProjectRegisterResponse" } }, "default": { @@ -10517,54 +6800,12 @@ }, "parameters": [ { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", + "name": "body", + "in": "body", "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" - }, - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" + "schema": { + "$ref": "#/definitions/adminProjectRegisterRequest" + } } ], "tags": [ @@ -10572,15 +6813,16 @@ ] } }, - "/api/v1/version": { - "get": { - "description": "Retrieve the Version (including the Build information) for FlyteAdmin service", - "operationId": "AdminService_GetVersion", + "/api/v1/projects/{id}": { + "put": { + "summary": "Updates an existing :ref:`ref_flyteidl.admin.Project`\nflyteidl.admin.Project should be passed but the domains property should be empty;\nit will be ignored in the handler as domains cannot be updated via this API.", + "description": "Update a project.", + "operationId": "AdminService_UpdateProject", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminGetVersionResponse" + "$ref": "#/definitions/adminProjectUpdateResponse" } }, "default": { @@ -10590,22 +6832,38 @@ } } }, + "parameters": [ + { + "name": "id", + "description": "Globally unique project name.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateProjectBody" + } + } + ], "tags": [ "AdminService" ] } }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/workflow_attributes/org/{attributes.org}/{attributes.project}/{attributes.domain}/{attributes.workflow}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "description": "Update the customized resource attributes associated with a project, domain and workflow combination", - "operationId": "AdminService_UpdateWorkflowAttributes2", + "/api/v1/task_executions/{id.node_execution_id.execution_id.project}/{id.node_execution_id.execution_id.domain}/{id.node_execution_id.execution_id.name}/{id.node_execution_id.node_id}/{id.task_id.project}/{id.task_id.domain}/{id.task_id.name}/{id.task_id.version}/{id.retry_attempt}": { + "get": { + "summary": "Fetches a :ref:`ref_flyteidl.admin.TaskExecution`.", + "description": "Retrieve an existing task execution.", + "operationId": "AdminService_GetTaskExecution", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowAttributesUpdateResponse" + "$ref": "#/definitions/flyteidladminTaskExecution" } }, "default": { @@ -10617,40 +6875,95 @@ }, "parameters": [ { - "name": "attributes.org", - "description": "Optional, org key applied to the attributes.", + "name": "id.node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", + "name": "id.node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "attributes.domain", - "description": "Unique domain id for which this set of attributes will be applied.", + "name": "id.node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "attributes.workflow", - "description": "Workflow name for which this set of attributes will be applied.", + "name": "id.node_execution_id.node_id", "in": "path", "required": true, "type": "string" }, { - "name": "body", - "in": "body", + "name": "id.task_id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceUpdateWorkflowAttributesBody" - } + "type": "string" + }, + { + "name": "id.task_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.task_id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.retry_attempt", + "in": "path", + "required": true, + "type": "integer", + "format": "int64" + }, + { + "name": "id.task_id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "id.task_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "id.node_execution_id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -10658,16 +6971,16 @@ ] } }, - "/api/v1/workflow_attributes/org/{org}/{project}/{domain}/{workflow}": { + "/api/v1/task_executions/{node_execution_id.execution_id.project}/{node_execution_id.execution_id.domain}/{node_execution_id.execution_id.name}/{node_execution_id.node_id}": { "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "description": "Retrieve the customized resource attributes associated with a project, domain and workflow combination", - "operationId": "AdminService_GetWorkflowAttributes2", + "summary": "Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`.", + "description": "Fetch existing task executions matching input filters.", + "operationId": "AdminService_ListTaskExecutions", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowAttributesGetResponse" + "$ref": "#/definitions/adminTaskExecutionList" } }, "default": { @@ -10679,65 +6992,96 @@ }, "parameters": [ { - "name": "org", - "description": "Optional, org key applied to the attributes.", + "name": "node_execution_id.execution_id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", + "name": "node_execution_id.execution_id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", + "name": "node_execution_id.execution_id.name", + "description": "User or system provided value for the resource.", "in": "path", "required": true, "type": "string" }, { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", + "name": "node_execution_id.node_id", "in": "path", "required": true, "type": "string" }, { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "name": "node_execution_id.execution_id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", "in": "query", "required": false, "type": "string", "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" + "DESCENDING", + "ASCENDING" ], - "default": "TASK_RESOURCE" + "default": "DESCENDING" } ], "tags": [ "AdminService" ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "description": "Delete the customized resource attributes associated with a project, domain and workflow combination", - "operationId": "AdminService_DeleteWorkflowAttributes2", + } + }, + "/api/v1/task_ids/{project}/{domain}": { + "get": { + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects.", + "description": "Fetch existing task definition identifiers matching input filters.", + "operationId": "AdminService_ListTaskIds", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowAttributesDeleteResponse" + "$ref": "#/definitions/adminNamedEntityIdentifierList" } }, "default": { @@ -10749,40 +7093,66 @@ }, "parameters": [ { - "name": "org", - "description": "Optional, org key applied to the attributes.", + "name": "project", + "description": "Name of the project that contains the identifiers.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", + "name": "domain", + "description": "Name of the domain the identifiers belongs to within the project.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", - "in": "path", - "required": true, + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, "type": "string" }, { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceDeleteWorkflowAttributesBody" - } + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -10790,20 +7160,26 @@ ] } }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json - "/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}": { - "put": { - "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "description": "Update the customized resource attributes associated with a project, domain and workflow combination", - "operationId": "AdminService_UpdateWorkflowAttributes", + "/api/v1/tasks": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.Task` definition", + "description": "Create and register a task definition.", + "operationId": "AdminService_CreateTask", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowAttributesUpdateResponse" + "$ref": "#/definitions/flyteidladminTaskCreateResponse" } }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + }, "default": { "description": "An unexpected error response.", "schema": { @@ -10812,33 +7188,12 @@ } }, "parameters": [ - { - "name": "attributes.project", - "description": "Unique project id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.domain", - "description": "Unique domain id for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "attributes.workflow", - "description": "Workflow name for which this set of attributes will be applied.", - "in": "path", - "required": true, - "type": "string" - }, { "name": "body", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/AdminServiceUpdateWorkflowAttributesBody" + "$ref": "#/definitions/flyteidladminTaskCreateRequest" } } ], @@ -10847,16 +7202,16 @@ ] } }, - "/api/v1/workflow_attributes/{project}/{domain}/{workflow}": { + "/api/v1/tasks/{id.project}/{id.domain}": { "get": { - "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "description": "Retrieve the customized resource attributes associated with a project, domain and workflow combination", - "operationId": "AdminService_GetWorkflowAttributes", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", + "description": "Fetch existing task definitions matching input filters.", + "operationId": "AdminService_ListTasks3", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowAttributesGetResponse" + "$ref": "#/definitions/adminTaskList" } }, "default": { @@ -10868,103 +7223,73 @@ }, "parameters": [ { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", "in": "path", "required": true, "type": "string" }, { - "name": "resource_type", - "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", "in": "query", "required": false, - "type": "string", - "enum": [ - "TASK_RESOURCE", - "CLUSTER_RESOURCE", - "EXECUTION_QUEUE", - "EXECUTION_CLUSTER_LABEL", - "QUALITY_OF_SERVICE_SPECIFICATION", - "PLUGIN_OVERRIDE", - "WORKFLOW_EXECUTION_CONFIG", - "CLUSTER_ASSIGNMENT" - ], - "default": "TASK_RESOURCE" + "type": "string" }, { - "name": "org", - "description": "Optional, org key applied to the attributes.", + "name": "id.org", + "description": "Optional, org key applied to the resource.", "in": "query", "required": false, "type": "string" - } - ], - "tags": [ - "AdminService" - ] - }, - "delete": { - "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", - "description": "Delete the customized resource attributes associated with a project, domain and workflow combination", - "operationId": "AdminService_DeleteWorkflowAttributes", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/adminWorkflowAttributesDeleteResponse" - } }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ { - "name": "project", - "description": "Unique project id which this set of attributes references.\n+required", - "in": "path", - "required": true, + "name": "limit", + "description": "Indicates the number of resources to be returned.\n+required", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "token", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "domain", - "description": "Unique domain id which this set of attributes references.\n+required", - "in": "path", - "required": true, + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "in": "query", + "required": false, "type": "string" }, { - "name": "workflow", - "description": "Workflow name which this set of attributes references.\n+required", - "in": "path", - "required": true, + "name": "sort_by.key", + "description": "Indicates an attribute to sort the response values.\n+required", + "in": "query", + "required": false, "type": "string" }, { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceDeleteWorkflowAttributesBody" - } + "name": "sort_by.direction", + "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING" } ], "tags": [ @@ -10972,15 +7297,16 @@ ] } }, - "/api/v1/workflow_ids/{project}/{domain}": { + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects.", - "operationId": "AdminService_ListWorkflowIds", + "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions.", + "description": "Fetch existing task definitions matching input filters.", + "operationId": "AdminService_ListTasks", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminNamedEntityIdentifierList" + "$ref": "#/definitions/adminTaskList" } }, "default": { @@ -10992,19 +7318,33 @@ }, "parameters": [ { - "name": "project", - "description": "Name of the project that contains the identifiers.\n+required", + "name": "id.project", + "description": "Name of the project the resource belongs to.", "in": "path", "required": true, "type": "string" }, { - "name": "domain", - "description": "Name of the domain the identifiers belongs to within the project.\n+required", + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", "in": "path", "required": true, "type": "string" }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + }, { "name": "limit", "description": "Indicates the number of resources to be returned.\n+required", @@ -11015,7 +7355,14 @@ }, { "name": "token", - "description": "In the case of multiple pages of results, the server-provided token can be used to fetch the next page\nin a query.\n+optional", + "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", + "in": "query", + "required": false, + "type": "string" + }, + { + "name": "filters", + "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", "in": "query", "required": false, "type": "string" @@ -11038,20 +7385,6 @@ "ASCENDING" ], "default": "DESCENDING" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "query", - "required": false, - "type": "string" } ], "tags": [ @@ -11059,26 +7392,18 @@ ] } }, - "/api/v1/workflows": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition", - "description": "Create and register a workflow definition.", - "operationId": "AdminService_CreateWorkflow", + "/api/v1/tasks/{id.project}/{id.domain}/{id.name}/{id.version}": { + "get": { + "summary": "Fetch a :ref:`ref_flyteidl.admin.Task` definition.", + "description": "Retrieve an existing task definition.", + "operationId": "AdminService_GetTask", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowCreateResponse" + "$ref": "#/definitions/adminTask" } }, - "400": { - "description": "Returned for bad request that may have failed validation.", - "schema": {} - }, - "409": { - "description": "Returned for a request that references an identical entity that has already been registered.", - "schema": {} - }, "default": { "description": "An unexpected error response.", "schema": { @@ -11088,12 +7413,54 @@ }, "parameters": [ { - "name": "body", - "in": "body", + "name": "id.project", + "description": "Name of the project the resource belongs to.", + "in": "path", "required": true, - "schema": { - "$ref": "#/definitions/adminWorkflowCreateRequest" - } + "type": "string" + }, + { + "name": "id.domain", + "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.name", + "description": "User provided value for the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.version", + "description": "Specific version of the resource.", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "id.resource_type", + "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", + "in": "query", + "required": false, + "type": "string", + "enum": [ + "UNSPECIFIED", + "TASK", + "WORKFLOW", + "LAUNCH_PLAN", + "DATASET" + ], + "default": "UNSPECIFIED" + }, + { + "name": "id.org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" } ], "tags": [ @@ -11101,27 +7468,17 @@ ] } }, -<<<<<<< HEAD:flyteidl/clients/go/assets/admin.swagger.json - "/api/v1/workflows/org/{id.org}": { - "post": { - "summary": "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition", - "description": "Create and register a workflow definition.", - "operationId": "AdminService_CreateWorkflow2", + "/api/v1/version": { + "get": { + "description": "Retrieve the Version (including the Build information) for FlyteAdmin service", + "operationId": "AdminService_GetVersion", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowCreateResponse" + "$ref": "#/definitions/adminGetVersionResponse" } }, - "400": { - "description": "Returned for bad request that may have failed validation.", - "schema": {} - }, - "409": { - "description": "Returned for a request that references an identical entity that has already been registered.", - "schema": {} - }, "default": { "description": "An unexpected error response.", "schema": { @@ -11129,38 +7486,21 @@ } } }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/AdminServiceCreateWorkflowBody" - } - } - ], "tags": [ "AdminService" ] } }, - "/api/v1/workflows/org/{id.org}/{id.project}/{id.domain}": { - "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", - "description": "Fetch existing workflow definitions matching input filters.", - "operationId": "AdminService_ListWorkflows4", + "/api/v1/workflow_attributes/{attributes.project}/{attributes.domain}/{attributes.workflow}": { + "put": { + "summary": "Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "description": "Update the customized resource attributes associated with a project, domain and workflow combination", + "operationId": "AdminService_UpdateWorkflowAttributes", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowList" + "$ref": "#/definitions/adminWorkflowAttributesUpdateResponse" } }, "default": { @@ -11169,76 +7509,36 @@ "$ref": "#/definitions/googlerpcStatus" } } - }, - "parameters": [ - { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, + }, + "parameters": [ { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, + "name": "attributes.project", + "description": "Unique project id for which this set of attributes will be applied.", + "in": "path", + "required": true, "type": "string" }, { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", - "in": "query", - "required": false, + "name": "attributes.domain", + "description": "Unique domain id for which this set of attributes will be applied.", + "in": "path", + "required": true, "type": "string" }, { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", - "in": "query", - "required": false, + "name": "attributes.workflow", + "description": "Workflow name for which this set of attributes will be applied.", + "in": "path", + "required": true, "type": "string" }, { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/AdminServiceUpdateWorkflowAttributesBody" + } } ], "tags": [ @@ -11246,16 +7546,16 @@ ] } }, - "/api/v1/workflows/org/{id.org}/{id.project}/{id.domain}/{id.name}": { + "/api/v1/workflow_attributes/{project}/{domain}/{workflow}": { "get": { - "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", - "description": "Fetch existing workflow definitions matching input filters.", - "operationId": "AdminService_ListWorkflows2", + "summary": "Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "description": "Retrieve the customized resource attributes associated with a project, domain and workflow combination", + "operationId": "AdminService_GetWorkflowAttributes", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflowList" + "$ref": "#/definitions/adminWorkflowAttributesGetResponse" } }, "default": { @@ -11267,90 +7567,65 @@ }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", - "description": "User provided value for the resource.\nThe combination of project + domain + name uniquely identifies the resource.\n+optional - in certain contexts - like 'List API', 'Launch plans'", + "name": "workflow", + "description": "Workflow name which this set of attributes references.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "limit", - "description": "Indicates the number of resources to be returned.\n+required", - "in": "query", - "required": false, - "type": "integer", - "format": "int64" - }, - { - "name": "token", - "description": "In the case of multiple pages of results, this server-provided token can be used to fetch the next page\nin a query.\n+optional", - "in": "query", - "required": false, - "type": "string" - }, - { - "name": "filters", - "description": "Indicates a list of filters passed as string.\nMore info on constructing filters : \u003cLink\u003e\n+optional", + "name": "resource_type", + "description": "Which type of matchable attributes to return.\n+required\n\n - TASK_RESOURCE: Applies to customizable task resource requests and limits.\n - CLUSTER_RESOURCE: Applies to configuring templated kubernetes cluster resources.\n - EXECUTION_QUEUE: Configures task and dynamic task execution queue assignment.\n - EXECUTION_CLUSTER_LABEL: Configures the K8s cluster label to be used for execution to be run\n - QUALITY_OF_SERVICE_SPECIFICATION: Configures default quality of service when undefined in an execution spec.\n - PLUGIN_OVERRIDE: Selects configurable plugin implementation behavior for a given task type.\n - WORKFLOW_EXECUTION_CONFIG: Adds defaults for customizable workflow-execution specifications and overrides.\n - CLUSTER_ASSIGNMENT: Controls how to select an available cluster on which this execution should run.", "in": "query", "required": false, - "type": "string" + "type": "string", + "enum": [ + "TASK_RESOURCE", + "CLUSTER_RESOURCE", + "EXECUTION_QUEUE", + "EXECUTION_CLUSTER_LABEL", + "QUALITY_OF_SERVICE_SPECIFICATION", + "PLUGIN_OVERRIDE", + "WORKFLOW_EXECUTION_CONFIG", + "CLUSTER_ASSIGNMENT" + ], + "default": "TASK_RESOURCE" }, { - "name": "sort_by.key", - "description": "Indicates an attribute to sort the response values.\n+required", + "name": "org", + "description": "Optional, org key applied to the attributes.", "in": "query", "required": false, "type": "string" - }, - { - "name": "sort_by.direction", - "description": "Indicates the direction to apply sort key for response values.\n+optional\n\n - DESCENDING: By default, fields are sorted in descending order.", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING" } ], "tags": [ "AdminService" ] - } - }, - "/api/v1/workflows/org/{id.org}/{id.project}/{id.domain}/{id.name}/{id.version}": { - "get": { - "summary": "Fetch a :ref:`ref_flyteidl.admin.Workflow` definition.", - "description": "Retrieve an existing workflow definition.", - "operationId": "AdminService_GetWorkflow2", + }, + "delete": { + "summary": "Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow.", + "description": "Delete the customized resource attributes associated with a project, domain and workflow combination", + "operationId": "AdminService_DeleteWorkflowAttributes", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/adminWorkflow" + "$ref": "#/definitions/adminWorkflowAttributesDeleteResponse" } }, "default": { @@ -11362,54 +7637,33 @@ }, "parameters": [ { - "name": "id.org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "id.project", - "description": "Name of the project the resource belongs to.", + "name": "project", + "description": "Unique project id which this set of attributes references.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.domain", - "description": "Name of the domain the resource belongs to.\nA domain can be considered as a subset within a specific project.", + "name": "domain", + "description": "Unique domain id which this set of attributes references.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.name", - "description": "User provided value for the resource.", + "name": "workflow", + "description": "Workflow name which this set of attributes references.\n+required", "in": "path", "required": true, "type": "string" }, { - "name": "id.version", - "description": "Specific version of the resource.", - "in": "path", + "name": "body", + "in": "body", "required": true, - "type": "string" - }, - { - "name": "id.resource_type", - "description": "Identifies the specific type of resource that this identifier corresponds to.\n\n - DATASET: A dataset represents an entity modeled in Flyte DataCatalog. A Dataset is also a versioned entity and can be a compilation of multiple individual objects.\nEventually all Catalog objects should be modeled similar to Flyte Objects. The Dataset entities makes it possible for the UI and CLI to act on the objects \nin a similar manner to other Flyte objects", - "in": "query", - "required": false, - "type": "string", - "enum": [ - "UNSPECIFIED", - "TASK", - "WORKFLOW", - "LAUNCH_PLAN", - "DATASET" - ], - "default": "UNSPECIFIED" + "schema": { + "$ref": "#/definitions/AdminServiceDeleteWorkflowAttributesBody" + } } ], "tags": [ @@ -11417,10 +7671,10 @@ ] } }, - "/api/v1/workflows/org/{org}/{project}/{domain}": { + "/api/v1/workflow_ids/{project}/{domain}": { "get": { "summary": "Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects.", - "operationId": "AdminService_ListWorkflowIds2", + "operationId": "AdminService_ListWorkflowIds", "responses": { "200": { "description": "A successful response.", @@ -11436,13 +7690,6 @@ } }, "parameters": [ - { - "name": "org", - "description": "Optional, org key applied to the resource.", - "in": "path", - "required": true, - "type": "string" - }, { "name": "project", "description": "Name of the project that contains the identifiers.\n+required", @@ -11497,6 +7744,55 @@ "in": "query", "required": false, "type": "string" + }, + { + "name": "org", + "description": "Optional, org key applied to the resource.", + "in": "query", + "required": false, + "type": "string" + } + ], + "tags": [ + "AdminService" + ] + } + }, + "/api/v1/workflows": { + "post": { + "summary": "Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition", + "description": "Create and register a workflow definition.", + "operationId": "AdminService_CreateWorkflow", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/adminWorkflowCreateResponse" + } + }, + "400": { + "description": "Returned for bad request that may have failed validation.", + "schema": {} + }, + "409": { + "description": "Returned for a request that references an identical entity that has already been registered.", + "schema": {} + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/adminWorkflowCreateRequest" + } } ], "tags": [ @@ -11504,8 +7800,6 @@ ] } }, -======= ->>>>>>> 6c62223f7cc50c8b2a5eb288497dfb0b0e36642b:flyteidl/gen/pb-go/flyteidl/service/admin.swagger.json "/api/v1/workflows/{id.project}/{id.domain}": { "get": { "summary": "Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions.", @@ -12673,15 +8967,6 @@ "default": "ANY", "description": " - ANY: Default case, indicates the client can tolerate either mounting options.\n - ENV_VAR: ENV_VAR indicates the secret needs to be mounted as an environment variable.\n - FILE: FILE indicates the secret needs to be mounted as a file." }, - "SortDirection": { - "type": "string", - "enum": [ - "DESCENDING", - "ASCENDING" - ], - "default": "DESCENDING", - "description": " - DESCENDING: By default, fields are sorted in descending order." - }, "SqlDialect": { "type": "string", "enum": [ @@ -14189,12 +10474,21 @@ "title": "Indicates an attribute to sort the response values.\n+required" }, "direction": { - "$ref": "#/definitions/SortDirection", + "$ref": "#/definitions/adminSortDirection", "title": "Indicates the direction to apply sort key for response values.\n+optional" } }, "description": "Specifies sort ordering in a list request." }, + "adminSortDirection": { + "type": "string", + "enum": [ + "DESCENDING", + "ASCENDING" + ], + "default": "DESCENDING", + "description": " - DESCENDING: By default, fields are sorted in descending order." + }, "adminSourceCode": { "type": "object", "properties": { @@ -14795,6 +11089,9 @@ }, "name": { "type": "string" + }, + "org": { + "type": "string" } } }, @@ -15491,6 +11788,10 @@ "interface": { "$ref": "#/definitions/coreTypedInterface", "title": "The input and output interface for the launch plan" + }, + "fixed_inputs": { + "$ref": "#/definitions/coreLiteralMap", + "title": "A collection of input literals that are fixed for the launch plan" } }, "description": "A structure that uniquely identifies a launch plan in the system." @@ -15843,7 +12144,7 @@ "corePartitions": { "type": "object", "properties": { - "value": { + "value[string]": { "type": "object", "additionalProperties": { "$ref": "#/definitions/coreLabelValue" diff --git a/flyteidl/gen/pb-go/flyteidl/artifacts/artifactsconnect/artifacts.connect.go b/flyteidl/gen/pb-go/flyteidl/artifacts/artifactsconnect/artifacts.connect.go deleted file mode 100644 index aad03fe278..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/artifacts/artifactsconnect/artifacts.connect.go +++ /dev/null @@ -1,442 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: flyteidl/artifacts/artifacts.proto - -package artifactsconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - artifacts "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/artifacts" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // ArtifactRegistryName is the fully-qualified name of the ArtifactRegistry service. - ArtifactRegistryName = "flyteidl.artifact.ArtifactRegistry" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // ArtifactRegistryCreateArtifactProcedure is the fully-qualified name of the ArtifactRegistry's - // CreateArtifact RPC. - ArtifactRegistryCreateArtifactProcedure = "/flyteidl.artifact.ArtifactRegistry/CreateArtifact" - // ArtifactRegistryGetArtifactProcedure is the fully-qualified name of the ArtifactRegistry's - // GetArtifact RPC. - ArtifactRegistryGetArtifactProcedure = "/flyteidl.artifact.ArtifactRegistry/GetArtifact" - // ArtifactRegistrySearchArtifactsProcedure is the fully-qualified name of the ArtifactRegistry's - // SearchArtifacts RPC. - ArtifactRegistrySearchArtifactsProcedure = "/flyteidl.artifact.ArtifactRegistry/SearchArtifacts" - // ArtifactRegistryCreateTriggerProcedure is the fully-qualified name of the ArtifactRegistry's - // CreateTrigger RPC. - ArtifactRegistryCreateTriggerProcedure = "/flyteidl.artifact.ArtifactRegistry/CreateTrigger" - // ArtifactRegistryDeactivateTriggerProcedure is the fully-qualified name of the ArtifactRegistry's - // DeactivateTrigger RPC. - ArtifactRegistryDeactivateTriggerProcedure = "/flyteidl.artifact.ArtifactRegistry/DeactivateTrigger" - // ArtifactRegistryDeactivateAllTriggersProcedure is the fully-qualified name of the - // ArtifactRegistry's DeactivateAllTriggers RPC. - ArtifactRegistryDeactivateAllTriggersProcedure = "/flyteidl.artifact.ArtifactRegistry/DeactivateAllTriggers" - // ArtifactRegistryAddTagProcedure is the fully-qualified name of the ArtifactRegistry's AddTag RPC. - ArtifactRegistryAddTagProcedure = "/flyteidl.artifact.ArtifactRegistry/AddTag" - // ArtifactRegistryRegisterProducerProcedure is the fully-qualified name of the ArtifactRegistry's - // RegisterProducer RPC. - ArtifactRegistryRegisterProducerProcedure = "/flyteidl.artifact.ArtifactRegistry/RegisterProducer" - // ArtifactRegistryRegisterConsumerProcedure is the fully-qualified name of the ArtifactRegistry's - // RegisterConsumer RPC. - ArtifactRegistryRegisterConsumerProcedure = "/flyteidl.artifact.ArtifactRegistry/RegisterConsumer" - // ArtifactRegistrySetExecutionInputsProcedure is the fully-qualified name of the ArtifactRegistry's - // SetExecutionInputs RPC. - ArtifactRegistrySetExecutionInputsProcedure = "/flyteidl.artifact.ArtifactRegistry/SetExecutionInputs" - // ArtifactRegistryFindByWorkflowExecProcedure is the fully-qualified name of the ArtifactRegistry's - // FindByWorkflowExec RPC. - ArtifactRegistryFindByWorkflowExecProcedure = "/flyteidl.artifact.ArtifactRegistry/FindByWorkflowExec" - // ArtifactRegistryListUsageProcedure is the fully-qualified name of the ArtifactRegistry's - // ListUsage RPC. - ArtifactRegistryListUsageProcedure = "/flyteidl.artifact.ArtifactRegistry/ListUsage" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - artifactRegistryServiceDescriptor = artifacts.File_flyteidl_artifacts_artifacts_proto.Services().ByName("ArtifactRegistry") - artifactRegistryCreateArtifactMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("CreateArtifact") - artifactRegistryGetArtifactMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("GetArtifact") - artifactRegistrySearchArtifactsMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("SearchArtifacts") - artifactRegistryCreateTriggerMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("CreateTrigger") - artifactRegistryDeactivateTriggerMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("DeactivateTrigger") - artifactRegistryDeactivateAllTriggersMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("DeactivateAllTriggers") - artifactRegistryAddTagMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("AddTag") - artifactRegistryRegisterProducerMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("RegisterProducer") - artifactRegistryRegisterConsumerMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("RegisterConsumer") - artifactRegistrySetExecutionInputsMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("SetExecutionInputs") - artifactRegistryFindByWorkflowExecMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("FindByWorkflowExec") - artifactRegistryListUsageMethodDescriptor = artifactRegistryServiceDescriptor.Methods().ByName("ListUsage") -) - -// ArtifactRegistryClient is a client for the flyteidl.artifact.ArtifactRegistry service. -type ArtifactRegistryClient interface { - CreateArtifact(context.Context, *connect.Request[artifacts.CreateArtifactRequest]) (*connect.Response[artifacts.CreateArtifactResponse], error) - GetArtifact(context.Context, *connect.Request[artifacts.GetArtifactRequest]) (*connect.Response[artifacts.GetArtifactResponse], error) - SearchArtifacts(context.Context, *connect.Request[artifacts.SearchArtifactsRequest]) (*connect.Response[artifacts.SearchArtifactsResponse], error) - CreateTrigger(context.Context, *connect.Request[artifacts.CreateTriggerRequest]) (*connect.Response[artifacts.CreateTriggerResponse], error) - DeactivateTrigger(context.Context, *connect.Request[artifacts.DeactivateTriggerRequest]) (*connect.Response[artifacts.DeactivateTriggerResponse], error) - DeactivateAllTriggers(context.Context, *connect.Request[artifacts.DeactivateAllTriggersRequest]) (*connect.Response[artifacts.DeactivateAllTriggersResponse], error) - AddTag(context.Context, *connect.Request[artifacts.AddTagRequest]) (*connect.Response[artifacts.AddTagResponse], error) - RegisterProducer(context.Context, *connect.Request[artifacts.RegisterProducerRequest]) (*connect.Response[artifacts.RegisterResponse], error) - RegisterConsumer(context.Context, *connect.Request[artifacts.RegisterConsumerRequest]) (*connect.Response[artifacts.RegisterResponse], error) - SetExecutionInputs(context.Context, *connect.Request[artifacts.ExecutionInputsRequest]) (*connect.Response[artifacts.ExecutionInputsResponse], error) - FindByWorkflowExec(context.Context, *connect.Request[artifacts.FindByWorkflowExecRequest]) (*connect.Response[artifacts.SearchArtifactsResponse], error) - ListUsage(context.Context, *connect.Request[artifacts.ListUsageRequest]) (*connect.Response[artifacts.ListUsageResponse], error) -} - -// NewArtifactRegistryClient constructs a client for the flyteidl.artifact.ArtifactRegistry service. -// By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped -// responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the -// connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewArtifactRegistryClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ArtifactRegistryClient { - baseURL = strings.TrimRight(baseURL, "/") - return &artifactRegistryClient{ - createArtifact: connect.NewClient[artifacts.CreateArtifactRequest, artifacts.CreateArtifactResponse]( - httpClient, - baseURL+ArtifactRegistryCreateArtifactProcedure, - connect.WithSchema(artifactRegistryCreateArtifactMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getArtifact: connect.NewClient[artifacts.GetArtifactRequest, artifacts.GetArtifactResponse]( - httpClient, - baseURL+ArtifactRegistryGetArtifactProcedure, - connect.WithSchema(artifactRegistryGetArtifactMethodDescriptor), - connect.WithClientOptions(opts...), - ), - searchArtifacts: connect.NewClient[artifacts.SearchArtifactsRequest, artifacts.SearchArtifactsResponse]( - httpClient, - baseURL+ArtifactRegistrySearchArtifactsProcedure, - connect.WithSchema(artifactRegistrySearchArtifactsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createTrigger: connect.NewClient[artifacts.CreateTriggerRequest, artifacts.CreateTriggerResponse]( - httpClient, - baseURL+ArtifactRegistryCreateTriggerProcedure, - connect.WithSchema(artifactRegistryCreateTriggerMethodDescriptor), - connect.WithClientOptions(opts...), - ), - deactivateTrigger: connect.NewClient[artifacts.DeactivateTriggerRequest, artifacts.DeactivateTriggerResponse]( - httpClient, - baseURL+ArtifactRegistryDeactivateTriggerProcedure, - connect.WithSchema(artifactRegistryDeactivateTriggerMethodDescriptor), - connect.WithClientOptions(opts...), - ), - deactivateAllTriggers: connect.NewClient[artifacts.DeactivateAllTriggersRequest, artifacts.DeactivateAllTriggersResponse]( - httpClient, - baseURL+ArtifactRegistryDeactivateAllTriggersProcedure, - connect.WithSchema(artifactRegistryDeactivateAllTriggersMethodDescriptor), - connect.WithClientOptions(opts...), - ), - addTag: connect.NewClient[artifacts.AddTagRequest, artifacts.AddTagResponse]( - httpClient, - baseURL+ArtifactRegistryAddTagProcedure, - connect.WithSchema(artifactRegistryAddTagMethodDescriptor), - connect.WithClientOptions(opts...), - ), - registerProducer: connect.NewClient[artifacts.RegisterProducerRequest, artifacts.RegisterResponse]( - httpClient, - baseURL+ArtifactRegistryRegisterProducerProcedure, - connect.WithSchema(artifactRegistryRegisterProducerMethodDescriptor), - connect.WithClientOptions(opts...), - ), - registerConsumer: connect.NewClient[artifacts.RegisterConsumerRequest, artifacts.RegisterResponse]( - httpClient, - baseURL+ArtifactRegistryRegisterConsumerProcedure, - connect.WithSchema(artifactRegistryRegisterConsumerMethodDescriptor), - connect.WithClientOptions(opts...), - ), - setExecutionInputs: connect.NewClient[artifacts.ExecutionInputsRequest, artifacts.ExecutionInputsResponse]( - httpClient, - baseURL+ArtifactRegistrySetExecutionInputsProcedure, - connect.WithSchema(artifactRegistrySetExecutionInputsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - findByWorkflowExec: connect.NewClient[artifacts.FindByWorkflowExecRequest, artifacts.SearchArtifactsResponse]( - httpClient, - baseURL+ArtifactRegistryFindByWorkflowExecProcedure, - connect.WithSchema(artifactRegistryFindByWorkflowExecMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listUsage: connect.NewClient[artifacts.ListUsageRequest, artifacts.ListUsageResponse]( - httpClient, - baseURL+ArtifactRegistryListUsageProcedure, - connect.WithSchema(artifactRegistryListUsageMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// artifactRegistryClient implements ArtifactRegistryClient. -type artifactRegistryClient struct { - createArtifact *connect.Client[artifacts.CreateArtifactRequest, artifacts.CreateArtifactResponse] - getArtifact *connect.Client[artifacts.GetArtifactRequest, artifacts.GetArtifactResponse] - searchArtifacts *connect.Client[artifacts.SearchArtifactsRequest, artifacts.SearchArtifactsResponse] - createTrigger *connect.Client[artifacts.CreateTriggerRequest, artifacts.CreateTriggerResponse] - deactivateTrigger *connect.Client[artifacts.DeactivateTriggerRequest, artifacts.DeactivateTriggerResponse] - deactivateAllTriggers *connect.Client[artifacts.DeactivateAllTriggersRequest, artifacts.DeactivateAllTriggersResponse] - addTag *connect.Client[artifacts.AddTagRequest, artifacts.AddTagResponse] - registerProducer *connect.Client[artifacts.RegisterProducerRequest, artifacts.RegisterResponse] - registerConsumer *connect.Client[artifacts.RegisterConsumerRequest, artifacts.RegisterResponse] - setExecutionInputs *connect.Client[artifacts.ExecutionInputsRequest, artifacts.ExecutionInputsResponse] - findByWorkflowExec *connect.Client[artifacts.FindByWorkflowExecRequest, artifacts.SearchArtifactsResponse] - listUsage *connect.Client[artifacts.ListUsageRequest, artifacts.ListUsageResponse] -} - -// CreateArtifact calls flyteidl.artifact.ArtifactRegistry.CreateArtifact. -func (c *artifactRegistryClient) CreateArtifact(ctx context.Context, req *connect.Request[artifacts.CreateArtifactRequest]) (*connect.Response[artifacts.CreateArtifactResponse], error) { - return c.createArtifact.CallUnary(ctx, req) -} - -// GetArtifact calls flyteidl.artifact.ArtifactRegistry.GetArtifact. -func (c *artifactRegistryClient) GetArtifact(ctx context.Context, req *connect.Request[artifacts.GetArtifactRequest]) (*connect.Response[artifacts.GetArtifactResponse], error) { - return c.getArtifact.CallUnary(ctx, req) -} - -// SearchArtifacts calls flyteidl.artifact.ArtifactRegistry.SearchArtifacts. -func (c *artifactRegistryClient) SearchArtifacts(ctx context.Context, req *connect.Request[artifacts.SearchArtifactsRequest]) (*connect.Response[artifacts.SearchArtifactsResponse], error) { - return c.searchArtifacts.CallUnary(ctx, req) -} - -// CreateTrigger calls flyteidl.artifact.ArtifactRegistry.CreateTrigger. -func (c *artifactRegistryClient) CreateTrigger(ctx context.Context, req *connect.Request[artifacts.CreateTriggerRequest]) (*connect.Response[artifacts.CreateTriggerResponse], error) { - return c.createTrigger.CallUnary(ctx, req) -} - -// DeactivateTrigger calls flyteidl.artifact.ArtifactRegistry.DeactivateTrigger. -func (c *artifactRegistryClient) DeactivateTrigger(ctx context.Context, req *connect.Request[artifacts.DeactivateTriggerRequest]) (*connect.Response[artifacts.DeactivateTriggerResponse], error) { - return c.deactivateTrigger.CallUnary(ctx, req) -} - -// DeactivateAllTriggers calls flyteidl.artifact.ArtifactRegistry.DeactivateAllTriggers. -func (c *artifactRegistryClient) DeactivateAllTriggers(ctx context.Context, req *connect.Request[artifacts.DeactivateAllTriggersRequest]) (*connect.Response[artifacts.DeactivateAllTriggersResponse], error) { - return c.deactivateAllTriggers.CallUnary(ctx, req) -} - -// AddTag calls flyteidl.artifact.ArtifactRegistry.AddTag. -func (c *artifactRegistryClient) AddTag(ctx context.Context, req *connect.Request[artifacts.AddTagRequest]) (*connect.Response[artifacts.AddTagResponse], error) { - return c.addTag.CallUnary(ctx, req) -} - -// RegisterProducer calls flyteidl.artifact.ArtifactRegistry.RegisterProducer. -func (c *artifactRegistryClient) RegisterProducer(ctx context.Context, req *connect.Request[artifacts.RegisterProducerRequest]) (*connect.Response[artifacts.RegisterResponse], error) { - return c.registerProducer.CallUnary(ctx, req) -} - -// RegisterConsumer calls flyteidl.artifact.ArtifactRegistry.RegisterConsumer. -func (c *artifactRegistryClient) RegisterConsumer(ctx context.Context, req *connect.Request[artifacts.RegisterConsumerRequest]) (*connect.Response[artifacts.RegisterResponse], error) { - return c.registerConsumer.CallUnary(ctx, req) -} - -// SetExecutionInputs calls flyteidl.artifact.ArtifactRegistry.SetExecutionInputs. -func (c *artifactRegistryClient) SetExecutionInputs(ctx context.Context, req *connect.Request[artifacts.ExecutionInputsRequest]) (*connect.Response[artifacts.ExecutionInputsResponse], error) { - return c.setExecutionInputs.CallUnary(ctx, req) -} - -// FindByWorkflowExec calls flyteidl.artifact.ArtifactRegistry.FindByWorkflowExec. -func (c *artifactRegistryClient) FindByWorkflowExec(ctx context.Context, req *connect.Request[artifacts.FindByWorkflowExecRequest]) (*connect.Response[artifacts.SearchArtifactsResponse], error) { - return c.findByWorkflowExec.CallUnary(ctx, req) -} - -// ListUsage calls flyteidl.artifact.ArtifactRegistry.ListUsage. -func (c *artifactRegistryClient) ListUsage(ctx context.Context, req *connect.Request[artifacts.ListUsageRequest]) (*connect.Response[artifacts.ListUsageResponse], error) { - return c.listUsage.CallUnary(ctx, req) -} - -// ArtifactRegistryHandler is an implementation of the flyteidl.artifact.ArtifactRegistry service. -type ArtifactRegistryHandler interface { - CreateArtifact(context.Context, *connect.Request[artifacts.CreateArtifactRequest]) (*connect.Response[artifacts.CreateArtifactResponse], error) - GetArtifact(context.Context, *connect.Request[artifacts.GetArtifactRequest]) (*connect.Response[artifacts.GetArtifactResponse], error) - SearchArtifacts(context.Context, *connect.Request[artifacts.SearchArtifactsRequest]) (*connect.Response[artifacts.SearchArtifactsResponse], error) - CreateTrigger(context.Context, *connect.Request[artifacts.CreateTriggerRequest]) (*connect.Response[artifacts.CreateTriggerResponse], error) - DeactivateTrigger(context.Context, *connect.Request[artifacts.DeactivateTriggerRequest]) (*connect.Response[artifacts.DeactivateTriggerResponse], error) - DeactivateAllTriggers(context.Context, *connect.Request[artifacts.DeactivateAllTriggersRequest]) (*connect.Response[artifacts.DeactivateAllTriggersResponse], error) - AddTag(context.Context, *connect.Request[artifacts.AddTagRequest]) (*connect.Response[artifacts.AddTagResponse], error) - RegisterProducer(context.Context, *connect.Request[artifacts.RegisterProducerRequest]) (*connect.Response[artifacts.RegisterResponse], error) - RegisterConsumer(context.Context, *connect.Request[artifacts.RegisterConsumerRequest]) (*connect.Response[artifacts.RegisterResponse], error) - SetExecutionInputs(context.Context, *connect.Request[artifacts.ExecutionInputsRequest]) (*connect.Response[artifacts.ExecutionInputsResponse], error) - FindByWorkflowExec(context.Context, *connect.Request[artifacts.FindByWorkflowExecRequest]) (*connect.Response[artifacts.SearchArtifactsResponse], error) - ListUsage(context.Context, *connect.Request[artifacts.ListUsageRequest]) (*connect.Response[artifacts.ListUsageResponse], error) -} - -// NewArtifactRegistryHandler builds an HTTP handler from the service implementation. It returns the -// path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewArtifactRegistryHandler(svc ArtifactRegistryHandler, opts ...connect.HandlerOption) (string, http.Handler) { - artifactRegistryCreateArtifactHandler := connect.NewUnaryHandler( - ArtifactRegistryCreateArtifactProcedure, - svc.CreateArtifact, - connect.WithSchema(artifactRegistryCreateArtifactMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistryGetArtifactHandler := connect.NewUnaryHandler( - ArtifactRegistryGetArtifactProcedure, - svc.GetArtifact, - connect.WithSchema(artifactRegistryGetArtifactMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistrySearchArtifactsHandler := connect.NewUnaryHandler( - ArtifactRegistrySearchArtifactsProcedure, - svc.SearchArtifacts, - connect.WithSchema(artifactRegistrySearchArtifactsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistryCreateTriggerHandler := connect.NewUnaryHandler( - ArtifactRegistryCreateTriggerProcedure, - svc.CreateTrigger, - connect.WithSchema(artifactRegistryCreateTriggerMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistryDeactivateTriggerHandler := connect.NewUnaryHandler( - ArtifactRegistryDeactivateTriggerProcedure, - svc.DeactivateTrigger, - connect.WithSchema(artifactRegistryDeactivateTriggerMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistryDeactivateAllTriggersHandler := connect.NewUnaryHandler( - ArtifactRegistryDeactivateAllTriggersProcedure, - svc.DeactivateAllTriggers, - connect.WithSchema(artifactRegistryDeactivateAllTriggersMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistryAddTagHandler := connect.NewUnaryHandler( - ArtifactRegistryAddTagProcedure, - svc.AddTag, - connect.WithSchema(artifactRegistryAddTagMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistryRegisterProducerHandler := connect.NewUnaryHandler( - ArtifactRegistryRegisterProducerProcedure, - svc.RegisterProducer, - connect.WithSchema(artifactRegistryRegisterProducerMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistryRegisterConsumerHandler := connect.NewUnaryHandler( - ArtifactRegistryRegisterConsumerProcedure, - svc.RegisterConsumer, - connect.WithSchema(artifactRegistryRegisterConsumerMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistrySetExecutionInputsHandler := connect.NewUnaryHandler( - ArtifactRegistrySetExecutionInputsProcedure, - svc.SetExecutionInputs, - connect.WithSchema(artifactRegistrySetExecutionInputsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistryFindByWorkflowExecHandler := connect.NewUnaryHandler( - ArtifactRegistryFindByWorkflowExecProcedure, - svc.FindByWorkflowExec, - connect.WithSchema(artifactRegistryFindByWorkflowExecMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - artifactRegistryListUsageHandler := connect.NewUnaryHandler( - ArtifactRegistryListUsageProcedure, - svc.ListUsage, - connect.WithSchema(artifactRegistryListUsageMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/flyteidl.artifact.ArtifactRegistry/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case ArtifactRegistryCreateArtifactProcedure: - artifactRegistryCreateArtifactHandler.ServeHTTP(w, r) - case ArtifactRegistryGetArtifactProcedure: - artifactRegistryGetArtifactHandler.ServeHTTP(w, r) - case ArtifactRegistrySearchArtifactsProcedure: - artifactRegistrySearchArtifactsHandler.ServeHTTP(w, r) - case ArtifactRegistryCreateTriggerProcedure: - artifactRegistryCreateTriggerHandler.ServeHTTP(w, r) - case ArtifactRegistryDeactivateTriggerProcedure: - artifactRegistryDeactivateTriggerHandler.ServeHTTP(w, r) - case ArtifactRegistryDeactivateAllTriggersProcedure: - artifactRegistryDeactivateAllTriggersHandler.ServeHTTP(w, r) - case ArtifactRegistryAddTagProcedure: - artifactRegistryAddTagHandler.ServeHTTP(w, r) - case ArtifactRegistryRegisterProducerProcedure: - artifactRegistryRegisterProducerHandler.ServeHTTP(w, r) - case ArtifactRegistryRegisterConsumerProcedure: - artifactRegistryRegisterConsumerHandler.ServeHTTP(w, r) - case ArtifactRegistrySetExecutionInputsProcedure: - artifactRegistrySetExecutionInputsHandler.ServeHTTP(w, r) - case ArtifactRegistryFindByWorkflowExecProcedure: - artifactRegistryFindByWorkflowExecHandler.ServeHTTP(w, r) - case ArtifactRegistryListUsageProcedure: - artifactRegistryListUsageHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedArtifactRegistryHandler returns CodeUnimplemented from all methods. -type UnimplementedArtifactRegistryHandler struct{} - -func (UnimplementedArtifactRegistryHandler) CreateArtifact(context.Context, *connect.Request[artifacts.CreateArtifactRequest]) (*connect.Response[artifacts.CreateArtifactResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.CreateArtifact is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) GetArtifact(context.Context, *connect.Request[artifacts.GetArtifactRequest]) (*connect.Response[artifacts.GetArtifactResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.GetArtifact is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) SearchArtifacts(context.Context, *connect.Request[artifacts.SearchArtifactsRequest]) (*connect.Response[artifacts.SearchArtifactsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.SearchArtifacts is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) CreateTrigger(context.Context, *connect.Request[artifacts.CreateTriggerRequest]) (*connect.Response[artifacts.CreateTriggerResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.CreateTrigger is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) DeactivateTrigger(context.Context, *connect.Request[artifacts.DeactivateTriggerRequest]) (*connect.Response[artifacts.DeactivateTriggerResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.DeactivateTrigger is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) DeactivateAllTriggers(context.Context, *connect.Request[artifacts.DeactivateAllTriggersRequest]) (*connect.Response[artifacts.DeactivateAllTriggersResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.DeactivateAllTriggers is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) AddTag(context.Context, *connect.Request[artifacts.AddTagRequest]) (*connect.Response[artifacts.AddTagResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.AddTag is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) RegisterProducer(context.Context, *connect.Request[artifacts.RegisterProducerRequest]) (*connect.Response[artifacts.RegisterResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.RegisterProducer is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) RegisterConsumer(context.Context, *connect.Request[artifacts.RegisterConsumerRequest]) (*connect.Response[artifacts.RegisterResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.RegisterConsumer is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) SetExecutionInputs(context.Context, *connect.Request[artifacts.ExecutionInputsRequest]) (*connect.Response[artifacts.ExecutionInputsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.SetExecutionInputs is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) FindByWorkflowExec(context.Context, *connect.Request[artifacts.FindByWorkflowExecRequest]) (*connect.Response[artifacts.SearchArtifactsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.FindByWorkflowExec is not implemented")) -} - -func (UnimplementedArtifactRegistryHandler) ListUsage(context.Context, *connect.Request[artifacts.ListUsageRequest]) (*connect.Response[artifacts.ListUsageResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.artifact.ArtifactRegistry.ListUsage is not implemented")) -} diff --git a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalogconnect/datacatalog.connect.go b/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalogconnect/datacatalog.connect.go deleted file mode 100644 index f276e8b454..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/datacatalog/datacatalogconnect/datacatalog.connect.go +++ /dev/null @@ -1,426 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: flyteidl/datacatalog/datacatalog.proto - -package datacatalogconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - datacatalog "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/datacatalog" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // DataCatalogName is the fully-qualified name of the DataCatalog service. - DataCatalogName = "datacatalog.DataCatalog" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // DataCatalogCreateDatasetProcedure is the fully-qualified name of the DataCatalog's CreateDataset - // RPC. - DataCatalogCreateDatasetProcedure = "/datacatalog.DataCatalog/CreateDataset" - // DataCatalogGetDatasetProcedure is the fully-qualified name of the DataCatalog's GetDataset RPC. - DataCatalogGetDatasetProcedure = "/datacatalog.DataCatalog/GetDataset" - // DataCatalogCreateArtifactProcedure is the fully-qualified name of the DataCatalog's - // CreateArtifact RPC. - DataCatalogCreateArtifactProcedure = "/datacatalog.DataCatalog/CreateArtifact" - // DataCatalogGetArtifactProcedure is the fully-qualified name of the DataCatalog's GetArtifact RPC. - DataCatalogGetArtifactProcedure = "/datacatalog.DataCatalog/GetArtifact" - // DataCatalogAddTagProcedure is the fully-qualified name of the DataCatalog's AddTag RPC. - DataCatalogAddTagProcedure = "/datacatalog.DataCatalog/AddTag" - // DataCatalogListArtifactsProcedure is the fully-qualified name of the DataCatalog's ListArtifacts - // RPC. - DataCatalogListArtifactsProcedure = "/datacatalog.DataCatalog/ListArtifacts" - // DataCatalogListDatasetsProcedure is the fully-qualified name of the DataCatalog's ListDatasets - // RPC. - DataCatalogListDatasetsProcedure = "/datacatalog.DataCatalog/ListDatasets" - // DataCatalogUpdateArtifactProcedure is the fully-qualified name of the DataCatalog's - // UpdateArtifact RPC. - DataCatalogUpdateArtifactProcedure = "/datacatalog.DataCatalog/UpdateArtifact" - // DataCatalogGetOrExtendReservationProcedure is the fully-qualified name of the DataCatalog's - // GetOrExtendReservation RPC. - DataCatalogGetOrExtendReservationProcedure = "/datacatalog.DataCatalog/GetOrExtendReservation" - // DataCatalogReleaseReservationProcedure is the fully-qualified name of the DataCatalog's - // ReleaseReservation RPC. - DataCatalogReleaseReservationProcedure = "/datacatalog.DataCatalog/ReleaseReservation" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - dataCatalogServiceDescriptor = datacatalog.File_flyteidl_datacatalog_datacatalog_proto.Services().ByName("DataCatalog") - dataCatalogCreateDatasetMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("CreateDataset") - dataCatalogGetDatasetMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("GetDataset") - dataCatalogCreateArtifactMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("CreateArtifact") - dataCatalogGetArtifactMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("GetArtifact") - dataCatalogAddTagMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("AddTag") - dataCatalogListArtifactsMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("ListArtifacts") - dataCatalogListDatasetsMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("ListDatasets") - dataCatalogUpdateArtifactMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("UpdateArtifact") - dataCatalogGetOrExtendReservationMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("GetOrExtendReservation") - dataCatalogReleaseReservationMethodDescriptor = dataCatalogServiceDescriptor.Methods().ByName("ReleaseReservation") -) - -// DataCatalogClient is a client for the datacatalog.DataCatalog service. -type DataCatalogClient interface { - // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - // Each dataset can have one or more artifacts - CreateDataset(context.Context, *connect.Request[datacatalog.CreateDatasetRequest]) (*connect.Response[datacatalog.CreateDatasetResponse], error) - // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - GetDataset(context.Context, *connect.Request[datacatalog.GetDatasetRequest]) (*connect.Response[datacatalog.GetDatasetResponse], error) - // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - // files or data values - CreateArtifact(context.Context, *connect.Request[datacatalog.CreateArtifactRequest]) (*connect.Response[datacatalog.CreateArtifactResponse], error) - // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - GetArtifact(context.Context, *connect.Request[datacatalog.GetArtifactRequest]) (*connect.Response[datacatalog.GetArtifactResponse], error) - // Associate a tag with an artifact. Tags are unique within a Dataset. - AddTag(context.Context, *connect.Request[datacatalog.AddTagRequest]) (*connect.Response[datacatalog.AddTagResponse], error) - // Return a paginated list of artifacts - ListArtifacts(context.Context, *connect.Request[datacatalog.ListArtifactsRequest]) (*connect.Response[datacatalog.ListArtifactsResponse], error) - // Return a paginated list of datasets - ListDatasets(context.Context, *connect.Request[datacatalog.ListDatasetsRequest]) (*connect.Response[datacatalog.ListDatasetsResponse], error) - // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - UpdateArtifact(context.Context, *connect.Request[datacatalog.UpdateArtifactRequest]) (*connect.Response[datacatalog.UpdateArtifactResponse], error) - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists - // (ie. another entity owns the reservation) then that reservation is retrieved. - // Once you acquire a reservation, you need to periodically extend the reservation with an - // identical call. If the reservation is not extended before the defined expiration, it may be - // acquired by another task. - // Note: We may have multiple concurrent tasks with the same signature and the same input that - // try to populate the same artifact at the same time. Thus with reservation, only one task can - // run at a time, until the reservation expires. - // Note: If task A does not extend the reservation in time and the reservation expires, another - // task B may take over the reservation, resulting in two tasks A and B running in parallel. So - // a third task C may get the Artifact from A or B, whichever writes last. - GetOrExtendReservation(context.Context, *connect.Request[datacatalog.GetOrExtendReservationRequest]) (*connect.Response[datacatalog.GetOrExtendReservationResponse], error) - // Release the reservation when the task holding the spot fails so that the other tasks - // can grab the spot. - ReleaseReservation(context.Context, *connect.Request[datacatalog.ReleaseReservationRequest]) (*connect.Response[datacatalog.ReleaseReservationResponse], error) -} - -// NewDataCatalogClient constructs a client for the datacatalog.DataCatalog service. By default, it -// uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends -// uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or -// connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewDataCatalogClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DataCatalogClient { - baseURL = strings.TrimRight(baseURL, "/") - return &dataCatalogClient{ - createDataset: connect.NewClient[datacatalog.CreateDatasetRequest, datacatalog.CreateDatasetResponse]( - httpClient, - baseURL+DataCatalogCreateDatasetProcedure, - connect.WithSchema(dataCatalogCreateDatasetMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getDataset: connect.NewClient[datacatalog.GetDatasetRequest, datacatalog.GetDatasetResponse]( - httpClient, - baseURL+DataCatalogGetDatasetProcedure, - connect.WithSchema(dataCatalogGetDatasetMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createArtifact: connect.NewClient[datacatalog.CreateArtifactRequest, datacatalog.CreateArtifactResponse]( - httpClient, - baseURL+DataCatalogCreateArtifactProcedure, - connect.WithSchema(dataCatalogCreateArtifactMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getArtifact: connect.NewClient[datacatalog.GetArtifactRequest, datacatalog.GetArtifactResponse]( - httpClient, - baseURL+DataCatalogGetArtifactProcedure, - connect.WithSchema(dataCatalogGetArtifactMethodDescriptor), - connect.WithClientOptions(opts...), - ), - addTag: connect.NewClient[datacatalog.AddTagRequest, datacatalog.AddTagResponse]( - httpClient, - baseURL+DataCatalogAddTagProcedure, - connect.WithSchema(dataCatalogAddTagMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listArtifacts: connect.NewClient[datacatalog.ListArtifactsRequest, datacatalog.ListArtifactsResponse]( - httpClient, - baseURL+DataCatalogListArtifactsProcedure, - connect.WithSchema(dataCatalogListArtifactsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listDatasets: connect.NewClient[datacatalog.ListDatasetsRequest, datacatalog.ListDatasetsResponse]( - httpClient, - baseURL+DataCatalogListDatasetsProcedure, - connect.WithSchema(dataCatalogListDatasetsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - updateArtifact: connect.NewClient[datacatalog.UpdateArtifactRequest, datacatalog.UpdateArtifactResponse]( - httpClient, - baseURL+DataCatalogUpdateArtifactProcedure, - connect.WithSchema(dataCatalogUpdateArtifactMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getOrExtendReservation: connect.NewClient[datacatalog.GetOrExtendReservationRequest, datacatalog.GetOrExtendReservationResponse]( - httpClient, - baseURL+DataCatalogGetOrExtendReservationProcedure, - connect.WithSchema(dataCatalogGetOrExtendReservationMethodDescriptor), - connect.WithClientOptions(opts...), - ), - releaseReservation: connect.NewClient[datacatalog.ReleaseReservationRequest, datacatalog.ReleaseReservationResponse]( - httpClient, - baseURL+DataCatalogReleaseReservationProcedure, - connect.WithSchema(dataCatalogReleaseReservationMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// dataCatalogClient implements DataCatalogClient. -type dataCatalogClient struct { - createDataset *connect.Client[datacatalog.CreateDatasetRequest, datacatalog.CreateDatasetResponse] - getDataset *connect.Client[datacatalog.GetDatasetRequest, datacatalog.GetDatasetResponse] - createArtifact *connect.Client[datacatalog.CreateArtifactRequest, datacatalog.CreateArtifactResponse] - getArtifact *connect.Client[datacatalog.GetArtifactRequest, datacatalog.GetArtifactResponse] - addTag *connect.Client[datacatalog.AddTagRequest, datacatalog.AddTagResponse] - listArtifacts *connect.Client[datacatalog.ListArtifactsRequest, datacatalog.ListArtifactsResponse] - listDatasets *connect.Client[datacatalog.ListDatasetsRequest, datacatalog.ListDatasetsResponse] - updateArtifact *connect.Client[datacatalog.UpdateArtifactRequest, datacatalog.UpdateArtifactResponse] - getOrExtendReservation *connect.Client[datacatalog.GetOrExtendReservationRequest, datacatalog.GetOrExtendReservationResponse] - releaseReservation *connect.Client[datacatalog.ReleaseReservationRequest, datacatalog.ReleaseReservationResponse] -} - -// CreateDataset calls datacatalog.DataCatalog.CreateDataset. -func (c *dataCatalogClient) CreateDataset(ctx context.Context, req *connect.Request[datacatalog.CreateDatasetRequest]) (*connect.Response[datacatalog.CreateDatasetResponse], error) { - return c.createDataset.CallUnary(ctx, req) -} - -// GetDataset calls datacatalog.DataCatalog.GetDataset. -func (c *dataCatalogClient) GetDataset(ctx context.Context, req *connect.Request[datacatalog.GetDatasetRequest]) (*connect.Response[datacatalog.GetDatasetResponse], error) { - return c.getDataset.CallUnary(ctx, req) -} - -// CreateArtifact calls datacatalog.DataCatalog.CreateArtifact. -func (c *dataCatalogClient) CreateArtifact(ctx context.Context, req *connect.Request[datacatalog.CreateArtifactRequest]) (*connect.Response[datacatalog.CreateArtifactResponse], error) { - return c.createArtifact.CallUnary(ctx, req) -} - -// GetArtifact calls datacatalog.DataCatalog.GetArtifact. -func (c *dataCatalogClient) GetArtifact(ctx context.Context, req *connect.Request[datacatalog.GetArtifactRequest]) (*connect.Response[datacatalog.GetArtifactResponse], error) { - return c.getArtifact.CallUnary(ctx, req) -} - -// AddTag calls datacatalog.DataCatalog.AddTag. -func (c *dataCatalogClient) AddTag(ctx context.Context, req *connect.Request[datacatalog.AddTagRequest]) (*connect.Response[datacatalog.AddTagResponse], error) { - return c.addTag.CallUnary(ctx, req) -} - -// ListArtifacts calls datacatalog.DataCatalog.ListArtifacts. -func (c *dataCatalogClient) ListArtifacts(ctx context.Context, req *connect.Request[datacatalog.ListArtifactsRequest]) (*connect.Response[datacatalog.ListArtifactsResponse], error) { - return c.listArtifacts.CallUnary(ctx, req) -} - -// ListDatasets calls datacatalog.DataCatalog.ListDatasets. -func (c *dataCatalogClient) ListDatasets(ctx context.Context, req *connect.Request[datacatalog.ListDatasetsRequest]) (*connect.Response[datacatalog.ListDatasetsResponse], error) { - return c.listDatasets.CallUnary(ctx, req) -} - -// UpdateArtifact calls datacatalog.DataCatalog.UpdateArtifact. -func (c *dataCatalogClient) UpdateArtifact(ctx context.Context, req *connect.Request[datacatalog.UpdateArtifactRequest]) (*connect.Response[datacatalog.UpdateArtifactResponse], error) { - return c.updateArtifact.CallUnary(ctx, req) -} - -// GetOrExtendReservation calls datacatalog.DataCatalog.GetOrExtendReservation. -func (c *dataCatalogClient) GetOrExtendReservation(ctx context.Context, req *connect.Request[datacatalog.GetOrExtendReservationRequest]) (*connect.Response[datacatalog.GetOrExtendReservationResponse], error) { - return c.getOrExtendReservation.CallUnary(ctx, req) -} - -// ReleaseReservation calls datacatalog.DataCatalog.ReleaseReservation. -func (c *dataCatalogClient) ReleaseReservation(ctx context.Context, req *connect.Request[datacatalog.ReleaseReservationRequest]) (*connect.Response[datacatalog.ReleaseReservationResponse], error) { - return c.releaseReservation.CallUnary(ctx, req) -} - -// DataCatalogHandler is an implementation of the datacatalog.DataCatalog service. -type DataCatalogHandler interface { - // Create a new Dataset. Datasets are unique based on the DatasetID. Datasets are logical groupings of artifacts. - // Each dataset can have one or more artifacts - CreateDataset(context.Context, *connect.Request[datacatalog.CreateDatasetRequest]) (*connect.Response[datacatalog.CreateDatasetResponse], error) - // Get a Dataset by the DatasetID. This returns the Dataset with the associated metadata. - GetDataset(context.Context, *connect.Request[datacatalog.GetDatasetRequest]) (*connect.Response[datacatalog.GetDatasetResponse], error) - // Create an artifact and the artifact data associated with it. An artifact can be a hive partition or arbitrary - // files or data values - CreateArtifact(context.Context, *connect.Request[datacatalog.CreateArtifactRequest]) (*connect.Response[datacatalog.CreateArtifactResponse], error) - // Retrieve an artifact by an identifying handle. This returns an artifact along with the artifact data. - GetArtifact(context.Context, *connect.Request[datacatalog.GetArtifactRequest]) (*connect.Response[datacatalog.GetArtifactResponse], error) - // Associate a tag with an artifact. Tags are unique within a Dataset. - AddTag(context.Context, *connect.Request[datacatalog.AddTagRequest]) (*connect.Response[datacatalog.AddTagResponse], error) - // Return a paginated list of artifacts - ListArtifacts(context.Context, *connect.Request[datacatalog.ListArtifactsRequest]) (*connect.Response[datacatalog.ListArtifactsResponse], error) - // Return a paginated list of datasets - ListDatasets(context.Context, *connect.Request[datacatalog.ListDatasetsRequest]) (*connect.Response[datacatalog.ListDatasetsResponse], error) - // Updates an existing artifact, overwriting the stored artifact data in the underlying blob storage. - UpdateArtifact(context.Context, *connect.Request[datacatalog.UpdateArtifactRequest]) (*connect.Response[datacatalog.UpdateArtifactResponse], error) - // Attempts to get or extend a reservation for the corresponding artifact. If one already exists - // (ie. another entity owns the reservation) then that reservation is retrieved. - // Once you acquire a reservation, you need to periodically extend the reservation with an - // identical call. If the reservation is not extended before the defined expiration, it may be - // acquired by another task. - // Note: We may have multiple concurrent tasks with the same signature and the same input that - // try to populate the same artifact at the same time. Thus with reservation, only one task can - // run at a time, until the reservation expires. - // Note: If task A does not extend the reservation in time and the reservation expires, another - // task B may take over the reservation, resulting in two tasks A and B running in parallel. So - // a third task C may get the Artifact from A or B, whichever writes last. - GetOrExtendReservation(context.Context, *connect.Request[datacatalog.GetOrExtendReservationRequest]) (*connect.Response[datacatalog.GetOrExtendReservationResponse], error) - // Release the reservation when the task holding the spot fails so that the other tasks - // can grab the spot. - ReleaseReservation(context.Context, *connect.Request[datacatalog.ReleaseReservationRequest]) (*connect.Response[datacatalog.ReleaseReservationResponse], error) -} - -// NewDataCatalogHandler builds an HTTP handler from the service implementation. It returns the path -// on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewDataCatalogHandler(svc DataCatalogHandler, opts ...connect.HandlerOption) (string, http.Handler) { - dataCatalogCreateDatasetHandler := connect.NewUnaryHandler( - DataCatalogCreateDatasetProcedure, - svc.CreateDataset, - connect.WithSchema(dataCatalogCreateDatasetMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataCatalogGetDatasetHandler := connect.NewUnaryHandler( - DataCatalogGetDatasetProcedure, - svc.GetDataset, - connect.WithSchema(dataCatalogGetDatasetMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataCatalogCreateArtifactHandler := connect.NewUnaryHandler( - DataCatalogCreateArtifactProcedure, - svc.CreateArtifact, - connect.WithSchema(dataCatalogCreateArtifactMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataCatalogGetArtifactHandler := connect.NewUnaryHandler( - DataCatalogGetArtifactProcedure, - svc.GetArtifact, - connect.WithSchema(dataCatalogGetArtifactMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataCatalogAddTagHandler := connect.NewUnaryHandler( - DataCatalogAddTagProcedure, - svc.AddTag, - connect.WithSchema(dataCatalogAddTagMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataCatalogListArtifactsHandler := connect.NewUnaryHandler( - DataCatalogListArtifactsProcedure, - svc.ListArtifacts, - connect.WithSchema(dataCatalogListArtifactsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataCatalogListDatasetsHandler := connect.NewUnaryHandler( - DataCatalogListDatasetsProcedure, - svc.ListDatasets, - connect.WithSchema(dataCatalogListDatasetsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataCatalogUpdateArtifactHandler := connect.NewUnaryHandler( - DataCatalogUpdateArtifactProcedure, - svc.UpdateArtifact, - connect.WithSchema(dataCatalogUpdateArtifactMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataCatalogGetOrExtendReservationHandler := connect.NewUnaryHandler( - DataCatalogGetOrExtendReservationProcedure, - svc.GetOrExtendReservation, - connect.WithSchema(dataCatalogGetOrExtendReservationMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataCatalogReleaseReservationHandler := connect.NewUnaryHandler( - DataCatalogReleaseReservationProcedure, - svc.ReleaseReservation, - connect.WithSchema(dataCatalogReleaseReservationMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/datacatalog.DataCatalog/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case DataCatalogCreateDatasetProcedure: - dataCatalogCreateDatasetHandler.ServeHTTP(w, r) - case DataCatalogGetDatasetProcedure: - dataCatalogGetDatasetHandler.ServeHTTP(w, r) - case DataCatalogCreateArtifactProcedure: - dataCatalogCreateArtifactHandler.ServeHTTP(w, r) - case DataCatalogGetArtifactProcedure: - dataCatalogGetArtifactHandler.ServeHTTP(w, r) - case DataCatalogAddTagProcedure: - dataCatalogAddTagHandler.ServeHTTP(w, r) - case DataCatalogListArtifactsProcedure: - dataCatalogListArtifactsHandler.ServeHTTP(w, r) - case DataCatalogListDatasetsProcedure: - dataCatalogListDatasetsHandler.ServeHTTP(w, r) - case DataCatalogUpdateArtifactProcedure: - dataCatalogUpdateArtifactHandler.ServeHTTP(w, r) - case DataCatalogGetOrExtendReservationProcedure: - dataCatalogGetOrExtendReservationHandler.ServeHTTP(w, r) - case DataCatalogReleaseReservationProcedure: - dataCatalogReleaseReservationHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedDataCatalogHandler returns CodeUnimplemented from all methods. -type UnimplementedDataCatalogHandler struct{} - -func (UnimplementedDataCatalogHandler) CreateDataset(context.Context, *connect.Request[datacatalog.CreateDatasetRequest]) (*connect.Response[datacatalog.CreateDatasetResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.CreateDataset is not implemented")) -} - -func (UnimplementedDataCatalogHandler) GetDataset(context.Context, *connect.Request[datacatalog.GetDatasetRequest]) (*connect.Response[datacatalog.GetDatasetResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.GetDataset is not implemented")) -} - -func (UnimplementedDataCatalogHandler) CreateArtifact(context.Context, *connect.Request[datacatalog.CreateArtifactRequest]) (*connect.Response[datacatalog.CreateArtifactResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.CreateArtifact is not implemented")) -} - -func (UnimplementedDataCatalogHandler) GetArtifact(context.Context, *connect.Request[datacatalog.GetArtifactRequest]) (*connect.Response[datacatalog.GetArtifactResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.GetArtifact is not implemented")) -} - -func (UnimplementedDataCatalogHandler) AddTag(context.Context, *connect.Request[datacatalog.AddTagRequest]) (*connect.Response[datacatalog.AddTagResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.AddTag is not implemented")) -} - -func (UnimplementedDataCatalogHandler) ListArtifacts(context.Context, *connect.Request[datacatalog.ListArtifactsRequest]) (*connect.Response[datacatalog.ListArtifactsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.ListArtifacts is not implemented")) -} - -func (UnimplementedDataCatalogHandler) ListDatasets(context.Context, *connect.Request[datacatalog.ListDatasetsRequest]) (*connect.Response[datacatalog.ListDatasetsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.ListDatasets is not implemented")) -} - -func (UnimplementedDataCatalogHandler) UpdateArtifact(context.Context, *connect.Request[datacatalog.UpdateArtifactRequest]) (*connect.Response[datacatalog.UpdateArtifactResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.UpdateArtifact is not implemented")) -} - -func (UnimplementedDataCatalogHandler) GetOrExtendReservation(context.Context, *connect.Request[datacatalog.GetOrExtendReservationRequest]) (*connect.Response[datacatalog.GetOrExtendReservationResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.GetOrExtendReservation is not implemented")) -} - -func (UnimplementedDataCatalogHandler) ReleaseReservation(context.Context, *connect.Request[datacatalog.ReleaseReservationRequest]) (*connect.Response[datacatalog.ReleaseReservationResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("datacatalog.DataCatalog.ReleaseReservation is not implemented")) -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/admin.connect.go b/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/admin.connect.go deleted file mode 100644 index 871c644df9..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/admin.connect.go +++ /dev/null @@ -1,1818 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: flyteidl/service/admin.proto - -package serviceconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // AdminServiceName is the fully-qualified name of the AdminService service. - AdminServiceName = "flyteidl.service.AdminService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // AdminServiceCreateTaskProcedure is the fully-qualified name of the AdminService's CreateTask RPC. - AdminServiceCreateTaskProcedure = "/flyteidl.service.AdminService/CreateTask" - // AdminServiceGetTaskProcedure is the fully-qualified name of the AdminService's GetTask RPC. - AdminServiceGetTaskProcedure = "/flyteidl.service.AdminService/GetTask" - // AdminServiceListTaskIdsProcedure is the fully-qualified name of the AdminService's ListTaskIds - // RPC. - AdminServiceListTaskIdsProcedure = "/flyteidl.service.AdminService/ListTaskIds" - // AdminServiceListTasksProcedure is the fully-qualified name of the AdminService's ListTasks RPC. - AdminServiceListTasksProcedure = "/flyteidl.service.AdminService/ListTasks" - // AdminServiceCreateWorkflowProcedure is the fully-qualified name of the AdminService's - // CreateWorkflow RPC. - AdminServiceCreateWorkflowProcedure = "/flyteidl.service.AdminService/CreateWorkflow" - // AdminServiceGetWorkflowProcedure is the fully-qualified name of the AdminService's GetWorkflow - // RPC. - AdminServiceGetWorkflowProcedure = "/flyteidl.service.AdminService/GetWorkflow" - // AdminServiceListWorkflowIdsProcedure is the fully-qualified name of the AdminService's - // ListWorkflowIds RPC. - AdminServiceListWorkflowIdsProcedure = "/flyteidl.service.AdminService/ListWorkflowIds" - // AdminServiceListWorkflowsProcedure is the fully-qualified name of the AdminService's - // ListWorkflows RPC. - AdminServiceListWorkflowsProcedure = "/flyteidl.service.AdminService/ListWorkflows" - // AdminServiceCreateLaunchPlanProcedure is the fully-qualified name of the AdminService's - // CreateLaunchPlan RPC. - AdminServiceCreateLaunchPlanProcedure = "/flyteidl.service.AdminService/CreateLaunchPlan" - // AdminServiceGetLaunchPlanProcedure is the fully-qualified name of the AdminService's - // GetLaunchPlan RPC. - AdminServiceGetLaunchPlanProcedure = "/flyteidl.service.AdminService/GetLaunchPlan" - // AdminServiceGetActiveLaunchPlanProcedure is the fully-qualified name of the AdminService's - // GetActiveLaunchPlan RPC. - AdminServiceGetActiveLaunchPlanProcedure = "/flyteidl.service.AdminService/GetActiveLaunchPlan" - // AdminServiceListActiveLaunchPlansProcedure is the fully-qualified name of the AdminService's - // ListActiveLaunchPlans RPC. - AdminServiceListActiveLaunchPlansProcedure = "/flyteidl.service.AdminService/ListActiveLaunchPlans" - // AdminServiceListLaunchPlanIdsProcedure is the fully-qualified name of the AdminService's - // ListLaunchPlanIds RPC. - AdminServiceListLaunchPlanIdsProcedure = "/flyteidl.service.AdminService/ListLaunchPlanIds" - // AdminServiceListLaunchPlansProcedure is the fully-qualified name of the AdminService's - // ListLaunchPlans RPC. - AdminServiceListLaunchPlansProcedure = "/flyteidl.service.AdminService/ListLaunchPlans" - // AdminServiceUpdateLaunchPlanProcedure is the fully-qualified name of the AdminService's - // UpdateLaunchPlan RPC. - AdminServiceUpdateLaunchPlanProcedure = "/flyteidl.service.AdminService/UpdateLaunchPlan" - // AdminServiceCreateExecutionProcedure is the fully-qualified name of the AdminService's - // CreateExecution RPC. - AdminServiceCreateExecutionProcedure = "/flyteidl.service.AdminService/CreateExecution" - // AdminServiceRelaunchExecutionProcedure is the fully-qualified name of the AdminService's - // RelaunchExecution RPC. - AdminServiceRelaunchExecutionProcedure = "/flyteidl.service.AdminService/RelaunchExecution" - // AdminServiceRecoverExecutionProcedure is the fully-qualified name of the AdminService's - // RecoverExecution RPC. - AdminServiceRecoverExecutionProcedure = "/flyteidl.service.AdminService/RecoverExecution" - // AdminServiceGetExecutionProcedure is the fully-qualified name of the AdminService's GetExecution - // RPC. - AdminServiceGetExecutionProcedure = "/flyteidl.service.AdminService/GetExecution" - // AdminServiceUpdateExecutionProcedure is the fully-qualified name of the AdminService's - // UpdateExecution RPC. - AdminServiceUpdateExecutionProcedure = "/flyteidl.service.AdminService/UpdateExecution" - // AdminServiceGetExecutionDataProcedure is the fully-qualified name of the AdminService's - // GetExecutionData RPC. - AdminServiceGetExecutionDataProcedure = "/flyteidl.service.AdminService/GetExecutionData" - // AdminServiceListExecutionsProcedure is the fully-qualified name of the AdminService's - // ListExecutions RPC. - AdminServiceListExecutionsProcedure = "/flyteidl.service.AdminService/ListExecutions" - // AdminServiceTerminateExecutionProcedure is the fully-qualified name of the AdminService's - // TerminateExecution RPC. - AdminServiceTerminateExecutionProcedure = "/flyteidl.service.AdminService/TerminateExecution" - // AdminServiceGetNodeExecutionProcedure is the fully-qualified name of the AdminService's - // GetNodeExecution RPC. - AdminServiceGetNodeExecutionProcedure = "/flyteidl.service.AdminService/GetNodeExecution" - // AdminServiceGetDynamicNodeWorkflowProcedure is the fully-qualified name of the AdminService's - // GetDynamicNodeWorkflow RPC. - AdminServiceGetDynamicNodeWorkflowProcedure = "/flyteidl.service.AdminService/GetDynamicNodeWorkflow" - // AdminServiceListNodeExecutionsProcedure is the fully-qualified name of the AdminService's - // ListNodeExecutions RPC. - AdminServiceListNodeExecutionsProcedure = "/flyteidl.service.AdminService/ListNodeExecutions" - // AdminServiceListNodeExecutionsForTaskProcedure is the fully-qualified name of the AdminService's - // ListNodeExecutionsForTask RPC. - AdminServiceListNodeExecutionsForTaskProcedure = "/flyteidl.service.AdminService/ListNodeExecutionsForTask" - // AdminServiceGetNodeExecutionDataProcedure is the fully-qualified name of the AdminService's - // GetNodeExecutionData RPC. - AdminServiceGetNodeExecutionDataProcedure = "/flyteidl.service.AdminService/GetNodeExecutionData" - // AdminServiceRegisterProjectProcedure is the fully-qualified name of the AdminService's - // RegisterProject RPC. - AdminServiceRegisterProjectProcedure = "/flyteidl.service.AdminService/RegisterProject" - // AdminServiceUpdateProjectProcedure is the fully-qualified name of the AdminService's - // UpdateProject RPC. - AdminServiceUpdateProjectProcedure = "/flyteidl.service.AdminService/UpdateProject" - // AdminServiceListProjectsProcedure is the fully-qualified name of the AdminService's ListProjects - // RPC. - AdminServiceListProjectsProcedure = "/flyteidl.service.AdminService/ListProjects" - // AdminServiceCreateWorkflowEventProcedure is the fully-qualified name of the AdminService's - // CreateWorkflowEvent RPC. - AdminServiceCreateWorkflowEventProcedure = "/flyteidl.service.AdminService/CreateWorkflowEvent" - // AdminServiceCreateNodeEventProcedure is the fully-qualified name of the AdminService's - // CreateNodeEvent RPC. - AdminServiceCreateNodeEventProcedure = "/flyteidl.service.AdminService/CreateNodeEvent" - // AdminServiceCreateTaskEventProcedure is the fully-qualified name of the AdminService's - // CreateTaskEvent RPC. - AdminServiceCreateTaskEventProcedure = "/flyteidl.service.AdminService/CreateTaskEvent" - // AdminServiceGetTaskExecutionProcedure is the fully-qualified name of the AdminService's - // GetTaskExecution RPC. - AdminServiceGetTaskExecutionProcedure = "/flyteidl.service.AdminService/GetTaskExecution" - // AdminServiceListTaskExecutionsProcedure is the fully-qualified name of the AdminService's - // ListTaskExecutions RPC. - AdminServiceListTaskExecutionsProcedure = "/flyteidl.service.AdminService/ListTaskExecutions" - // AdminServiceGetTaskExecutionDataProcedure is the fully-qualified name of the AdminService's - // GetTaskExecutionData RPC. - AdminServiceGetTaskExecutionDataProcedure = "/flyteidl.service.AdminService/GetTaskExecutionData" - // AdminServiceUpdateProjectDomainAttributesProcedure is the fully-qualified name of the - // AdminService's UpdateProjectDomainAttributes RPC. - AdminServiceUpdateProjectDomainAttributesProcedure = "/flyteidl.service.AdminService/UpdateProjectDomainAttributes" - // AdminServiceGetProjectDomainAttributesProcedure is the fully-qualified name of the AdminService's - // GetProjectDomainAttributes RPC. - AdminServiceGetProjectDomainAttributesProcedure = "/flyteidl.service.AdminService/GetProjectDomainAttributes" - // AdminServiceDeleteProjectDomainAttributesProcedure is the fully-qualified name of the - // AdminService's DeleteProjectDomainAttributes RPC. - AdminServiceDeleteProjectDomainAttributesProcedure = "/flyteidl.service.AdminService/DeleteProjectDomainAttributes" - // AdminServiceUpdateProjectAttributesProcedure is the fully-qualified name of the AdminService's - // UpdateProjectAttributes RPC. - AdminServiceUpdateProjectAttributesProcedure = "/flyteidl.service.AdminService/UpdateProjectAttributes" - // AdminServiceGetProjectAttributesProcedure is the fully-qualified name of the AdminService's - // GetProjectAttributes RPC. - AdminServiceGetProjectAttributesProcedure = "/flyteidl.service.AdminService/GetProjectAttributes" - // AdminServiceDeleteProjectAttributesProcedure is the fully-qualified name of the AdminService's - // DeleteProjectAttributes RPC. - AdminServiceDeleteProjectAttributesProcedure = "/flyteidl.service.AdminService/DeleteProjectAttributes" - // AdminServiceUpdateWorkflowAttributesProcedure is the fully-qualified name of the AdminService's - // UpdateWorkflowAttributes RPC. - AdminServiceUpdateWorkflowAttributesProcedure = "/flyteidl.service.AdminService/UpdateWorkflowAttributes" - // AdminServiceGetWorkflowAttributesProcedure is the fully-qualified name of the AdminService's - // GetWorkflowAttributes RPC. - AdminServiceGetWorkflowAttributesProcedure = "/flyteidl.service.AdminService/GetWorkflowAttributes" - // AdminServiceDeleteWorkflowAttributesProcedure is the fully-qualified name of the AdminService's - // DeleteWorkflowAttributes RPC. - AdminServiceDeleteWorkflowAttributesProcedure = "/flyteidl.service.AdminService/DeleteWorkflowAttributes" - // AdminServiceListMatchableAttributesProcedure is the fully-qualified name of the AdminService's - // ListMatchableAttributes RPC. - AdminServiceListMatchableAttributesProcedure = "/flyteidl.service.AdminService/ListMatchableAttributes" - // AdminServiceListNamedEntitiesProcedure is the fully-qualified name of the AdminService's - // ListNamedEntities RPC. - AdminServiceListNamedEntitiesProcedure = "/flyteidl.service.AdminService/ListNamedEntities" - // AdminServiceGetNamedEntityProcedure is the fully-qualified name of the AdminService's - // GetNamedEntity RPC. - AdminServiceGetNamedEntityProcedure = "/flyteidl.service.AdminService/GetNamedEntity" - // AdminServiceUpdateNamedEntityProcedure is the fully-qualified name of the AdminService's - // UpdateNamedEntity RPC. - AdminServiceUpdateNamedEntityProcedure = "/flyteidl.service.AdminService/UpdateNamedEntity" - // AdminServiceGetVersionProcedure is the fully-qualified name of the AdminService's GetVersion RPC. - AdminServiceGetVersionProcedure = "/flyteidl.service.AdminService/GetVersion" - // AdminServiceGetDescriptionEntityProcedure is the fully-qualified name of the AdminService's - // GetDescriptionEntity RPC. - AdminServiceGetDescriptionEntityProcedure = "/flyteidl.service.AdminService/GetDescriptionEntity" - // AdminServiceListDescriptionEntitiesProcedure is the fully-qualified name of the AdminService's - // ListDescriptionEntities RPC. - AdminServiceListDescriptionEntitiesProcedure = "/flyteidl.service.AdminService/ListDescriptionEntities" - // AdminServiceGetExecutionMetricsProcedure is the fully-qualified name of the AdminService's - // GetExecutionMetrics RPC. - AdminServiceGetExecutionMetricsProcedure = "/flyteidl.service.AdminService/GetExecutionMetrics" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - adminServiceServiceDescriptor = service.File_flyteidl_service_admin_proto.Services().ByName("AdminService") - adminServiceCreateTaskMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("CreateTask") - adminServiceGetTaskMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetTask") - adminServiceListTaskIdsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListTaskIds") - adminServiceListTasksMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListTasks") - adminServiceCreateWorkflowMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("CreateWorkflow") - adminServiceGetWorkflowMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetWorkflow") - adminServiceListWorkflowIdsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListWorkflowIds") - adminServiceListWorkflowsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListWorkflows") - adminServiceCreateLaunchPlanMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("CreateLaunchPlan") - adminServiceGetLaunchPlanMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetLaunchPlan") - adminServiceGetActiveLaunchPlanMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetActiveLaunchPlan") - adminServiceListActiveLaunchPlansMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListActiveLaunchPlans") - adminServiceListLaunchPlanIdsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListLaunchPlanIds") - adminServiceListLaunchPlansMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListLaunchPlans") - adminServiceUpdateLaunchPlanMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateLaunchPlan") - adminServiceCreateExecutionMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("CreateExecution") - adminServiceRelaunchExecutionMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("RelaunchExecution") - adminServiceRecoverExecutionMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("RecoverExecution") - adminServiceGetExecutionMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetExecution") - adminServiceUpdateExecutionMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateExecution") - adminServiceGetExecutionDataMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetExecutionData") - adminServiceListExecutionsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListExecutions") - adminServiceTerminateExecutionMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("TerminateExecution") - adminServiceGetNodeExecutionMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetNodeExecution") - adminServiceGetDynamicNodeWorkflowMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetDynamicNodeWorkflow") - adminServiceListNodeExecutionsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListNodeExecutions") - adminServiceListNodeExecutionsForTaskMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListNodeExecutionsForTask") - adminServiceGetNodeExecutionDataMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetNodeExecutionData") - adminServiceRegisterProjectMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("RegisterProject") - adminServiceUpdateProjectMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateProject") - adminServiceListProjectsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListProjects") - adminServiceCreateWorkflowEventMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("CreateWorkflowEvent") - adminServiceCreateNodeEventMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("CreateNodeEvent") - adminServiceCreateTaskEventMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("CreateTaskEvent") - adminServiceGetTaskExecutionMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetTaskExecution") - adminServiceListTaskExecutionsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListTaskExecutions") - adminServiceGetTaskExecutionDataMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetTaskExecutionData") - adminServiceUpdateProjectDomainAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateProjectDomainAttributes") - adminServiceGetProjectDomainAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetProjectDomainAttributes") - adminServiceDeleteProjectDomainAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("DeleteProjectDomainAttributes") - adminServiceUpdateProjectAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateProjectAttributes") - adminServiceGetProjectAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetProjectAttributes") - adminServiceDeleteProjectAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("DeleteProjectAttributes") - adminServiceUpdateWorkflowAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateWorkflowAttributes") - adminServiceGetWorkflowAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetWorkflowAttributes") - adminServiceDeleteWorkflowAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("DeleteWorkflowAttributes") - adminServiceListMatchableAttributesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListMatchableAttributes") - adminServiceListNamedEntitiesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListNamedEntities") - adminServiceGetNamedEntityMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetNamedEntity") - adminServiceUpdateNamedEntityMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("UpdateNamedEntity") - adminServiceGetVersionMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetVersion") - adminServiceGetDescriptionEntityMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetDescriptionEntity") - adminServiceListDescriptionEntitiesMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("ListDescriptionEntities") - adminServiceGetExecutionMetricsMethodDescriptor = adminServiceServiceDescriptor.Methods().ByName("GetExecutionMetrics") -) - -// AdminServiceClient is a client for the flyteidl.service.AdminService service. -type AdminServiceClient interface { - // Create and upload a :ref:`ref_flyteidl.admin.Task` definition - CreateTask(context.Context, *connect.Request[admin.TaskCreateRequest]) (*connect.Response[admin.TaskCreateResponse], error) - // Fetch a :ref:`ref_flyteidl.admin.Task` definition. - GetTask(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.Task], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - ListTaskIds(context.Context, *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - ListTasks(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.TaskList], error) - // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - CreateWorkflow(context.Context, *connect.Request[admin.WorkflowCreateRequest]) (*connect.Response[admin.WorkflowCreateResponse], error) - // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - GetWorkflow(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.Workflow], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - ListWorkflowIds(context.Context, *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - ListWorkflows(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.WorkflowList], error) - // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - CreateLaunchPlan(context.Context, *connect.Request[admin.LaunchPlanCreateRequest]) (*connect.Response[admin.LaunchPlanCreateResponse], error) - // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - GetLaunchPlan(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.LaunchPlan], error) - // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - GetActiveLaunchPlan(context.Context, *connect.Request[admin.ActiveLaunchPlanRequest]) (*connect.Response[admin.LaunchPlan], error) - // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - ListActiveLaunchPlans(context.Context, *connect.Request[admin.ActiveLaunchPlanListRequest]) (*connect.Response[admin.LaunchPlanList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - ListLaunchPlanIds(context.Context, *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - ListLaunchPlans(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.LaunchPlanList], error) - // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - UpdateLaunchPlan(context.Context, *connect.Request[admin.LaunchPlanUpdateRequest]) (*connect.Response[admin.LaunchPlanUpdateResponse], error) - // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - CreateExecution(context.Context, *connect.Request[admin.ExecutionCreateRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) - // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - RelaunchExecution(context.Context, *connect.Request[admin.ExecutionRelaunchRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) - // Recreates a previously-run workflow execution that will only start executing from the last known failure point. - // In Recover mode, users cannot change any input parameters or update the version of the execution. - // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - RecoverExecution(context.Context, *connect.Request[admin.ExecutionRecoverRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) - // Fetches a :ref:`ref_flyteidl.admin.Execution`. - GetExecution(context.Context, *connect.Request[admin.WorkflowExecutionGetRequest]) (*connect.Response[admin.Execution], error) - // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - UpdateExecution(context.Context, *connect.Request[admin.ExecutionUpdateRequest]) (*connect.Response[admin.ExecutionUpdateResponse], error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionData(context.Context, *connect.Request[admin.WorkflowExecutionGetDataRequest]) (*connect.Response[admin.WorkflowExecutionGetDataResponse], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - ListExecutions(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.ExecutionList], error) - // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - TerminateExecution(context.Context, *connect.Request[admin.ExecutionTerminateRequest]) (*connect.Response[admin.ExecutionTerminateResponse], error) - // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecution(context.Context, *connect.Request[admin.NodeExecutionGetRequest]) (*connect.Response[admin.NodeExecution], error) - // Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`. - GetDynamicNodeWorkflow(context.Context, *connect.Request[admin.GetDynamicNodeWorkflowRequest]) (*connect.Response[admin.DynamicNodeWorkflowResponse], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - ListNodeExecutions(context.Context, *connect.Request[admin.NodeExecutionListRequest]) (*connect.Response[admin.NodeExecutionList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - ListNodeExecutionsForTask(context.Context, *connect.Request[admin.NodeExecutionForTaskListRequest]) (*connect.Response[admin.NodeExecutionList], error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecutionData(context.Context, *connect.Request[admin.NodeExecutionGetDataRequest]) (*connect.Response[admin.NodeExecutionGetDataResponse], error) - // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - RegisterProject(context.Context, *connect.Request[admin.ProjectRegisterRequest]) (*connect.Response[admin.ProjectRegisterResponse], error) - // Updates an existing :ref:`ref_flyteidl.admin.Project` - // flyteidl.admin.Project should be passed but the domains property should be empty; - // it will be ignored in the handler as domains cannot be updated via this API. - UpdateProject(context.Context, *connect.Request[admin.Project]) (*connect.Response[admin.ProjectUpdateResponse], error) - // Fetches a list of :ref:`ref_flyteidl.admin.Project` - ListProjects(context.Context, *connect.Request[admin.ProjectListRequest]) (*connect.Response[admin.Projects], error) - // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - CreateWorkflowEvent(context.Context, *connect.Request[admin.WorkflowExecutionEventRequest]) (*connect.Response[admin.WorkflowExecutionEventResponse], error) - // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - CreateNodeEvent(context.Context, *connect.Request[admin.NodeExecutionEventRequest]) (*connect.Response[admin.NodeExecutionEventResponse], error) - // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - CreateTaskEvent(context.Context, *connect.Request[admin.TaskExecutionEventRequest]) (*connect.Response[admin.TaskExecutionEventResponse], error) - // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecution(context.Context, *connect.Request[admin.TaskExecutionGetRequest]) (*connect.Response[admin.TaskExecution], error) - // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - ListTaskExecutions(context.Context, *connect.Request[admin.TaskExecutionListRequest]) (*connect.Response[admin.TaskExecutionList], error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecutionData(context.Context, *connect.Request[admin.TaskExecutionGetDataRequest]) (*connect.Response[admin.TaskExecutionGetDataResponse], error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - UpdateProjectDomainAttributes(context.Context, *connect.Request[admin.ProjectDomainAttributesUpdateRequest]) (*connect.Response[admin.ProjectDomainAttributesUpdateResponse], error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectDomainAttributes(context.Context, *connect.Request[admin.ProjectDomainAttributesGetRequest]) (*connect.Response[admin.ProjectDomainAttributesGetResponse], error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectDomainAttributes(context.Context, *connect.Request[admin.ProjectDomainAttributesDeleteRequest]) (*connect.Response[admin.ProjectDomainAttributesDeleteResponse], error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - UpdateProjectAttributes(context.Context, *connect.Request[admin.ProjectAttributesUpdateRequest]) (*connect.Response[admin.ProjectAttributesUpdateResponse], error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectAttributes(context.Context, *connect.Request[admin.ProjectAttributesGetRequest]) (*connect.Response[admin.ProjectAttributesGetResponse], error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectAttributes(context.Context, *connect.Request[admin.ProjectAttributesDeleteRequest]) (*connect.Response[admin.ProjectAttributesDeleteResponse], error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - UpdateWorkflowAttributes(context.Context, *connect.Request[admin.WorkflowAttributesUpdateRequest]) (*connect.Response[admin.WorkflowAttributesUpdateResponse], error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - GetWorkflowAttributes(context.Context, *connect.Request[admin.WorkflowAttributesGetRequest]) (*connect.Response[admin.WorkflowAttributesGetResponse], error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - DeleteWorkflowAttributes(context.Context, *connect.Request[admin.WorkflowAttributesDeleteRequest]) (*connect.Response[admin.WorkflowAttributesDeleteResponse], error) - // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - ListMatchableAttributes(context.Context, *connect.Request[admin.ListMatchableAttributesRequest]) (*connect.Response[admin.ListMatchableAttributesResponse], error) - // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - ListNamedEntities(context.Context, *connect.Request[admin.NamedEntityListRequest]) (*connect.Response[admin.NamedEntityList], error) - // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - GetNamedEntity(context.Context, *connect.Request[admin.NamedEntityGetRequest]) (*connect.Response[admin.NamedEntity], error) - // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - UpdateNamedEntity(context.Context, *connect.Request[admin.NamedEntityUpdateRequest]) (*connect.Response[admin.NamedEntityUpdateResponse], error) - GetVersion(context.Context, *connect.Request[admin.GetVersionRequest]) (*connect.Response[admin.GetVersionResponse], error) - // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - GetDescriptionEntity(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.DescriptionEntity], error) - // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - ListDescriptionEntities(context.Context, *connect.Request[admin.DescriptionEntityListRequest]) (*connect.Response[admin.DescriptionEntityList], error) - // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionMetrics(context.Context, *connect.Request[admin.WorkflowExecutionGetMetricsRequest]) (*connect.Response[admin.WorkflowExecutionGetMetricsResponse], error) -} - -// NewAdminServiceClient constructs a client for the flyteidl.service.AdminService service. By -// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, -// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the -// connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewAdminServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AdminServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &adminServiceClient{ - createTask: connect.NewClient[admin.TaskCreateRequest, admin.TaskCreateResponse]( - httpClient, - baseURL+AdminServiceCreateTaskProcedure, - connect.WithSchema(adminServiceCreateTaskMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getTask: connect.NewClient[admin.ObjectGetRequest, admin.Task]( - httpClient, - baseURL+AdminServiceGetTaskProcedure, - connect.WithSchema(adminServiceGetTaskMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listTaskIds: connect.NewClient[admin.NamedEntityIdentifierListRequest, admin.NamedEntityIdentifierList]( - httpClient, - baseURL+AdminServiceListTaskIdsProcedure, - connect.WithSchema(adminServiceListTaskIdsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listTasks: connect.NewClient[admin.ResourceListRequest, admin.TaskList]( - httpClient, - baseURL+AdminServiceListTasksProcedure, - connect.WithSchema(adminServiceListTasksMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createWorkflow: connect.NewClient[admin.WorkflowCreateRequest, admin.WorkflowCreateResponse]( - httpClient, - baseURL+AdminServiceCreateWorkflowProcedure, - connect.WithSchema(adminServiceCreateWorkflowMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getWorkflow: connect.NewClient[admin.ObjectGetRequest, admin.Workflow]( - httpClient, - baseURL+AdminServiceGetWorkflowProcedure, - connect.WithSchema(adminServiceGetWorkflowMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listWorkflowIds: connect.NewClient[admin.NamedEntityIdentifierListRequest, admin.NamedEntityIdentifierList]( - httpClient, - baseURL+AdminServiceListWorkflowIdsProcedure, - connect.WithSchema(adminServiceListWorkflowIdsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listWorkflows: connect.NewClient[admin.ResourceListRequest, admin.WorkflowList]( - httpClient, - baseURL+AdminServiceListWorkflowsProcedure, - connect.WithSchema(adminServiceListWorkflowsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createLaunchPlan: connect.NewClient[admin.LaunchPlanCreateRequest, admin.LaunchPlanCreateResponse]( - httpClient, - baseURL+AdminServiceCreateLaunchPlanProcedure, - connect.WithSchema(adminServiceCreateLaunchPlanMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getLaunchPlan: connect.NewClient[admin.ObjectGetRequest, admin.LaunchPlan]( - httpClient, - baseURL+AdminServiceGetLaunchPlanProcedure, - connect.WithSchema(adminServiceGetLaunchPlanMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getActiveLaunchPlan: connect.NewClient[admin.ActiveLaunchPlanRequest, admin.LaunchPlan]( - httpClient, - baseURL+AdminServiceGetActiveLaunchPlanProcedure, - connect.WithSchema(adminServiceGetActiveLaunchPlanMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listActiveLaunchPlans: connect.NewClient[admin.ActiveLaunchPlanListRequest, admin.LaunchPlanList]( - httpClient, - baseURL+AdminServiceListActiveLaunchPlansProcedure, - connect.WithSchema(adminServiceListActiveLaunchPlansMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listLaunchPlanIds: connect.NewClient[admin.NamedEntityIdentifierListRequest, admin.NamedEntityIdentifierList]( - httpClient, - baseURL+AdminServiceListLaunchPlanIdsProcedure, - connect.WithSchema(adminServiceListLaunchPlanIdsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listLaunchPlans: connect.NewClient[admin.ResourceListRequest, admin.LaunchPlanList]( - httpClient, - baseURL+AdminServiceListLaunchPlansProcedure, - connect.WithSchema(adminServiceListLaunchPlansMethodDescriptor), - connect.WithClientOptions(opts...), - ), - updateLaunchPlan: connect.NewClient[admin.LaunchPlanUpdateRequest, admin.LaunchPlanUpdateResponse]( - httpClient, - baseURL+AdminServiceUpdateLaunchPlanProcedure, - connect.WithSchema(adminServiceUpdateLaunchPlanMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createExecution: connect.NewClient[admin.ExecutionCreateRequest, admin.ExecutionCreateResponse]( - httpClient, - baseURL+AdminServiceCreateExecutionProcedure, - connect.WithSchema(adminServiceCreateExecutionMethodDescriptor), - connect.WithClientOptions(opts...), - ), - relaunchExecution: connect.NewClient[admin.ExecutionRelaunchRequest, admin.ExecutionCreateResponse]( - httpClient, - baseURL+AdminServiceRelaunchExecutionProcedure, - connect.WithSchema(adminServiceRelaunchExecutionMethodDescriptor), - connect.WithClientOptions(opts...), - ), - recoverExecution: connect.NewClient[admin.ExecutionRecoverRequest, admin.ExecutionCreateResponse]( - httpClient, - baseURL+AdminServiceRecoverExecutionProcedure, - connect.WithSchema(adminServiceRecoverExecutionMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getExecution: connect.NewClient[admin.WorkflowExecutionGetRequest, admin.Execution]( - httpClient, - baseURL+AdminServiceGetExecutionProcedure, - connect.WithSchema(adminServiceGetExecutionMethodDescriptor), - connect.WithClientOptions(opts...), - ), - updateExecution: connect.NewClient[admin.ExecutionUpdateRequest, admin.ExecutionUpdateResponse]( - httpClient, - baseURL+AdminServiceUpdateExecutionProcedure, - connect.WithSchema(adminServiceUpdateExecutionMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getExecutionData: connect.NewClient[admin.WorkflowExecutionGetDataRequest, admin.WorkflowExecutionGetDataResponse]( - httpClient, - baseURL+AdminServiceGetExecutionDataProcedure, - connect.WithSchema(adminServiceGetExecutionDataMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listExecutions: connect.NewClient[admin.ResourceListRequest, admin.ExecutionList]( - httpClient, - baseURL+AdminServiceListExecutionsProcedure, - connect.WithSchema(adminServiceListExecutionsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - terminateExecution: connect.NewClient[admin.ExecutionTerminateRequest, admin.ExecutionTerminateResponse]( - httpClient, - baseURL+AdminServiceTerminateExecutionProcedure, - connect.WithSchema(adminServiceTerminateExecutionMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getNodeExecution: connect.NewClient[admin.NodeExecutionGetRequest, admin.NodeExecution]( - httpClient, - baseURL+AdminServiceGetNodeExecutionProcedure, - connect.WithSchema(adminServiceGetNodeExecutionMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getDynamicNodeWorkflow: connect.NewClient[admin.GetDynamicNodeWorkflowRequest, admin.DynamicNodeWorkflowResponse]( - httpClient, - baseURL+AdminServiceGetDynamicNodeWorkflowProcedure, - connect.WithSchema(adminServiceGetDynamicNodeWorkflowMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listNodeExecutions: connect.NewClient[admin.NodeExecutionListRequest, admin.NodeExecutionList]( - httpClient, - baseURL+AdminServiceListNodeExecutionsProcedure, - connect.WithSchema(adminServiceListNodeExecutionsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listNodeExecutionsForTask: connect.NewClient[admin.NodeExecutionForTaskListRequest, admin.NodeExecutionList]( - httpClient, - baseURL+AdminServiceListNodeExecutionsForTaskProcedure, - connect.WithSchema(adminServiceListNodeExecutionsForTaskMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getNodeExecutionData: connect.NewClient[admin.NodeExecutionGetDataRequest, admin.NodeExecutionGetDataResponse]( - httpClient, - baseURL+AdminServiceGetNodeExecutionDataProcedure, - connect.WithSchema(adminServiceGetNodeExecutionDataMethodDescriptor), - connect.WithClientOptions(opts...), - ), - registerProject: connect.NewClient[admin.ProjectRegisterRequest, admin.ProjectRegisterResponse]( - httpClient, - baseURL+AdminServiceRegisterProjectProcedure, - connect.WithSchema(adminServiceRegisterProjectMethodDescriptor), - connect.WithClientOptions(opts...), - ), - updateProject: connect.NewClient[admin.Project, admin.ProjectUpdateResponse]( - httpClient, - baseURL+AdminServiceUpdateProjectProcedure, - connect.WithSchema(adminServiceUpdateProjectMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listProjects: connect.NewClient[admin.ProjectListRequest, admin.Projects]( - httpClient, - baseURL+AdminServiceListProjectsProcedure, - connect.WithSchema(adminServiceListProjectsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createWorkflowEvent: connect.NewClient[admin.WorkflowExecutionEventRequest, admin.WorkflowExecutionEventResponse]( - httpClient, - baseURL+AdminServiceCreateWorkflowEventProcedure, - connect.WithSchema(adminServiceCreateWorkflowEventMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createNodeEvent: connect.NewClient[admin.NodeExecutionEventRequest, admin.NodeExecutionEventResponse]( - httpClient, - baseURL+AdminServiceCreateNodeEventProcedure, - connect.WithSchema(adminServiceCreateNodeEventMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createTaskEvent: connect.NewClient[admin.TaskExecutionEventRequest, admin.TaskExecutionEventResponse]( - httpClient, - baseURL+AdminServiceCreateTaskEventProcedure, - connect.WithSchema(adminServiceCreateTaskEventMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getTaskExecution: connect.NewClient[admin.TaskExecutionGetRequest, admin.TaskExecution]( - httpClient, - baseURL+AdminServiceGetTaskExecutionProcedure, - connect.WithSchema(adminServiceGetTaskExecutionMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listTaskExecutions: connect.NewClient[admin.TaskExecutionListRequest, admin.TaskExecutionList]( - httpClient, - baseURL+AdminServiceListTaskExecutionsProcedure, - connect.WithSchema(adminServiceListTaskExecutionsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getTaskExecutionData: connect.NewClient[admin.TaskExecutionGetDataRequest, admin.TaskExecutionGetDataResponse]( - httpClient, - baseURL+AdminServiceGetTaskExecutionDataProcedure, - connect.WithSchema(adminServiceGetTaskExecutionDataMethodDescriptor), - connect.WithClientOptions(opts...), - ), - updateProjectDomainAttributes: connect.NewClient[admin.ProjectDomainAttributesUpdateRequest, admin.ProjectDomainAttributesUpdateResponse]( - httpClient, - baseURL+AdminServiceUpdateProjectDomainAttributesProcedure, - connect.WithSchema(adminServiceUpdateProjectDomainAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getProjectDomainAttributes: connect.NewClient[admin.ProjectDomainAttributesGetRequest, admin.ProjectDomainAttributesGetResponse]( - httpClient, - baseURL+AdminServiceGetProjectDomainAttributesProcedure, - connect.WithSchema(adminServiceGetProjectDomainAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - deleteProjectDomainAttributes: connect.NewClient[admin.ProjectDomainAttributesDeleteRequest, admin.ProjectDomainAttributesDeleteResponse]( - httpClient, - baseURL+AdminServiceDeleteProjectDomainAttributesProcedure, - connect.WithSchema(adminServiceDeleteProjectDomainAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - updateProjectAttributes: connect.NewClient[admin.ProjectAttributesUpdateRequest, admin.ProjectAttributesUpdateResponse]( - httpClient, - baseURL+AdminServiceUpdateProjectAttributesProcedure, - connect.WithSchema(adminServiceUpdateProjectAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getProjectAttributes: connect.NewClient[admin.ProjectAttributesGetRequest, admin.ProjectAttributesGetResponse]( - httpClient, - baseURL+AdminServiceGetProjectAttributesProcedure, - connect.WithSchema(adminServiceGetProjectAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - deleteProjectAttributes: connect.NewClient[admin.ProjectAttributesDeleteRequest, admin.ProjectAttributesDeleteResponse]( - httpClient, - baseURL+AdminServiceDeleteProjectAttributesProcedure, - connect.WithSchema(adminServiceDeleteProjectAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - updateWorkflowAttributes: connect.NewClient[admin.WorkflowAttributesUpdateRequest, admin.WorkflowAttributesUpdateResponse]( - httpClient, - baseURL+AdminServiceUpdateWorkflowAttributesProcedure, - connect.WithSchema(adminServiceUpdateWorkflowAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getWorkflowAttributes: connect.NewClient[admin.WorkflowAttributesGetRequest, admin.WorkflowAttributesGetResponse]( - httpClient, - baseURL+AdminServiceGetWorkflowAttributesProcedure, - connect.WithSchema(adminServiceGetWorkflowAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - deleteWorkflowAttributes: connect.NewClient[admin.WorkflowAttributesDeleteRequest, admin.WorkflowAttributesDeleteResponse]( - httpClient, - baseURL+AdminServiceDeleteWorkflowAttributesProcedure, - connect.WithSchema(adminServiceDeleteWorkflowAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listMatchableAttributes: connect.NewClient[admin.ListMatchableAttributesRequest, admin.ListMatchableAttributesResponse]( - httpClient, - baseURL+AdminServiceListMatchableAttributesProcedure, - connect.WithSchema(adminServiceListMatchableAttributesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listNamedEntities: connect.NewClient[admin.NamedEntityListRequest, admin.NamedEntityList]( - httpClient, - baseURL+AdminServiceListNamedEntitiesProcedure, - connect.WithSchema(adminServiceListNamedEntitiesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getNamedEntity: connect.NewClient[admin.NamedEntityGetRequest, admin.NamedEntity]( - httpClient, - baseURL+AdminServiceGetNamedEntityProcedure, - connect.WithSchema(adminServiceGetNamedEntityMethodDescriptor), - connect.WithClientOptions(opts...), - ), - updateNamedEntity: connect.NewClient[admin.NamedEntityUpdateRequest, admin.NamedEntityUpdateResponse]( - httpClient, - baseURL+AdminServiceUpdateNamedEntityProcedure, - connect.WithSchema(adminServiceUpdateNamedEntityMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getVersion: connect.NewClient[admin.GetVersionRequest, admin.GetVersionResponse]( - httpClient, - baseURL+AdminServiceGetVersionProcedure, - connect.WithSchema(adminServiceGetVersionMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getDescriptionEntity: connect.NewClient[admin.ObjectGetRequest, admin.DescriptionEntity]( - httpClient, - baseURL+AdminServiceGetDescriptionEntityProcedure, - connect.WithSchema(adminServiceGetDescriptionEntityMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listDescriptionEntities: connect.NewClient[admin.DescriptionEntityListRequest, admin.DescriptionEntityList]( - httpClient, - baseURL+AdminServiceListDescriptionEntitiesProcedure, - connect.WithSchema(adminServiceListDescriptionEntitiesMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getExecutionMetrics: connect.NewClient[admin.WorkflowExecutionGetMetricsRequest, admin.WorkflowExecutionGetMetricsResponse]( - httpClient, - baseURL+AdminServiceGetExecutionMetricsProcedure, - connect.WithSchema(adminServiceGetExecutionMetricsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// adminServiceClient implements AdminServiceClient. -type adminServiceClient struct { - createTask *connect.Client[admin.TaskCreateRequest, admin.TaskCreateResponse] - getTask *connect.Client[admin.ObjectGetRequest, admin.Task] - listTaskIds *connect.Client[admin.NamedEntityIdentifierListRequest, admin.NamedEntityIdentifierList] - listTasks *connect.Client[admin.ResourceListRequest, admin.TaskList] - createWorkflow *connect.Client[admin.WorkflowCreateRequest, admin.WorkflowCreateResponse] - getWorkflow *connect.Client[admin.ObjectGetRequest, admin.Workflow] - listWorkflowIds *connect.Client[admin.NamedEntityIdentifierListRequest, admin.NamedEntityIdentifierList] - listWorkflows *connect.Client[admin.ResourceListRequest, admin.WorkflowList] - createLaunchPlan *connect.Client[admin.LaunchPlanCreateRequest, admin.LaunchPlanCreateResponse] - getLaunchPlan *connect.Client[admin.ObjectGetRequest, admin.LaunchPlan] - getActiveLaunchPlan *connect.Client[admin.ActiveLaunchPlanRequest, admin.LaunchPlan] - listActiveLaunchPlans *connect.Client[admin.ActiveLaunchPlanListRequest, admin.LaunchPlanList] - listLaunchPlanIds *connect.Client[admin.NamedEntityIdentifierListRequest, admin.NamedEntityIdentifierList] - listLaunchPlans *connect.Client[admin.ResourceListRequest, admin.LaunchPlanList] - updateLaunchPlan *connect.Client[admin.LaunchPlanUpdateRequest, admin.LaunchPlanUpdateResponse] - createExecution *connect.Client[admin.ExecutionCreateRequest, admin.ExecutionCreateResponse] - relaunchExecution *connect.Client[admin.ExecutionRelaunchRequest, admin.ExecutionCreateResponse] - recoverExecution *connect.Client[admin.ExecutionRecoverRequest, admin.ExecutionCreateResponse] - getExecution *connect.Client[admin.WorkflowExecutionGetRequest, admin.Execution] - updateExecution *connect.Client[admin.ExecutionUpdateRequest, admin.ExecutionUpdateResponse] - getExecutionData *connect.Client[admin.WorkflowExecutionGetDataRequest, admin.WorkflowExecutionGetDataResponse] - listExecutions *connect.Client[admin.ResourceListRequest, admin.ExecutionList] - terminateExecution *connect.Client[admin.ExecutionTerminateRequest, admin.ExecutionTerminateResponse] - getNodeExecution *connect.Client[admin.NodeExecutionGetRequest, admin.NodeExecution] - getDynamicNodeWorkflow *connect.Client[admin.GetDynamicNodeWorkflowRequest, admin.DynamicNodeWorkflowResponse] - listNodeExecutions *connect.Client[admin.NodeExecutionListRequest, admin.NodeExecutionList] - listNodeExecutionsForTask *connect.Client[admin.NodeExecutionForTaskListRequest, admin.NodeExecutionList] - getNodeExecutionData *connect.Client[admin.NodeExecutionGetDataRequest, admin.NodeExecutionGetDataResponse] - registerProject *connect.Client[admin.ProjectRegisterRequest, admin.ProjectRegisterResponse] - updateProject *connect.Client[admin.Project, admin.ProjectUpdateResponse] - listProjects *connect.Client[admin.ProjectListRequest, admin.Projects] - createWorkflowEvent *connect.Client[admin.WorkflowExecutionEventRequest, admin.WorkflowExecutionEventResponse] - createNodeEvent *connect.Client[admin.NodeExecutionEventRequest, admin.NodeExecutionEventResponse] - createTaskEvent *connect.Client[admin.TaskExecutionEventRequest, admin.TaskExecutionEventResponse] - getTaskExecution *connect.Client[admin.TaskExecutionGetRequest, admin.TaskExecution] - listTaskExecutions *connect.Client[admin.TaskExecutionListRequest, admin.TaskExecutionList] - getTaskExecutionData *connect.Client[admin.TaskExecutionGetDataRequest, admin.TaskExecutionGetDataResponse] - updateProjectDomainAttributes *connect.Client[admin.ProjectDomainAttributesUpdateRequest, admin.ProjectDomainAttributesUpdateResponse] - getProjectDomainAttributes *connect.Client[admin.ProjectDomainAttributesGetRequest, admin.ProjectDomainAttributesGetResponse] - deleteProjectDomainAttributes *connect.Client[admin.ProjectDomainAttributesDeleteRequest, admin.ProjectDomainAttributesDeleteResponse] - updateProjectAttributes *connect.Client[admin.ProjectAttributesUpdateRequest, admin.ProjectAttributesUpdateResponse] - getProjectAttributes *connect.Client[admin.ProjectAttributesGetRequest, admin.ProjectAttributesGetResponse] - deleteProjectAttributes *connect.Client[admin.ProjectAttributesDeleteRequest, admin.ProjectAttributesDeleteResponse] - updateWorkflowAttributes *connect.Client[admin.WorkflowAttributesUpdateRequest, admin.WorkflowAttributesUpdateResponse] - getWorkflowAttributes *connect.Client[admin.WorkflowAttributesGetRequest, admin.WorkflowAttributesGetResponse] - deleteWorkflowAttributes *connect.Client[admin.WorkflowAttributesDeleteRequest, admin.WorkflowAttributesDeleteResponse] - listMatchableAttributes *connect.Client[admin.ListMatchableAttributesRequest, admin.ListMatchableAttributesResponse] - listNamedEntities *connect.Client[admin.NamedEntityListRequest, admin.NamedEntityList] - getNamedEntity *connect.Client[admin.NamedEntityGetRequest, admin.NamedEntity] - updateNamedEntity *connect.Client[admin.NamedEntityUpdateRequest, admin.NamedEntityUpdateResponse] - getVersion *connect.Client[admin.GetVersionRequest, admin.GetVersionResponse] - getDescriptionEntity *connect.Client[admin.ObjectGetRequest, admin.DescriptionEntity] - listDescriptionEntities *connect.Client[admin.DescriptionEntityListRequest, admin.DescriptionEntityList] - getExecutionMetrics *connect.Client[admin.WorkflowExecutionGetMetricsRequest, admin.WorkflowExecutionGetMetricsResponse] -} - -// CreateTask calls flyteidl.service.AdminService.CreateTask. -func (c *adminServiceClient) CreateTask(ctx context.Context, req *connect.Request[admin.TaskCreateRequest]) (*connect.Response[admin.TaskCreateResponse], error) { - return c.createTask.CallUnary(ctx, req) -} - -// GetTask calls flyteidl.service.AdminService.GetTask. -func (c *adminServiceClient) GetTask(ctx context.Context, req *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.Task], error) { - return c.getTask.CallUnary(ctx, req) -} - -// ListTaskIds calls flyteidl.service.AdminService.ListTaskIds. -func (c *adminServiceClient) ListTaskIds(ctx context.Context, req *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) { - return c.listTaskIds.CallUnary(ctx, req) -} - -// ListTasks calls flyteidl.service.AdminService.ListTasks. -func (c *adminServiceClient) ListTasks(ctx context.Context, req *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.TaskList], error) { - return c.listTasks.CallUnary(ctx, req) -} - -// CreateWorkflow calls flyteidl.service.AdminService.CreateWorkflow. -func (c *adminServiceClient) CreateWorkflow(ctx context.Context, req *connect.Request[admin.WorkflowCreateRequest]) (*connect.Response[admin.WorkflowCreateResponse], error) { - return c.createWorkflow.CallUnary(ctx, req) -} - -// GetWorkflow calls flyteidl.service.AdminService.GetWorkflow. -func (c *adminServiceClient) GetWorkflow(ctx context.Context, req *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.Workflow], error) { - return c.getWorkflow.CallUnary(ctx, req) -} - -// ListWorkflowIds calls flyteidl.service.AdminService.ListWorkflowIds. -func (c *adminServiceClient) ListWorkflowIds(ctx context.Context, req *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) { - return c.listWorkflowIds.CallUnary(ctx, req) -} - -// ListWorkflows calls flyteidl.service.AdminService.ListWorkflows. -func (c *adminServiceClient) ListWorkflows(ctx context.Context, req *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.WorkflowList], error) { - return c.listWorkflows.CallUnary(ctx, req) -} - -// CreateLaunchPlan calls flyteidl.service.AdminService.CreateLaunchPlan. -func (c *adminServiceClient) CreateLaunchPlan(ctx context.Context, req *connect.Request[admin.LaunchPlanCreateRequest]) (*connect.Response[admin.LaunchPlanCreateResponse], error) { - return c.createLaunchPlan.CallUnary(ctx, req) -} - -// GetLaunchPlan calls flyteidl.service.AdminService.GetLaunchPlan. -func (c *adminServiceClient) GetLaunchPlan(ctx context.Context, req *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.LaunchPlan], error) { - return c.getLaunchPlan.CallUnary(ctx, req) -} - -// GetActiveLaunchPlan calls flyteidl.service.AdminService.GetActiveLaunchPlan. -func (c *adminServiceClient) GetActiveLaunchPlan(ctx context.Context, req *connect.Request[admin.ActiveLaunchPlanRequest]) (*connect.Response[admin.LaunchPlan], error) { - return c.getActiveLaunchPlan.CallUnary(ctx, req) -} - -// ListActiveLaunchPlans calls flyteidl.service.AdminService.ListActiveLaunchPlans. -func (c *adminServiceClient) ListActiveLaunchPlans(ctx context.Context, req *connect.Request[admin.ActiveLaunchPlanListRequest]) (*connect.Response[admin.LaunchPlanList], error) { - return c.listActiveLaunchPlans.CallUnary(ctx, req) -} - -// ListLaunchPlanIds calls flyteidl.service.AdminService.ListLaunchPlanIds. -func (c *adminServiceClient) ListLaunchPlanIds(ctx context.Context, req *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) { - return c.listLaunchPlanIds.CallUnary(ctx, req) -} - -// ListLaunchPlans calls flyteidl.service.AdminService.ListLaunchPlans. -func (c *adminServiceClient) ListLaunchPlans(ctx context.Context, req *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.LaunchPlanList], error) { - return c.listLaunchPlans.CallUnary(ctx, req) -} - -// UpdateLaunchPlan calls flyteidl.service.AdminService.UpdateLaunchPlan. -func (c *adminServiceClient) UpdateLaunchPlan(ctx context.Context, req *connect.Request[admin.LaunchPlanUpdateRequest]) (*connect.Response[admin.LaunchPlanUpdateResponse], error) { - return c.updateLaunchPlan.CallUnary(ctx, req) -} - -// CreateExecution calls flyteidl.service.AdminService.CreateExecution. -func (c *adminServiceClient) CreateExecution(ctx context.Context, req *connect.Request[admin.ExecutionCreateRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) { - return c.createExecution.CallUnary(ctx, req) -} - -// RelaunchExecution calls flyteidl.service.AdminService.RelaunchExecution. -func (c *adminServiceClient) RelaunchExecution(ctx context.Context, req *connect.Request[admin.ExecutionRelaunchRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) { - return c.relaunchExecution.CallUnary(ctx, req) -} - -// RecoverExecution calls flyteidl.service.AdminService.RecoverExecution. -func (c *adminServiceClient) RecoverExecution(ctx context.Context, req *connect.Request[admin.ExecutionRecoverRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) { - return c.recoverExecution.CallUnary(ctx, req) -} - -// GetExecution calls flyteidl.service.AdminService.GetExecution. -func (c *adminServiceClient) GetExecution(ctx context.Context, req *connect.Request[admin.WorkflowExecutionGetRequest]) (*connect.Response[admin.Execution], error) { - return c.getExecution.CallUnary(ctx, req) -} - -// UpdateExecution calls flyteidl.service.AdminService.UpdateExecution. -func (c *adminServiceClient) UpdateExecution(ctx context.Context, req *connect.Request[admin.ExecutionUpdateRequest]) (*connect.Response[admin.ExecutionUpdateResponse], error) { - return c.updateExecution.CallUnary(ctx, req) -} - -// GetExecutionData calls flyteidl.service.AdminService.GetExecutionData. -func (c *adminServiceClient) GetExecutionData(ctx context.Context, req *connect.Request[admin.WorkflowExecutionGetDataRequest]) (*connect.Response[admin.WorkflowExecutionGetDataResponse], error) { - return c.getExecutionData.CallUnary(ctx, req) -} - -// ListExecutions calls flyteidl.service.AdminService.ListExecutions. -func (c *adminServiceClient) ListExecutions(ctx context.Context, req *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.ExecutionList], error) { - return c.listExecutions.CallUnary(ctx, req) -} - -// TerminateExecution calls flyteidl.service.AdminService.TerminateExecution. -func (c *adminServiceClient) TerminateExecution(ctx context.Context, req *connect.Request[admin.ExecutionTerminateRequest]) (*connect.Response[admin.ExecutionTerminateResponse], error) { - return c.terminateExecution.CallUnary(ctx, req) -} - -// GetNodeExecution calls flyteidl.service.AdminService.GetNodeExecution. -func (c *adminServiceClient) GetNodeExecution(ctx context.Context, req *connect.Request[admin.NodeExecutionGetRequest]) (*connect.Response[admin.NodeExecution], error) { - return c.getNodeExecution.CallUnary(ctx, req) -} - -// GetDynamicNodeWorkflow calls flyteidl.service.AdminService.GetDynamicNodeWorkflow. -func (c *adminServiceClient) GetDynamicNodeWorkflow(ctx context.Context, req *connect.Request[admin.GetDynamicNodeWorkflowRequest]) (*connect.Response[admin.DynamicNodeWorkflowResponse], error) { - return c.getDynamicNodeWorkflow.CallUnary(ctx, req) -} - -// ListNodeExecutions calls flyteidl.service.AdminService.ListNodeExecutions. -func (c *adminServiceClient) ListNodeExecutions(ctx context.Context, req *connect.Request[admin.NodeExecutionListRequest]) (*connect.Response[admin.NodeExecutionList], error) { - return c.listNodeExecutions.CallUnary(ctx, req) -} - -// ListNodeExecutionsForTask calls flyteidl.service.AdminService.ListNodeExecutionsForTask. -func (c *adminServiceClient) ListNodeExecutionsForTask(ctx context.Context, req *connect.Request[admin.NodeExecutionForTaskListRequest]) (*connect.Response[admin.NodeExecutionList], error) { - return c.listNodeExecutionsForTask.CallUnary(ctx, req) -} - -// GetNodeExecutionData calls flyteidl.service.AdminService.GetNodeExecutionData. -func (c *adminServiceClient) GetNodeExecutionData(ctx context.Context, req *connect.Request[admin.NodeExecutionGetDataRequest]) (*connect.Response[admin.NodeExecutionGetDataResponse], error) { - return c.getNodeExecutionData.CallUnary(ctx, req) -} - -// RegisterProject calls flyteidl.service.AdminService.RegisterProject. -func (c *adminServiceClient) RegisterProject(ctx context.Context, req *connect.Request[admin.ProjectRegisterRequest]) (*connect.Response[admin.ProjectRegisterResponse], error) { - return c.registerProject.CallUnary(ctx, req) -} - -// UpdateProject calls flyteidl.service.AdminService.UpdateProject. -func (c *adminServiceClient) UpdateProject(ctx context.Context, req *connect.Request[admin.Project]) (*connect.Response[admin.ProjectUpdateResponse], error) { - return c.updateProject.CallUnary(ctx, req) -} - -// ListProjects calls flyteidl.service.AdminService.ListProjects. -func (c *adminServiceClient) ListProjects(ctx context.Context, req *connect.Request[admin.ProjectListRequest]) (*connect.Response[admin.Projects], error) { - return c.listProjects.CallUnary(ctx, req) -} - -// CreateWorkflowEvent calls flyteidl.service.AdminService.CreateWorkflowEvent. -func (c *adminServiceClient) CreateWorkflowEvent(ctx context.Context, req *connect.Request[admin.WorkflowExecutionEventRequest]) (*connect.Response[admin.WorkflowExecutionEventResponse], error) { - return c.createWorkflowEvent.CallUnary(ctx, req) -} - -// CreateNodeEvent calls flyteidl.service.AdminService.CreateNodeEvent. -func (c *adminServiceClient) CreateNodeEvent(ctx context.Context, req *connect.Request[admin.NodeExecutionEventRequest]) (*connect.Response[admin.NodeExecutionEventResponse], error) { - return c.createNodeEvent.CallUnary(ctx, req) -} - -// CreateTaskEvent calls flyteidl.service.AdminService.CreateTaskEvent. -func (c *adminServiceClient) CreateTaskEvent(ctx context.Context, req *connect.Request[admin.TaskExecutionEventRequest]) (*connect.Response[admin.TaskExecutionEventResponse], error) { - return c.createTaskEvent.CallUnary(ctx, req) -} - -// GetTaskExecution calls flyteidl.service.AdminService.GetTaskExecution. -func (c *adminServiceClient) GetTaskExecution(ctx context.Context, req *connect.Request[admin.TaskExecutionGetRequest]) (*connect.Response[admin.TaskExecution], error) { - return c.getTaskExecution.CallUnary(ctx, req) -} - -// ListTaskExecutions calls flyteidl.service.AdminService.ListTaskExecutions. -func (c *adminServiceClient) ListTaskExecutions(ctx context.Context, req *connect.Request[admin.TaskExecutionListRequest]) (*connect.Response[admin.TaskExecutionList], error) { - return c.listTaskExecutions.CallUnary(ctx, req) -} - -// GetTaskExecutionData calls flyteidl.service.AdminService.GetTaskExecutionData. -func (c *adminServiceClient) GetTaskExecutionData(ctx context.Context, req *connect.Request[admin.TaskExecutionGetDataRequest]) (*connect.Response[admin.TaskExecutionGetDataResponse], error) { - return c.getTaskExecutionData.CallUnary(ctx, req) -} - -// UpdateProjectDomainAttributes calls flyteidl.service.AdminService.UpdateProjectDomainAttributes. -func (c *adminServiceClient) UpdateProjectDomainAttributes(ctx context.Context, req *connect.Request[admin.ProjectDomainAttributesUpdateRequest]) (*connect.Response[admin.ProjectDomainAttributesUpdateResponse], error) { - return c.updateProjectDomainAttributes.CallUnary(ctx, req) -} - -// GetProjectDomainAttributes calls flyteidl.service.AdminService.GetProjectDomainAttributes. -func (c *adminServiceClient) GetProjectDomainAttributes(ctx context.Context, req *connect.Request[admin.ProjectDomainAttributesGetRequest]) (*connect.Response[admin.ProjectDomainAttributesGetResponse], error) { - return c.getProjectDomainAttributes.CallUnary(ctx, req) -} - -// DeleteProjectDomainAttributes calls flyteidl.service.AdminService.DeleteProjectDomainAttributes. -func (c *adminServiceClient) DeleteProjectDomainAttributes(ctx context.Context, req *connect.Request[admin.ProjectDomainAttributesDeleteRequest]) (*connect.Response[admin.ProjectDomainAttributesDeleteResponse], error) { - return c.deleteProjectDomainAttributes.CallUnary(ctx, req) -} - -// UpdateProjectAttributes calls flyteidl.service.AdminService.UpdateProjectAttributes. -func (c *adminServiceClient) UpdateProjectAttributes(ctx context.Context, req *connect.Request[admin.ProjectAttributesUpdateRequest]) (*connect.Response[admin.ProjectAttributesUpdateResponse], error) { - return c.updateProjectAttributes.CallUnary(ctx, req) -} - -// GetProjectAttributes calls flyteidl.service.AdminService.GetProjectAttributes. -func (c *adminServiceClient) GetProjectAttributes(ctx context.Context, req *connect.Request[admin.ProjectAttributesGetRequest]) (*connect.Response[admin.ProjectAttributesGetResponse], error) { - return c.getProjectAttributes.CallUnary(ctx, req) -} - -// DeleteProjectAttributes calls flyteidl.service.AdminService.DeleteProjectAttributes. -func (c *adminServiceClient) DeleteProjectAttributes(ctx context.Context, req *connect.Request[admin.ProjectAttributesDeleteRequest]) (*connect.Response[admin.ProjectAttributesDeleteResponse], error) { - return c.deleteProjectAttributes.CallUnary(ctx, req) -} - -// UpdateWorkflowAttributes calls flyteidl.service.AdminService.UpdateWorkflowAttributes. -func (c *adminServiceClient) UpdateWorkflowAttributes(ctx context.Context, req *connect.Request[admin.WorkflowAttributesUpdateRequest]) (*connect.Response[admin.WorkflowAttributesUpdateResponse], error) { - return c.updateWorkflowAttributes.CallUnary(ctx, req) -} - -// GetWorkflowAttributes calls flyteidl.service.AdminService.GetWorkflowAttributes. -func (c *adminServiceClient) GetWorkflowAttributes(ctx context.Context, req *connect.Request[admin.WorkflowAttributesGetRequest]) (*connect.Response[admin.WorkflowAttributesGetResponse], error) { - return c.getWorkflowAttributes.CallUnary(ctx, req) -} - -// DeleteWorkflowAttributes calls flyteidl.service.AdminService.DeleteWorkflowAttributes. -func (c *adminServiceClient) DeleteWorkflowAttributes(ctx context.Context, req *connect.Request[admin.WorkflowAttributesDeleteRequest]) (*connect.Response[admin.WorkflowAttributesDeleteResponse], error) { - return c.deleteWorkflowAttributes.CallUnary(ctx, req) -} - -// ListMatchableAttributes calls flyteidl.service.AdminService.ListMatchableAttributes. -func (c *adminServiceClient) ListMatchableAttributes(ctx context.Context, req *connect.Request[admin.ListMatchableAttributesRequest]) (*connect.Response[admin.ListMatchableAttributesResponse], error) { - return c.listMatchableAttributes.CallUnary(ctx, req) -} - -// ListNamedEntities calls flyteidl.service.AdminService.ListNamedEntities. -func (c *adminServiceClient) ListNamedEntities(ctx context.Context, req *connect.Request[admin.NamedEntityListRequest]) (*connect.Response[admin.NamedEntityList], error) { - return c.listNamedEntities.CallUnary(ctx, req) -} - -// GetNamedEntity calls flyteidl.service.AdminService.GetNamedEntity. -func (c *adminServiceClient) GetNamedEntity(ctx context.Context, req *connect.Request[admin.NamedEntityGetRequest]) (*connect.Response[admin.NamedEntity], error) { - return c.getNamedEntity.CallUnary(ctx, req) -} - -// UpdateNamedEntity calls flyteidl.service.AdminService.UpdateNamedEntity. -func (c *adminServiceClient) UpdateNamedEntity(ctx context.Context, req *connect.Request[admin.NamedEntityUpdateRequest]) (*connect.Response[admin.NamedEntityUpdateResponse], error) { - return c.updateNamedEntity.CallUnary(ctx, req) -} - -// GetVersion calls flyteidl.service.AdminService.GetVersion. -func (c *adminServiceClient) GetVersion(ctx context.Context, req *connect.Request[admin.GetVersionRequest]) (*connect.Response[admin.GetVersionResponse], error) { - return c.getVersion.CallUnary(ctx, req) -} - -// GetDescriptionEntity calls flyteidl.service.AdminService.GetDescriptionEntity. -func (c *adminServiceClient) GetDescriptionEntity(ctx context.Context, req *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.DescriptionEntity], error) { - return c.getDescriptionEntity.CallUnary(ctx, req) -} - -// ListDescriptionEntities calls flyteidl.service.AdminService.ListDescriptionEntities. -func (c *adminServiceClient) ListDescriptionEntities(ctx context.Context, req *connect.Request[admin.DescriptionEntityListRequest]) (*connect.Response[admin.DescriptionEntityList], error) { - return c.listDescriptionEntities.CallUnary(ctx, req) -} - -// GetExecutionMetrics calls flyteidl.service.AdminService.GetExecutionMetrics. -func (c *adminServiceClient) GetExecutionMetrics(ctx context.Context, req *connect.Request[admin.WorkflowExecutionGetMetricsRequest]) (*connect.Response[admin.WorkflowExecutionGetMetricsResponse], error) { - return c.getExecutionMetrics.CallUnary(ctx, req) -} - -// AdminServiceHandler is an implementation of the flyteidl.service.AdminService service. -type AdminServiceHandler interface { - // Create and upload a :ref:`ref_flyteidl.admin.Task` definition - CreateTask(context.Context, *connect.Request[admin.TaskCreateRequest]) (*connect.Response[admin.TaskCreateResponse], error) - // Fetch a :ref:`ref_flyteidl.admin.Task` definition. - GetTask(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.Task], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of task objects. - ListTaskIds(context.Context, *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Task` definitions. - ListTasks(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.TaskList], error) - // Create and upload a :ref:`ref_flyteidl.admin.Workflow` definition - CreateWorkflow(context.Context, *connect.Request[admin.WorkflowCreateRequest]) (*connect.Response[admin.WorkflowCreateResponse], error) - // Fetch a :ref:`ref_flyteidl.admin.Workflow` definition. - GetWorkflow(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.Workflow], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of workflow objects. - ListWorkflowIds(context.Context, *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Workflow` definitions. - ListWorkflows(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.WorkflowList], error) - // Create and upload a :ref:`ref_flyteidl.admin.LaunchPlan` definition - CreateLaunchPlan(context.Context, *connect.Request[admin.LaunchPlanCreateRequest]) (*connect.Response[admin.LaunchPlanCreateResponse], error) - // Fetch a :ref:`ref_flyteidl.admin.LaunchPlan` definition. - GetLaunchPlan(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.LaunchPlan], error) - // Fetch the active version of a :ref:`ref_flyteidl.admin.LaunchPlan`. - GetActiveLaunchPlan(context.Context, *connect.Request[admin.ActiveLaunchPlanRequest]) (*connect.Response[admin.LaunchPlan], error) - // List active versions of :ref:`ref_flyteidl.admin.LaunchPlan`. - ListActiveLaunchPlans(context.Context, *connect.Request[admin.ActiveLaunchPlanListRequest]) (*connect.Response[admin.LaunchPlanList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NamedEntityIdentifier` of launch plan objects. - ListLaunchPlanIds(context.Context, *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.LaunchPlan` definitions. - ListLaunchPlans(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.LaunchPlanList], error) - // Updates the status of a registered :ref:`ref_flyteidl.admin.LaunchPlan`. - UpdateLaunchPlan(context.Context, *connect.Request[admin.LaunchPlanUpdateRequest]) (*connect.Response[admin.LaunchPlanUpdateResponse], error) - // Triggers the creation of a :ref:`ref_flyteidl.admin.Execution` - CreateExecution(context.Context, *connect.Request[admin.ExecutionCreateRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) - // Triggers the creation of an identical :ref:`ref_flyteidl.admin.Execution` - RelaunchExecution(context.Context, *connect.Request[admin.ExecutionRelaunchRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) - // Recreates a previously-run workflow execution that will only start executing from the last known failure point. - // In Recover mode, users cannot change any input parameters or update the version of the execution. - // This is extremely useful to recover from system errors and byzantine faults like - Loss of K8s cluster, bugs in platform or instability, machine failures, - // downstream system failures (downstream services), or simply to recover executions that failed because of retry exhaustion and should complete if tried again. - // See :ref:`ref_flyteidl.admin.ExecutionRecoverRequest` for more details. - RecoverExecution(context.Context, *connect.Request[admin.ExecutionRecoverRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) - // Fetches a :ref:`ref_flyteidl.admin.Execution`. - GetExecution(context.Context, *connect.Request[admin.WorkflowExecutionGetRequest]) (*connect.Response[admin.Execution], error) - // Update execution belonging to project domain :ref:`ref_flyteidl.admin.Execution`. - UpdateExecution(context.Context, *connect.Request[admin.ExecutionUpdateRequest]) (*connect.Response[admin.ExecutionUpdateResponse], error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionData(context.Context, *connect.Request[admin.WorkflowExecutionGetDataRequest]) (*connect.Response[admin.WorkflowExecutionGetDataResponse], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Execution`. - ListExecutions(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.ExecutionList], error) - // Terminates an in-progress :ref:`ref_flyteidl.admin.Execution`. - TerminateExecution(context.Context, *connect.Request[admin.ExecutionTerminateRequest]) (*connect.Response[admin.ExecutionTerminateResponse], error) - // Fetches a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecution(context.Context, *connect.Request[admin.NodeExecutionGetRequest]) (*connect.Response[admin.NodeExecution], error) - // Fetches a :ref:`ref_flyteidl.admin.DynamicNodeWorkflowResponse`. - GetDynamicNodeWorkflow(context.Context, *connect.Request[admin.GetDynamicNodeWorkflowRequest]) (*connect.Response[admin.DynamicNodeWorkflowResponse], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution`. - ListNodeExecutions(context.Context, *connect.Request[admin.NodeExecutionListRequest]) (*connect.Response[admin.NodeExecutionList], error) - // Fetch a list of :ref:`ref_flyteidl.admin.NodeExecution` launched by the reference :ref:`ref_flyteidl.admin.TaskExecution`. - ListNodeExecutionsForTask(context.Context, *connect.Request[admin.NodeExecutionForTaskListRequest]) (*connect.Response[admin.NodeExecutionList], error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.NodeExecution`. - GetNodeExecutionData(context.Context, *connect.Request[admin.NodeExecutionGetDataRequest]) (*connect.Response[admin.NodeExecutionGetDataResponse], error) - // Registers a :ref:`ref_flyteidl.admin.Project` with the Flyte deployment. - RegisterProject(context.Context, *connect.Request[admin.ProjectRegisterRequest]) (*connect.Response[admin.ProjectRegisterResponse], error) - // Updates an existing :ref:`ref_flyteidl.admin.Project` - // flyteidl.admin.Project should be passed but the domains property should be empty; - // it will be ignored in the handler as domains cannot be updated via this API. - UpdateProject(context.Context, *connect.Request[admin.Project]) (*connect.Response[admin.ProjectUpdateResponse], error) - // Fetches a list of :ref:`ref_flyteidl.admin.Project` - ListProjects(context.Context, *connect.Request[admin.ProjectListRequest]) (*connect.Response[admin.Projects], error) - // Indicates a :ref:`ref_flyteidl.event.WorkflowExecutionEvent` has occurred. - CreateWorkflowEvent(context.Context, *connect.Request[admin.WorkflowExecutionEventRequest]) (*connect.Response[admin.WorkflowExecutionEventResponse], error) - // Indicates a :ref:`ref_flyteidl.event.NodeExecutionEvent` has occurred. - CreateNodeEvent(context.Context, *connect.Request[admin.NodeExecutionEventRequest]) (*connect.Response[admin.NodeExecutionEventResponse], error) - // Indicates a :ref:`ref_flyteidl.event.TaskExecutionEvent` has occurred. - CreateTaskEvent(context.Context, *connect.Request[admin.TaskExecutionEventRequest]) (*connect.Response[admin.TaskExecutionEventResponse], error) - // Fetches a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecution(context.Context, *connect.Request[admin.TaskExecutionGetRequest]) (*connect.Response[admin.TaskExecution], error) - // Fetches a list of :ref:`ref_flyteidl.admin.TaskExecution`. - ListTaskExecutions(context.Context, *connect.Request[admin.TaskExecutionListRequest]) (*connect.Response[admin.TaskExecutionList], error) - // Fetches input and output data for a :ref:`ref_flyteidl.admin.TaskExecution`. - GetTaskExecutionData(context.Context, *connect.Request[admin.TaskExecutionGetDataRequest]) (*connect.Response[admin.TaskExecutionGetDataResponse], error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - UpdateProjectDomainAttributes(context.Context, *connect.Request[admin.ProjectDomainAttributesUpdateRequest]) (*connect.Response[admin.ProjectDomainAttributesUpdateResponse], error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectDomainAttributes(context.Context, *connect.Request[admin.ProjectDomainAttributesGetRequest]) (*connect.Response[admin.ProjectDomainAttributesGetResponse], error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectDomainAttributes(context.Context, *connect.Request[admin.ProjectDomainAttributesDeleteRequest]) (*connect.Response[admin.ProjectDomainAttributesDeleteResponse], error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` at the project level - UpdateProjectAttributes(context.Context, *connect.Request[admin.ProjectAttributesUpdateRequest]) (*connect.Response[admin.ProjectAttributesUpdateResponse], error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - GetProjectAttributes(context.Context, *connect.Request[admin.ProjectAttributesGetRequest]) (*connect.Response[admin.ProjectAttributesGetResponse], error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project and domain. - DeleteProjectAttributes(context.Context, *connect.Request[admin.ProjectAttributesDeleteRequest]) (*connect.Response[admin.ProjectAttributesDeleteResponse], error) - // Creates or updates custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - UpdateWorkflowAttributes(context.Context, *connect.Request[admin.WorkflowAttributesUpdateRequest]) (*connect.Response[admin.WorkflowAttributesUpdateResponse], error) - // Fetches custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - GetWorkflowAttributes(context.Context, *connect.Request[admin.WorkflowAttributesGetRequest]) (*connect.Response[admin.WorkflowAttributesGetResponse], error) - // Deletes custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a project, domain and workflow. - DeleteWorkflowAttributes(context.Context, *connect.Request[admin.WorkflowAttributesDeleteRequest]) (*connect.Response[admin.WorkflowAttributesDeleteResponse], error) - // Lists custom :ref:`ref_flyteidl.admin.MatchableAttributesConfiguration` for a specific resource type. - ListMatchableAttributes(context.Context, *connect.Request[admin.ListMatchableAttributesRequest]) (*connect.Response[admin.ListMatchableAttributesResponse], error) - // Returns a list of :ref:`ref_flyteidl.admin.NamedEntity` objects. - ListNamedEntities(context.Context, *connect.Request[admin.NamedEntityListRequest]) (*connect.Response[admin.NamedEntityList], error) - // Returns a :ref:`ref_flyteidl.admin.NamedEntity` object. - GetNamedEntity(context.Context, *connect.Request[admin.NamedEntityGetRequest]) (*connect.Response[admin.NamedEntity], error) - // Updates a :ref:`ref_flyteidl.admin.NamedEntity` object. - UpdateNamedEntity(context.Context, *connect.Request[admin.NamedEntityUpdateRequest]) (*connect.Response[admin.NamedEntityUpdateResponse], error) - GetVersion(context.Context, *connect.Request[admin.GetVersionRequest]) (*connect.Response[admin.GetVersionResponse], error) - // Fetch a :ref:`ref_flyteidl.admin.DescriptionEntity` object. - GetDescriptionEntity(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.DescriptionEntity], error) - // Fetch a list of :ref:`ref_flyteidl.admin.DescriptionEntity` definitions. - ListDescriptionEntities(context.Context, *connect.Request[admin.DescriptionEntityListRequest]) (*connect.Response[admin.DescriptionEntityList], error) - // Fetches runtime metrics for a :ref:`ref_flyteidl.admin.Execution`. - GetExecutionMetrics(context.Context, *connect.Request[admin.WorkflowExecutionGetMetricsRequest]) (*connect.Response[admin.WorkflowExecutionGetMetricsResponse], error) -} - -// NewAdminServiceHandler builds an HTTP handler from the service implementation. It returns the -// path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewAdminServiceHandler(svc AdminServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - adminServiceCreateTaskHandler := connect.NewUnaryHandler( - AdminServiceCreateTaskProcedure, - svc.CreateTask, - connect.WithSchema(adminServiceCreateTaskMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetTaskHandler := connect.NewUnaryHandler( - AdminServiceGetTaskProcedure, - svc.GetTask, - connect.WithSchema(adminServiceGetTaskMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListTaskIdsHandler := connect.NewUnaryHandler( - AdminServiceListTaskIdsProcedure, - svc.ListTaskIds, - connect.WithSchema(adminServiceListTaskIdsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListTasksHandler := connect.NewUnaryHandler( - AdminServiceListTasksProcedure, - svc.ListTasks, - connect.WithSchema(adminServiceListTasksMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceCreateWorkflowHandler := connect.NewUnaryHandler( - AdminServiceCreateWorkflowProcedure, - svc.CreateWorkflow, - connect.WithSchema(adminServiceCreateWorkflowMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetWorkflowHandler := connect.NewUnaryHandler( - AdminServiceGetWorkflowProcedure, - svc.GetWorkflow, - connect.WithSchema(adminServiceGetWorkflowMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListWorkflowIdsHandler := connect.NewUnaryHandler( - AdminServiceListWorkflowIdsProcedure, - svc.ListWorkflowIds, - connect.WithSchema(adminServiceListWorkflowIdsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListWorkflowsHandler := connect.NewUnaryHandler( - AdminServiceListWorkflowsProcedure, - svc.ListWorkflows, - connect.WithSchema(adminServiceListWorkflowsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceCreateLaunchPlanHandler := connect.NewUnaryHandler( - AdminServiceCreateLaunchPlanProcedure, - svc.CreateLaunchPlan, - connect.WithSchema(adminServiceCreateLaunchPlanMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetLaunchPlanHandler := connect.NewUnaryHandler( - AdminServiceGetLaunchPlanProcedure, - svc.GetLaunchPlan, - connect.WithSchema(adminServiceGetLaunchPlanMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetActiveLaunchPlanHandler := connect.NewUnaryHandler( - AdminServiceGetActiveLaunchPlanProcedure, - svc.GetActiveLaunchPlan, - connect.WithSchema(adminServiceGetActiveLaunchPlanMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListActiveLaunchPlansHandler := connect.NewUnaryHandler( - AdminServiceListActiveLaunchPlansProcedure, - svc.ListActiveLaunchPlans, - connect.WithSchema(adminServiceListActiveLaunchPlansMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListLaunchPlanIdsHandler := connect.NewUnaryHandler( - AdminServiceListLaunchPlanIdsProcedure, - svc.ListLaunchPlanIds, - connect.WithSchema(adminServiceListLaunchPlanIdsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListLaunchPlansHandler := connect.NewUnaryHandler( - AdminServiceListLaunchPlansProcedure, - svc.ListLaunchPlans, - connect.WithSchema(adminServiceListLaunchPlansMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceUpdateLaunchPlanHandler := connect.NewUnaryHandler( - AdminServiceUpdateLaunchPlanProcedure, - svc.UpdateLaunchPlan, - connect.WithSchema(adminServiceUpdateLaunchPlanMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceCreateExecutionHandler := connect.NewUnaryHandler( - AdminServiceCreateExecutionProcedure, - svc.CreateExecution, - connect.WithSchema(adminServiceCreateExecutionMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceRelaunchExecutionHandler := connect.NewUnaryHandler( - AdminServiceRelaunchExecutionProcedure, - svc.RelaunchExecution, - connect.WithSchema(adminServiceRelaunchExecutionMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceRecoverExecutionHandler := connect.NewUnaryHandler( - AdminServiceRecoverExecutionProcedure, - svc.RecoverExecution, - connect.WithSchema(adminServiceRecoverExecutionMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetExecutionHandler := connect.NewUnaryHandler( - AdminServiceGetExecutionProcedure, - svc.GetExecution, - connect.WithSchema(adminServiceGetExecutionMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceUpdateExecutionHandler := connect.NewUnaryHandler( - AdminServiceUpdateExecutionProcedure, - svc.UpdateExecution, - connect.WithSchema(adminServiceUpdateExecutionMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetExecutionDataHandler := connect.NewUnaryHandler( - AdminServiceGetExecutionDataProcedure, - svc.GetExecutionData, - connect.WithSchema(adminServiceGetExecutionDataMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListExecutionsHandler := connect.NewUnaryHandler( - AdminServiceListExecutionsProcedure, - svc.ListExecutions, - connect.WithSchema(adminServiceListExecutionsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceTerminateExecutionHandler := connect.NewUnaryHandler( - AdminServiceTerminateExecutionProcedure, - svc.TerminateExecution, - connect.WithSchema(adminServiceTerminateExecutionMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetNodeExecutionHandler := connect.NewUnaryHandler( - AdminServiceGetNodeExecutionProcedure, - svc.GetNodeExecution, - connect.WithSchema(adminServiceGetNodeExecutionMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetDynamicNodeWorkflowHandler := connect.NewUnaryHandler( - AdminServiceGetDynamicNodeWorkflowProcedure, - svc.GetDynamicNodeWorkflow, - connect.WithSchema(adminServiceGetDynamicNodeWorkflowMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListNodeExecutionsHandler := connect.NewUnaryHandler( - AdminServiceListNodeExecutionsProcedure, - svc.ListNodeExecutions, - connect.WithSchema(adminServiceListNodeExecutionsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListNodeExecutionsForTaskHandler := connect.NewUnaryHandler( - AdminServiceListNodeExecutionsForTaskProcedure, - svc.ListNodeExecutionsForTask, - connect.WithSchema(adminServiceListNodeExecutionsForTaskMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetNodeExecutionDataHandler := connect.NewUnaryHandler( - AdminServiceGetNodeExecutionDataProcedure, - svc.GetNodeExecutionData, - connect.WithSchema(adminServiceGetNodeExecutionDataMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceRegisterProjectHandler := connect.NewUnaryHandler( - AdminServiceRegisterProjectProcedure, - svc.RegisterProject, - connect.WithSchema(adminServiceRegisterProjectMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceUpdateProjectHandler := connect.NewUnaryHandler( - AdminServiceUpdateProjectProcedure, - svc.UpdateProject, - connect.WithSchema(adminServiceUpdateProjectMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListProjectsHandler := connect.NewUnaryHandler( - AdminServiceListProjectsProcedure, - svc.ListProjects, - connect.WithSchema(adminServiceListProjectsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceCreateWorkflowEventHandler := connect.NewUnaryHandler( - AdminServiceCreateWorkflowEventProcedure, - svc.CreateWorkflowEvent, - connect.WithSchema(adminServiceCreateWorkflowEventMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceCreateNodeEventHandler := connect.NewUnaryHandler( - AdminServiceCreateNodeEventProcedure, - svc.CreateNodeEvent, - connect.WithSchema(adminServiceCreateNodeEventMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceCreateTaskEventHandler := connect.NewUnaryHandler( - AdminServiceCreateTaskEventProcedure, - svc.CreateTaskEvent, - connect.WithSchema(adminServiceCreateTaskEventMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetTaskExecutionHandler := connect.NewUnaryHandler( - AdminServiceGetTaskExecutionProcedure, - svc.GetTaskExecution, - connect.WithSchema(adminServiceGetTaskExecutionMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListTaskExecutionsHandler := connect.NewUnaryHandler( - AdminServiceListTaskExecutionsProcedure, - svc.ListTaskExecutions, - connect.WithSchema(adminServiceListTaskExecutionsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetTaskExecutionDataHandler := connect.NewUnaryHandler( - AdminServiceGetTaskExecutionDataProcedure, - svc.GetTaskExecutionData, - connect.WithSchema(adminServiceGetTaskExecutionDataMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceUpdateProjectDomainAttributesHandler := connect.NewUnaryHandler( - AdminServiceUpdateProjectDomainAttributesProcedure, - svc.UpdateProjectDomainAttributes, - connect.WithSchema(adminServiceUpdateProjectDomainAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetProjectDomainAttributesHandler := connect.NewUnaryHandler( - AdminServiceGetProjectDomainAttributesProcedure, - svc.GetProjectDomainAttributes, - connect.WithSchema(adminServiceGetProjectDomainAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceDeleteProjectDomainAttributesHandler := connect.NewUnaryHandler( - AdminServiceDeleteProjectDomainAttributesProcedure, - svc.DeleteProjectDomainAttributes, - connect.WithSchema(adminServiceDeleteProjectDomainAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceUpdateProjectAttributesHandler := connect.NewUnaryHandler( - AdminServiceUpdateProjectAttributesProcedure, - svc.UpdateProjectAttributes, - connect.WithSchema(adminServiceUpdateProjectAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetProjectAttributesHandler := connect.NewUnaryHandler( - AdminServiceGetProjectAttributesProcedure, - svc.GetProjectAttributes, - connect.WithSchema(adminServiceGetProjectAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceDeleteProjectAttributesHandler := connect.NewUnaryHandler( - AdminServiceDeleteProjectAttributesProcedure, - svc.DeleteProjectAttributes, - connect.WithSchema(adminServiceDeleteProjectAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceUpdateWorkflowAttributesHandler := connect.NewUnaryHandler( - AdminServiceUpdateWorkflowAttributesProcedure, - svc.UpdateWorkflowAttributes, - connect.WithSchema(adminServiceUpdateWorkflowAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetWorkflowAttributesHandler := connect.NewUnaryHandler( - AdminServiceGetWorkflowAttributesProcedure, - svc.GetWorkflowAttributes, - connect.WithSchema(adminServiceGetWorkflowAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceDeleteWorkflowAttributesHandler := connect.NewUnaryHandler( - AdminServiceDeleteWorkflowAttributesProcedure, - svc.DeleteWorkflowAttributes, - connect.WithSchema(adminServiceDeleteWorkflowAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListMatchableAttributesHandler := connect.NewUnaryHandler( - AdminServiceListMatchableAttributesProcedure, - svc.ListMatchableAttributes, - connect.WithSchema(adminServiceListMatchableAttributesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListNamedEntitiesHandler := connect.NewUnaryHandler( - AdminServiceListNamedEntitiesProcedure, - svc.ListNamedEntities, - connect.WithSchema(adminServiceListNamedEntitiesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetNamedEntityHandler := connect.NewUnaryHandler( - AdminServiceGetNamedEntityProcedure, - svc.GetNamedEntity, - connect.WithSchema(adminServiceGetNamedEntityMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceUpdateNamedEntityHandler := connect.NewUnaryHandler( - AdminServiceUpdateNamedEntityProcedure, - svc.UpdateNamedEntity, - connect.WithSchema(adminServiceUpdateNamedEntityMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetVersionHandler := connect.NewUnaryHandler( - AdminServiceGetVersionProcedure, - svc.GetVersion, - connect.WithSchema(adminServiceGetVersionMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetDescriptionEntityHandler := connect.NewUnaryHandler( - AdminServiceGetDescriptionEntityProcedure, - svc.GetDescriptionEntity, - connect.WithSchema(adminServiceGetDescriptionEntityMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceListDescriptionEntitiesHandler := connect.NewUnaryHandler( - AdminServiceListDescriptionEntitiesProcedure, - svc.ListDescriptionEntities, - connect.WithSchema(adminServiceListDescriptionEntitiesMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - adminServiceGetExecutionMetricsHandler := connect.NewUnaryHandler( - AdminServiceGetExecutionMetricsProcedure, - svc.GetExecutionMetrics, - connect.WithSchema(adminServiceGetExecutionMetricsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/flyteidl.service.AdminService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case AdminServiceCreateTaskProcedure: - adminServiceCreateTaskHandler.ServeHTTP(w, r) - case AdminServiceGetTaskProcedure: - adminServiceGetTaskHandler.ServeHTTP(w, r) - case AdminServiceListTaskIdsProcedure: - adminServiceListTaskIdsHandler.ServeHTTP(w, r) - case AdminServiceListTasksProcedure: - adminServiceListTasksHandler.ServeHTTP(w, r) - case AdminServiceCreateWorkflowProcedure: - adminServiceCreateWorkflowHandler.ServeHTTP(w, r) - case AdminServiceGetWorkflowProcedure: - adminServiceGetWorkflowHandler.ServeHTTP(w, r) - case AdminServiceListWorkflowIdsProcedure: - adminServiceListWorkflowIdsHandler.ServeHTTP(w, r) - case AdminServiceListWorkflowsProcedure: - adminServiceListWorkflowsHandler.ServeHTTP(w, r) - case AdminServiceCreateLaunchPlanProcedure: - adminServiceCreateLaunchPlanHandler.ServeHTTP(w, r) - case AdminServiceGetLaunchPlanProcedure: - adminServiceGetLaunchPlanHandler.ServeHTTP(w, r) - case AdminServiceGetActiveLaunchPlanProcedure: - adminServiceGetActiveLaunchPlanHandler.ServeHTTP(w, r) - case AdminServiceListActiveLaunchPlansProcedure: - adminServiceListActiveLaunchPlansHandler.ServeHTTP(w, r) - case AdminServiceListLaunchPlanIdsProcedure: - adminServiceListLaunchPlanIdsHandler.ServeHTTP(w, r) - case AdminServiceListLaunchPlansProcedure: - adminServiceListLaunchPlansHandler.ServeHTTP(w, r) - case AdminServiceUpdateLaunchPlanProcedure: - adminServiceUpdateLaunchPlanHandler.ServeHTTP(w, r) - case AdminServiceCreateExecutionProcedure: - adminServiceCreateExecutionHandler.ServeHTTP(w, r) - case AdminServiceRelaunchExecutionProcedure: - adminServiceRelaunchExecutionHandler.ServeHTTP(w, r) - case AdminServiceRecoverExecutionProcedure: - adminServiceRecoverExecutionHandler.ServeHTTP(w, r) - case AdminServiceGetExecutionProcedure: - adminServiceGetExecutionHandler.ServeHTTP(w, r) - case AdminServiceUpdateExecutionProcedure: - adminServiceUpdateExecutionHandler.ServeHTTP(w, r) - case AdminServiceGetExecutionDataProcedure: - adminServiceGetExecutionDataHandler.ServeHTTP(w, r) - case AdminServiceListExecutionsProcedure: - adminServiceListExecutionsHandler.ServeHTTP(w, r) - case AdminServiceTerminateExecutionProcedure: - adminServiceTerminateExecutionHandler.ServeHTTP(w, r) - case AdminServiceGetNodeExecutionProcedure: - adminServiceGetNodeExecutionHandler.ServeHTTP(w, r) - case AdminServiceGetDynamicNodeWorkflowProcedure: - adminServiceGetDynamicNodeWorkflowHandler.ServeHTTP(w, r) - case AdminServiceListNodeExecutionsProcedure: - adminServiceListNodeExecutionsHandler.ServeHTTP(w, r) - case AdminServiceListNodeExecutionsForTaskProcedure: - adminServiceListNodeExecutionsForTaskHandler.ServeHTTP(w, r) - case AdminServiceGetNodeExecutionDataProcedure: - adminServiceGetNodeExecutionDataHandler.ServeHTTP(w, r) - case AdminServiceRegisterProjectProcedure: - adminServiceRegisterProjectHandler.ServeHTTP(w, r) - case AdminServiceUpdateProjectProcedure: - adminServiceUpdateProjectHandler.ServeHTTP(w, r) - case AdminServiceListProjectsProcedure: - adminServiceListProjectsHandler.ServeHTTP(w, r) - case AdminServiceCreateWorkflowEventProcedure: - adminServiceCreateWorkflowEventHandler.ServeHTTP(w, r) - case AdminServiceCreateNodeEventProcedure: - adminServiceCreateNodeEventHandler.ServeHTTP(w, r) - case AdminServiceCreateTaskEventProcedure: - adminServiceCreateTaskEventHandler.ServeHTTP(w, r) - case AdminServiceGetTaskExecutionProcedure: - adminServiceGetTaskExecutionHandler.ServeHTTP(w, r) - case AdminServiceListTaskExecutionsProcedure: - adminServiceListTaskExecutionsHandler.ServeHTTP(w, r) - case AdminServiceGetTaskExecutionDataProcedure: - adminServiceGetTaskExecutionDataHandler.ServeHTTP(w, r) - case AdminServiceUpdateProjectDomainAttributesProcedure: - adminServiceUpdateProjectDomainAttributesHandler.ServeHTTP(w, r) - case AdminServiceGetProjectDomainAttributesProcedure: - adminServiceGetProjectDomainAttributesHandler.ServeHTTP(w, r) - case AdminServiceDeleteProjectDomainAttributesProcedure: - adminServiceDeleteProjectDomainAttributesHandler.ServeHTTP(w, r) - case AdminServiceUpdateProjectAttributesProcedure: - adminServiceUpdateProjectAttributesHandler.ServeHTTP(w, r) - case AdminServiceGetProjectAttributesProcedure: - adminServiceGetProjectAttributesHandler.ServeHTTP(w, r) - case AdminServiceDeleteProjectAttributesProcedure: - adminServiceDeleteProjectAttributesHandler.ServeHTTP(w, r) - case AdminServiceUpdateWorkflowAttributesProcedure: - adminServiceUpdateWorkflowAttributesHandler.ServeHTTP(w, r) - case AdminServiceGetWorkflowAttributesProcedure: - adminServiceGetWorkflowAttributesHandler.ServeHTTP(w, r) - case AdminServiceDeleteWorkflowAttributesProcedure: - adminServiceDeleteWorkflowAttributesHandler.ServeHTTP(w, r) - case AdminServiceListMatchableAttributesProcedure: - adminServiceListMatchableAttributesHandler.ServeHTTP(w, r) - case AdminServiceListNamedEntitiesProcedure: - adminServiceListNamedEntitiesHandler.ServeHTTP(w, r) - case AdminServiceGetNamedEntityProcedure: - adminServiceGetNamedEntityHandler.ServeHTTP(w, r) - case AdminServiceUpdateNamedEntityProcedure: - adminServiceUpdateNamedEntityHandler.ServeHTTP(w, r) - case AdminServiceGetVersionProcedure: - adminServiceGetVersionHandler.ServeHTTP(w, r) - case AdminServiceGetDescriptionEntityProcedure: - adminServiceGetDescriptionEntityHandler.ServeHTTP(w, r) - case AdminServiceListDescriptionEntitiesProcedure: - adminServiceListDescriptionEntitiesHandler.ServeHTTP(w, r) - case AdminServiceGetExecutionMetricsProcedure: - adminServiceGetExecutionMetricsHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedAdminServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedAdminServiceHandler struct{} - -func (UnimplementedAdminServiceHandler) CreateTask(context.Context, *connect.Request[admin.TaskCreateRequest]) (*connect.Response[admin.TaskCreateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.CreateTask is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetTask(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.Task], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetTask is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListTaskIds(context.Context, *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListTaskIds is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListTasks(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.TaskList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListTasks is not implemented")) -} - -func (UnimplementedAdminServiceHandler) CreateWorkflow(context.Context, *connect.Request[admin.WorkflowCreateRequest]) (*connect.Response[admin.WorkflowCreateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.CreateWorkflow is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetWorkflow(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.Workflow], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetWorkflow is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListWorkflowIds(context.Context, *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListWorkflowIds is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListWorkflows(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.WorkflowList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListWorkflows is not implemented")) -} - -func (UnimplementedAdminServiceHandler) CreateLaunchPlan(context.Context, *connect.Request[admin.LaunchPlanCreateRequest]) (*connect.Response[admin.LaunchPlanCreateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.CreateLaunchPlan is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetLaunchPlan(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.LaunchPlan], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetLaunchPlan is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetActiveLaunchPlan(context.Context, *connect.Request[admin.ActiveLaunchPlanRequest]) (*connect.Response[admin.LaunchPlan], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetActiveLaunchPlan is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListActiveLaunchPlans(context.Context, *connect.Request[admin.ActiveLaunchPlanListRequest]) (*connect.Response[admin.LaunchPlanList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListActiveLaunchPlans is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListLaunchPlanIds(context.Context, *connect.Request[admin.NamedEntityIdentifierListRequest]) (*connect.Response[admin.NamedEntityIdentifierList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListLaunchPlanIds is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListLaunchPlans(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.LaunchPlanList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListLaunchPlans is not implemented")) -} - -func (UnimplementedAdminServiceHandler) UpdateLaunchPlan(context.Context, *connect.Request[admin.LaunchPlanUpdateRequest]) (*connect.Response[admin.LaunchPlanUpdateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.UpdateLaunchPlan is not implemented")) -} - -func (UnimplementedAdminServiceHandler) CreateExecution(context.Context, *connect.Request[admin.ExecutionCreateRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.CreateExecution is not implemented")) -} - -func (UnimplementedAdminServiceHandler) RelaunchExecution(context.Context, *connect.Request[admin.ExecutionRelaunchRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.RelaunchExecution is not implemented")) -} - -func (UnimplementedAdminServiceHandler) RecoverExecution(context.Context, *connect.Request[admin.ExecutionRecoverRequest]) (*connect.Response[admin.ExecutionCreateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.RecoverExecution is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetExecution(context.Context, *connect.Request[admin.WorkflowExecutionGetRequest]) (*connect.Response[admin.Execution], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetExecution is not implemented")) -} - -func (UnimplementedAdminServiceHandler) UpdateExecution(context.Context, *connect.Request[admin.ExecutionUpdateRequest]) (*connect.Response[admin.ExecutionUpdateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.UpdateExecution is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetExecutionData(context.Context, *connect.Request[admin.WorkflowExecutionGetDataRequest]) (*connect.Response[admin.WorkflowExecutionGetDataResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetExecutionData is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListExecutions(context.Context, *connect.Request[admin.ResourceListRequest]) (*connect.Response[admin.ExecutionList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListExecutions is not implemented")) -} - -func (UnimplementedAdminServiceHandler) TerminateExecution(context.Context, *connect.Request[admin.ExecutionTerminateRequest]) (*connect.Response[admin.ExecutionTerminateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.TerminateExecution is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetNodeExecution(context.Context, *connect.Request[admin.NodeExecutionGetRequest]) (*connect.Response[admin.NodeExecution], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetNodeExecution is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetDynamicNodeWorkflow(context.Context, *connect.Request[admin.GetDynamicNodeWorkflowRequest]) (*connect.Response[admin.DynamicNodeWorkflowResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetDynamicNodeWorkflow is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListNodeExecutions(context.Context, *connect.Request[admin.NodeExecutionListRequest]) (*connect.Response[admin.NodeExecutionList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListNodeExecutions is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListNodeExecutionsForTask(context.Context, *connect.Request[admin.NodeExecutionForTaskListRequest]) (*connect.Response[admin.NodeExecutionList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListNodeExecutionsForTask is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetNodeExecutionData(context.Context, *connect.Request[admin.NodeExecutionGetDataRequest]) (*connect.Response[admin.NodeExecutionGetDataResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetNodeExecutionData is not implemented")) -} - -func (UnimplementedAdminServiceHandler) RegisterProject(context.Context, *connect.Request[admin.ProjectRegisterRequest]) (*connect.Response[admin.ProjectRegisterResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.RegisterProject is not implemented")) -} - -func (UnimplementedAdminServiceHandler) UpdateProject(context.Context, *connect.Request[admin.Project]) (*connect.Response[admin.ProjectUpdateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.UpdateProject is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListProjects(context.Context, *connect.Request[admin.ProjectListRequest]) (*connect.Response[admin.Projects], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListProjects is not implemented")) -} - -func (UnimplementedAdminServiceHandler) CreateWorkflowEvent(context.Context, *connect.Request[admin.WorkflowExecutionEventRequest]) (*connect.Response[admin.WorkflowExecutionEventResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.CreateWorkflowEvent is not implemented")) -} - -func (UnimplementedAdminServiceHandler) CreateNodeEvent(context.Context, *connect.Request[admin.NodeExecutionEventRequest]) (*connect.Response[admin.NodeExecutionEventResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.CreateNodeEvent is not implemented")) -} - -func (UnimplementedAdminServiceHandler) CreateTaskEvent(context.Context, *connect.Request[admin.TaskExecutionEventRequest]) (*connect.Response[admin.TaskExecutionEventResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.CreateTaskEvent is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetTaskExecution(context.Context, *connect.Request[admin.TaskExecutionGetRequest]) (*connect.Response[admin.TaskExecution], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetTaskExecution is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListTaskExecutions(context.Context, *connect.Request[admin.TaskExecutionListRequest]) (*connect.Response[admin.TaskExecutionList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListTaskExecutions is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetTaskExecutionData(context.Context, *connect.Request[admin.TaskExecutionGetDataRequest]) (*connect.Response[admin.TaskExecutionGetDataResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetTaskExecutionData is not implemented")) -} - -func (UnimplementedAdminServiceHandler) UpdateProjectDomainAttributes(context.Context, *connect.Request[admin.ProjectDomainAttributesUpdateRequest]) (*connect.Response[admin.ProjectDomainAttributesUpdateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.UpdateProjectDomainAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetProjectDomainAttributes(context.Context, *connect.Request[admin.ProjectDomainAttributesGetRequest]) (*connect.Response[admin.ProjectDomainAttributesGetResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetProjectDomainAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) DeleteProjectDomainAttributes(context.Context, *connect.Request[admin.ProjectDomainAttributesDeleteRequest]) (*connect.Response[admin.ProjectDomainAttributesDeleteResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.DeleteProjectDomainAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) UpdateProjectAttributes(context.Context, *connect.Request[admin.ProjectAttributesUpdateRequest]) (*connect.Response[admin.ProjectAttributesUpdateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.UpdateProjectAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetProjectAttributes(context.Context, *connect.Request[admin.ProjectAttributesGetRequest]) (*connect.Response[admin.ProjectAttributesGetResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetProjectAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) DeleteProjectAttributes(context.Context, *connect.Request[admin.ProjectAttributesDeleteRequest]) (*connect.Response[admin.ProjectAttributesDeleteResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.DeleteProjectAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) UpdateWorkflowAttributes(context.Context, *connect.Request[admin.WorkflowAttributesUpdateRequest]) (*connect.Response[admin.WorkflowAttributesUpdateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.UpdateWorkflowAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetWorkflowAttributes(context.Context, *connect.Request[admin.WorkflowAttributesGetRequest]) (*connect.Response[admin.WorkflowAttributesGetResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetWorkflowAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) DeleteWorkflowAttributes(context.Context, *connect.Request[admin.WorkflowAttributesDeleteRequest]) (*connect.Response[admin.WorkflowAttributesDeleteResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.DeleteWorkflowAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListMatchableAttributes(context.Context, *connect.Request[admin.ListMatchableAttributesRequest]) (*connect.Response[admin.ListMatchableAttributesResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListMatchableAttributes is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListNamedEntities(context.Context, *connect.Request[admin.NamedEntityListRequest]) (*connect.Response[admin.NamedEntityList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListNamedEntities is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetNamedEntity(context.Context, *connect.Request[admin.NamedEntityGetRequest]) (*connect.Response[admin.NamedEntity], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetNamedEntity is not implemented")) -} - -func (UnimplementedAdminServiceHandler) UpdateNamedEntity(context.Context, *connect.Request[admin.NamedEntityUpdateRequest]) (*connect.Response[admin.NamedEntityUpdateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.UpdateNamedEntity is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetVersion(context.Context, *connect.Request[admin.GetVersionRequest]) (*connect.Response[admin.GetVersionResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetVersion is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetDescriptionEntity(context.Context, *connect.Request[admin.ObjectGetRequest]) (*connect.Response[admin.DescriptionEntity], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetDescriptionEntity is not implemented")) -} - -func (UnimplementedAdminServiceHandler) ListDescriptionEntities(context.Context, *connect.Request[admin.DescriptionEntityListRequest]) (*connect.Response[admin.DescriptionEntityList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.ListDescriptionEntities is not implemented")) -} - -func (UnimplementedAdminServiceHandler) GetExecutionMetrics(context.Context, *connect.Request[admin.WorkflowExecutionGetMetricsRequest]) (*connect.Response[admin.WorkflowExecutionGetMetricsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AdminService.GetExecutionMetrics is not implemented")) -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/agent.connect.go b/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/agent.connect.go deleted file mode 100644 index 4753bc1b50..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/agent.connect.go +++ /dev/null @@ -1,362 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: flyteidl/service/agent.proto - -package serviceconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // AsyncAgentServiceName is the fully-qualified name of the AsyncAgentService service. - AsyncAgentServiceName = "flyteidl.service.AsyncAgentService" - // AgentMetadataServiceName is the fully-qualified name of the AgentMetadataService service. - AgentMetadataServiceName = "flyteidl.service.AgentMetadataService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // AsyncAgentServiceCreateTaskProcedure is the fully-qualified name of the AsyncAgentService's - // CreateTask RPC. - AsyncAgentServiceCreateTaskProcedure = "/flyteidl.service.AsyncAgentService/CreateTask" - // AsyncAgentServiceGetTaskProcedure is the fully-qualified name of the AsyncAgentService's GetTask - // RPC. - AsyncAgentServiceGetTaskProcedure = "/flyteidl.service.AsyncAgentService/GetTask" - // AsyncAgentServiceDeleteTaskProcedure is the fully-qualified name of the AsyncAgentService's - // DeleteTask RPC. - AsyncAgentServiceDeleteTaskProcedure = "/flyteidl.service.AsyncAgentService/DeleteTask" - // AsyncAgentServiceGetTaskMetricsProcedure is the fully-qualified name of the AsyncAgentService's - // GetTaskMetrics RPC. - AsyncAgentServiceGetTaskMetricsProcedure = "/flyteidl.service.AsyncAgentService/GetTaskMetrics" - // AsyncAgentServiceGetTaskLogsProcedure is the fully-qualified name of the AsyncAgentService's - // GetTaskLogs RPC. - AsyncAgentServiceGetTaskLogsProcedure = "/flyteidl.service.AsyncAgentService/GetTaskLogs" - // AgentMetadataServiceGetAgentProcedure is the fully-qualified name of the AgentMetadataService's - // GetAgent RPC. - AgentMetadataServiceGetAgentProcedure = "/flyteidl.service.AgentMetadataService/GetAgent" - // AgentMetadataServiceListAgentsProcedure is the fully-qualified name of the AgentMetadataService's - // ListAgents RPC. - AgentMetadataServiceListAgentsProcedure = "/flyteidl.service.AgentMetadataService/ListAgents" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - asyncAgentServiceServiceDescriptor = service.File_flyteidl_service_agent_proto.Services().ByName("AsyncAgentService") - asyncAgentServiceCreateTaskMethodDescriptor = asyncAgentServiceServiceDescriptor.Methods().ByName("CreateTask") - asyncAgentServiceGetTaskMethodDescriptor = asyncAgentServiceServiceDescriptor.Methods().ByName("GetTask") - asyncAgentServiceDeleteTaskMethodDescriptor = asyncAgentServiceServiceDescriptor.Methods().ByName("DeleteTask") - asyncAgentServiceGetTaskMetricsMethodDescriptor = asyncAgentServiceServiceDescriptor.Methods().ByName("GetTaskMetrics") - asyncAgentServiceGetTaskLogsMethodDescriptor = asyncAgentServiceServiceDescriptor.Methods().ByName("GetTaskLogs") - agentMetadataServiceServiceDescriptor = service.File_flyteidl_service_agent_proto.Services().ByName("AgentMetadataService") - agentMetadataServiceGetAgentMethodDescriptor = agentMetadataServiceServiceDescriptor.Methods().ByName("GetAgent") - agentMetadataServiceListAgentsMethodDescriptor = agentMetadataServiceServiceDescriptor.Methods().ByName("ListAgents") -) - -// AsyncAgentServiceClient is a client for the flyteidl.service.AsyncAgentService service. -type AsyncAgentServiceClient interface { - // Send a task create request to the agent server. - CreateTask(context.Context, *connect.Request[admin.CreateTaskRequest]) (*connect.Response[admin.CreateTaskResponse], error) - // Get job status. - GetTask(context.Context, *connect.Request[admin.GetTaskRequest]) (*connect.Response[admin.GetTaskResponse], error) - // Delete the task resource. - DeleteTask(context.Context, *connect.Request[admin.DeleteTaskRequest]) (*connect.Response[admin.DeleteTaskResponse], error) - // GetTaskMetrics returns one or more task execution metrics, if available. - // - // Errors include - // - OutOfRange if metrics are not available for the specified task time range - // - various other errors - GetTaskMetrics(context.Context, *connect.Request[admin.GetTaskMetricsRequest]) (*connect.Response[admin.GetTaskMetricsResponse], error) - // GetTaskLogs returns task execution logs, if available. - GetTaskLogs(context.Context, *connect.Request[admin.GetTaskLogsRequest]) (*connect.Response[admin.GetTaskLogsResponse], error) -} - -// NewAsyncAgentServiceClient constructs a client for the flyteidl.service.AsyncAgentService -// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for -// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply -// the connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewAsyncAgentServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AsyncAgentServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &asyncAgentServiceClient{ - createTask: connect.NewClient[admin.CreateTaskRequest, admin.CreateTaskResponse]( - httpClient, - baseURL+AsyncAgentServiceCreateTaskProcedure, - connect.WithSchema(asyncAgentServiceCreateTaskMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getTask: connect.NewClient[admin.GetTaskRequest, admin.GetTaskResponse]( - httpClient, - baseURL+AsyncAgentServiceGetTaskProcedure, - connect.WithSchema(asyncAgentServiceGetTaskMethodDescriptor), - connect.WithClientOptions(opts...), - ), - deleteTask: connect.NewClient[admin.DeleteTaskRequest, admin.DeleteTaskResponse]( - httpClient, - baseURL+AsyncAgentServiceDeleteTaskProcedure, - connect.WithSchema(asyncAgentServiceDeleteTaskMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getTaskMetrics: connect.NewClient[admin.GetTaskMetricsRequest, admin.GetTaskMetricsResponse]( - httpClient, - baseURL+AsyncAgentServiceGetTaskMetricsProcedure, - connect.WithSchema(asyncAgentServiceGetTaskMetricsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getTaskLogs: connect.NewClient[admin.GetTaskLogsRequest, admin.GetTaskLogsResponse]( - httpClient, - baseURL+AsyncAgentServiceGetTaskLogsProcedure, - connect.WithSchema(asyncAgentServiceGetTaskLogsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// asyncAgentServiceClient implements AsyncAgentServiceClient. -type asyncAgentServiceClient struct { - createTask *connect.Client[admin.CreateTaskRequest, admin.CreateTaskResponse] - getTask *connect.Client[admin.GetTaskRequest, admin.GetTaskResponse] - deleteTask *connect.Client[admin.DeleteTaskRequest, admin.DeleteTaskResponse] - getTaskMetrics *connect.Client[admin.GetTaskMetricsRequest, admin.GetTaskMetricsResponse] - getTaskLogs *connect.Client[admin.GetTaskLogsRequest, admin.GetTaskLogsResponse] -} - -// CreateTask calls flyteidl.service.AsyncAgentService.CreateTask. -func (c *asyncAgentServiceClient) CreateTask(ctx context.Context, req *connect.Request[admin.CreateTaskRequest]) (*connect.Response[admin.CreateTaskResponse], error) { - return c.createTask.CallUnary(ctx, req) -} - -// GetTask calls flyteidl.service.AsyncAgentService.GetTask. -func (c *asyncAgentServiceClient) GetTask(ctx context.Context, req *connect.Request[admin.GetTaskRequest]) (*connect.Response[admin.GetTaskResponse], error) { - return c.getTask.CallUnary(ctx, req) -} - -// DeleteTask calls flyteidl.service.AsyncAgentService.DeleteTask. -func (c *asyncAgentServiceClient) DeleteTask(ctx context.Context, req *connect.Request[admin.DeleteTaskRequest]) (*connect.Response[admin.DeleteTaskResponse], error) { - return c.deleteTask.CallUnary(ctx, req) -} - -// GetTaskMetrics calls flyteidl.service.AsyncAgentService.GetTaskMetrics. -func (c *asyncAgentServiceClient) GetTaskMetrics(ctx context.Context, req *connect.Request[admin.GetTaskMetricsRequest]) (*connect.Response[admin.GetTaskMetricsResponse], error) { - return c.getTaskMetrics.CallUnary(ctx, req) -} - -// GetTaskLogs calls flyteidl.service.AsyncAgentService.GetTaskLogs. -func (c *asyncAgentServiceClient) GetTaskLogs(ctx context.Context, req *connect.Request[admin.GetTaskLogsRequest]) (*connect.Response[admin.GetTaskLogsResponse], error) { - return c.getTaskLogs.CallUnary(ctx, req) -} - -// AsyncAgentServiceHandler is an implementation of the flyteidl.service.AsyncAgentService service. -type AsyncAgentServiceHandler interface { - // Send a task create request to the agent server. - CreateTask(context.Context, *connect.Request[admin.CreateTaskRequest]) (*connect.Response[admin.CreateTaskResponse], error) - // Get job status. - GetTask(context.Context, *connect.Request[admin.GetTaskRequest]) (*connect.Response[admin.GetTaskResponse], error) - // Delete the task resource. - DeleteTask(context.Context, *connect.Request[admin.DeleteTaskRequest]) (*connect.Response[admin.DeleteTaskResponse], error) - // GetTaskMetrics returns one or more task execution metrics, if available. - // - // Errors include - // - OutOfRange if metrics are not available for the specified task time range - // - various other errors - GetTaskMetrics(context.Context, *connect.Request[admin.GetTaskMetricsRequest]) (*connect.Response[admin.GetTaskMetricsResponse], error) - // GetTaskLogs returns task execution logs, if available. - GetTaskLogs(context.Context, *connect.Request[admin.GetTaskLogsRequest]) (*connect.Response[admin.GetTaskLogsResponse], error) -} - -// NewAsyncAgentServiceHandler builds an HTTP handler from the service implementation. It returns -// the path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewAsyncAgentServiceHandler(svc AsyncAgentServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - asyncAgentServiceCreateTaskHandler := connect.NewUnaryHandler( - AsyncAgentServiceCreateTaskProcedure, - svc.CreateTask, - connect.WithSchema(asyncAgentServiceCreateTaskMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - asyncAgentServiceGetTaskHandler := connect.NewUnaryHandler( - AsyncAgentServiceGetTaskProcedure, - svc.GetTask, - connect.WithSchema(asyncAgentServiceGetTaskMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - asyncAgentServiceDeleteTaskHandler := connect.NewUnaryHandler( - AsyncAgentServiceDeleteTaskProcedure, - svc.DeleteTask, - connect.WithSchema(asyncAgentServiceDeleteTaskMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - asyncAgentServiceGetTaskMetricsHandler := connect.NewUnaryHandler( - AsyncAgentServiceGetTaskMetricsProcedure, - svc.GetTaskMetrics, - connect.WithSchema(asyncAgentServiceGetTaskMetricsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - asyncAgentServiceGetTaskLogsHandler := connect.NewUnaryHandler( - AsyncAgentServiceGetTaskLogsProcedure, - svc.GetTaskLogs, - connect.WithSchema(asyncAgentServiceGetTaskLogsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/flyteidl.service.AsyncAgentService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case AsyncAgentServiceCreateTaskProcedure: - asyncAgentServiceCreateTaskHandler.ServeHTTP(w, r) - case AsyncAgentServiceGetTaskProcedure: - asyncAgentServiceGetTaskHandler.ServeHTTP(w, r) - case AsyncAgentServiceDeleteTaskProcedure: - asyncAgentServiceDeleteTaskHandler.ServeHTTP(w, r) - case AsyncAgentServiceGetTaskMetricsProcedure: - asyncAgentServiceGetTaskMetricsHandler.ServeHTTP(w, r) - case AsyncAgentServiceGetTaskLogsProcedure: - asyncAgentServiceGetTaskLogsHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedAsyncAgentServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedAsyncAgentServiceHandler struct{} - -func (UnimplementedAsyncAgentServiceHandler) CreateTask(context.Context, *connect.Request[admin.CreateTaskRequest]) (*connect.Response[admin.CreateTaskResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AsyncAgentService.CreateTask is not implemented")) -} - -func (UnimplementedAsyncAgentServiceHandler) GetTask(context.Context, *connect.Request[admin.GetTaskRequest]) (*connect.Response[admin.GetTaskResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AsyncAgentService.GetTask is not implemented")) -} - -func (UnimplementedAsyncAgentServiceHandler) DeleteTask(context.Context, *connect.Request[admin.DeleteTaskRequest]) (*connect.Response[admin.DeleteTaskResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AsyncAgentService.DeleteTask is not implemented")) -} - -func (UnimplementedAsyncAgentServiceHandler) GetTaskMetrics(context.Context, *connect.Request[admin.GetTaskMetricsRequest]) (*connect.Response[admin.GetTaskMetricsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AsyncAgentService.GetTaskMetrics is not implemented")) -} - -func (UnimplementedAsyncAgentServiceHandler) GetTaskLogs(context.Context, *connect.Request[admin.GetTaskLogsRequest]) (*connect.Response[admin.GetTaskLogsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AsyncAgentService.GetTaskLogs is not implemented")) -} - -// AgentMetadataServiceClient is a client for the flyteidl.service.AgentMetadataService service. -type AgentMetadataServiceClient interface { - // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - GetAgent(context.Context, *connect.Request[admin.GetAgentRequest]) (*connect.Response[admin.GetAgentResponse], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - ListAgents(context.Context, *connect.Request[admin.ListAgentsRequest]) (*connect.Response[admin.ListAgentsResponse], error) -} - -// NewAgentMetadataServiceClient constructs a client for the flyteidl.service.AgentMetadataService -// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for -// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply -// the connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewAgentMetadataServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AgentMetadataServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &agentMetadataServiceClient{ - getAgent: connect.NewClient[admin.GetAgentRequest, admin.GetAgentResponse]( - httpClient, - baseURL+AgentMetadataServiceGetAgentProcedure, - connect.WithSchema(agentMetadataServiceGetAgentMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listAgents: connect.NewClient[admin.ListAgentsRequest, admin.ListAgentsResponse]( - httpClient, - baseURL+AgentMetadataServiceListAgentsProcedure, - connect.WithSchema(agentMetadataServiceListAgentsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// agentMetadataServiceClient implements AgentMetadataServiceClient. -type agentMetadataServiceClient struct { - getAgent *connect.Client[admin.GetAgentRequest, admin.GetAgentResponse] - listAgents *connect.Client[admin.ListAgentsRequest, admin.ListAgentsResponse] -} - -// GetAgent calls flyteidl.service.AgentMetadataService.GetAgent. -func (c *agentMetadataServiceClient) GetAgent(ctx context.Context, req *connect.Request[admin.GetAgentRequest]) (*connect.Response[admin.GetAgentResponse], error) { - return c.getAgent.CallUnary(ctx, req) -} - -// ListAgents calls flyteidl.service.AgentMetadataService.ListAgents. -func (c *agentMetadataServiceClient) ListAgents(ctx context.Context, req *connect.Request[admin.ListAgentsRequest]) (*connect.Response[admin.ListAgentsResponse], error) { - return c.listAgents.CallUnary(ctx, req) -} - -// AgentMetadataServiceHandler is an implementation of the flyteidl.service.AgentMetadataService -// service. -type AgentMetadataServiceHandler interface { - // Fetch a :ref:`ref_flyteidl.admin.Agent` definition. - GetAgent(context.Context, *connect.Request[admin.GetAgentRequest]) (*connect.Response[admin.GetAgentResponse], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Agent` definitions. - ListAgents(context.Context, *connect.Request[admin.ListAgentsRequest]) (*connect.Response[admin.ListAgentsResponse], error) -} - -// NewAgentMetadataServiceHandler builds an HTTP handler from the service implementation. It returns -// the path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewAgentMetadataServiceHandler(svc AgentMetadataServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - agentMetadataServiceGetAgentHandler := connect.NewUnaryHandler( - AgentMetadataServiceGetAgentProcedure, - svc.GetAgent, - connect.WithSchema(agentMetadataServiceGetAgentMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - agentMetadataServiceListAgentsHandler := connect.NewUnaryHandler( - AgentMetadataServiceListAgentsProcedure, - svc.ListAgents, - connect.WithSchema(agentMetadataServiceListAgentsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/flyteidl.service.AgentMetadataService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case AgentMetadataServiceGetAgentProcedure: - agentMetadataServiceGetAgentHandler.ServeHTTP(w, r) - case AgentMetadataServiceListAgentsProcedure: - agentMetadataServiceListAgentsHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedAgentMetadataServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedAgentMetadataServiceHandler struct{} - -func (UnimplementedAgentMetadataServiceHandler) GetAgent(context.Context, *connect.Request[admin.GetAgentRequest]) (*connect.Response[admin.GetAgentResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AgentMetadataService.GetAgent is not implemented")) -} - -func (UnimplementedAgentMetadataServiceHandler) ListAgents(context.Context, *connect.Request[admin.ListAgentsRequest]) (*connect.Response[admin.ListAgentsResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AgentMetadataService.ListAgents is not implemented")) -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/auth.connect.go b/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/auth.connect.go deleted file mode 100644 index 1308082440..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/auth.connect.go +++ /dev/null @@ -1,150 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: flyteidl/service/auth.proto - -package serviceconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // AuthMetadataServiceName is the fully-qualified name of the AuthMetadataService service. - AuthMetadataServiceName = "flyteidl.service.AuthMetadataService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // AuthMetadataServiceGetOAuth2MetadataProcedure is the fully-qualified name of the - // AuthMetadataService's GetOAuth2Metadata RPC. - AuthMetadataServiceGetOAuth2MetadataProcedure = "/flyteidl.service.AuthMetadataService/GetOAuth2Metadata" - // AuthMetadataServiceGetPublicClientConfigProcedure is the fully-qualified name of the - // AuthMetadataService's GetPublicClientConfig RPC. - AuthMetadataServiceGetPublicClientConfigProcedure = "/flyteidl.service.AuthMetadataService/GetPublicClientConfig" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - authMetadataServiceServiceDescriptor = service.File_flyteidl_service_auth_proto.Services().ByName("AuthMetadataService") - authMetadataServiceGetOAuth2MetadataMethodDescriptor = authMetadataServiceServiceDescriptor.Methods().ByName("GetOAuth2Metadata") - authMetadataServiceGetPublicClientConfigMethodDescriptor = authMetadataServiceServiceDescriptor.Methods().ByName("GetPublicClientConfig") -) - -// AuthMetadataServiceClient is a client for the flyteidl.service.AuthMetadataService service. -type AuthMetadataServiceClient interface { - // Anonymously accessible. Retrieves local or external oauth authorization server metadata. - GetOAuth2Metadata(context.Context, *connect.Request[service.OAuth2MetadataRequest]) (*connect.Response[service.OAuth2MetadataResponse], error) - // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - // requests. - GetPublicClientConfig(context.Context, *connect.Request[service.PublicClientAuthConfigRequest]) (*connect.Response[service.PublicClientAuthConfigResponse], error) -} - -// NewAuthMetadataServiceClient constructs a client for the flyteidl.service.AuthMetadataService -// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for -// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply -// the connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewAuthMetadataServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) AuthMetadataServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &authMetadataServiceClient{ - getOAuth2Metadata: connect.NewClient[service.OAuth2MetadataRequest, service.OAuth2MetadataResponse]( - httpClient, - baseURL+AuthMetadataServiceGetOAuth2MetadataProcedure, - connect.WithSchema(authMetadataServiceGetOAuth2MetadataMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getPublicClientConfig: connect.NewClient[service.PublicClientAuthConfigRequest, service.PublicClientAuthConfigResponse]( - httpClient, - baseURL+AuthMetadataServiceGetPublicClientConfigProcedure, - connect.WithSchema(authMetadataServiceGetPublicClientConfigMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// authMetadataServiceClient implements AuthMetadataServiceClient. -type authMetadataServiceClient struct { - getOAuth2Metadata *connect.Client[service.OAuth2MetadataRequest, service.OAuth2MetadataResponse] - getPublicClientConfig *connect.Client[service.PublicClientAuthConfigRequest, service.PublicClientAuthConfigResponse] -} - -// GetOAuth2Metadata calls flyteidl.service.AuthMetadataService.GetOAuth2Metadata. -func (c *authMetadataServiceClient) GetOAuth2Metadata(ctx context.Context, req *connect.Request[service.OAuth2MetadataRequest]) (*connect.Response[service.OAuth2MetadataResponse], error) { - return c.getOAuth2Metadata.CallUnary(ctx, req) -} - -// GetPublicClientConfig calls flyteidl.service.AuthMetadataService.GetPublicClientConfig. -func (c *authMetadataServiceClient) GetPublicClientConfig(ctx context.Context, req *connect.Request[service.PublicClientAuthConfigRequest]) (*connect.Response[service.PublicClientAuthConfigResponse], error) { - return c.getPublicClientConfig.CallUnary(ctx, req) -} - -// AuthMetadataServiceHandler is an implementation of the flyteidl.service.AuthMetadataService -// service. -type AuthMetadataServiceHandler interface { - // Anonymously accessible. Retrieves local or external oauth authorization server metadata. - GetOAuth2Metadata(context.Context, *connect.Request[service.OAuth2MetadataRequest]) (*connect.Response[service.OAuth2MetadataResponse], error) - // Anonymously accessible. Retrieves the client information clients should use when initiating OAuth2 authorization - // requests. - GetPublicClientConfig(context.Context, *connect.Request[service.PublicClientAuthConfigRequest]) (*connect.Response[service.PublicClientAuthConfigResponse], error) -} - -// NewAuthMetadataServiceHandler builds an HTTP handler from the service implementation. It returns -// the path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewAuthMetadataServiceHandler(svc AuthMetadataServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - authMetadataServiceGetOAuth2MetadataHandler := connect.NewUnaryHandler( - AuthMetadataServiceGetOAuth2MetadataProcedure, - svc.GetOAuth2Metadata, - connect.WithSchema(authMetadataServiceGetOAuth2MetadataMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - authMetadataServiceGetPublicClientConfigHandler := connect.NewUnaryHandler( - AuthMetadataServiceGetPublicClientConfigProcedure, - svc.GetPublicClientConfig, - connect.WithSchema(authMetadataServiceGetPublicClientConfigMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/flyteidl.service.AuthMetadataService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case AuthMetadataServiceGetOAuth2MetadataProcedure: - authMetadataServiceGetOAuth2MetadataHandler.ServeHTTP(w, r) - case AuthMetadataServiceGetPublicClientConfigProcedure: - authMetadataServiceGetPublicClientConfigHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedAuthMetadataServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedAuthMetadataServiceHandler struct{} - -func (UnimplementedAuthMetadataServiceHandler) GetOAuth2Metadata(context.Context, *connect.Request[service.OAuth2MetadataRequest]) (*connect.Response[service.OAuth2MetadataResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AuthMetadataService.GetOAuth2Metadata is not implemented")) -} - -func (UnimplementedAuthMetadataServiceHandler) GetPublicClientConfig(context.Context, *connect.Request[service.PublicClientAuthConfigRequest]) (*connect.Response[service.PublicClientAuthConfigResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.AuthMetadataService.GetPublicClientConfig is not implemented")) -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/dataproxy.connect.go b/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/dataproxy.connect.go deleted file mode 100644 index ce29b1b740..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/dataproxy.connect.go +++ /dev/null @@ -1,215 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: flyteidl/service/dataproxy.proto - -package serviceconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // DataProxyServiceName is the fully-qualified name of the DataProxyService service. - DataProxyServiceName = "flyteidl.service.DataProxyService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // DataProxyServiceCreateUploadLocationProcedure is the fully-qualified name of the - // DataProxyService's CreateUploadLocation RPC. - DataProxyServiceCreateUploadLocationProcedure = "/flyteidl.service.DataProxyService/CreateUploadLocation" - // DataProxyServiceCreateDownloadLocationProcedure is the fully-qualified name of the - // DataProxyService's CreateDownloadLocation RPC. - DataProxyServiceCreateDownloadLocationProcedure = "/flyteidl.service.DataProxyService/CreateDownloadLocation" - // DataProxyServiceCreateDownloadLinkProcedure is the fully-qualified name of the DataProxyService's - // CreateDownloadLink RPC. - DataProxyServiceCreateDownloadLinkProcedure = "/flyteidl.service.DataProxyService/CreateDownloadLink" - // DataProxyServiceGetDataProcedure is the fully-qualified name of the DataProxyService's GetData - // RPC. - DataProxyServiceGetDataProcedure = "/flyteidl.service.DataProxyService/GetData" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - dataProxyServiceServiceDescriptor = service.File_flyteidl_service_dataproxy_proto.Services().ByName("DataProxyService") - dataProxyServiceCreateUploadLocationMethodDescriptor = dataProxyServiceServiceDescriptor.Methods().ByName("CreateUploadLocation") - dataProxyServiceCreateDownloadLocationMethodDescriptor = dataProxyServiceServiceDescriptor.Methods().ByName("CreateDownloadLocation") - dataProxyServiceCreateDownloadLinkMethodDescriptor = dataProxyServiceServiceDescriptor.Methods().ByName("CreateDownloadLink") - dataProxyServiceGetDataMethodDescriptor = dataProxyServiceServiceDescriptor.Methods().ByName("GetData") -) - -// DataProxyServiceClient is a client for the flyteidl.service.DataProxyService service. -type DataProxyServiceClient interface { - // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - CreateUploadLocation(context.Context, *connect.Request[service.CreateUploadLocationRequest]) (*connect.Response[service.CreateUploadLocationResponse], error) - // CreateDownloadLocation creates a signed url to download artifacts. - // - // Deprecated: do not use. - CreateDownloadLocation(context.Context, *connect.Request[service.CreateDownloadLocationRequest]) (*connect.Response[service.CreateDownloadLocationResponse], error) - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLink(context.Context, *connect.Request[service.CreateDownloadLinkRequest]) (*connect.Response[service.CreateDownloadLinkResponse], error) - GetData(context.Context, *connect.Request[service.GetDataRequest]) (*connect.Response[service.GetDataResponse], error) -} - -// NewDataProxyServiceClient constructs a client for the flyteidl.service.DataProxyService service. -// By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped -// responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the -// connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewDataProxyServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) DataProxyServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &dataProxyServiceClient{ - createUploadLocation: connect.NewClient[service.CreateUploadLocationRequest, service.CreateUploadLocationResponse]( - httpClient, - baseURL+DataProxyServiceCreateUploadLocationProcedure, - connect.WithSchema(dataProxyServiceCreateUploadLocationMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createDownloadLocation: connect.NewClient[service.CreateDownloadLocationRequest, service.CreateDownloadLocationResponse]( - httpClient, - baseURL+DataProxyServiceCreateDownloadLocationProcedure, - connect.WithSchema(dataProxyServiceCreateDownloadLocationMethodDescriptor), - connect.WithClientOptions(opts...), - ), - createDownloadLink: connect.NewClient[service.CreateDownloadLinkRequest, service.CreateDownloadLinkResponse]( - httpClient, - baseURL+DataProxyServiceCreateDownloadLinkProcedure, - connect.WithSchema(dataProxyServiceCreateDownloadLinkMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getData: connect.NewClient[service.GetDataRequest, service.GetDataResponse]( - httpClient, - baseURL+DataProxyServiceGetDataProcedure, - connect.WithSchema(dataProxyServiceGetDataMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// dataProxyServiceClient implements DataProxyServiceClient. -type dataProxyServiceClient struct { - createUploadLocation *connect.Client[service.CreateUploadLocationRequest, service.CreateUploadLocationResponse] - createDownloadLocation *connect.Client[service.CreateDownloadLocationRequest, service.CreateDownloadLocationResponse] - createDownloadLink *connect.Client[service.CreateDownloadLinkRequest, service.CreateDownloadLinkResponse] - getData *connect.Client[service.GetDataRequest, service.GetDataResponse] -} - -// CreateUploadLocation calls flyteidl.service.DataProxyService.CreateUploadLocation. -func (c *dataProxyServiceClient) CreateUploadLocation(ctx context.Context, req *connect.Request[service.CreateUploadLocationRequest]) (*connect.Response[service.CreateUploadLocationResponse], error) { - return c.createUploadLocation.CallUnary(ctx, req) -} - -// CreateDownloadLocation calls flyteidl.service.DataProxyService.CreateDownloadLocation. -// -// Deprecated: do not use. -func (c *dataProxyServiceClient) CreateDownloadLocation(ctx context.Context, req *connect.Request[service.CreateDownloadLocationRequest]) (*connect.Response[service.CreateDownloadLocationResponse], error) { - return c.createDownloadLocation.CallUnary(ctx, req) -} - -// CreateDownloadLink calls flyteidl.service.DataProxyService.CreateDownloadLink. -func (c *dataProxyServiceClient) CreateDownloadLink(ctx context.Context, req *connect.Request[service.CreateDownloadLinkRequest]) (*connect.Response[service.CreateDownloadLinkResponse], error) { - return c.createDownloadLink.CallUnary(ctx, req) -} - -// GetData calls flyteidl.service.DataProxyService.GetData. -func (c *dataProxyServiceClient) GetData(ctx context.Context, req *connect.Request[service.GetDataRequest]) (*connect.Response[service.GetDataResponse], error) { - return c.getData.CallUnary(ctx, req) -} - -// DataProxyServiceHandler is an implementation of the flyteidl.service.DataProxyService service. -type DataProxyServiceHandler interface { - // CreateUploadLocation creates a signed url to upload artifacts to for a given project/domain. - CreateUploadLocation(context.Context, *connect.Request[service.CreateUploadLocationRequest]) (*connect.Response[service.CreateUploadLocationResponse], error) - // CreateDownloadLocation creates a signed url to download artifacts. - // - // Deprecated: do not use. - CreateDownloadLocation(context.Context, *connect.Request[service.CreateDownloadLocationRequest]) (*connect.Response[service.CreateDownloadLocationResponse], error) - // CreateDownloadLocation creates a signed url to download artifacts. - CreateDownloadLink(context.Context, *connect.Request[service.CreateDownloadLinkRequest]) (*connect.Response[service.CreateDownloadLinkResponse], error) - GetData(context.Context, *connect.Request[service.GetDataRequest]) (*connect.Response[service.GetDataResponse], error) -} - -// NewDataProxyServiceHandler builds an HTTP handler from the service implementation. It returns the -// path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewDataProxyServiceHandler(svc DataProxyServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - dataProxyServiceCreateUploadLocationHandler := connect.NewUnaryHandler( - DataProxyServiceCreateUploadLocationProcedure, - svc.CreateUploadLocation, - connect.WithSchema(dataProxyServiceCreateUploadLocationMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataProxyServiceCreateDownloadLocationHandler := connect.NewUnaryHandler( - DataProxyServiceCreateDownloadLocationProcedure, - svc.CreateDownloadLocation, - connect.WithSchema(dataProxyServiceCreateDownloadLocationMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataProxyServiceCreateDownloadLinkHandler := connect.NewUnaryHandler( - DataProxyServiceCreateDownloadLinkProcedure, - svc.CreateDownloadLink, - connect.WithSchema(dataProxyServiceCreateDownloadLinkMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - dataProxyServiceGetDataHandler := connect.NewUnaryHandler( - DataProxyServiceGetDataProcedure, - svc.GetData, - connect.WithSchema(dataProxyServiceGetDataMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/flyteidl.service.DataProxyService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case DataProxyServiceCreateUploadLocationProcedure: - dataProxyServiceCreateUploadLocationHandler.ServeHTTP(w, r) - case DataProxyServiceCreateDownloadLocationProcedure: - dataProxyServiceCreateDownloadLocationHandler.ServeHTTP(w, r) - case DataProxyServiceCreateDownloadLinkProcedure: - dataProxyServiceCreateDownloadLinkHandler.ServeHTTP(w, r) - case DataProxyServiceGetDataProcedure: - dataProxyServiceGetDataHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedDataProxyServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedDataProxyServiceHandler struct{} - -func (UnimplementedDataProxyServiceHandler) CreateUploadLocation(context.Context, *connect.Request[service.CreateUploadLocationRequest]) (*connect.Response[service.CreateUploadLocationResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.DataProxyService.CreateUploadLocation is not implemented")) -} - -func (UnimplementedDataProxyServiceHandler) CreateDownloadLocation(context.Context, *connect.Request[service.CreateDownloadLocationRequest]) (*connect.Response[service.CreateDownloadLocationResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.DataProxyService.CreateDownloadLocation is not implemented")) -} - -func (UnimplementedDataProxyServiceHandler) CreateDownloadLink(context.Context, *connect.Request[service.CreateDownloadLinkRequest]) (*connect.Response[service.CreateDownloadLinkResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.DataProxyService.CreateDownloadLink is not implemented")) -} - -func (UnimplementedDataProxyServiceHandler) GetData(context.Context, *connect.Request[service.GetDataRequest]) (*connect.Response[service.GetDataResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.DataProxyService.GetData is not implemented")) -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/external_plugin_service.connect.go b/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/external_plugin_service.connect.go deleted file mode 100644 index bd84af28a6..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/external_plugin_service.connect.go +++ /dev/null @@ -1,198 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: flyteidl/service/external_plugin_service.proto - -package serviceconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // ExternalPluginServiceName is the fully-qualified name of the ExternalPluginService service. - ExternalPluginServiceName = "flyteidl.service.ExternalPluginService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // ExternalPluginServiceCreateTaskProcedure is the fully-qualified name of the - // ExternalPluginService's CreateTask RPC. - ExternalPluginServiceCreateTaskProcedure = "/flyteidl.service.ExternalPluginService/CreateTask" - // ExternalPluginServiceGetTaskProcedure is the fully-qualified name of the ExternalPluginService's - // GetTask RPC. - ExternalPluginServiceGetTaskProcedure = "/flyteidl.service.ExternalPluginService/GetTask" - // ExternalPluginServiceDeleteTaskProcedure is the fully-qualified name of the - // ExternalPluginService's DeleteTask RPC. - ExternalPluginServiceDeleteTaskProcedure = "/flyteidl.service.ExternalPluginService/DeleteTask" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - externalPluginServiceServiceDescriptor = service.File_flyteidl_service_external_plugin_service_proto.Services().ByName("ExternalPluginService") - externalPluginServiceCreateTaskMethodDescriptor = externalPluginServiceServiceDescriptor.Methods().ByName("CreateTask") - externalPluginServiceGetTaskMethodDescriptor = externalPluginServiceServiceDescriptor.Methods().ByName("GetTask") - externalPluginServiceDeleteTaskMethodDescriptor = externalPluginServiceServiceDescriptor.Methods().ByName("DeleteTask") -) - -// ExternalPluginServiceClient is a client for the flyteidl.service.ExternalPluginService service. -type ExternalPluginServiceClient interface { - // Send a task create request to the backend plugin server. - // - // Deprecated: do not use. - CreateTask(context.Context, *connect.Request[service.TaskCreateRequest]) (*connect.Response[service.TaskCreateResponse], error) - // Get job status. - // - // Deprecated: do not use. - GetTask(context.Context, *connect.Request[service.TaskGetRequest]) (*connect.Response[service.TaskGetResponse], error) - // Delete the task resource. - // - // Deprecated: do not use. - DeleteTask(context.Context, *connect.Request[service.TaskDeleteRequest]) (*connect.Response[service.TaskDeleteResponse], error) -} - -// NewExternalPluginServiceClient constructs a client for the flyteidl.service.ExternalPluginService -// service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for -// gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply -// the connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewExternalPluginServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) ExternalPluginServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &externalPluginServiceClient{ - createTask: connect.NewClient[service.TaskCreateRequest, service.TaskCreateResponse]( - httpClient, - baseURL+ExternalPluginServiceCreateTaskProcedure, - connect.WithSchema(externalPluginServiceCreateTaskMethodDescriptor), - connect.WithClientOptions(opts...), - ), - getTask: connect.NewClient[service.TaskGetRequest, service.TaskGetResponse]( - httpClient, - baseURL+ExternalPluginServiceGetTaskProcedure, - connect.WithSchema(externalPluginServiceGetTaskMethodDescriptor), - connect.WithClientOptions(opts...), - ), - deleteTask: connect.NewClient[service.TaskDeleteRequest, service.TaskDeleteResponse]( - httpClient, - baseURL+ExternalPluginServiceDeleteTaskProcedure, - connect.WithSchema(externalPluginServiceDeleteTaskMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// externalPluginServiceClient implements ExternalPluginServiceClient. -type externalPluginServiceClient struct { - createTask *connect.Client[service.TaskCreateRequest, service.TaskCreateResponse] - getTask *connect.Client[service.TaskGetRequest, service.TaskGetResponse] - deleteTask *connect.Client[service.TaskDeleteRequest, service.TaskDeleteResponse] -} - -// CreateTask calls flyteidl.service.ExternalPluginService.CreateTask. -// -// Deprecated: do not use. -func (c *externalPluginServiceClient) CreateTask(ctx context.Context, req *connect.Request[service.TaskCreateRequest]) (*connect.Response[service.TaskCreateResponse], error) { - return c.createTask.CallUnary(ctx, req) -} - -// GetTask calls flyteidl.service.ExternalPluginService.GetTask. -// -// Deprecated: do not use. -func (c *externalPluginServiceClient) GetTask(ctx context.Context, req *connect.Request[service.TaskGetRequest]) (*connect.Response[service.TaskGetResponse], error) { - return c.getTask.CallUnary(ctx, req) -} - -// DeleteTask calls flyteidl.service.ExternalPluginService.DeleteTask. -// -// Deprecated: do not use. -func (c *externalPluginServiceClient) DeleteTask(ctx context.Context, req *connect.Request[service.TaskDeleteRequest]) (*connect.Response[service.TaskDeleteResponse], error) { - return c.deleteTask.CallUnary(ctx, req) -} - -// ExternalPluginServiceHandler is an implementation of the flyteidl.service.ExternalPluginService -// service. -type ExternalPluginServiceHandler interface { - // Send a task create request to the backend plugin server. - // - // Deprecated: do not use. - CreateTask(context.Context, *connect.Request[service.TaskCreateRequest]) (*connect.Response[service.TaskCreateResponse], error) - // Get job status. - // - // Deprecated: do not use. - GetTask(context.Context, *connect.Request[service.TaskGetRequest]) (*connect.Response[service.TaskGetResponse], error) - // Delete the task resource. - // - // Deprecated: do not use. - DeleteTask(context.Context, *connect.Request[service.TaskDeleteRequest]) (*connect.Response[service.TaskDeleteResponse], error) -} - -// NewExternalPluginServiceHandler builds an HTTP handler from the service implementation. It -// returns the path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewExternalPluginServiceHandler(svc ExternalPluginServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - externalPluginServiceCreateTaskHandler := connect.NewUnaryHandler( - ExternalPluginServiceCreateTaskProcedure, - svc.CreateTask, - connect.WithSchema(externalPluginServiceCreateTaskMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - externalPluginServiceGetTaskHandler := connect.NewUnaryHandler( - ExternalPluginServiceGetTaskProcedure, - svc.GetTask, - connect.WithSchema(externalPluginServiceGetTaskMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - externalPluginServiceDeleteTaskHandler := connect.NewUnaryHandler( - ExternalPluginServiceDeleteTaskProcedure, - svc.DeleteTask, - connect.WithSchema(externalPluginServiceDeleteTaskMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/flyteidl.service.ExternalPluginService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case ExternalPluginServiceCreateTaskProcedure: - externalPluginServiceCreateTaskHandler.ServeHTTP(w, r) - case ExternalPluginServiceGetTaskProcedure: - externalPluginServiceGetTaskHandler.ServeHTTP(w, r) - case ExternalPluginServiceDeleteTaskProcedure: - externalPluginServiceDeleteTaskHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedExternalPluginServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedExternalPluginServiceHandler struct{} - -func (UnimplementedExternalPluginServiceHandler) CreateTask(context.Context, *connect.Request[service.TaskCreateRequest]) (*connect.Response[service.TaskCreateResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.ExternalPluginService.CreateTask is not implemented")) -} - -func (UnimplementedExternalPluginServiceHandler) GetTask(context.Context, *connect.Request[service.TaskGetRequest]) (*connect.Response[service.TaskGetResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.ExternalPluginService.GetTask is not implemented")) -} - -func (UnimplementedExternalPluginServiceHandler) DeleteTask(context.Context, *connect.Request[service.TaskDeleteRequest]) (*connect.Response[service.TaskDeleteResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.ExternalPluginService.DeleteTask is not implemented")) -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/identity.connect.go b/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/identity.connect.go deleted file mode 100644 index d01cfe67da..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/identity.connect.go +++ /dev/null @@ -1,115 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: flyteidl/service/identity.proto - -package serviceconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // IdentityServiceName is the fully-qualified name of the IdentityService service. - IdentityServiceName = "flyteidl.service.IdentityService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // IdentityServiceUserInfoProcedure is the fully-qualified name of the IdentityService's UserInfo - // RPC. - IdentityServiceUserInfoProcedure = "/flyteidl.service.IdentityService/UserInfo" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - identityServiceServiceDescriptor = service.File_flyteidl_service_identity_proto.Services().ByName("IdentityService") - identityServiceUserInfoMethodDescriptor = identityServiceServiceDescriptor.Methods().ByName("UserInfo") -) - -// IdentityServiceClient is a client for the flyteidl.service.IdentityService service. -type IdentityServiceClient interface { - // Retrieves user information about the currently logged in user. - UserInfo(context.Context, *connect.Request[service.UserInfoRequest]) (*connect.Response[service.UserInfoResponse], error) -} - -// NewIdentityServiceClient constructs a client for the flyteidl.service.IdentityService service. By -// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, -// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the -// connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewIdentityServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) IdentityServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &identityServiceClient{ - userInfo: connect.NewClient[service.UserInfoRequest, service.UserInfoResponse]( - httpClient, - baseURL+IdentityServiceUserInfoProcedure, - connect.WithSchema(identityServiceUserInfoMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// identityServiceClient implements IdentityServiceClient. -type identityServiceClient struct { - userInfo *connect.Client[service.UserInfoRequest, service.UserInfoResponse] -} - -// UserInfo calls flyteidl.service.IdentityService.UserInfo. -func (c *identityServiceClient) UserInfo(ctx context.Context, req *connect.Request[service.UserInfoRequest]) (*connect.Response[service.UserInfoResponse], error) { - return c.userInfo.CallUnary(ctx, req) -} - -// IdentityServiceHandler is an implementation of the flyteidl.service.IdentityService service. -type IdentityServiceHandler interface { - // Retrieves user information about the currently logged in user. - UserInfo(context.Context, *connect.Request[service.UserInfoRequest]) (*connect.Response[service.UserInfoResponse], error) -} - -// NewIdentityServiceHandler builds an HTTP handler from the service implementation. It returns the -// path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewIdentityServiceHandler(svc IdentityServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - identityServiceUserInfoHandler := connect.NewUnaryHandler( - IdentityServiceUserInfoProcedure, - svc.UserInfo, - connect.WithSchema(identityServiceUserInfoMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/flyteidl.service.IdentityService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case IdentityServiceUserInfoProcedure: - identityServiceUserInfoHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedIdentityServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedIdentityServiceHandler struct{} - -func (UnimplementedIdentityServiceHandler) UserInfo(context.Context, *connect.Request[service.UserInfoRequest]) (*connect.Response[service.UserInfoResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.IdentityService.UserInfo is not implemented")) -} diff --git a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/signal.connect.go b/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/signal.connect.go deleted file mode 100644 index b0e2905bde..0000000000 --- a/flyteidl/gen/pb-go/flyteidl/service/serviceconnect/signal.connect.go +++ /dev/null @@ -1,179 +0,0 @@ -// Code generated by protoc-gen-connect-go. DO NOT EDIT. -// -// Source: flyteidl/service/signal.proto - -package serviceconnect - -import ( - connect "connectrpc.com/connect" - context "context" - errors "errors" - admin "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/admin" - service "github.com/flyteorg/flyte/flyteidl/gen/pb-go/flyteidl/service" - http "net/http" - strings "strings" -) - -// This is a compile-time assertion to ensure that this generated file and the connect package are -// compatible. If you get a compiler error that this constant is not defined, this code was -// generated with a version of connect newer than the one compiled into your binary. You can fix the -// problem by either regenerating this code with an older version of connect or updating the connect -// version compiled into your binary. -const _ = connect.IsAtLeastVersion1_13_0 - -const ( - // SignalServiceName is the fully-qualified name of the SignalService service. - SignalServiceName = "flyteidl.service.SignalService" -) - -// These constants are the fully-qualified names of the RPCs defined in this package. They're -// exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route. -// -// Note that these are different from the fully-qualified method names used by -// google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to -// reflection-formatted method names, remove the leading slash and convert the remaining slash to a -// period. -const ( - // SignalServiceGetOrCreateSignalProcedure is the fully-qualified name of the SignalService's - // GetOrCreateSignal RPC. - SignalServiceGetOrCreateSignalProcedure = "/flyteidl.service.SignalService/GetOrCreateSignal" - // SignalServiceListSignalsProcedure is the fully-qualified name of the SignalService's ListSignals - // RPC. - SignalServiceListSignalsProcedure = "/flyteidl.service.SignalService/ListSignals" - // SignalServiceSetSignalProcedure is the fully-qualified name of the SignalService's SetSignal RPC. - SignalServiceSetSignalProcedure = "/flyteidl.service.SignalService/SetSignal" -) - -// These variables are the protoreflect.Descriptor objects for the RPCs defined in this package. -var ( - signalServiceServiceDescriptor = service.File_flyteidl_service_signal_proto.Services().ByName("SignalService") - signalServiceGetOrCreateSignalMethodDescriptor = signalServiceServiceDescriptor.Methods().ByName("GetOrCreateSignal") - signalServiceListSignalsMethodDescriptor = signalServiceServiceDescriptor.Methods().ByName("ListSignals") - signalServiceSetSignalMethodDescriptor = signalServiceServiceDescriptor.Methods().ByName("SetSignal") -) - -// SignalServiceClient is a client for the flyteidl.service.SignalService service. -type SignalServiceClient interface { - // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - GetOrCreateSignal(context.Context, *connect.Request[admin.SignalGetOrCreateRequest]) (*connect.Response[admin.Signal], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - ListSignals(context.Context, *connect.Request[admin.SignalListRequest]) (*connect.Response[admin.SignalList], error) - // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - SetSignal(context.Context, *connect.Request[admin.SignalSetRequest]) (*connect.Response[admin.SignalSetResponse], error) -} - -// NewSignalServiceClient constructs a client for the flyteidl.service.SignalService service. By -// default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, -// and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the -// connect.WithGRPC() or connect.WithGRPCWeb() options. -// -// The URL supplied here should be the base URL for the Connect or gRPC server (for example, -// http://api.acme.com or https://acme.com/grpc). -func NewSignalServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) SignalServiceClient { - baseURL = strings.TrimRight(baseURL, "/") - return &signalServiceClient{ - getOrCreateSignal: connect.NewClient[admin.SignalGetOrCreateRequest, admin.Signal]( - httpClient, - baseURL+SignalServiceGetOrCreateSignalProcedure, - connect.WithSchema(signalServiceGetOrCreateSignalMethodDescriptor), - connect.WithClientOptions(opts...), - ), - listSignals: connect.NewClient[admin.SignalListRequest, admin.SignalList]( - httpClient, - baseURL+SignalServiceListSignalsProcedure, - connect.WithSchema(signalServiceListSignalsMethodDescriptor), - connect.WithClientOptions(opts...), - ), - setSignal: connect.NewClient[admin.SignalSetRequest, admin.SignalSetResponse]( - httpClient, - baseURL+SignalServiceSetSignalProcedure, - connect.WithSchema(signalServiceSetSignalMethodDescriptor), - connect.WithClientOptions(opts...), - ), - } -} - -// signalServiceClient implements SignalServiceClient. -type signalServiceClient struct { - getOrCreateSignal *connect.Client[admin.SignalGetOrCreateRequest, admin.Signal] - listSignals *connect.Client[admin.SignalListRequest, admin.SignalList] - setSignal *connect.Client[admin.SignalSetRequest, admin.SignalSetResponse] -} - -// GetOrCreateSignal calls flyteidl.service.SignalService.GetOrCreateSignal. -func (c *signalServiceClient) GetOrCreateSignal(ctx context.Context, req *connect.Request[admin.SignalGetOrCreateRequest]) (*connect.Response[admin.Signal], error) { - return c.getOrCreateSignal.CallUnary(ctx, req) -} - -// ListSignals calls flyteidl.service.SignalService.ListSignals. -func (c *signalServiceClient) ListSignals(ctx context.Context, req *connect.Request[admin.SignalListRequest]) (*connect.Response[admin.SignalList], error) { - return c.listSignals.CallUnary(ctx, req) -} - -// SetSignal calls flyteidl.service.SignalService.SetSignal. -func (c *signalServiceClient) SetSignal(ctx context.Context, req *connect.Request[admin.SignalSetRequest]) (*connect.Response[admin.SignalSetResponse], error) { - return c.setSignal.CallUnary(ctx, req) -} - -// SignalServiceHandler is an implementation of the flyteidl.service.SignalService service. -type SignalServiceHandler interface { - // Fetches or creates a :ref:`ref_flyteidl.admin.Signal`. - GetOrCreateSignal(context.Context, *connect.Request[admin.SignalGetOrCreateRequest]) (*connect.Response[admin.Signal], error) - // Fetch a list of :ref:`ref_flyteidl.admin.Signal` definitions. - ListSignals(context.Context, *connect.Request[admin.SignalListRequest]) (*connect.Response[admin.SignalList], error) - // Sets the value on a :ref:`ref_flyteidl.admin.Signal` definition - SetSignal(context.Context, *connect.Request[admin.SignalSetRequest]) (*connect.Response[admin.SignalSetResponse], error) -} - -// NewSignalServiceHandler builds an HTTP handler from the service implementation. It returns the -// path on which to mount the handler and the handler itself. -// -// By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf -// and JSON codecs. They also support gzip compression. -func NewSignalServiceHandler(svc SignalServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - signalServiceGetOrCreateSignalHandler := connect.NewUnaryHandler( - SignalServiceGetOrCreateSignalProcedure, - svc.GetOrCreateSignal, - connect.WithSchema(signalServiceGetOrCreateSignalMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - signalServiceListSignalsHandler := connect.NewUnaryHandler( - SignalServiceListSignalsProcedure, - svc.ListSignals, - connect.WithSchema(signalServiceListSignalsMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - signalServiceSetSignalHandler := connect.NewUnaryHandler( - SignalServiceSetSignalProcedure, - svc.SetSignal, - connect.WithSchema(signalServiceSetSignalMethodDescriptor), - connect.WithHandlerOptions(opts...), - ) - return "/flyteidl.service.SignalService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - switch r.URL.Path { - case SignalServiceGetOrCreateSignalProcedure: - signalServiceGetOrCreateSignalHandler.ServeHTTP(w, r) - case SignalServiceListSignalsProcedure: - signalServiceListSignalsHandler.ServeHTTP(w, r) - case SignalServiceSetSignalProcedure: - signalServiceSetSignalHandler.ServeHTTP(w, r) - default: - http.NotFound(w, r) - } - }) -} - -// UnimplementedSignalServiceHandler returns CodeUnimplemented from all methods. -type UnimplementedSignalServiceHandler struct{} - -func (UnimplementedSignalServiceHandler) GetOrCreateSignal(context.Context, *connect.Request[admin.SignalGetOrCreateRequest]) (*connect.Response[admin.Signal], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.SignalService.GetOrCreateSignal is not implemented")) -} - -func (UnimplementedSignalServiceHandler) ListSignals(context.Context, *connect.Request[admin.SignalListRequest]) (*connect.Response[admin.SignalList], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.SignalService.ListSignals is not implemented")) -} - -func (UnimplementedSignalServiceHandler) SetSignal(context.Context, *connect.Request[admin.SignalSetRequest]) (*connect.Response[admin.SignalSetResponse], error) { - return nil, connect.NewError(connect.CodeUnimplemented, errors.New("flyteidl.service.SignalService.SetSignal is not implemented")) -}