Add base logic to support sending a request to restore a backup for a server
This commit is contained in:
parent
805952ac38
commit
87371901c0
9 changed files with 229 additions and 237 deletions
|
@ -39,9 +39,9 @@ class Permission extends Model
|
|||
|
||||
const ACTION_BACKUP_READ = 'backup.read';
|
||||
const ACTION_BACKUP_CREATE = 'backup.create';
|
||||
const ACTION_BACKUP_UPDATE = 'backup.update';
|
||||
const ACTION_BACKUP_DELETE = 'backup.delete';
|
||||
const ACTION_BACKUP_DOWNLOAD = 'backup.download';
|
||||
const ACTION_BACKUP_RESTORE = 'backup.restore';
|
||||
|
||||
const ACTION_ALLOCATION_READ = 'allocation.read';
|
||||
const ACTION_ALLOCATION_CREATE = 'allocation.create';
|
||||
|
@ -154,9 +154,9 @@ class Permission extends Model
|
|||
'keys' => [
|
||||
'create' => 'Allows a user to create new backups for this server.',
|
||||
'read' => 'Allows a user to view all backups that exist for this server.',
|
||||
'update' => '',
|
||||
'delete' => 'Allows a user to remove backups from the system.',
|
||||
'download' => 'Allows a user to download backups.',
|
||||
'download' => 'Allows a user to download a backup for the server. Danger: this allows a user to access all files for the server in the backup.',
|
||||
'restore' => 'Allows a user to restore a backup for the server. Danger: this allows the user to delete all of the server files in the process.'
|
||||
],
|
||||
],
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ class Server extends Model
|
|||
const STATUS_INSTALLING = 'installing';
|
||||
const STATUS_INSTALL_FAILED = 'install_failed';
|
||||
const STATUS_SUSPENDED = 'suspended';
|
||||
const STATUS_RESTORING_BACKUP = 'restoring_backup';
|
||||
|
||||
/**
|
||||
* The table associated with the model.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue