From d1ed951a22c9e8ec361bdf3ba299c31f60a2b4fc Mon Sep 17 00:00:00 2001 From: Erwan Rouchet <rouchet@teklia.com> Date: Thu, 4 Jul 2019 09:45:46 +0000 Subject: [PATCH] Update Ponos endpoints --- arkindex/schema.yml | 61 +++++++++++++++++++++++++++++++++------------ 1 file changed, 45 insertions(+), 16 deletions(-) diff --git a/arkindex/schema.yml b/arkindex/schema.yml index 9419a4c..0db2e06 100644 --- a/arkindex/schema.yml +++ b/arkindex/schema.yml @@ -1,5 +1,8 @@ components: securitySchemes: + agentAuth: + scheme: Agent + type: http sessionAuth: in: cookie name: arkindex.auth @@ -6036,6 +6039,7 @@ paths: - users /ponos/v1/agent/: post: + description: Register a Ponos agent operationId: CreateAgent parameters: [] requestBody: @@ -6050,6 +6054,7 @@ paths: gpu_count: type: integer gpu_names: + nullable: true type: string hostname: type: string @@ -6060,7 +6065,6 @@ paths: - hostname - cpu_cores - cpu_frequency - - gpu_names - gpu_count x-name: body responses: @@ -6076,6 +6080,7 @@ paths: gpu_count: type: integer gpu_names: + nullable: true type: string hostname: type: string @@ -6089,10 +6094,13 @@ paths: - hostname - cpu_cores - cpu_frequency - - gpu_names - gpu_count + security: [] + tags: + - ponos /ponos/v1/agent/actions/: get: + description: Retrieve any actions the current agent should perform operationId: RetrieveAgentActions parameters: [] responses: @@ -6116,6 +6124,10 @@ paths: type: array required: - actions + security: + - agentAuth: [] + tags: + - ponos /ponos/v1/task/{id}/: get: description: Retrieve a Ponos task status @@ -6143,9 +6155,11 @@ paths: type: string logs: type: string - parent: + parents: + items: + type: string readOnly: true - type: string + type: array run: readOnly: true type: integer @@ -6213,9 +6227,11 @@ paths: type: string logs: type: string - parent: + parents: + items: + type: string readOnly: true - type: string + type: array run: readOnly: true type: integer @@ -6237,6 +6253,10 @@ paths: - state - logs - full_log + security: + - agentAuth: [] + tags: + - ponos put: operationId: UpdateTask parameters: @@ -6284,9 +6304,11 @@ paths: type: string logs: type: string - parent: + parents: + items: + type: string readOnly: true - type: string + type: array run: readOnly: true type: integer @@ -6308,6 +6330,10 @@ paths: - state - logs - full_log + security: + - agentAuth: [] + tags: + - ponos /ponos/v1/task/{id}/artifacts/: get: operationId: ListTaskArtifacts @@ -6334,9 +6360,13 @@ paths: required: - task_id - s3_url + security: + - agentAuth: [] + tags: + - ponos /ponos/v1/task/{id}/definition/: get: - operationId: RetrieveTask + operationId: RetrieveTaskDefinition parameters: - description: A UUID string identifying this task. in: path @@ -6372,11 +6402,8 @@ paths: - image - command - env - /ponos/v1/task/{id}/log/: - get: - description: Retrieve the full task log as plain text - operationId: RetrieveTaskLog - security: [] + security: + - agentAuth: [] tags: - ponos /ponos/v1/workflow/{id}/: @@ -6419,9 +6446,11 @@ paths: id: readOnly: true type: string - parent: + parents: + items: + type: string readOnly: true - type: string + type: array run: readOnly: true type: integer -- GitLab