From 1bf2875eca1badb3d4c57dc26a48c54dde582bed Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 26 Feb 2019 14:41:00 -0500 Subject: [PATCH] Hide all of the export log APIs when the feature is disabled --- endpoints/api/logs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/endpoints/api/logs.py b/endpoints/api/logs.py index 899897f19..1760a2e9b 100644 --- a/endpoints/api/logs.py +++ b/endpoints/api/logs.py @@ -259,6 +259,7 @@ def _queue_logs_export(start_time, end_time, options, namespace_name, repository @resource('/v1/repository//exportlogs') +@show_if(features.LOG_EXPORT) @path_param('repository', 'The full path of the repository. e.g. namespace/name') class ExportRepositoryLogs(RepositoryParamResource): """ Resource for exporting the logs for the specific repository. """ @@ -287,6 +288,7 @@ class ExportRepositoryLogs(RepositoryParamResource): @resource('/v1/user/exportlogs') +@show_if(features.LOG_EXPORT) class ExportUserLogs(ApiResource): """ Resource for exporting the logs for the current user repository. """ schemas = {