2022-06-24 12:26:51 +00:00
|
|
|
"""Enums representing different service providers."""
|
2024-06-10 01:52:26 +00:00
|
|
|
|
2022-06-24 12:26:51 +00:00
|
|
|
from enum import Enum
|
|
|
|
import strawberry
|
|
|
|
|
2022-06-24 18:14:20 +00:00
|
|
|
|
2022-06-24 12:26:51 +00:00
|
|
|
@strawberry.enum
|
|
|
|
class DnsProvider(Enum):
|
|
|
|
CLOUDFLARE = "CLOUDFLARE"
|
2023-02-06 08:50:43 +00:00
|
|
|
DIGITALOCEAN = "DIGITALOCEAN"
|
2023-05-09 08:58:30 +00:00
|
|
|
DESEC = "DESEC"
|
2022-06-24 12:26:51 +00:00
|
|
|
|
2022-06-24 18:14:20 +00:00
|
|
|
|
2022-06-24 12:26:51 +00:00
|
|
|
@strawberry.enum
|
|
|
|
class ServerProvider(Enum):
|
|
|
|
HETZNER = "HETZNER"
|
2022-10-28 11:55:21 +00:00
|
|
|
DIGITALOCEAN = "DIGITALOCEAN"
|
2024-03-28 11:28:13 +00:00
|
|
|
OTHER = "OTHER"
|
2022-10-28 11:55:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
@strawberry.enum
|
|
|
|
class BackupProvider(Enum):
|
|
|
|
BACKBLAZE = "BACKBLAZE"
|
2023-06-13 21:43:01 +00:00
|
|
|
NONE = "NONE"
|
2023-02-03 18:29:45 +00:00
|
|
|
# for testing purposes, make sure not selectable in prod.
|
|
|
|
MEMORY = "MEMORY"
|
2023-02-20 11:44:59 +00:00
|
|
|
FILE = "FILE"
|