selfprivacy.org.app/lib/logic/api_maps/graphql_maps/schema/backups.graphql

101 lines
1.7 KiB
GraphQL

query BackupConfiguration {
backup {
configuration {
autobackupPeriod
encryptionKey
isInitialized
locationId
locationName
provider
}
}
}
query AllBackupSnapshots {
backup {
allSnapshots {
id
createdAt
service {
displayName
id
}
}
}
}
fragment genericBackupConfigReturn on GenericBackupConfigReturn {
code
message
success
configuration {
provider
encryptionKey
isInitialized
autobackupPeriod
locationName
locationId
}
}
mutation ForceSnapshotsReload {
backup {
forceSnapshotsReload {
...basicMutationReturnFields
}
}
}
mutation StartBackup($serviceId: String!) {
backup {
startBackup(serviceId: $serviceId) {
...basicMutationReturnFields
job {
...basicApiJobsFields
}
}
}
}
mutation SetAutobackupPeriod($period: Int = null) {
backup {
setAutobackupPeriod(period: $period) {
...genericBackupConfigReturn
}
}
}
mutation RemoveRepository {
backup {
removeRepository {
...genericBackupConfigReturn
}
}
}
mutation InitializeRepository($repository: InitializeRepositoryInput!) {
backup {
initializeRepository(repository: $repository) {
...genericBackupConfigReturn
}
}
}
mutation RestoreBackup($snapshotId: String!, $strategy: RestoreStrategy! = DOWNLOAD_VERIFY_OVERWRITE) {
backup {
restoreBackup(snapshotId: $snapshotId, strategy: $strategy) {
...basicMutationReturnFields
job {
...basicApiJobsFields
}
}
}
}
mutation ForgetSnapshot($snapshotId: String!) {
backup {
forgetSnapshot(snapshotId: $snapshotId) {
...basicMutationReturnFields
}
}
}