18339: Add sys/trash_sweep to discovery doc.
authorTom Clegg <tom@curii.com>
Wed, 17 Nov 2021 20:35:32 +0000 (15:35 -0500)
committerTom Clegg <tom@curii.com>
Wed, 17 Nov 2021 20:35:32 +0000 (15:35 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

services/api/app/controllers/arvados/v1/schema_controller.rb

index c1d4b74d6dfab1d76b84cf680aaf50ad2487da30..59ac639baf929dd2c06c9352159f33288be1d792 100644 (file)
@@ -427,6 +427,27 @@ class Arvados::V1::SchemaController < ApplicationController
         }
       }
 
+      discovery[:resources]['sys'] = {
+        methods: {
+          get: {
+            id: "arvados.sys.trash_sweep",
+            path: "sys/trash_sweep",
+            httpMethod: "POST",
+            description: "apply scheduled trash and delete operations",
+            parameters: {
+            },
+            parameterOrder: [
+            ],
+            response: {
+            },
+            scopes: [
+              "https://api.arvados.org/auth/arvados",
+              "https://api.arvados.org/auth/arvados.readonly"
+            ]
+          },
+        }
+      }
+
       Rails.configuration.API.DisabledAPIs.each do |method, _|
         ctrl, action = method.to_s.split('.', 2)
         discovery[:resources][ctrl][:methods].delete(action.to_sym)