You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
222 lines
8.2 KiB
PHP
222 lines
8.2 KiB
PHP
<?php
|
|
|
|
namespace App\Services\Cloud;
|
|
|
|
// Generated from agent/operation/recovery_contract.json. Do not edit.
|
|
// Regenerate: php tools/generate-recovery-contract.php
|
|
final class CloudOperationRecoveryContract
|
|
{
|
|
public const OPERATIONS = [
|
|
'action' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['power-start', 'power-shutdown', 'power-reboot', 'power-reset', 'power-destroy'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'reinstall' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['reinstall-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'rescue' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['enter-rescue', 'force-start-rescue', 'exit-rescue:connected', 'exit-rescue:suspended'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'delete' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['delete-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'delete_force' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['force-delete-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'expiry_delete' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['delete-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'network_change' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['change-network'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'instance_settings' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['update-settings'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'snapshot_create' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^create-snapshot:[a-f0-9]{32}:(?:filesystem|crash)$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'snapshot_restore' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^restore-snapshot:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'snapshot_delete' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => [],
|
|
'action_patterns' => ['^delete-snapshot:[a-f0-9]{32}$'],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'firewall_apply' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['apply-firewall'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'service_suspend' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['service-suspend'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'network_suspend' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['network-suspend'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'network_resume' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'instance',
|
|
'actions' => ['network-resume'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'template_import_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['import-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'template_metadata_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['update-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'template_delete_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['delete-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'rescue_template_import' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['import-rescue-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'rescue_template_delete' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['delete-rescue-template'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'user_iso_import_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['import-user-iso'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'user_iso_delete_replica' => [
|
|
'recovery_mode' => 'generic',
|
|
'identity_scope' => 'catalog',
|
|
'actions' => ['delete-user-iso'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['applied', 'not_applied'],
|
|
],
|
|
'create' => [
|
|
'recovery_mode' => 'create',
|
|
'identity_scope' => 'create',
|
|
'actions' => ['create-vm'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => ['not_applied'],
|
|
],
|
|
'host_storage_configure' => [
|
|
'recovery_mode' => 'storage',
|
|
'identity_scope' => 'storage',
|
|
'actions' => ['configure-storage'],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'payment_create' => [
|
|
'recovery_mode' => 'payment',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'template_import' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'template_metadata_sync' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'template_delete' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'user_iso_import' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
'user_iso_delete' => [
|
|
'recovery_mode' => 'aggregate',
|
|
'identity_scope' => 'none',
|
|
'actions' => [],
|
|
'action_patterns' => [],
|
|
'system_resolutions' => [],
|
|
],
|
|
];
|
|
}
|