mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Move restore from backend to tools
Move the "restoreCommitLogs" command from the backend module to the tools module so it's easier to access with nomulus. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=156768389
This commit is contained in:
parent
9ee9229456
commit
e6af34301d
7 changed files with 22 additions and 9 deletions
|
@ -41,6 +41,8 @@ import google.registry.model.ofy.CommitLogManifest;
|
|||
import google.registry.model.ofy.CommitLogMutation;
|
||||
import google.registry.request.Action;
|
||||
import google.registry.request.Parameter;
|
||||
import google.registry.request.auth.Auth;
|
||||
import google.registry.request.auth.AuthLevel;
|
||||
import google.registry.util.FormattingLogger;
|
||||
import google.registry.util.Retrier;
|
||||
import java.io.IOException;
|
||||
|
@ -59,7 +61,14 @@ import org.joda.time.DateTime;
|
|||
@Action(
|
||||
path = RestoreCommitLogsAction.PATH,
|
||||
method = Action.Method.POST,
|
||||
automaticallyPrintOk = true)
|
||||
automaticallyPrintOk = true,
|
||||
auth =
|
||||
@Auth(
|
||||
methods = {Auth.AuthMethod.INTERNAL, Auth.AuthMethod.API},
|
||||
minimumLevel = AuthLevel.APP,
|
||||
userPolicy = Auth.UserPolicy.ADMIN
|
||||
)
|
||||
)
|
||||
public class RestoreCommitLogsAction implements Runnable {
|
||||
|
||||
private static final FormattingLogger logger = FormattingLogger.getLoggerForCallerClass();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue