Merge pull request #3384 from quay/hide-export-logs
Hide all of the export log APIs when the feature is disabled
This commit is contained in:
commit
694734a042
1 changed files with 2 additions and 0 deletions
|
@ -259,6 +259,7 @@ def _queue_logs_export(start_time, end_time, options, namespace_name, repository
|
||||||
|
|
||||||
|
|
||||||
@resource('/v1/repository/<apirepopath:repository>/exportlogs')
|
@resource('/v1/repository/<apirepopath:repository>/exportlogs')
|
||||||
|
@show_if(features.LOG_EXPORT)
|
||||||
@path_param('repository', 'The full path of the repository. e.g. namespace/name')
|
@path_param('repository', 'The full path of the repository. e.g. namespace/name')
|
||||||
class ExportRepositoryLogs(RepositoryParamResource):
|
class ExportRepositoryLogs(RepositoryParamResource):
|
||||||
""" Resource for exporting the logs for the specific repository. """
|
""" Resource for exporting the logs for the specific repository. """
|
||||||
|
@ -287,6 +288,7 @@ class ExportRepositoryLogs(RepositoryParamResource):
|
||||||
|
|
||||||
|
|
||||||
@resource('/v1/user/exportlogs')
|
@resource('/v1/user/exportlogs')
|
||||||
|
@show_if(features.LOG_EXPORT)
|
||||||
class ExportUserLogs(ApiResource):
|
class ExportUserLogs(ApiResource):
|
||||||
""" Resource for exporting the logs for the current user repository. """
|
""" Resource for exporting the logs for the current user repository. """
|
||||||
schemas = {
|
schemas = {
|
||||||
|
|
Reference in a new issue