mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-12-04 20:36:35 +00:00
28 lines
543 B
Python
28 lines
543 B
Python
"""Enums representing different service providers."""
|
|
|
|
from enum import Enum
|
|
import strawberry
|
|
|
|
|
|
@strawberry.enum
|
|
class DnsProvider(Enum):
|
|
CLOUDFLARE = "CLOUDFLARE"
|
|
DIGITALOCEAN = "DIGITALOCEAN"
|
|
DESEC = "DESEC"
|
|
|
|
|
|
@strawberry.enum
|
|
class ServerProvider(Enum):
|
|
HETZNER = "HETZNER"
|
|
DIGITALOCEAN = "DIGITALOCEAN"
|
|
OTHER = "OTHER"
|
|
|
|
|
|
@strawberry.enum
|
|
class BackupProvider(Enum):
|
|
BACKBLAZE = "BACKBLAZE"
|
|
NONE = "NONE"
|
|
# for testing purposes, make sure not selectable in prod.
|
|
MEMORY = "MEMORY"
|
|
FILE = "FILE"
|